Cross compiler problems...
Andrew McCall <[email protected]>
| Newsgroups | gmane.os.openbeos.kernel.devel |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Folks, I have a thread going on the gcc-help mailing list about this, but I thought I would post it here in case someone knows the fix. I am attempting to build a patched gcc 2.95.3 cross compiler so I can produce targets of powerpc-*-haiku that are ELF's. I was planning on patching it in two phases, firstly to get gcc to compile using - - --target=powerpc-apple-haiku by duplicating all the code for powerpc-apple-beos - if I am correct this would produce COFF or PE binaries, the second phase would be to patch again so it produces ELF's. I patched gcc to recognise powerpc-apple-haiku as a target, but still use the original BFD, and configured using: ../configure --target=powerpc-apple-haiku --disable-nls - - --enable-shared=yes --enable-languages=c,c++ - --prefix=/home/mccall/haiku - --with-sysroot=/home/mccall/haiku/haiku/headers This worked OK. <http://www.h2o.demon.co.uk/haiku/haiku_gcc_configure.txt> However, when I run make, I eventually get the following error: ../../gcc/libgcc2.c:41: stdlib.h: No such file or directory ../../gcc/libgcc2.c:42: unistd.h: No such file or directory make[3]: *** [libgcc2.a] Error 1 make[3]: Leaving directory `/home/mccall/haiku/src/gcc-2.95.3-haiku/gcc-obj/gcc' make[2]: *** [stmp-multilib-sub] Error 2 make[2]: Leaving directory `/home/mccall/haiku/src/gcc-2.95.3-haiku/gcc-obj/gcc' make[1]: *** [stmp-multilib] Error 1 make[1]: Leaving directory `/home/mccall/haiku/src/gcc-2.95.3-haiku/gcc-obj/gcc' make: *** [all-gcc] Error 2 I thought that it might have been my patches, so I tried the same thing, but with the --target=powerpc-apple-beos, and this produces the exact same error. I have tried using: - --with-sysroot=../../../haiku/headers - --with-sysroot=../../../haiku/headers/os - --with-sysroot=../../../haiku/headers/posix But all of these fail with the same error. I have also tried the same paths absolute, and using the - --with-headers argument. Can anyone give me some help? Thanks, Andrew McCall -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (MingW32) Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC4Ol73NPNAi0EUWURAijJAKDZ0R9eVT+DzL4z07nI/fp4f+RKQwCgzd+s pLgMsYgQvlG2qBsEdd4rT34= =MhCK -----END PGP SIGNATURE----- ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click