Gentoo Archives: gentoo-user

From: Bill Kenworthy <billk@×××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] cant find stdlib.h
Date: Thu, 29 Mar 2018 22:44:12
Message-Id: c82ad21d-6ede-2392-4f26-159162218095@iinet.net.au
In Reply to: Re: [gentoo-user] cant find stdlib.h by P Levine
1 On 30/03/18 01:48, P Levine wrote:
2 > On Wed, Mar 28, 2018 at 8:18 AM, Bill Kenworthy <billk@×××××××××.au
3 > <mailto:billk@×××××××××.au>>wrote:
4 >
5 > I have a compile problem qtgui I cant figure out:
6 >
7 > compilation terminated.
8 > make: *** [Makefile:12443: .obj/qaccessible.o] Error 1
9 > make: *** [Makefile:12612: .obj/qaccessiblecache.o] Error 1
10 > In file included from
11 > /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/bits/stl_algo.h:59:0,
12 >                  from
13 > /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/algorithm:62,
14 >                  from
15 > ../../include/QtCore/../../src/corelib/global/qglobal.h:109,
16 >                  from ../../include/QtCore/qglobal.h:1,
17 >                  from
18 > ../../include/QtGui/../../src/gui/kernel/qtguiglobal.h:43,
19 >                  from ../../include/QtGui/qtguiglobal.h:1,
20 >                  from
21 > ../../include/QtGui/../../src/gui/image/qimage.h:43,
22 >                  from ../../include/QtGui/qimage.h:1,
23 >                  from image/qimage_sse4.cpp:40:
24 > /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/cstdlib:75:25:
25 > fatal error: stdlib.h: No such file or directory
26 >  #include_next <stdlib.h>
27 >
28 >
29 > and of course /usr/include/stdlib.h exists
30 >
31 >
32 > The actual code in
33 > /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/cstdlib is:
34 >
35 > // Need to ensure this finds the C library's <stdlib.h> not a
36 > libstdc++
37 > // wrapper that might already be installed later in the include
38 > search path.
39 > #define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
40 > #include_next <stdlib.h>
41 > #undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS
42 >
43 > Hints welcome!
44 >
45 >
46 > BillK
47 >
48 >
49 > ​This was a common error from when I ran into when fixing GCC-6
50 > bugs.​  It's usually related to the fact that GCC-6 doesn't support
51 > '-isystem /usr/include'.
52 > See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129
53 >
54 >
55 Thankyou for the references - I will have another go at fixing it
56 today.  What is confusing me is why its not killing everyones KDE/QT
57 builds, not just one of mine?
58
59
60 BillK

Replies

Subject Author
Re: [gentoo-user] cant find stdlib.h Bill Kenworthy <billk@×××××××××.au>
Re: [gentoo-user] cant find stdlib.h P Levine <plevine457@×××××.com>