This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

crosstool on OSX?


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:

--- crosstool-0.27/crosstool.sh~        Sat Jan 31 22:15:35 2004
+++ crosstool-0.27/crosstool.sh Thu Feb 19 13:41:37 2004
@@ -196,6 +196,7 @@
         # "*** WARNING: Are you sure you do not want to use the `linuxthreads'"
         # *** add-on?"
         # is ok here, since all we want are the basic headers at this point.
+       pushd ${GLIBC_DIR}; rm -f configure; autoconf; popd
         CC=gcc \
             ${GLIBC_DIR}/configure --host=$TARGET --prefix=/usr \
            --build=$BUILD \
                                                                                                                            
                                                                                                                            
My problem is that the glibc make eventually craps out here:

mv -f /Users/abcd/targets/crosstool-0.27/build/mipsel-unknown-linux-gnu/gcc-3.3.2-glibc-2.3.2/build-glibc/stdio-co\mmon/tstscanf.T /Users/abcd/targets/crosstool-0.27/build/mipsel-unknown-linux-gnu/gcc-3.3.2-glibc-2.3.2/build-glib\c/stdio-common/tstscanf.d
.././scripts/mkinstalldirs /Users/abcd/targets/crosstool-0.27/build/mipsel-unknown-linux-gnu/gcc-3.3.2-glibc-2.3.2\/build-glibc/stdio-common
mipsel-unknown-linux-gnu-gcc -M -MP ../sysdeps/gnu/siglist.c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-stri\ngs -finline-limit=10000      -I../include -I. -I/Users/abcd/targets/crosstool-0.27/build/mipsel-unknown-linux-gnu\/gcc-3.3.2-glibc-2.3.2/build-glibc/stdio-common -I.. -I../libio  -I/Users/abcd/targets/crosstool-0.27/build/mipsel\-unknown-linux-gnu/gcc-3.3.2-glibc-2.3.2/build-glibc -I../sysdeps/mips/elf -I../linuxthreads/sysdeps/unix/sysv/linux/mips -\I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/u\nix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/mips -I../sysdeps/unix/sysv/linux/mips -I../sysdeps/unix/\sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -\I../sysdeps/unix/mips -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/mips/mipsel -I../sysdeps/mips -I../sysdeps/wordsize\-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/gene\ric  -nostdinc -isystem /Users/abcd/targets/mipsel-unknown-linux-gnu/gcc-3.3.2-glibc-2.3.2/lib/gcc-lib/mipsel-unkn\own-linux-gnu/3.3.2/include -isystem /Users/abcd/targets/mipsel-unknown-linux-gnu/gcc-3.3.2-glibc-2.3.2/mipsel-unk\nown-linux-gnu/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -D_IO_MTSAFE_IO  | sed -e 's,siglist\.o,/\Users/abcd/targets/crosstool-0.27/build/mipsel-unknown-linux-gnu/gcc-3.3.2-glibc-2.3.2/build-glibc/stdio-common/si\glist.o /Users/abcd/targets/crosstool-0.27/build/mipsel-unknown-linux-gnu/gcc-3.3.2-glibc-2.3.2/build-glibc/stdio-\common/siglist.os /Users/abcd/targets/crosstool-0.27/build/mipsel-unknown-linux-gnu/gcc-3.3.2-glibc-2.3.2/build-gl\ibc/stdio-common/siglist.op /Users/abcd/targets/crosstool-0.27/build/mipsel-unknown-linux-gnu/gcc-3.3.2-glibc-2.3.\2/build-glibc/stdio-common/siglist.og /Users/abcd/targets/crosstool-0.27/build/mipsel-unknown-linux-gnu/gcc-3.3.2-\glibc-2.3.2/build-glibc/stdio-common/siglist.ob /Users/abcd/targets/crosstool-0.27/build/mipsel-unknown-linux-gnu/\gcc-3.3.2-glibc-2.3.2/build-glibc/stdio-common/siglist.oS /Users/abcd/targets/crosstool-0.27/build/mipsel-unknown-\linux-gnu/gcc-3.3.2-glibc-2.3.2/build-glibc/stdio-common/siglist.d,' -e 's@ /Users/abcd/targets/crosstool-0\.27/bu\ild/mipsel-unknown-linux-gnu/gcc-3\.3\.2-glibc-2\.3\.2/build-glibc/@ $(common-objpfx)@g' -e 's@^/Users/abcd/target\s/crosstool-0\.27/build/mipsel-unknown-linux-gnu/gcc-3\.3\.2-glibc-2\.3\.2/build-glibc/@$(common-objpfx)@g' > /Users/abcd/p\erforce/targets/crosstool-0.27/build/mipsel-unknown-linux-gnu/gcc-3.3.2-glibc-2.3.2/build-glibc/stdio-common/siglist.T
mv -f /Users/abcd/targets/crosstool-0.27/build/mipsel-unknown-linux-gnu/gcc-3.3.2-glibc-2.3.2/build-glibc/stdio-co\mmon/siglist.T /Users/abcd/targets/crosstool-0.27/build/mipsel-unknown-linux-gnu/gcc-3.3.2-glibc-2.3.2/build-glibc\/stdio-common/siglist.d
awk -v maxerr=`\
  mipsel-unknown-linux-gnu-gcc -S  -I../include -I. -I/Users/abcd/targets/crosstool-0.27/build/mipsel-unknown-linu\x-gnu/gcc-3.3.2-glibc-2.3.2/build-glibc/stdio-common -I.. -I../libio  -I/Users/abcd/targets/crosstool-0.27/build/m\ipsel-unknown-linux-gnu/gcc-3.3.2-glibc-2.3.2/build-glibc -I../sysdeps/mips/elf -I../linuxthreads/sysdeps/unix/sysv/linux/m\ips -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysd\eps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/mips -I../sysdeps/unix/sysv/linux/mips -I../sysdeps/\unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/s\ysv -I../sysdeps/unix/mips -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/mips/mipsel -I../sysdeps/mips -I../sysdeps/wor\dsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps\/generic  -nostdinc -isystem /Users/abcd/targets/mipsel-unknown-linux-gnu/gcc-3.3.2-glibc-2.3.2/lib/gcc-lib/mipsel\-unknown-linux-gnu/3.3.2/include -isystem /Users/abcd/targets/mipsel-unknown-linux-gnu/gcc-3.3.2-glibc-2.3.2/mipse\l-unknown-linux-gnu/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -D_IO_MTSAFE_IO -std=gnu99 -O2 -Wall\ -Winline -Wstrict-prototypes -Wwrite-strings -finline-limit=10000     -DNOT_IN_libc -DEMIT_ERR_MAX ../sysdeps/gnu/errlist.\c -o - \
  | sed -n 's/^.*@@@[^0-9]*\([0-9]*\)[^0-9]*@@@.*$/\1/p'` \
       -f ../sysdeps/gnu/errlist-compat.awk \
       ../linuxthreads/sysdeps/unix/sysv/linux/Versions ../sysdeps/unix/sysv/linux/mips/Versions ../sysdeps/unix/sysv/linux\/Versions ../sysdeps/unix/sysv/Versions ../linuxthreads/Versions > /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.cT
*** 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
make[2]: *** [stdio-common/subdir_lib] Error 2
make[1]: *** [all] Error 2

It may be related to a message output during the configure step:

checking for ld --version-script... no
*** WARNING: You should not compile GNU libc without versioning. Not using
*** versioning will introduce incompatibilities so that old binaries
*** will not run anymore.
*** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer).

Any suggestions on how I might get beyond this?

Thanks,
Dave


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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