Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.6.0
-
None
-
Gentoo Linux
uname -a:
{noformat}Linux Home-PC 4.5.3-gentoo #1 SMP Mon May 9 01:28:23 EDT 2016 x86_64 Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz GenuineIntel GNU/Linux{noformat}
qtchooser -run-tool=qmake -qt=5 --version:
{noformat}QMake version 3.0
Using Qt version 5.6.0 in /usr/lib64{noformat}
gcc -v:
{noformat}Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/6.1.0/g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/6.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-6.1.0/work/gcc-6.1.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/6.1.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/6.1.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/6.1.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/6.1.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/include/g++-v6 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/6.1.0/python --enable-languages=c,c++,jit,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --disable-nls --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 6.1.0' --enable-libstdcxx-time --enable-host-shared --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --enable-libcilkrts --enable-lto --with-isl --disable-isl-version-check --enable-libsanitizer --disable-default-pie --enable-default-ssp
Thread model: posix
gcc version 6.1.0 (Gentoo 6.1.0){noformat}Gentoo Linux uname -a: {noformat}Linux Home-PC 4.5.3-gentoo #1 SMP Mon May 9 01:28:23 EDT 2016 x86_64 Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz GenuineIntel GNU/Linux{noformat} qtchooser -run-tool=qmake -qt=5 --version: {noformat}QMake version 3.0 Using Qt version 5.6.0 in /usr/lib64{noformat} gcc -v: {noformat}Using built-in specs. COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/6.1.0/g++ COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/6.1.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-6.1.0/work/gcc-6.1.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/6.1.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/6.1.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/6.1.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/6.1.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/include/g++-v6 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/6.1.0/python --enable-languages=c,c++,jit,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --disable-nls --enable-checking=release --with-bugurl= https://bugs.gentoo.org/ --with-pkgversion='Gentoo 6.1.0' --enable-libstdcxx-time --enable-host-shared --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --enable-libcilkrts --enable-lto --with-isl --disable-isl-version-check --enable-libsanitizer --disable-default-pie --enable-default-ssp Thread model: posix gcc version 6.1.0 (Gentoo 6.1.0){noformat}
Description
Inclusion of "-isystem /usr/include" likely stemming from this revision causes build failures in some packages when building with GCC-6.
For instance, when building qbittorrent (source tarball here), the build fails with:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/include/g++-v6/bits/stl_algo.h:59:0, from /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/include/g++-v6/algorithm:62, from /usr/include/qt5/QtCore/qglobal.h:85, from /usr/include/qt5/QtCore/qalgorithms.h:37, from /usr/include/qt5/QtCore/qlist.h:37, from /usr/include/qt5/QtCore/qstringlist.h:34, from /usr/include/qt5/QtCore/QStringList:1, from base/http/requestparser.cpp:32: /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/include/g++-v6/cstdlib:75:25: fatal error: stdlib.h: No such file or directory #include_next <stdlib.h>
In "src/Makefile" "-isystem /usr/include" is listed in INCPATH. If I change it to "-I/usr/include" or omit it entirely it will build without failure.
A bug was filed with GCC upstream: Bug 70129 - [6 Regression] stdlib.h: No such file or directory when using -isystem /usr/include
Status is WONTFIX:
So, IMHO just the packages that use this should either know what they are doing and put the C++ STL system headers first, or don't use STL, or don't mess with -isystem for the default directories. The last one preferred.
Attachments
Issue Links
- duplicates
-
QTBUG-53367 -isystem /usr/include with cstdlib causes file not found in include_next using GCC 6.1.0
- Closed
- is duplicated by
-
QTBUG-59111 qtbase 5.8 branch fails to compile when using gcc6 with stdlib.h
- Closed