[uClibc] toolchain on OS X

Bryan Larsen bryan.larsen at lumenera.com
Mon Jul 12 15:16:27 UTC 2004


I've also been trying to build toolchains on Apple OS X as well as an
i386 Linux box.

On OS X, I have the following additional problems:

1) reliance on GNU tools:

cp -a in Makefiles
the sed script in the the ancient busybox 0.60.4 busybox.sh included
with Snapgear/uClinux only worked with Gnu sed.

2) hardcoded paths checking for tools.

for instance, the toolchain binutils-dependancies target does

if [ ! -x /usr/bin/msgfmt ] ; then ...

I had installed fink's gettext, but it wasn't in /usr/bin

3) strange errors building libfloat

/Users/blarsen/toolchain/gcc-3.3.x/toolchain_arm_nofpu/bin/arm-linux-uclibc-gcc  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing  -fstrict-aliasing -Os     -mlittle-endian -mtune=arm9tdmi -march=armv4 -msoft-float -fno-builtin -nostdinc -D_LIBC -I../include -I. -I/Users/blarsen/toolchain/gcc-3.3.x/toolchain_arm_nofpu/lib/gcc-lib/arm-linux-uclibc/3.3.4/include -DNDEBUG -fPIC -D__LDSO_LDD_SUPPORT -Wl,-s -static \
        -DUCLIBC_RUNTIME_PREFIX= \
        -DUCLIBC_LDSO=ld-uClibc.so.0 -I. -I../ldso/include \
        ldconfig.c readsoname.c -o ldconfig -lfloat -L../lib
/Users/blarsen/toolchain/gcc-3.3.x/toolchain_arm_nofpu/arm-linux-uclibc/bin/../../lib/libfloat.a: could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
make[2]: *** [ldconfig] Error 1
make[1]: *** [utils] Error 2
make: ***
[/Users/blarsen/toolchain/gcc-3.3.x/toolchain_arm_nofpu/usr/bin/ldd]
Error 2

I tried running ranlib as suggested, but that didn't help.

a build without soft floats doesn't require libfloat and worked
sucessfully.

Bryan






More information about the uClibc mailing list