Closed jasonmiu closed 3 years ago
Has anyone managed to solve this?
Have same issue with not defined PATH_MAX. Someone already found solution to that one here: https://github.com/abhiTronix/raspberry-pi-cross-compilers/issues/8
I created a pull request #12 to fix that issue.
Fixed in #12
I downloaded the pre-built toolchain from
wget https://github.com/Pro/raspi-toolchain/releases/latest/download/raspi-toolchain.tar.gz
. I cannot compile a C program that needs definitions likePATH_MAX
from<limits.h>
with this toolchain. Here is a minimal test case:Compiling with the toolchain, on the host Ubuntu 18.04.5, gave me the error:
Same code with the native GCC compiled successfully:
This is my toolchain info:
Thanks you.