Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-10584

64-bit MinGW recognized as 32-bit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 3.0.0-rc1
    • Qt Creator 2.8.1
    • None
    • Win7 Enterprise 64-bit, MinGW-builds 4.8.1, QtCreator 2.8.1
    • aaa287cc4dc0c7b5bca195752a4d981759aa7e45

    Description

      I'm using a 64-bit gcc 4.8.1 on windows (w64, seh, 4.8.1, rev. 5, posix from MinGW-builds: http://sourceforge.net/projects/mingwbuilds/).

      This compiler returns the ABI-string
      x86_64-w64-mingw32
      when calling
      g++ -dumpmachine

      Unfortunately this is recognized as a 32-bit compiler by QtCreator, as shown in the attatched image.

      I checked now the toolchains.xml file ... and it actually lists both ABIs (32&64 bit, I'm attatching the file for full info):

      <data>
      <variable>ToolChain.3</variable>
      <valuemap type="QVariantMap">
      <value type="QString" key="ProjectExplorer.GccToolChain.Path">C:/development/mingw-builds/x64-4.8.1-posix-seh-rev5/mingw64/bin/x86_64-w64-mingw32-g++.exe</value>

      ...

      <valuelist type="QVariantList" key="ProjectExplorer.GccToolChain.SupportedAbis">
      <value type="QString">x86-windows-msys-pe-64bit</value>
      <value type="QString">x86-windows-msys-pe-32bit</value>
      </valuelist>
      <value type="QString" key="ProjectExplorer.GccToolChain.TargetAbi">x86-windows-msys-pe-64bit</value>

      ...

      </valuemap>
      </data>

      But these versions are not displayed in the according combobox in the creator. and I can't select the 64-bit ABI, which seems to even be the default setting (that's how I would interpret ProjectExplorer.GccToolChain.TargetAbi above).

      Attachments

        1. compiler.png
          compiler.png
          123 kB
        2. mingw64_abi.png
          mingw64_abi.png
          215 kB
        3. mingw64_abi2.png
          mingw64_abi2.png
          200 kB
        4. toolchains.xml
          8 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hunger Tobias Hunger
            jkriege2 Jan Krieger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes