Unable to get crosstool-0.43 worked on Mac OS X
Kirill Kuvaldin
kirill.kuvaldin@auriga.ru
Sat Mar 10 13:37:00 GMT 2007
Hi there, (please CC me on replies since I'm not subscribed yet)
I've been trying to set up the cross compiler tool chain for Mac OS X to
be able to compile the Linux 2.6 kernel for i386 targets.
I've started with setting all the toolchain (binutils/gcc) and got it
built successfully, but compiling the linux kernel ended up in an error
at the very beginning
CHK include/linux/version.h
CHK include/linux/utsrelease.h
HOSTCC scripts/mod/mk_elfconfig
In file included from scripts/mod/mk_elfconfig.c:1:
/usr/local/include/stdio.h:5:27: error: libio/stdio.h: No such file or directory
In file included from scripts/mod/mk_elfconfig.c:1:
/usr/local/include/stdio.h:9: error: parse error before 'size_t'
It's not the point though. I then decided to use crosstool as a more
general solution, but it didn't help me either. After have issued
"eval `cat i686.dat gcc-3.4.3-glibc-2.1.3.dat` sh all.sh --notest"
I ended up with the following:
... skipped ...
make ARCH=i386 oldconfig
HOSTCC scripts/basic/fixdep
In file included from scripts/basic/fixdep.c:97:
/usr/local/include/sys/types.h:1:29: error: posix/sys/types.h: No such file or d
In file included from scripts/basic/fixdep.c:98:
/usr/local/include/sys/stat.h:2:25: error: io/sys/stat.h: No such file or direct
In file included from scripts/basic/fixdep.c:98:
/usr/local/include/sys/stat.h:8: error: parse error before '__mode_t'
/usr/local/include/sys/stat.h:9: error: parse error before '__mode_t'
... skipped ...
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
I've tried out few different than gcc-3.4.3-glibc-2.1.3.dat
configurations, but with no success too.
Any ideas what I have to tweak in order to get things worked?
-kuvkir
--
Make a wish, it might come true.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3593 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20070310/6ab254a6/attachment.bin>
More information about the crossgcc
mailing list