Version 6.0-testing-20040912 Ch 5 build failure: glibc

Kevin White kwhite at kevbo.org
Mon Sep 13 06:34:52 PDT 2004


I'm having trouble with the build, and I'm not sure why.  I swear this 
used to work.

My build dies in making glibc in Chapter 5.

gcc -B/tools/bin/ -nostdlib -nostartfiles -o 
/paddlock/scratch/glibc-build/sunrpc/rpcinfo 
-Wl,-dynamic-linker=/tools/lib/ld-linux.so.
2   -Wl,-z,combreloc -Wl,-z,relro 
/paddlock/scratch/glibc-build/csu/crt1.o 
/paddlock/scratch/glibc-build/csu/crti.o `gcc -B/tools/bin/
  --print-file-name=crtbegin.o` 
/paddlock/scratch/glibc-build/sunrpc/rpcinfo.o 
-Wl,-rpath-link=/paddlock/scratch/glibc-build:/paddlock
/scratch/glibc-build/math:/paddlock/scratch/glibc-build/elf:/paddlock/scratch/glibc-build/dlfcn:/paddlock/scratch/glibc-build/nss:/pad
dlock/scratch/glibc-build/nis:/paddlock/scratch/glibc-build/rt:/paddlock/scratch/glibc-build/resolv:/paddlock/scratch/glibc-build/cryp
t:/paddlock/scratch/glibc-build/nptl 
/paddlock/scratch/glibc-build/libc.so.6 
/paddlock/scratch/glibc-build/libc_nonshared.a -lgcc -Wl,
--as-needed -lgcc_s -Wl,--no-as-needed `gcc -B/tools/bin/ 
--print-file-name=crtend.o` /paddlock/scratch/glibc-build/csu/crtn.o
CPP='gcc -B/tools/bin/ -E -x c-header' 
/paddlock/scratch/glibc-build/elf/ld-linux.so.2 --library-path 
/paddlock/scratch/glibc-build:/
paddlock/scratch/glibc-build/math:/paddlock/scratch/glibc-build/elf:/paddlock/scratch/glibc-build/dlfcn:/paddlock/scratch/glibc-build/
nss:/paddlock/scratch/glibc-build/nis:/paddlock/scratch/glibc-build/rt:/paddlock/scratch/glibc-build/resolv:/paddlock/scratch/glibc-bu
ild/crypt:/paddlock/scratch/glibc-build/nptl 
/paddlock/scratch/glibc-build/sunrpc/rpcgen -Y ../scripts -c 
rpcsvc/bootparam_prot.x -o /
paddlock/scratch/glibc-build/sunrpc/xbootparam_prot.T
/paddlock/scratch/glibc-build/sunrpc/rpcgen: error while loading shared 
libraries: /paddlock/scratch/glibc-build/sunrpc/rpcgen: cannot
  open shared object file: No such file or directory
make[2]: *** [/paddlock/scratch/glibc-build/sunrpc/xbootparam_prot.stmp] 
Error 127
make[2]: Leaving directory `/paddlock/scratch/glibc-2.3.4-20040701/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/paddlock/scratch/glibc-2.3.4-20040701'
make: *** [all] Error 2

I've tried this twice.

For some reason, rpcgen is actually being invoked.  It is expecting 
/tools/ld-linux.so.2 to exist, and it doesn't yet, so the invocation fails.

If I do a truly horrible hack and put an ld-linux.so.2 into /tools, then 
rpcgen can start.

I can include all the scripts I've run up to this point, but there's not 
much to it.  This is only the 5th thing, and binutils and gcc compiled 
without a problem, and the other two just copy the kernel headers.

Like I said, my build used to work.  The only change I've made is moving 
to linux-libc-headers-2.6.8.1.tar.bz2 from 2.6.8.0.

My host is a fedoracore2 box.

Kevin



More information about the lfs-dev mailing list