Gentoo Archives: gentoo-user

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

Replies

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