Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 582948

Summary: dev-qt/qtcore-5.6.0 with gcc-6 breaks build of net-p2p/qbittorrent-3.3.4-r1 and possibly others
Product: Gentoo Linux Reporter: Peter Levine <plevine457>
Component: [OLD] LibraryAssignee: Qt Bug Alias <qt>
Severity: normal CC: plevine457
Priority: Normal Keywords: UPSTREAM
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 582084    
Attachments: qtcore-5.6.0-no-default-isystem.patch

Description Peter Levine 2016-05-13 22:48:16 UTC
Due to the following revision,, qmake now includes "-isystem /usr/include".  This is not a problem for gcc prior to gcc-6 but due to changes in how gcc-6 handles inclusion of <math.h> and <stdlib.h> (see this leads to a bug.

In net-p2p/qbittorrent-3.3.4-r1 for instance:

>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>

The bug had been filed with GCC upstream, marked as WONTFIX:

I filed a bug with QT:
Comment 1 Peter Levine 2016-05-14 00:38:37 UTC
Created attachment 434230 [details, diff]

Based on pending review
Comment 2 Peter Levine 2016-05-21 01:00:53 UTC
Apparently, it is the responsibility of packages using qmake to ensure that "/usr/include" is not included in INCLUDEPATH, as it will become "-isystem /usr/include" and ruin building with gcc-6 (see

Filing this as a new bug: