Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-31030

Tools are compiled with cross-compiler

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.0.2
    • Build System
    • None
    • Fedora 16. Cross compiler is gcc 4.8.0.

    Description

      Please see here for some discussion on this issue:
      http://qt-project.org/forums/viewthread/24090/

      I have built a cross toolchain for an x86_64 target. The linker doesn't support the -m64 option.

      After I run configure, then run make, it starts building the tools, and fails with ld: unrecognised emulation mode: 64.

      While it's building the tools, I noticed it's using my cross-compiler, not the host compiler. And I've removed the -m64 from CFLAGS and LFLAGS in my custom mkspec, but it's still using -m64 on both the compiler and the linker (it appears to be picking them up from linux-g++-64).

      I configured Qt with:
      -platform=linux-g++-64
      -xplatform=<my mkspec>

      I also tried using -device instead of/in addition to -xplatform, but it's still using the cross-compiler (and mixing in the linux-g++-64 CFLAGS) when building the tools.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            buddenha Oswald Buddenhagen
            pnoffke Patrick Noffke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes