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

Compiling Qt with MingW: Error: conflicting declaration of ‘__m64 _m_pswapd(__m64)’ with ‘C’ linkage

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.4.0
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
      None

      Description

      Whenever I try to compile Qt 5.4, it fails after 5 Minutes with the above Error.
      And before someone is asking: Compiling Qt Source prior to 5.4 (incl. 5.3.2) with all Examples and Tests, is working fine without any kind of Error (well, besides the usual “bad escape sequence” Stuff in some Files – but this is existent since 5.0 (the first Version I started to use).

      My System:

      • Windows 7 ×64 SP1
      • CPU: AMD Phenom II 965 BE
      • RAM: 16GB
      • Source HDD: 50+ GB Space Free
      • Target HDD: 85+ GB Free

      The following Tools were fresh installed just yesterday (clean removed with Revo Uninstaller plus a dozen of restarts and all those things):

      • Ruby Version: 2.1.5p273 [i386-MingW32] – Path correctly set
      • ActivePerl Version: 5.20.1.2000 ×86 (32-bit) – Path correctly set
      • ActivePython Version: 3.4.2 ×86 (32-bit) – Path correctly set
      • ICU: 54.1 Final
      • GitSCM: 1.9.4 – sh.exe renamed before i started the compiling and also removed git from the Path Settings
      • OpenSSL Libraries: Version 1.0.1j
      • OpenSSL Binaries for Win32 + Win64: 1.0.1j – removed the OPENSSLx64_Conf Setting from the Path as it gave Errors when compiling Qt with the Win32 OpenSSL Library.
      • DirectX SDK June 2010 – Path is correctly set
      • Microsoft Windows 8.1 SDK (only the SDK Main Files plus the Debugging Tools)

      The Bison, GPerf, Flex etc. Tools are used from the Qt Source Folder and are within the System and the User Environment Path correctly set.

      Qt Version I want to build:

      *Qt 5.4.0 ×86 directly from the Source Archive (Zip File)
      From this Link: https://download.qt-project.org/official_releases/qt/5.4/5.4.0/single/qt-everywhere-opensource-src-5.4.0.zip from 09. December 2014.

      Used Compiler:

      • MingW (32-bit) 4.9.2-Release-Posix-Dwarf-rt_V3_Rev0
        [Yes I tried older Compiler Versions (4.8+ and 4.9.1 Branch) but it also has the same Result: 5.4 fails, older Qt Versions compile fine.]

      My Configure Line looks as follows:

      c:\qt-everywhere-opensource-src-5.4.0\configure -opensource -confirm-license -prefix d:\qt-build -skip webengine -opengl dynamic -debug-and-release -developer-build -icu -I C:\icu\dist\include -L C:\icu\dist\lib -openssl -I C:\OpenSSL-Win32\include -L c:\OpenSSL-Win32\lib\MinGW -platform win32-g++
      

      But even when I dont use “-opengl dynamic”, it still fails and give the same Error.

      More Details about the Error:

      In file included from C:\qt-everywhere-opensource-src-5.4.0\qtbas\src\3rdparty\angle\src/common/platform.h:51:0,
      from C:\qt-everywhere-opensource-src-5.4.0\qtbase\src\3rdparty\angle\src/common/angleutils.h:12,
      from C:\qt-everywhere-opensource-src-5.4.0\qtbase\src\3rdparty\angle\src/common/debug.h:15,
      from C:\qt-everywhere-opensource-src-5.4.0\qtbase\src\3rdparty\angle\src/common/mathutil.h:12,
      from C:\qt-everywhere-opensource-src-5.4.0\qtbase\src\3rdparty\angle\src\common\blocklayout.cpp:11:
      
      C:/mingw32/i686-w64-mingw32/include/intrin.h:791:5: error: conflicting declaration of '__m64 _m_pswapd(__m64)' with 'C' linkage
                  __MACHINEX86X_NOWIN64(__m64 _m_pswapd(__m64))
                  ^
      In file included from C:/mingw32/lib/gcc/i686-w64-mingw32/4.9.2/include/x86intrin.h:48:0,
      from C:/mingw32/i686-w64-mingw32/include/c++/i686-w64-mingw32/bits/opt_random.h:33,
      
      from C:/mingw32/i686-w64-mingw32/include/c++/random:50,
      from C:/mingw32/i686-w64-mingw32/include/c++/bits/stl_algo.h:66,
      from C:/mingw32/i686-w64-mingw32/include/c++/algorithm:62,
      from C:\qt-everywhere-opensource-src-5.4.0\qtbase\src\3rdparty\angl\include/GLSLANG/ShaderVars.h:15,
      from C:\qt-everywhere-opensource-src-5.4.0\qtbase\src\3rdparty\angle\include/GLSLANG/ShaderLang.h:47,
      from C:\qt-everywhere-opensource-src-5.4.0\qtbase\src\3rdparty\angle\src/common/blocklayout.h:17,
      from C:\qt-everywhere-opensource-src-5.4.0\qtbase\src\3rdparty\angle\src\common\blocklayout.cpp:10:
      
      C:/mingw32/lib/gcc/i686-w64-mingw32/4.9.2/include/mm3dnow.h:206:1: note: previous declaration with 'C++' linkage_m_pswapd (__m64 __A)
                                      ^
      Makefile.Debug:1045: recipe for target '.obj/debug/blocklayout.o' failed
      mingw32-make[6]: *** [.obj/debug/blocklayout.o] Error 1
      mingw32-make[6]: Leaving directory 'D:/xxqts/qtbase/src/angle/src/libGLESv2'
      Makefile:38: recipe for target 'debug-all' failed
      mingw32-make[5]: *** [debug-all] Error 2
      mingw32-make[5]: Leaving directory 'D:/xxqts/qtbase/src/angle/src/libGLESv2'
      Makefile:83: recipe for target 'sub-libGLESv2-make_first-ordered' failed
      mingw32-make[4]: *** [sub-libGLESv2-make_first-ordered] Error 2
      mingw32-make[4]: Leaving directory 'D:/xxqts/qtbase/src/angle/src'
      Makefile:38: recipe for target 'sub-src-make_first' failed
      mingw32-make[3]: *** [sub-src-make_first] Error 2
      mingw32-make[3]: Leaving directory 'D:/xxqts/qtbase/src/angle'
      Makefile:361: recipe for target 'sub-angle-make_first' failed
      mingw32-make[2]: *** [sub-angle-make_first] Error 2
      mingw32-make[2]: Leaving directory 'D:/xxqts/qtbase/src'
      Makefile:41: recipe for target 'sub-src-make_first' failed
      mingw32-make[1]: *** [sub-src-make_first] Error 2
      mingw32-make[1]: Leaving directory 'D:/xxqts/qtbase'
      makefile:64: recipe for target 'module-qtbase-make_first' failed
      mingw32-make: *** [module-qtbase-make_first] Error 2
      

      A few hours ago, i saw by accident, that there are some MingW 5 Experimental Daily Builds already in the wild. I will try them ASAP and Report back here in the Comment Section down below. EDIT: Cant test MinGW 5 Branch for now: Experimental Builds are all incomplete.

      In the meantime: Is there any known Workaround for this? Or am I really forced to a) switch to a MSVC Compiler or b) to stay on an older Qt Version instead?

      Thanks in advance
      Oliver

      P.S.: I am new to Jira. If I put something in the wrong Section, then please tell where it should be instead. Thank You!

        Attachments

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

          Activity

            People

            Assignee:
            kkohne Kai Köhne
            Reporter:
            meermusik Oliver Niebuhr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes