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

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



Hi Rene,

On Sun, May 08, 2016 at 01:05:47PM +0200, Rene Engelhard wrote:
> 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....

Basically #include_next is "#include, but skip the first found file".

And with -isystem /usr/include the first found stdlib.h file is
/usr/include/stdlib.h (otherwise it would be i.e. /usr/include/c++/6/stdlib.h).

Now, a quick Google search tells me that GCC developers closed a bug
about this as WONTFIX: <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129>.

So maybe the best way for LO will be getting rid of that -isystem flag.

--
Dmitry Shachnev

Attachment: signature.asc
Description: PGP signature


Reply to: