-
spidermonkey交叉编译问题
linux:ubuntu20.04arm:cortexa7交叉编译工具gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf.tar.xz出错信息一:arm-linux-gnueabihf-ld:cannotfind-lmrules.mk:118:recipefortarget'Linux_All_DBG.OBJ/libjs.so'failedmake[1]:***[Linux_All_DBG.OBJ/libjs.so]Error1make[1]:Leavingdirectory'/home/book/linux/arm_spidermonkey/js/src'rules.mk:65:recipefortarget'all'failedmake:***[all]Error2添加路径解决了-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-oexcample11test.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:hiddensymbol`__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)isreferencedbyDSO/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:finallinkfailed:Badvaluecollect2:error:ldreturned1exitstatus请问有解决的吗?
2020-12-02 0