[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#823145: Qt4-using packages fail to build with gcc6



Hi,

On Tue, May 03, 2016 at 09:32:55PM +0300, Dmitry Shachnev wrote:
> > In file included from /usr/include/c++/6/bits/stl_algo.h:59:0,
> >                  from /usr/include/c++/6/algorithm:62,
> >                  from /usr/include/qt4/QtCore/qglobal.h:68,
> >                  from /usr/include/kdemacros.h:162,
> >                  from /usr/include/kdecore_export.h:24,
> >                  from /usr/include/kdeversion.h:30,
> >                  from conftest.cpp:139:
> > /usr/include/c++/6/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
> >  #include_next <stdlib.h>
> 
> This has nothing to do with Qt 4. I can reproduce this with the following
> minimal example:
[...]
>   In file included from test.c:1:0:
>   /usr/include/c++/6/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
>    #include_next <stdlib.h>
>                            ^
>   compilation terminated.
> 
> This does not happen with g++-5, so it is a behavior change in GCC 6.

That's why I said "reassign as appropriate".

> I am not sure whether this is a bug or intended change, so not yet reassigning
> this bug, however CCing the GCC maintainer to get his opinion.

Sure, but if libstdc++'s header (cdstlib) includes stdlib.h, it should simply work, no?

> By the way, is there any particular reason why LibreOffice buildsystem uses
> -isystem /usr/include?

Probably some bug where it just adds whatever -I it finds (and be it
/usr/include, which shouldn't be specificied but..) and then turns that into
a -isystem...

Or are you implying it does work without that -isystem?

(cowbuilder-unstable)rene@frodo:~$ g++-6 -isystem /usr/include -c test.c
In file included from test.c:1:0:
/usr/include/c++/6/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>
                         ^
compilation terminated.
(cowbuilder-unstable)rene@frodo:~$ g++-6 -I/usr/include -c test.c
(cowbuilder-unstable)rene@frodo:~$ g++-6 -c test.c
(cowbuilder-unstable)rene@frodo:~$

Hmm. Indeed....

Regards,

Rene


Reply to: