On Thu, 27 Jan 2000, Steven J. Hill wrote:

> Greetings.
> 
> First, I have read and searched through all the mailing list archives that
> I could find at ftp://ftp.arm.linux.org.uk/pub/armlinux/lists/linux-arm and
> saw no post having a similar problem as myself.
> 
> I currently have a cross compiled 'binutils-2.9.5.0.24' and 'gcc-2.95.2' with
> Phil's patch. I have also cross compiled 'newlib-1.8.2' and installed it. I am 
> still having difficulties building 'glibc-2.1.2'. It gets all the way down to
> 'db2' and fails with this message:

I just came across the same problem as well. Looking at the archives
revealed that on Jan 13, Erk Mouw compiled a new toolchain with
binutils-2.9.5.0.22. So, restarting with this version resulted in a
successful build...

Is a problem sample size of two enough to bother H. J. with?

Rob Scott

> 
> make[2]: Entering directory `/home/sjhill/build-cross/glibc-2.1.2/db2'
> arm-linux-gcc -nostdlib -nostartfiles -o
> /home/sjhill/build-cross/build-glibc/db2/makedb 
> -Wl,-dynamic-linker=/usr/local/arm/lib/ld-linux.so.2  
> /home/sjhill/build-cross/build-glibc/csu/crt1.o
> /home/sjhill/build-cross/build-glibc/csu/crti.o `arm-linux-gcc
> --print-file-name=crtbegin.o` /home/sjhill/build-cross/build-glibc/db2/makedb.o
> /home/sjhill/build-cross/build-glibc/db2/libdb.so.3 
> 
>-Wl,-rpath-link=/home/sjhill/build-cross/build-glibc:/home/sjhill/build-cross/build-glibc/math:/home/sjhill/build-cross/build-glibc/elf:/home/sjhill/build-cross/build-glibc/nss:/home/sjhill/build-cross/build-glibc/nis:/home/sjhill/build-cross/build-glibc/db2:/home/sjhill/build-cross/build-glibc/rt:/home/sjhill/build-cross/build-glibc/resolv:/home/sjhill/build-cross/build-glibc/linuxthreads
> /home/sjhill/build-cross/build-glibc/libc.so.6
> /home/sjhill/build-cross/build-glibc/libc_nonsThanks for your help so far. I
> was able to successfully apply your patch to
> GCC and that seemed to help things some. I now have a cross compiled
> 'binutils-2.9.5.0.24' and 'gcc-2.95.2' with standalone C support. I have
> also cross compiled 'newlib-1.8.2' and installed it. I am still having
> difficulties building 'glibc-2.1.2'. It gets all the way down to 'db2' and
> fails with this message:
> 
> make[2]: Entering directory `/home/sjhill/build-cross/glibc-2.1.2/db2'
> arm-linux-gcc -nostdlib -nostartfiles -o
> /home/sjhill/build-cross/build-glibc/db2/makedb 
> -Wl,-dynamic-linker=/usr/local/arm/lib/ld-linux.so.2  
> /home/sjhill/build-cross/build-glibc/csu/crt1.o
> /home/sjhill/build-cross/build-glibc/csu/crti.o `arm-linux-gcc
> --print-file-name=crtbegin.o` /home/sjhill/build-cross/build-glibc/db2/makedb.o
> /home/sjhill/build-cross/build-glibc/db2/libdb.so.3 
> 
>-Wl,-rpath-link=/home/sjhill/build-cross/build-glibc:/home/sjhill/build-cross/build-glibc/math:/home/sjhill/build-cross/build-glibc/elf:/home/sjhill/build-cross/build-glibc/nss:/home/sjhill/build-cross/build-glibc/nis:/home/sjhill/build-cross/build-glibc/db2:/home/sjhill/build-cross/build-glibc/rt:/home/sjhill/build-cross/build-glibc/resolv:/home/sjhill/build-cross/build-glibc/linuxthreads
> /home/sjhill/build-cross/build-glibc/libc.so.6
> /home/sjhill/build-cross/build-glibc/libc_nonshared.a -lgcc `arm-linux-gcc
> --print-file-name=crtend.o` /home/sjhill/build-cross/build-glibc/csu/crtn.o
> /home/sjhill/build-cross/build-glibc/elf/ld-linux.so.2: undefined reference to
> `__libc_global_ctors'
> collect2: ld returned 1 exit status
> make[2]: *** [/home/sjhill/build-cross/build-glibc/db2/makedb] Error 1
> make[2]: Leaving directory `/home/sjhill/build-cross/glibc-2.1.2/db2'
> make[1]: *** [db2/others] Error 2
> make[1]: Leaving directory `/home/sjhill/build-cross/glibc-2.1.2'
> make: *** [all] Error 2
> 
> I used this as my configuration line before building glibc:
> 
> CC=arm-linux-gcc AR=arm-linux-ar RANLIB=arm-linux-ranlib
> ../glibc-2.1.2/configure arm-linux --prefix=/usr/local/arm
> --build=i686-pc-linux-gnu --enable-add-ons
> --with-headers=/home/sjhill/build-cross/linux/include/
> 
> I grep'd through the compiled binaries in the 'elf' subdirectory and it is
> actually contained in 'ld-linux.so.2' 'ld.so' l'ibrtld.os' 'soinit.os'. If
> this is the case, why the above error? The symbolic links to the kernel
> source are correct and all my cross utilities are in my current path. Any
> thoughts? Thanks in advance.
> 
> -Steve
> 
> unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]
> ++        Please use [EMAIL PROTECTED] for           ++
> ++                        kernel-related discussions.                      ++
> 


unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]
++        Please use [EMAIL PROTECTED] for           ++
++                        kernel-related discussions.                      ++

Reply via email to