From: samuel@telmar.telmar.uucp Subject: GCC 2.4.5 porting--limits.h yet again Date: Sat, 10 Jul 1993 03:21:33 GMT
OK, following the rash of messages about bringing up 2.4.5, I figured
it would be a good time to try.
I run .99.10, I just installed libc-4.4.1 (which had a new limits.h!)
and I started running the compile for gcc 2.4.5.
Stage1 made OK, but on stage 2, I get this error compiling toplev.c:
stage1/xgcc -Bstage1/ -DIN_GCC -DPOSIX -O -I. -I. -I./config -DTARGET_CPU_DEFAULT=2 -c `echo ./toplev.c | sed 's,^\./,,'`
In file included from /usr/include/sys/param.h:4, from toplev.c:36:
/usr/include/limits.h:52: No include path in which to find limits.h
make: *** [toplev.o] Error 1
1. Figuring I'd smashed limits.h somewhere on my road to here, I
deleted my /usr/include/{sys/,}* and reinstalled inc-4.4.1.tar.gz. No
change.
2. Looking at /usr/include/limits.h, it uses #include_next <limits.h>
to pick up the limits.h in /usr/lib/gcc-lib/.../limits.h (I think).
Well, for stage2, cpp doesn't have an installed base yet and furthermore,
the limits.h that would be there isn't yet constructed.
3. I managed to get toplev.c to compile by symlinking the limits.h
from 2.3.3 into the source dir (and the corresponding syslimits.h),
but I'm worried now that something might not be cool with that.
Any suggestions?
(posted to c.o.l because limits.h was a notorious problem (is, for
me)).