linux :ubuntu20.04 arm: cortex a7 交叉编译工具 gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf.tar.xz 出错信息一 : arm-linux-gnueabihf-ld:cannot find -lm rules.mk:118:recipe for target 'Linux_All_DBG.OBJ/libjs.so' failed make[1]: ***[Linux_All_DBG.OBJ/libjs.so] Error 1 make[1]: Leavingdirectory '/home/book/linux/arm_spidermonkey/js/src' rules.mk:65:recipe for target 'all' failed make: *** [all]Error 2 添加路径解决了 -L/usr/local/arm/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/libc/usr/lib-lm 测试实例的时候出错了 arm-linux-gnueabihf-gcc -DXP_UNIX -I/opt/js/src -o excample11 test.c -L/opt/js/src/Linux_All_DBG.OBJ -ljs -lm /usr/local/arm/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.4/../../../../arm-linux-gnueabihf/bin/ld: excample11: hidden symbol `__aeabi_uldivmod' in /usr/local/arm/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.4/libgcc.a(_aeabi_uldivmod.o) is referenced by DSO /usr/local/arm/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.4/../../../../arm-linux-gnueabihf/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status 请问有解决的吗? |