This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: glibc-2.2.5 compile problem for arm-linux


Jeroen,

I am getting the same link errors you listed below, with the only 
difference in my configuration being that I'm building for 
strongarm1100. 2.2.4 worked ok for me too.  Looking through the patch, I 
think the problem is being caused in the file, 
sysdeps/generic/unwind-pe.h, but I'm not sure what to do about it.

Cheers,

Zach Welch
Superlucidity Services

jeroen dobbelaere wrote:

> Hello,
> 
> 
> When I do a cross-compilation of glibc  for an arm-linux 'host', make
> stops with following messages :
> 
> arm-linux-gcc iconvconfig.c -c -O2 -Wall -Winline -Wstrict-prototypes 
> -Wwrite-strings -g 
> -DGCONV_PATH='"/opt/aes/cross-arm-linux-gcc3/arm-linux/lib/gconv"' 
> -DGCONV_DIR='"/opt/aes/cross-arm-linux-gcc3/arm-linux/lib/gconv"' 
> -I../include
> -I. -I/tmp/build-gcc3/build-glibc/iconv -I.. -I../libio 
> -I/tmp/build-gcc3/build-glibc -I../sysdeps/arm/elf 
> -I../linuxthreads/sysdeps/unix/sysv/linux 
> -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread 
> -I../linuxthreads/sysdeps/unix/sysv
> -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/arm 
> -I../sysdeps/unix/sysv/linux/arm -I../sysdeps/unix/sysv/linux 
> -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
> -I../sysdeps/unix/inet -I../sysdeps/unix/sysv
> -I../sysdeps/unix/arm -I../sysdeps/unix -I../sysdeps/posix 
> -I../sysdeps/arm/fpu -I../sysdeps/arm -I../sysdeps/wordsize-32 
> -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 
> -I../sysdeps/ieee754 -I../sysdeps/generic/elf
> -I../sysdeps/generic   -D_LIBC_REENTRANT -include 
> ../include/libc-symbols.h     -o 
> /tmp/build-gcc3/build-glibc/iconv/iconvconfig.o
> rm -f /tmp/build-gcc3/build-glibc/libc.so.6.new
> /bin/sh ../scripts/rellns-sh /tmp/build-gcc3/build-glibc/libc.so 
> /tmp/build-gcc3/build-glibc/libc.so.6.new
> mv -f /tmp/build-gcc3/build-glibc/libc.so.6.new 
> /tmp/build-gcc3/build-glibc/libc.so.6
> arm-linux-gcc -nostdlib -nostartfiles -o 
> /tmp/build-gcc3/build-glibc/iconv/iconvconfig 
> -Wl,-dynamic-linker=/opt/aes/cross-arm-linux-gcc3/arm-linux/lib/ld-linux.so.2 
>   -Wl,-z,combreloc /tmp/build-gcc3/build-glibc/csu/crt1.o
> /tmp/build-gcc3/build-glibc/csu/crti.o `arm-linux-gcc 
> --print-file-name=crtbegin.o` 
> /tmp/build-gcc3/build-glibc/iconv/iconvconfig.o 
> /tmp/build-gcc3/build-glibc/iconv/strtab.o 
> /tmp/build-gcc3/build-glibc/iconv/xmalloc.o
> -Wl,-rpath-link=/tmp/build-gcc3/build-glibc:/tmp/build-gcc3/build-glibc/math:/tmp/build-gcc3/build-glibc/elf:/tmp/build-gcc3/build-glibc/dlfcn:/tmp/build-gcc3/build-glibc/nss:/tmp/build-gcc3/build-glibc/nis:/tmp/build-gcc3/build-glibc/rt:/tmp/build-gcc3/build-glibc/resolv:/tmp/build-gcc3/build-glibc/crypt:/tmp/build-gcc3/build-glibc/linuxthreads 
> 
> /tmp/build-gcc3/build-glibc/libc.so.6 
> /tmp/build-gcc3/build-glibc/libc_nonshared.a -lgcc `arm-linux-gcc 
> --print-file-name=crtend.o` /tmp/build-gcc3/build-glibc/csu/crtn.o
> /tmp/build-gcc3/build-glibc/libc.so.6: undefined reference to 
> `size_of_encoded_value'
> /tmp/build-gcc3/build-glibc/libc.so.6: undefined reference to 
> `read_encoded_value_with_base'
> collect2: ld returned 1 exit status
> make[4]: *** [/tmp/build-gcc3/build-glibc/iconv/iconvconfig] Error 1
> make[4]: Leaving directory `/tmp/build-gcc3/glibc-2.2.5/iconv'
> make[3]: *** [iconv/others] Error 2
> make[3]: Leaving directory `/tmp/build-gcc3/glibc-2.2.5'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/tmp/build-gcc3/build-glibc'
> make[1]: *** [glibc.stamp_make] Error 2
> 
> 
> glibc was configured as follows :
> ../glibc/configure  --prefix=/opt/aes/cross-arm-linux-gcc3/arm-linux 
> --host=arm-linux --build=i686-linux --target=arm-linux --with-cpu=xscale 
> --enable-add-ons=linuxthreads
> 
> binutils : 2.11.92.0.12.3
> gcc : 3.0.3 prerelease (only version difference with real 3.0.3)
> 
> any idea what could be wrong ?
> 
> Note : 2.2.4 posed no problems
> 
> Greetings,
> -- 
> Jeroen Dobbelaere
> Embedded Software Engineer
> 
> ACUNIA Embedded Solutions
> http://www.acunia.com
> 
> 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]