awslabs / aws-crt-nodejs

NodeJS bindings for the AWS Common Runtime.
Apache License 2.0
40 stars 27 forks source link

Unable to install due to missing PATH_MAX #366

Closed klinquist closed 1 year ago

klinquist commented 1 year ago

/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

xiazhvera commented 1 year ago

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? https://github.com/abhiTronix/raspberry-pi-cross-compilers/issues/8

Let me know if it helps.

xiazhvera commented 1 year ago

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