This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc configure --with-headers broken?
- To: gcc-bugs at gcc dot gnu dot org
- Subject: gcc configure --with-headers broken?
- From: Matt Taggart <taggart at carmen dot fc dot hp dot com>
- Date: Wed, 23 Aug 2000 19:01:00 -0600
- Cc: taggart at carmen dot fc dot hp dot com, dhd at linuxcare dot com
Hi,
I'm working on the hppa-linux port and routinely build gcc on i386-linux to
cross compile for hppa-linux. On Monday(Aug 21) I was able to build this cross
compiler with no problems using the source in our CVS(puffin.external.hp.com)
that was a snapshot of upstream from 20000707. On Tuesday we merged our CVS to
a new upstream snapshot from 20000822. Now it appears that the --with-headers
configure option no longer works. The configure line I used in both cases is,
configure --target=hppa-linux --host=i386-linux \
--prefix=/home/al-76/puffin/xc --disable-shared --disable-nls \
--with-headers=/home/al-76/puffin/palinux/include --without-libc \
--enable-languages=c
Attached is script of the failures from the second build. All of the headers
it can't find are present in the --with-headers directory.
It looks like "-nostdinc" is added to the compile line but then the right
include directory is not specified. I can confirm that the contents of the
directory specified with --with-headers are copied to
$PREFIX/hppa-linux/sys-include/ but the build doesn't find them(is this where
it should be looking?).
A few people have suggested work-arounds including copying the headers in by
hand and using "make LIBGCC2_INCLUDES=-I/your/include/files". However, the
--with-headers way seems like the proper method.
If something changed between 20000707 and 20000822 to break this I suspect
most people wouldn't have noticed since either they don't use --with-headers
or they are building on top of a previous build.
I suspect that a Makefile change caused this. So, I used the (very nice)
cvsweb to do diffs of Makefile.in and gcc/Makefile.in for the dates in
question. As the Makefiles are pretty complicated I gave up for now.
Am I correct in assuming that --with-headers should work?
Is anyone else seeing this problem?
Does someone who knows this magic know whats going on?
I am not subscribed to the list so I would appreciate a cc on any responses.
Thanks,
--
Matt Taggart
taggart@fc.hp.com
/home/al-76/puffin/xc-build/gcc/gcc/xgcc -B/home/al-76/puffin/xc-build/gcc/gcc/ -nostdinc -B/home/al-76/puffin/xc-build/gcc/hppa-linux/newlib/ -isystem /home/al-76/puffin/xc-build/gcc/hppa-linux/newlib/targ-include -isystem /home/al-76/puffin/palinux/gcc/newlib/libc/include -B/home/al-76/puffin/xc/hppa-linux/bin/ -B/home/al-76/puffin/xc/hppa-linux/lib/ -isystem /home/al-76/puffin/xc/hppa-linux/include -O2 -DCROSS_COMPILE -DIN_GCC -g -O2 -isystem ./include -fPIC -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I/home/al-76/puffin/palinux/gcc/gcc -I/home/al-76/puffin/palinux/gcc/gcc/config -I/home/al-76/puffin/palinux/gcc/gcc/../include -DL_muldi3 -c /home/al-76/puffin/palinux/gcc/gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from /home/al-76/puffin/palinux/gcc/gcc/crtstuff.c:60:
/home/al-76/puffin/palinux/gcc/gcc/tsystem.h:52:19: stdio.h: No such file or directory
/home/al-76/puffin/palinux/gcc/gcc/tsystem.h:55:23: sys/types.h: No such file or directory
/home/al-76/puffin/palinux/gcc/gcc/tsystem.h:58:19: errno.h: No such file or directory
/home/al-76/puffin/palinux/gcc/gcc/tsystem.h:69:20: stdlib.h: No such file or directory
/home/al-76/puffin/palinux/gcc/gcc/tsystem.h:70:20: unistd.h: No such file or directory
In file included from /home/al-76/puffin/xc-build/gcc/gcc/include/syslimits.h:7,
from /home/al-76/puffin/xc-build/gcc/gcc/include/limits.h:11,
from /home/al-76/puffin/palinux/gcc/gcc/tsystem.h:73,
from /home/al-76/puffin/palinux/gcc/gcc/crtstuff.c:60:
/home/al-76/puffin/xc-build/gcc/gcc/include/limits.h:130:75: limits.h: No such file or directory
In file included from /home/al-76/puffin/palinux/gcc/gcc/libgcc2.c:37:
/home/al-76/puffin/palinux/gcc/gcc/tsystem.h:52:19: stdio.h: No such file or directory
/home/al-76/puffin/palinux/gcc/gcc/tsystem.h:55:23: sys/types.h: No such file or directory
/home/al-76/puffin/palinux/gcc/gcc/tsystem.h:58:19: errno.h: No such file or directory
/home/al-76/puffin/palinux/gcc/gcc/tsystem.h:65:20: string.h: No such file or directory
/home/al-76/puffin/palinux/gcc/gcc/tsystem.h:69:20: stdlib.h: No such file or directory
/home/al-76/puffin/palinux/gcc/gcc/tsystem.h:70:20: unistd.h: No such file or directory
In file included from /home/al-76/puffin/xc-build/gcc/gcc/include/syslimits.h:7,
from /home/al-76/puffin/xc-build/gcc/gcc/include/limits.h:11,
from /home/al-76/puffin/palinux/gcc/gcc/tsystem.h:73,
from /home/al-76/puffin/palinux/gcc/gcc/libgcc2.c:37:
/home/al-76/puffin/xc-build/gcc/gcc/include/limits.h:130:75: limits.h: No such file or directory
In file included from /home/al-76/puffin/palinux/gcc/gcc/libgcc2.c:37:
/home/al-76/puffin/palinux/gcc/gcc/tsystem.h:76:18: time.h: No such file or directory
make[1]: *** [crtbegin.o] Error 1