This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

glibc 2.3.3 target:arm-linux host:cygwin elf-init.c linker error


Hello all,

I'll try to be clear.

target  = arm-linux -> aiming at development on the IPAQh5450
host = cygwin version
$ uname -rv
1.5.10(0.116/4/2) 2004-05-25 22:07
kernel headers = 2.4.19-rmk6-pxa1-hh36

After many trials with different combinations of binutils/glibc/gcc I successfully compiled :
->binutils 2.14 for arm-linux
$ arm-linux-ld -version
GNU ld version 2.14 20030612
-> glibc 2.3.3 headers in order to compile gcc for arm-linux
-> arm-linux-gcc 3.4.2
$ arm-linux-gcc -v
Reading specs from /gnutools/lib/gcc/arm-linux/3.4.2/specs
Configured with: /src/gcc-3.4.2/configure --target=arm-linux --prefix=/gnutools
--disable-shared --with-header=/gnutools/arm-linux/include --with-newlib --enabl
e-languages=c
Thread model: posix
gcc version 3.4.2


However, I am now trying to compile glibc once more using the cross-compiler arm-linux-gcc
and I get this error at the linker. I have read something similar regarding a syllable architecture where libc versionning was the problem,
http://sources.redhat.com/ml/libc-alpha/2004-01/msg00309.html
but honestly I have no clue what to do from now.....If anyone could give an insight on how to deal with this it would be greatly appreciated.


mv -f /tmp/build/glibc/libc.so.6.new /tmp/build/glibc/libc.so.6
arm-linux-gcc -nostdlib -nostartfiles -o /tmp/build/glibc/iconv/iconvconfig -Wl
,-dynamic-linker=/gnutools/lib/ld-linux.so.2 -Wl,-z,combreloc /tmp/build/glibc
/csu/crt1.o `arm-linux-gcc --print-file-name=crtbegin.o` /tmp/build/glibc/iconv
/iconvconfig.o /tmp/build/glibc/iconv/strtab.o /tmp/build/glibc/iconv/xmalloc.o
/tmp/build/glibc/iconv/hash-string.o -Wl,-rpath-link=/tmp/build/glibc:/tmp/buil
d/glibc/math:/tmp/build/glibc/elf:/tmp/build/glibc/dlfcn:/tmp/build/glibc/nss:/t
mp/build/glibc/nis:/tmp/build/glibc/rt:/tmp/build/glibc/resolv:/tmp/build/glibc/
crypt:/tmp/build/glibc/linuxthreads /tmp/build/glibc/libc.so.6 /tmp/build/glibc/
libc_nonshared.a -lgcc `arm-linux-gcc --print-file-name=crtend.o` /tmp/build/gl
ibc/csu/crtn.o
/tmp/build/glibc/libc_nonshared.a(elf-init.oST)(.text+0xc): In function `__libc_
csu_init':
/src/glibc-2.3.3/csu/elf-init.c:60: undefined reference to `_init'
/tmp/build/glibc/libc_nonshared.a(elf-init.oST)(.text+0xa0): In function `__libc
_csu_fini':
/src/glibc-2.3.3/csu/elf-init.c:81: undefined reference to `_fini'
collect2: ld returned 1 exit status
make[2]: *** [/tmp/build/glibc/iconv/iconvconfig] Error 1
make[2]: Leaving directory `/src/glibc-2.3.3/iconv'
make[1]: *** [iconv/others] Error 2
make[1]: Leaving directory `/src/glibc-2.3.3'
make: *** [all] Error 2


thanks in advance,

Jean Olivier Caron
Master student
University of Tokyo

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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