Hello,
I tried to compile libmodbus 3.0.5 with a compiler for an ARM9 but get the following errors out of the config.log when I try to use ./configure:
...
configure:3154: checking for gcc
configure:3181: result: arm-ssv1-linux-gcc
configure:3410: checking for C compiler version
configure:3419: arm-ssv1-linux-gcc --version >&5
./configure: line 3421: arm-ssv1-linux-gcc: command not found
configure:3430: $? = 127
configure:3419: arm-ssv1-linux-gcc -v >&5
./configure: line 3421: arm-ssv1-linux-gcc: command not found
configure:3430: $? = 127
configure:3419: arm-ssv1-linux-gcc -V >&5
./configure: line 3421: arm-ssv1-linux-gcc: command not found
configure:3430: $? = 127
configure:3419: arm-ssv1-linux-gcc -qversion >&5
./configure: line 3421: arm-ssv1-linux-gcc: command not found
configure:3430: $? = 127
configure:3450: checking whether the C compiler works
configure:3472: arm-ssv1-linux-gcc conftest.c >&5
./configure: line 3474: arm-ssv1-linux-gcc: command not found
configure:3476: $? = 127
configure:3514: result: no
configure: failed program was:
| /* confdefs.h _/
| #define PACKAGE_NAME "libmodbus"
| #define PACKAGE_TARNAME "libmodbus"
| #define PACKAGE_VERSION "3.0.5"
| #define PACKAGE_STRING "libmodbus 3.0.5"
| #define PACKAGE_BUGREPORT "https://github.com/stephane/libmodbus/issues"
| #define PACKAGEURL ""
| #define PACKAGE "libmodbus"
| #define VERSION "3.0.5"
| / end confdefs.h. */
...
configure:3519: error: in `/libmodbus-3.0.5':
configure:3521: error: C compiler cannot create executables
I used the following command:
sudo CC="arm-ssv1-linux-gcc" ./configure
Hello, I tried to compile libmodbus 3.0.5 with a compiler for an ARM9 but get the following errors out of the config.log when I try to use ./configure: ... configure:3154: checking for gcc configure:3181: result: arm-ssv1-linux-gcc configure:3410: checking for C compiler version configure:3419: arm-ssv1-linux-gcc --version >&5 ./configure: line 3421: arm-ssv1-linux-gcc: command not found configure:3430: $? = 127 configure:3419: arm-ssv1-linux-gcc -v >&5 ./configure: line 3421: arm-ssv1-linux-gcc: command not found configure:3430: $? = 127 configure:3419: arm-ssv1-linux-gcc -V >&5 ./configure: line 3421: arm-ssv1-linux-gcc: command not found configure:3430: $? = 127 configure:3419: arm-ssv1-linux-gcc -qversion >&5 ./configure: line 3421: arm-ssv1-linux-gcc: command not found configure:3430: $? = 127 configure:3450: checking whether the C compiler works configure:3472: arm-ssv1-linux-gcc conftest.c >&5 ./configure: line 3474: arm-ssv1-linux-gcc: command not found configure:3476: $? = 127 configure:3514: result: no configure: failed program was: | /* confdefs.h _/ | #define PACKAGE_NAME "libmodbus" | #define PACKAGE_TARNAME "libmodbus" | #define PACKAGE_VERSION "3.0.5" | #define PACKAGE_STRING "libmodbus 3.0.5" | #define PACKAGE_BUGREPORT "https://github.com/stephane/libmodbus/issues" | #define PACKAGEURL "" | #define PACKAGE "libmodbus" | #define VERSION "3.0.5" | / end confdefs.h. */ ... configure:3519: error: in `/libmodbus-3.0.5': configure:3521: error: C compiler cannot create executables
I used the following command: sudo CC="arm-ssv1-linux-gcc" ./configure