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

qtbase 5.8 branch fails to compile when using gcc6 with stdlib.h

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.8.0
    • Build System
    • None

    Description

      Hi

      I am trying to compile qtbase on Debian Stretch. For a while, I was able to install GCC5 and dpkg redirect to it, but now GCC5 is pulled.
      When I try to compile with gcc6, I seem to get an issue with stdlib.h, with or without -no-pch passed to configure

      I am not sure what I could be doing wrong...

      qtbase: QtCore: created fwd-include header(s) for <srcbase>/src/corelib/xml/ { qxmlstream.h (12) }
      qtbase: QtCore: created version header
      qtbase: QtCore: created master header
      qtbase: QtCore: created headers.pri file
      qtbase: make[2]: Entering directory '/srcbuild/qtbase/build/src/corelib'
      qtbase: perl /srcbuild/qtbase/mkspecs/features/data/unix/findclasslist.pl < QtCore.version.in > QtCore.version
      qtbase: g++ -pipe -msse2 -mfpmath=sse -O3 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -dM -E -o .moc/moc_predefs.h /srcbuild/qtbase/mkspecs/features/data/dummy.cpp
      qtbase: g++ -c -pipe -msse2 -mfpmath=sse -O3 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -D_REENTRANT -fPIC -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DELF_INTERPRETER=\"/lib/ld-linux.so.2\" -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I/srcbuild/qtbase/src/corelib -I. -Iglobal -I/srcbuild/qtbase/src/3rdparty/harfbuzz/src -I/srcbuild/qtbase/src/3rdparty/md5 -I/srcbuild/qtbase/src/3rdparty/md4 -I/srcbuild/qtbase/src/3rdparty/sha3 -I/srcbuild/qtbase/src/3rdparty/double-conversion/include -I/srcbuild/qtbase/src/3rdparty/double-conversion/include/double-conversion -I/srcbuild/qtbase/src/3rdparty/forkfd -I../../include -I../../include/QtCore -I../../include/QtCore/5.8.1 -I../../include/QtCore/5.8.1/QtCore -I.moc -isystem /opt/include/glib-2.0 -I/opt/lib/i386-linux-gnu/glib-2.0/include -isystem /usr/include -I/srcbuild/qtbase/mkspecs/linux-g++ -o .obj/qglobal.o /srcbuild/qtbase/src/corelib/global/qglobal.cpp
      qtbase: g++ -c -pipe -msse2 -mfpmath=sse -O3 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -D_REENTRANT -fPIC -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DELF_INTERPRETER=\"/lib/ld-linux.so.2\" -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I/srcbuild/qtbase/src/corelib -I. -Iglobal -I/srcbuild/qtbase/src/3rdparty/harfbuzz/src -I/srcbuild/qtbase/src/3rdparty/md5 -I/srcbuild/qtbase/src/3rdparty/md4 -I/srcbuild/qtbase/src/3rdparty/sha3 -I/srcbuild/qtbase/src/3rdparty/double-conversion/include -I/srcbuild/qtbase/src/3rdparty/double-conversion/include/double-conversion -I/srcbuild/qtbase/src/3rdparty/forkfd -I../../include -I../../include/QtCore -I../../include/QtCore/5.8.1 -I../../include/QtCore/5.8.1/QtCore -I.moc -isystem /opt/include/glib-2.0 -I/opt/lib/i386-linux-gnu/glib-2.0/include -isystem /usr/include -I/srcbuild/qtbase/mkspecs/linux-g++ -o .obj/qglobalstatic.o /srcbuild/qtbase/src/corelib/global/qglobalstatic.cpp
      qtbase: g++ -c -pipe -msse2 -mfpmath=sse -O3 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -D_REENTRANT -fPIC -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DELF_INTERPRETER=\"/lib/ld-linux.so.2\" -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I/srcbuild/qtbase/src/corelib -I. -Iglobal -I/srcbuild/qtbase/src/3rdparty/harfbuzz/src -I/srcbuild/qtbase/src/3rdparty/md5 -I/srcbuild/qtbase/src/3rdparty/md4 -I/srcbuild/qtbase/src/3rdparty/sha3 -I/srcbuild/qtbase/src/3rdparty/double-conversion/include -I/srcbuild/qtbase/src/3rdparty/double-conversion/include/double-conversion -I/srcbuild/qtbase/src/3rdparty/forkfd -I../../include -I../../include/QtCore -I../../include/QtCore/5.8.1 -I../../include/QtCore/5.8.1/QtCore -I.moc -isystem /opt/include/glib-2.0 -I/opt/lib/i386-linux-gnu/glib-2.0/include -isystem /usr/include -I/srcbuild/qtbase/mkspecs/linux-g++ -o .obj/qlibraryinfo.o /srcbuild/qtbase/src/corelib/global/qlibraryinfo.cpp
      qtbase: g++ -c -pipe -msse2 -mfpmath=sse -O3 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -D_REENTRANT -fPIC -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DELF_INTERPRETER=\"/lib/ld-linux.so.2\" -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I/srcbuild/qtbase/src/corelib -I. -Iglobal -I/srcbuild/qtbase/src/3rdparty/harfbuzz/src -I/srcbuild/qtbase/src/3rdparty/md5 -I/srcbuild/qtbase/src/3rdparty/md4 -I/srcbuild/qtbase/src/3rdparty/sha3 -I/srcbuild/qtbase/src/3rdparty/double-conversion/include -I/srcbuild/qtbase/src/3rdparty/double-conversion/include/double-conversion -I/srcbuild/qtbase/src/3rdparty/forkfd -I../../include -I../../include/QtCore -I../../include/QtCore/5.8.1 -I../../include/QtCore/5.8.1/QtCore -I.moc -isystem /opt/include/glib-2.0 -I/opt/lib/i386-linux-gnu/glib-2.0/include -isystem /usr/include -I/srcbuild/qtbase/mkspecs/linux-g++ -o .obj/qmalloc.o /srcbuild/qtbase/src/corelib/global/qmalloc.cpp
      qtbase: g++ -c -pipe -msse2 -mfpmath=sse -O3 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -D_REENTRANT -fPIC -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DELF_INTERPRETER=\"/lib/ld-linux.so.2\" -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I/srcbuild/qtbase/src/corelib -I. -Iglobal -I/srcbuild/qtbase/src/3rdparty/harfbuzz/src -I/srcbuild/qtbase/src/3rdparty/md5 -I/srcbuild/qtbase/src/3rdparty/md4 -I/srcbuild/qtbase/src/3rdparty/sha3 -I/srcbuild/qtbase/src/3rdparty/double-conversion/include -I/srcbuild/qtbase/src/3rdparty/double-conversion/include/double-conversion -I/srcbuild/qtbase/src/3rdparty/forkfd -I../../include -I../../include/QtCore -I../../include/QtCore/5.8.1 -I../../include/QtCore/5.8.1/QtCore -I.moc -isystem /opt/include/glib-2.0 -I/opt/lib/i386-linux-gnu/glib-2.0/include -isystem /usr/include -I/srcbuild/qtbase/mkspecs/linux-g++ -o .obj/qnumeric.o /srcbuild/qtbase/src/corelib/global/qnumeric.cpp
      qtbase: g++ -c -pipe -msse2 -mfpmath=sse -O3 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -D_REENTRANT -fPIC -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DELF_INTERPRETER=\"/lib/ld-linux.so.2\" -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I/srcbuild/qtbase/src/corelib -I. -Iglobal -I/srcbuild/qtbase/src/3rdparty/harfbuzz/src -I/srcbuild/qtbase/src/3rdparty/md5 -I/srcbuild/qtbase/src/3rdparty/md4 -I/srcbuild/qtbase/src/3rdparty/sha3 -I/srcbuild/qtbase/src/3rdparty/double-conversion/include -I/srcbuild/qtbase/src/3rdparty/double-conversion/include/double-conversion -I/srcbuild/qtbase/src/3rdparty/forkfd -I../../include -I../../include/QtCore -I../../include/QtCore/5.8.1 -I../../include/QtCore/5.8.1/QtCore -I.moc -isystem /opt/include/glib-2.0 -I/opt/lib/i386-linux-gnu/glib-2.0/include -isystem /usr/include -I/srcbuild/qtbase/mkspecs/linux-g++ -o .obj/qlogging.o /srcbuild/qtbase/src/corelib/global/qlogging.cpp
      qtbase: g++ -c -pipe -msse2 -mfpmath=sse -O3 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -D_REENTRANT -fPIC -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DELF_INTERPRETER=\"/lib/ld-linux.so.2\" -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I/srcbuild/qtbase/src/corelib -I. -Iglobal -I/srcbuild/qtbase/src/3rdparty/harfbuzz/src -I/srcbuild/qtbase/src/3rdparty/md5 -I/srcbuild/qtbase/src/3rdparty/md4 -I/srcbuild/qtbase/src/3rdparty/sha3 -I/srcbuild/qtbase/src/3rdparty/double-conversion/include -I/srcbuild/qtbase/src/3rdparty/double-conversion/include/double-conversion -I/srcbuild/qtbase/src/3rdparty/forkfd -I../../include -I../../include/QtCore -I../../include/QtCore/5.8.1 -I../../include/QtCore/5.8.1/QtCore -I.moc -isystem /opt/include/glib-2.0 -I/opt/lib/i386-linux-gnu/glib-2.0/include -isystem /usr/include -I/srcbuild/qtbase/mkspecs/linux-g++ -o .obj/qhooks.o /srcbuild/qtbase/src/corelib/global/qhooks.cpp
      qtbase: In file included from /usr/include/c++/6/bits/stl_algo.h:59:0,
      qtbase:                  from /usr/include/c++/6/algorithm:62,
      qtbase:                  from ../../include/QtCore/../../../src/corelib/global/qglobal.h:108,
      qtbase:                  from ../../include/QtCore/qglobal.h:1,
      qtbase:                  from /srcbuild/qtbase/src/corelib/global/qglobalstatic.h:40,
      qtbase:                  from /srcbuild/qtbase/src/corelib/global/qglobalstatic.cpp:40:
      qtbase: /usr/include/c++/6/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
      qtbase:  #include_next <stdlib.h>
      

      Attachments

        Issue Links

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

          Activity

            People

              buddenha Oswald Buddenhagen
              nerdopolisturfwalker nerdopolis turfwalker
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes