This is the mail archive of the
crossgcc@sourceware.org
mailing list for the crossgcc project.
See the CrossGCC FAQ for lots
more information.
crosstool build on Mac OS 10.5.5
- From: Keath Milligan <keath at keathmilligan dot net>
- To: crossgcc at sourceware dot org
- Date: Wed, 05 Nov 2008 17:08:14 -0600
- Subject: crosstool build on Mac OS 10.5.5
Has anyone had any luck building a toolchain with crosstool on Mac OS
lately?
I'm trying to build a PowerPC toolchain with GCC 4.1.1 and GLIBC 2.5. I
set up GNU versions of sed, awk, install and wget from MacPorts as
suggested in the how-tool (and also the version-spoofing scripts for as
and ld).
I also found I needed readelf, which wasn't mentioned, so I added it as
well.
The build gets pretty far along and seems to successfully build the
compiler, but dies trying to link glibc with:
powerpc-603-linux-gnu-gcc -nostdlib -nostartfiles -shared -o
/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/elf/ld.so
\
-Wl,-z,combreloc -Wl,-z,relro -Wl,-z,defs \
/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/elf/librtld.os
-Wl,--version-script=/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/ld.map
\
-Wl,-soname=ld.so.1 -T
/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/elf/ld.so.lds
/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/elf/librtld.os:
In function `process_envvars':
rtld.c:(.text+0x13bc): undefined reference to `__access'
rtld.c:(.text+0x1484): undefined reference to `__open'
/Users/keathmilligan/work/crosstool/crosstool-0.43/build/powerpc-603-linux-gnu/gcc-4.1.1-glibc-2.5/build-glibc/elf/librtld.os:
In function `dl_main':
.
.
.
(more)
The same build works under Linux and Cygwin.
--
For unsubscribe information see http://sourceware.org/lists.html#faq