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]

Problem building glibc 2.2.5 with arm-linux-gcc 3.1


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

I hope this is the right list of this kind of question. From your website I 
thought this list to be the most appropriate.

I am trying to build a cross-compiling toolchain that allows me to build 
arm-linux binaries on my i686-linux box. I managed to build a working gcc 3.1 
based crosscompiler, now I am stuck with glibc 2.2.5 (from debian, as that 
allready has a couple of patches). I applied the patch given in 
http://sources.redhat.com/ml/libc-alpha/2002-01/msg00388.html which got me 
around two of three missing symbols.

Here is the configure-command I use:
./configure \
       --host i686-linux --build arm-linux \
       --with-elf --disable-profile --enable-add-ons --prefix=/usr \
       --infodir=/usr/share/info --libdir=/lib --mandir=/usr/share/man \
       --enable-shared --with-headers=$(BUILD_DIR)/linux/include \
       --without-cvs --enable-omitfp

This is the error I get:

arm-linux-gcc -nostdlib -nostartfiles -o iconv_prog 
- -Wl,-dynamic-linker=/lib/ld-linux.so.2   -Wl,-z,combreloc ../csu/crt1.o 
../csu/crti.o `arm-linux-gcc --print-file-name=crtbegin.o` iconv_prog.o 
iconv_charmap.o charmap.o charmap-dir.o linereader.o dummy-repertoire.o 
simple-hash.o xstrdup.o xmalloc.o  
- -Wl,-rpath-link=..:../math:../elf:../dlfcn:../nss:../nis:../rt:../resolv:../crypt:../linuxthreads 
../libc.so.6 ../libc_nonshared.a -lgcc `arm-linux-gcc 
- --print-file-name=crtend.o` ../csu/crtn.o
../libc.so.6: undefined reference to `mcount_internal'
collect2: ld returned 1 exit status
make[3]: *** [iconv_prog] Error 1
make[3]: Leaving directory `/build/glibc-2.2.5.orig/glibc-2.2.5/iconv'
make[2]: *** [iconv/subdir_install] Error 2
make[2]: Leaving directory `/build/glibc-2.2.5.orig/glibc-2.2.5'

Any ideas?

- -- 
Gruss,
Tobias

- ------------------------------------------------------------
Tobias Hunger           The box said: 'Windows 95 or better'
tobias@fresco.org                      So I installed Linux.
- ------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9O/Hhv0FZW3NyoqURAgJuAJ0QbP1Mq0f2g8dEWt1LJeOW0314zwCgg7GG
iWLURsnhmA44RX80lPWVS9o=
=hPOp
-----END PGP SIGNATURE-----


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