awslabs / aws-crt-nodejs

NodeJS bindings for the AWS Common Runtime.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to install due to missing PATH_MAX

klinquist opened this issue · comments

/home/pi/aws-iot-device-sdk-js-v2/node_modules/aws-crt/crt/aws-c-common/source/posix/system_info.c:177:14: error: ‘PATH_MAX’ undeclared here (not in a function); did you mean ‘AF_MAX’?

Raspbian Stretch
GCC 9.10

Hi @klinquist , I did some quick research, and it seems to be a gcc configuration issue, where the compiler did not recognize "system" limits.h (As described here: https://bugs.chromium.org/p/nativeclient/issues/detail?id=3190)

I found a similar issue with raspberry pi cross compiler, would you like to check if the gcc config in the post helps?
abhiTronix/raspberry-pi-cross-compilers#8

Let me know if it helps.

Close the issue as there is no further comments. Please feel free to reopen it if you have further questions.