Relocations in generic ELF (EM: 3) project.o: error adding symbols: File in wrong format
-
project.o: Relocations in generic ELF (EM: 3)
/usr/local/crossComp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.07_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.1/../../../../arm-linux-gnueabihf/bin/ld: project.o: Relocations in generic ELF (EM: 3)
/usr/local/crossComp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.07_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.1/../../../../arm-linux-gnueabihf/bin/ld: project.o: Relocations in generic ELF (EM: 3)
/usr/local/crossComp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.07_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.1/../../../../arm-linux-gnueabihf/bin/ld: project.o: Relocations in generic ELF (EM: 3)
/usr/local/crossComp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.07_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.1/../../../../arm-linux-gnueabihf/bin/ld: project.o: Relocations in generic ELF (EM: 3)
/usr/local/crossComp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.07_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.1/../../../../arm-linux-gnueabihf/bin/ld: project.o: Relocations in generic ELF (EM: 3)
/usr/local/crossComp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.07_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.1/../../../../arm-linux-gnueabihf/bin/ld: project.o: Relocations in generic ELF (EM: 3)
/usr/local/crossComp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.07_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.1/../../../../arm-linux-gnueabihf/bin/ld: project.o: Relocations in generic ELF (EM: 3)
/usr/local/crossComp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.07_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.1/../../../../arm-linux-gnueabihf/bin/ld: project.o: Relocations in generic ELF (EM: 3)
built qt 5.5./configure
occure error ;
/usr/local/crossComp/gcc-linaro-arm-linux-gnueabihf-4.9-2014.07_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.1/../../../../arm-linux-gnueabihf/bin/ld: project.o: Relocations in generic ELF (EM: 3)
project.o: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
Makefile:137: recipe for target '/usr/local/qt/qt-everywhere-opensource-src-5.3.2/qtbase/bin/qmake' failed
make: *** [/usr/local/qt/qt-everywhere-opensource-src-5.3.2/qtbase/bin/qmake] Error 1how to do ? thanks.
-
@The-most-recent-future said in Relocations in generic ELF (EM: 3) project.o: error adding symbols: File in wrong format:
Relocations in generic ELF (EM: 3)
You're building and linking with 2 different compilers. Make sure you clean your project so it has no build artifacts then rebuild with the cross compiler only. That should fix it.
-
add:
--host-cc=x86_64-linux-gnu-cc --host-os=linux
may solve this. good luck!