This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Segfault while building glibc 2.2
>>>>> SL Baur writes:
> ng <Alexander> writes in libc-alpha@sources.redhat.com:
>> bash-2.04# make
>> ../elf/ld-linux.so.2 --library-path ..:../math:../elf:../dlfcn:../nss:../nis:../rt:../resolv:../crypt:../linuxthreads ./rpcgen -Y `gcc -print-file-name=cpp | sed "s|/cpp$||"` -c rpcsvc/bootparam_prot.x -o xbootparam_prot.T
>> make: *** [xbootparam_prot.stmp] Segmentation fault
> I get a similar error, but only on ia32. Alpha is O.K. This is from
> a CVS update taken about six hours ago and with a patch to fix the
> _DL_PLATFORMS_COUNT problem.
> /home/work/turbo/BUILD/libc/build-i586-linux/elf/ld.so.1 --library-path /home/work/turbo/BUILD/libc/build-i586-linux:/home/work/turbo/BUILD/libc/build-i586-linux/math:/home/work/turbo/BUILD/libc/build-i586-linux/elf:/home/work/turbo/BUILD/libc/build-i586-linux/dlfcn:/home/work/turbo/BUILD/libc/build-i586-linux/nss:/home/work/turbo/BUILD/libc/build-i586-linux/nis:/home/work/turbo/BUILD/libc/build-i586-linux/rt:/home/work/turbo/BUILD/libc/build-i586-linux/resolv:/home/work/turbo/BUILD/libc/build-i586-linux/crypt:/home/work/turbo/BUILD/libc/build-i586-linux/linuxthreads /home/work/turbo/BUILD/libc/build-i586-linux/sunrpc/rpcgen -Y `gcc -print-file-name=cpp | sed "s|/cpp$||"` -c rpcsvc/bootparam_prot.x -o /home/work/turbo/BUILD/libc/build-i586-linux/sunrpc/xbootparam_prot.T
> /home/work/turbo/BUILD/libc/build-i586-linux/sunrpc/rpcgen: error while loading shared libraries: ld-linux.so.2: cannot open shared object file: No such file or directory
> make[2]: *** [/home/work/turbo/BUILD/libc/build-i586-linux/sunrpc/xbootparam_prot.stmp] $B%(%i!<(B 127
> Binutils is 2.10.0.33. Gcc is 2.97 (20001113).
That GCC version is broken. You might want to try the following patch:
============================================================
Index: Makeconfig
--- Makeconfig 2000/11/16 02:06:35 1.248
+++ Makeconfig 2000/11/16 08:48:32
@@ -694,7 +694,7 @@
# %ifdef et al based on config.h settings or other %include'd files.
define preprocess-versions
sed 's/#.*$$//;s/^[ ]*%/#/' \
-| $(CC) -E -undef -I$(common-objdir) -I$(..)include \
+| $(CC) -E -undef -traditional -I$(common-objdir) -I$(..)include \
-include $(common-objpfx)config.h \
-x c - \
| sed 's/#.*$$//;/^[ ]*$$/d'
But I don't think it will fix all your problems :-(
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj