Build failure on sparc64-linux-gnu
Jeff Bailey
jbailey@nisa.net
Fri Dec 6 17:20:00 GMT 2002
When building today's CVS on sparc64-linux-gnu, I got the following failure:
gcc-3.2 -m64 -nostdlib -nostartfiles -o /cvstree/build.libc64/iconv/iconvconfig -Wl,-dynamic-linker=/lib64/ld-linux.so.2 -Wl,-z,combreloc /cvstree/build.libc64/csu/crt1.o /cvstree/build.libc64/csu/crti.o `gcc-3.2 -m64 --print-file-name=crtbegin.o` /cvstree/build.libc64/iconv/iconvconfig.o /cvstree/build.libc64/iconv/strtab.o /cvstree/build.libc64/iconv/xmalloc.o -Wl,-rpath-link=/cvstree/build.libc64:/cvstree/build.libc64/math:/cvstree/build.libc64/elf:/cvstree/build.libc64/dlfcn:/cvstree/build.libc64/nss:/cvstree/build.libc64/nis:/cvstree/build.libc64/rt:/cvstree/build.libc64/resolv:/cvstree/build.libc64/crypt:/cvstree/build.libc64/linuxthreads /cvstree/build.libc64/libc.so.6 /cvstree/build.libc64/libc_nonshared.a -lgcc `gcc-3.2 -m64 --print-file-name=crtend.o` /cvstree/build.libc64/csu/crtn.o
/cvstree/build.libc64/elf/ld-linux.so.2: undefined reference to `__sparc.get_pic.l7'
collect2: ld returned 1 exit status
make[2]: *** [/cvstree/build.libc64/iconv/iconvconfig] Error 1
When I 'nm ld-linux.so.2 | grep get_pic', I get the following:
U __sparc.get_pic.l7
0000000000019518 t __sparc64.get_pic.l7
nm librtld.os |grep get_pic
U __sparc.get_pic.l7
0000000000000000 T __sparc64.get_pic.l7
Lots of undefined references in rtld-libc.a:
rtld-open.os
rtld-close.os
rtld-read.os
rtld-write.os
(etc..)
Looking through, I wonder if
sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h:62:
call __sparc.get_pic.l7;
should be
call __sparc64.get_pic.l7;
Since it's the only mention of that symbol in the sysdep.h header. All
the other references have been changed to __sparc64.
Sorry I don't have better information. I'm still figuring my way around
the sparc.
Tks,
Jeff Bailey
More information about the Libc-alpha
mailing list