Bug 40002 - Testsuite not finding libc headers with cross builds and only previous version of GCC installed
Summary: Testsuite not finding libc headers with cross builds and only previous versio...
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-01 23:21 UTC by Andrew Pinski
Modified: 2009-05-02 17:03 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2009-05-02 17:03:56


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2009-05-01 23:21:42 UTC
I have built a 4.4.0 version of GCC and built newlib with that version and installed it in say /MYPREFIX and then go and try to build 4.5.0.  I then build GCC with the same /MYPREFIX but not a combined build, the testsuite is not able to find the libc headers.

I don't know if this a regression because this is the first time I hit it and I just happened to build 4.5 and was getting many failures this way.

An example of a failure is:
Executing on host: /home/apinski/src/local/gcc/objdir-spu/gcc/xgcc -B/home/apinski/src/local/gcc/objdir-spu/gcc/   -O0  -w -c  -o 990625-1.o /home/apinski/src/local/gcc/gcc/testsuite/gcc.c-torture/compile/990625-1.c    (timeout = 300)
/home/apinski/src/local/gcc/gcc/testsuite/gcc.c-torture/compile/990625-1.c:2: fatal error: string.h: No such file or directory^M
compilation terminated.^Mcompiler exited with status 1
output is:
/home/apinski/src/local/gcc/gcc/testsuite/gcc.c-torture/compile/990625-1.c:2: fatal error: string.h: No such file or directory^Mcompilation terminated.^M

FAIL: gcc.c-torture/compile/990625-1.c  -O0  (test for excess errors)Excess errors:
Comment 1 Hans-Peter Nilsson 2009-05-02 17:03:56 UTC
This bug has been there for a long time, maybe too old to call it a regression
(I believe older than the currently open branches).
Look for changes in handling of GCC_EXEC_PREFIX internally (not just the test-suite) and for "relocated" toolchains.