问题描述
- 交叉编译遇到的问题No support for MIPS CPUs without FPU
-
我在交叉编译输入命令 ./configure --prefix=/mnt/opnresty --with-cc=/home/opt/toolchains/crosstools-mips-gcc-4.6-linux-3.4-uclibc-0.9.32-binutils-2.21/usr/bin/mips-linux-gcc --with-cpp=/home/opt/toolchains/crosstools-mips-gcc-4.6-linux-3.4-uclibc-0.9.32-binutils-2.21/usr/bin/mips-linux-g++
然后报错
==== Building LuaJIT 2.1.0-alpha ====
gmake -C src
lj_arch.h:386:2: error: #error "No support for MIPS CPUs without FPU"
lj_arch.h:386:2: error: #error "No support for MIPS CPUs without FPU"
lj_arch.h:386:2: error: #error "No support for MIPS CPUs without FPU"
lj_arch.h:386:2: error: #error "No support for MIPS CPUs without FPU"
lj_arch.h:386:2: error: #error "No support for MIPS CPUs without FPU"
lj_arch.h:386:2: error: #error "No support for MIPS CPUs without FPU"
lj_arch.h:386:2: error: #error "No support for MIPS CPUs without FPU"
lj_arch.h:386:2: error: #error "No support for MIPS CPUs without FPU"
lj_arch.h:386:2: error: #error "No support for MIPS CPUs without FPU"
lj_arch.h:386:2: error: #error "No support for MIPS CPUs without FPU"
lj_arch.h:386:2: error: #error "No support for MIPS CPUs without FPU"
lj_arch.h:386:2: error: #error "No support for MIPS CPUs without FPU"
lj_arch.h:386:2: error: #error "No support for MIPS CPUs without FPU"
lj_arch.h:386:2: error: #error "No support for MIPS CPUs without FPU"
lj_arch.h:386:2: error: #error "No support for MIPS CPUs without FPU"
gmake[1]: Entering directory/mnt/ngx_openresty-1.7.10.2/build/LuaJIT-2.1-20150622/src'
/mnt/ngx_openresty-1.7.10.2/build/LuaJIT-2.1-20150622/src'
HOSTCC host/minilua.o
HOSTLINK host/minilua
lj_arch.h:386:2: error: #error "No support for MIPS CPUs without FPU"
DYNASM host/buildvm_arch.h
host/minilua: host/minilua: cannot execute binary file
gmake[1]: *** [host/buildvm_arch.h] Error 126
gmake[1]: Leaving directory
gmake: *** [default] Error 2
ERROR: failed to run command: gmake TARGET_STRIP=@: CCDEBUG=-g CC='/home/opt/toolchains/crosstools-mips-gcc-4.6-linux-3.4-uclibc-0.9.32-binutils-2.21/usr/bin/mips-linux-gcc' PREFIX=/mnt/opnresty/luajit这是什么鬼求解决。
解决方案
http://sourceware.org/ml/binutils/2008-04/msg00349.html
解决方案二:
环境平台:
? ? ? 虚拟机下 fedora9.0系统 ?
? ? ? ?QT 4.7版本
? ? ? kernel ?2.6.35
程序运行状况:
? ? ?在ubuntu 下编译情况 没有报错 程序正常运行
放在 fedora下......
答案就在这里:QT交叉编译出错:No such file or directory
解决方案三:
你要指定用硬件FPU。你的编译库不支持没有硬件FPU的MIPS构架。
具体参考:https://gcc.gnu.org/onlinedocs/gcc/MIPS-Options.html
时间: 2024-09-11 03:59:37