问答

汇集网友智慧,解决技术难题

21ic问答首页 - spidermonkey交叉编译问题

Spider 交叉编译 monkey ARM linux

spidermonkey交叉编译问题

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
请问有解决的吗?
回答 +关注 17
999人浏览 0人回答问题 分享 举报
0 个回答

您需要登录后才可以回复 登录 | 注册