public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/22541] New: Building into empty PREFIX causes broken limits.h to be installed
@ 2005-07-18 6:36 dank at kegel dot com
2005-09-13 14:32 ` [Bug bootstrap/22541] " dank at kegel dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: dank at kegel dot com @ 2005-07-18 6:36 UTC (permalink / raw)
To: gcc-bugs
When building gcc-3.4.3 or gcc-4.x into a clean $PREFIX,
the configure script happily copies the glibc include files from include to
sys-include;
here's the line from the log file (with $PREFIX instead of the real prefix):
Copying $PREFIX/i686-unknown-linux-gnu/include to
$PREFIX/i686-unknown-linux-gnu/sys-include
But later, when running fixincludes, it gives the error message
The directory that should contain system headers does not exist:
$PREFIX/lib/gcc/i686-unknown-linux-gnu/3.4.3/../../../../i686-unknown-linux-gnu/sys-include
Nevertheless, it continues building; the header files it installs in
$PREFIX/lib/gcc/i686-unknown-linux-gnu/3.4.3/include
do not include the boilerplate that would cause it to #include_next the
glibc headers in the system header directory.
Thus the resulting toolchain can't compile the following program:
#include <limits.h>
int x = PATH_MAX;
because its limits.h doesn't include the glibc header.
The problem is that gcc/Makefile.in assumes that
it can refer to $PREFIX/i686-unknown-linux-gnu with the path
$PREFIX/lib/../i686-unknown-linux-gnu, but
that fails because the directory $PREFIX/lib doesn't exist during 'make all';
it is only created later, during 'make install'. (Which makes this problem
confusing, since one only notices the breakage well after 'make install',
at which point the path configure complained about does exist, and has the
right stuff in it.)
I posted a proposed fix to
http://gcc.gnu.org/ml/gcc-patches/2005-07/msg00751.html
--
Summary: Building into empty PREFIX causes broken limits.h to be
installed
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dank at kegel dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22541
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug bootstrap/22541] Building into empty PREFIX causes broken limits.h to be installed
2005-07-18 6:36 [Bug bootstrap/22541] New: Building into empty PREFIX causes broken limits.h to be installed dank at kegel dot com
@ 2005-09-13 14:32 ` dank at kegel dot com
2005-09-16 0:52 ` pinskia at gcc dot gnu dot org
2005-09-20 3:14 ` vapier at gentoo dot org
2 siblings, 0 replies; 4+ messages in thread
From: dank at kegel dot com @ 2005-09-13 14:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dank at kegel dot com 2005-09-13 14:31 -------
Keating wrote in http://gcc.gnu.org/ml/gcc-patches/2005-07/msg01345.html
>Needs a ChangeLog entry, but otherwise OK.
>
>A key detail that you left out of your patch description is that
>SYSTEM_HEADER_DIR is used *only* for fixincludes and similar; it is not
actually >put into the compiler. If the path was used in the compiler, this
patch would >not be OK, because it would mean the compiler couldn't be moved to
a different >place after installation.
I haven't looked at the patch again after reading his comment (just saw it now),
but I intend to.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22541
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug bootstrap/22541] Building into empty PREFIX causes broken limits.h to be installed
2005-07-18 6:36 [Bug bootstrap/22541] New: Building into empty PREFIX causes broken limits.h to be installed dank at kegel dot com
2005-09-13 14:32 ` [Bug bootstrap/22541] " dank at kegel dot com
@ 2005-09-16 0:52 ` pinskia at gcc dot gnu dot org
2005-09-20 3:14 ` vapier at gentoo dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-16 0:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-16 00:52 -------
I think this is a dup of bug 7088 but I cannot prove it for sure.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22541
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug bootstrap/22541] Building into empty PREFIX causes broken limits.h to be installed
2005-07-18 6:36 [Bug bootstrap/22541] New: Building into empty PREFIX causes broken limits.h to be installed dank at kegel dot com
2005-09-13 14:32 ` [Bug bootstrap/22541] " dank at kegel dot com
2005-09-16 0:52 ` pinskia at gcc dot gnu dot org
@ 2005-09-20 3:14 ` vapier at gentoo dot org
2 siblings, 0 replies; 4+ messages in thread
From: vapier at gentoo dot org @ 2005-09-20 3:14 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |vapier at gentoo dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22541
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-09-20 3:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-18 6:36 [Bug bootstrap/22541] New: Building into empty PREFIX causes broken limits.h to be installed dank at kegel dot com
2005-09-13 14:32 ` [Bug bootstrap/22541] " dank at kegel dot com
2005-09-16 0:52 ` pinskia at gcc dot gnu dot org
2005-09-20 3:14 ` vapier at gentoo dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).