This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu 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]

Difficulties with cross compiling glibc for ARM.


Greetings.

A while ago I was successful with building an entire toolchain. I am trying
to build once again, but I am dying a fair way through. I remember getting
these error messages months ago, but my search through the archives and my
memory produced nothing. Here is the line I used to configure to compile
glibc. I am building it in a separate directory.

CC=arm-linux-gcc AR=arm-linux-ar RANLIB=arm-linux-ranlib \
../glibc-2.1.3/configure arm-linux --build=i686-pc-linux-gnu \
--prefix=/opt/arm/arm-linux --enable-add-ons \ 
--with-headers=/opt/arm/arm-linux/include

The cross binutils (2.10-rc2) and gcc (2.95.2) have already been built with
no problems. I am using headers from 2.4.0-test1. The following are the
error messages:

mv -f /opt/build-glibc/db2/libdb.so.3.new /opt/build-glibc/db2/libdb.so.3
arm-linux-gcc -nostdlib -nostartfiles -o /opt/build-glibc/db2/makedb  -Wl,-dynamic-linker=/opt/arm/arm-linux/lib/ld-linux.so.2   /opt/build-glibc/csu/crt1.o /opt/build-glibc/csu/crti.o `arm-linux-gcc --print-file-name=crtbegin.o`
/opt/build-glibc/db2/makedb.o /opt/build-glibc/db2/libdb.so.3 
-Wl,-rpath-link=/opt/build-glibc:/opt/build-glibc/math:/opt/build-glibc/elf:/opt/build-glibc/nss:/opt/build-glibc/nis:/opt/build-glibc/db2:/opt/build-glibc/rt:/opt/build-glibc/resolv:/opt/build-glibc/linuxthreads /opt/build-glibc/libc.so.6
/opt/build-glibc/libc_nonshared.a -lgcc `arm-linux-gcc --print-file-name=crtend.o` /opt/build-glibc/csu/crtn.o
/opt/build-glibc/libc.so.6: undefined reference to `__ashldi3'
/opt/build-glibc/libc.so.6: undefined reference to `__divdi3'
/opt/build-glibc/libc.so.6: undefined reference to `__umoddi3'
/opt/build-glibc/libc.so.6: undefined reference to `__udivdi3'
/opt/build-glibc/libc.so.6: undefined reference to `__lshrdi3'
/opt/build-glibc/libc.so.6: undefined reference to `__moddi3'
/opt/build-glibc/libc.so.6: undefined reference to `__muldi3'
collect2: ld returned 1 exit status
gmake[2]: *** [/opt/build-glibc/db2/makedb] Error 1
gmake[2]: Leaving directory `/opt/glibc-2.1.3/db2'
gmake[1]: *** [db2/others] Error 2
gmake[1]: Leaving directory `/opt/glibc-2.1.3'
gmake: *** [all] Error 2

It's been too long for me to remember what I did to fix this. Any thoughts
on this? I apologize if this is off topic. Thanks. Cheers.

-Steve

-- 
 Steven J. Hill - Embedded SW Engineer
 Public Key: 'finger sjhill@mail.cotw.com'
 FPR1: E124 6E1C AF8E 7802 A815
 FPR2: 7D72 829C 3386 4C4A E17D

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