crosstool on OSX?
Daniel Kegel
dank@kegel.com
Fri Feb 20 22:22:00 GMT 2004
David Wuertele wrote:
> I've been trying to get crosstool-0.27 to build a
> mipsel-unknown-linux-gnu toolchain on OSX (10.3). So far, I've had to
> make a small change to glibc's configure.in file, since /usr/bin/as on
> OSX doesn't understand "--version". I just removed the check. I
> don't know how kosher that was, but it seemed to work. Here is the
> glibc patch:
>
> --- glibc-2.3.2/configure.in~ Tue Feb 25 16:46:31 2003
> +++ glibc-2.3.2/configure.in Wed Feb 18 17:17:52 2004
> @@ -705,9 +705,6 @@
> AC_SUBST(MIG)dnl Needed by sysdeps/mach/configure.in
>
> # Accept binutils 2.13 or newer.
> -AC_CHECK_PROG_VER(AS, $AS, --version,
> - [GNU assembler.* \([0-9]*\.[0-9.]*\)],
> - [2.1[3-9]*], AS=: critic_missing=t)
> AC_CHECK_PROG_VER(LD, $LD, --version,
> [GNU ld.* \([0-9][0-9]*\.[0-9.]*\)],
> [2.1[3-9]*], LD=: critic_missing=t)
>
> And here is the patch to crosstool.sh to run autoconf:
Rather than run autoconf, I'd probably prefer a patch to configure
(it's so touchy to run autoconf on these tools...) for crosstool.
You might want to check glibc cvs to see if they've already
patched configure.in, and submit your fix if they haven't and
you can convince yourself it's kosher.
> My problem is that the glibc make eventually craps out here:
>...
> *** errlist.c count 1134 vs Versions sys_errlist@GLIBC_2.0 count 123
> make[3]: *** [/Users/abcd/targets/crosstool-0.27/build/mipsel-unknown-linux-gnu/gcc-3.3.2-glibc-2.3.2/build-glibc/\stdio-common/errlist-compat.c] Error 1
> ...
> Any suggestions on how I might get beyond this?
Hey, I ran into this problem last year before I wrote crosstool:
http://sources.redhat.com/ml/crossgcc/2003-05/msg00184.html
but I think that was while installing headers, rather than
building glibc. Did the failure happen before or after building
the bootstrap gcc?
I have access to a MacOSX system, but I am unable to type much due
to RSI for now, so I can't help you debug this at the moment,
might not be able to reply again for a while.
- Dan
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list