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

global/qrandom.cpp fails to build using 32-bit MinGW -- internal compiler error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.12.0 Alpha
    • Core: Other
    • None
    • i686-w64-mingw32 7.3.0 and 6.3.0

    Description

      When cross-compiling Qt 5.12.0 Alpha using i686-w64-mingw32 7.3.0 as provided by Ubuntu 18.04 (as well as Debian Testing & Unstable), the cross-compilation fails due to Qt source code causing an internal error in the MinGW compiler. This is also reproducible using i686-w64-mingw32 6.3.0 as provided by Debian Stretch (Stable). This is not reproducible using 7.3.0 and 6.3.0 x86_64-w64-mingw32 – the 64-bit MinGW.

      The build error:

      global/qrandom.cpp: In function 'qsizetype qt_random_cpu(void*, qsizetype)':
      global/qrandom.cpp:121:1: internal compiler error: in ix86_compute_frame_layout, at config/i386/i386.c:12793
       }
       ^
      Please submit a full bug report,
      with preprocessed source if appropriate.
      See <https://gcc.gnu.org/bugs/> for instructions.
      make[4]: *** [Makefile.Release:12868: .obj/release/qrandom.o] Error 1
      make[4]: *** Waiting for unfinished jobs....
      make[4]: Leaving directory '/build/qt-everywhere-src-5.12.0-alpha/qtbase/src/corelib'
      make[3]: Leaving directory '/build/qt-everywhere-src-5.12.0-alpha/qtbase/src/corelib'
      make[3]: *** [Makefile:36: release] Error 2
      make[2]: *** [Makefile:220: sub-corelib-make_first] Error 2
      make[2]: Leaving directory '/build/qt-everywhere-src-5.12.0-alpha/qtbase/src'
      make[1]: *** [Makefile:45: sub-src-make_first] Error 2
      make[1]: Leaving directory '/build/qt-everywhere-src-5.12.0-alpha/qtbase'
      make: *** [Makefile:44: module-qtbase-make_first] Error 2
      

      To reproduce, run the attached build_qt.sh script on Ubuntu 18.04 as root with i686 as the argument:

      ./build_qt.sh i686
      

      If you prefer using Docker:

      mkdir build
      mv build_qt.sh build
      sudo docker run --rm -v "$PWD/build":/build ubuntu:18.04 /bin/bash /build/build_qt.sh i686
      

      Attachments

        1. build_qt_v2.sh
          3 kB
        2. build_qt.sh
          3 kB
        For Gerrit Dashboard: QTBUG-70487
        # Subject Branch Project Status CR V

        Activity

          People

            Unassigned Unassigned
            nurupo nurupo
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change