Error on Mac OS X
Keath Milligan
keath@keathmilligan.net
Mon Oct 27 21:50:00 GMT 2008
I'm trying to build a PowerPC toolchain (GCC 4.1.1 & GLIBC 2.5) on an
Intel Mac running OS 10.5 using crosstool-0.43. I'm getting the
following error:
powerpc-603-linux-gnu-gcc -nostdlib -nostartfiles -o
/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/iconv/iconvconfig
-Wl,-dynamic-linker=/lib/ld.so.1 -Wl,-z,combreloc -Wl,-z,relro
/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/csu/crt1.o
/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/csu/crti.o
`powerpc-603-linux-gnu-gcc --print-file-name=crtbegin.o`
/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/iconv/iconvconfig.o
/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/iconv/strtab.o
/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/iconv/xmalloc.o
/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/iconv/hash-string.o
-Wl,-rpath-link=/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc:/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/math:/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/elf:/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/dlfcn:/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/nss:/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/nis:/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/rt:/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/resolv:/Users/keathmilligan/work/crosstool/crosstool-0.43/b
uild/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/crypt:/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/nptl
/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/libc.so.6
/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/libc_nonshared.a
-lgcc -Wl,--as-needed -lgcc_s -Wl,--no-as-needed
`powerpc-603-linux-gnu-gcc --print-file-name=crtend.o`
/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/csu/crtn.o
/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/csu/crt1.o:(.rodata+0x8):
undefined reference to `__libc_csu_init'
/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/csu/crt1.o:(.rodata+0xc):
undefined reference to `__libc_csu_fini'
collect2: ld returned 1 exit status
make[2]: ***
[/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/iconv/iconvconfig]
Error 1
make[1]: *** [iconv/others] Error 2
make: *** [all] Error 2
I followed the suggestions in the crosstool how-to and added the GNU
versions of wget, install, sed and awk as well as created the scripts to
spoof the versions of as and ld. I also found I needed to add readelf.
--
Keath Milligan
Austin, Texas
http://www.keathmilligan.net
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list