This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: MIPS glibc still not compiling...
- From: "H . J . Lu" <hjl at lucon dot org>
- To: "Steven J. Hill" <sjhill at cotw dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Fri, 18 Jan 2002 10:11:12 -0800
- Subject: Re: MIPS glibc still not compiling...
- References: <3C4836BC.5A90968B@cotw.com>
On Fri, Jan 18, 2002 at 08:52:44AM -0600, Steven J. Hill wrote:
> Greetings.
>
> I checked out the latest binutils, gcc and glibc sources at
> 1:40PM GMT or 7:40AM my time. Both binutils and gcc built
> fine for x86 hosted MIPS cross tools. glibc is still not
> building and I still am getting the same symbol error as
> before. Below is the output:
>
> ****************************************************
> make[2]: Entering directory `/opt/glibc-20020118/elf'
> mipsel-linux-gcc -nostdlib -nostartfiles -shared \
> -Wl,--verbose 2>&1 | \
> sed -e '/^=========/,/^=========/!d;/^=========/d' \
> -e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
> > /opt/build-glibc/elf/ld.so.lds;
> \
> mipsel-linux-gcc -nostdlib -nostartfiles -shared -o /opt/build-glibc/elf/ld.so
> \
> /opt/build-glibc/elf/librtld.os -Wl,--version-script=/opt/build-glibc/
> ld.map \
> -Wl,-soname=ld.so.1 -T /opt/build-glibc/elf/ld.so.lds;
> \
> rm -f /opt/build-glibc/elf/ld.so.lds
> /opt/toolchains/mips/lib/gcc-lib/mipsel-linux/3.1/../../../../mipsel-linux/bin/l
> d: /opt/build-glibc/elf/ld.so: undefined versioned symbol name __xstat64@GLIBC_2
> .1
Please find out why you have __xstat64@GLIBC_2.1. It should be filtered
out by the C preprocessor. You can use -E to see what the C preprocessor
is doing.
> /opt/toolchains/mips/lib/gcc-lib/mipsel-linux/3.1/../../../../mipsel-linux/bin/l
> d: failed to set dynamic section sizes: Bad value
> collect2: ld returned 1 exit status
> rm -f /opt/build-glibc/elf/ld.so.1
> ln -s ld.so /opt/build-glibc/elf/ld.so.1
> make[2]: Leaving directory `/opt/glibc-20020118/elf'
> make[1]: *** No rule to make target `/opt/build-glibc/elf/ld.so', needed by `/op
> t/build-glibc/libc.so'. Stop.
> make[1]: Leaving directory `/opt/glibc-20020118'
> make: *** [all] Error 2
> root@dev1:/opt/build-glibc$
> ****************************************************
>
> I am using 2.4.17 Linux kernel headers for MIPS. The only difference I can think
> of now is the kernel headers and a different x86 Linux distribution that I am
> building my cross toolchain on. I am running RH 7.1 with glibc-2.2.2, gcc-2.96
> and binutils-2.10.91. I wonder HJ if you are running a different binutils?
I don't think it is an issue.
H.J.