Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Relocations in generic ELF (EM: 3) project.o: error adding symbols: File in wrong format
QtWS25 Last Chance

Relocations in generic ELF (EM: 3) project.o: error adding symbols: File in wrong format

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 9.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    The most recent future
    wrote on 8 Apr 2017, 08:01 last edited by
    #1

    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 1

    how to do ? thanks.

    A 1 Reply Last reply 8 Apr 2017, 18:39
    0
    • T The most recent future
      8 Apr 2017, 08:01

      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 1

      how to do ? thanks.

      A Offline
      A Offline
      ambershark
      wrote on 8 Apr 2017, 18:39 last edited by
      #2

      @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.

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      1 Reply Last reply
      2
      • S Offline
        S Offline
        shaohong352
        wrote on 11 Feb 2021, 17:27 last edited by
        #3

        add:
        --host-cc=x86_64-linux-gnu-cc --host-os=linux
        may solve this. good luck!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved