tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Cross Building Native GCC
Am 17.02.2015 um 14:32 schrieb Jens Mehler:
> Am 17.02.2015 um 14:24 schrieb Martin Husemann:
>> On Tue, Feb 17, 2015 at 01:58:19PM +0100, Jens Mehler wrote:
>>> Hmm yeah building a standalone native-gcc - I should try that :D
>>> I never considered that because the project only focused on
>>> cross-compilation XD
>> Sorry, unclear wording: a ./configure of gcc, no matter if you are
>> cross compiling or not. It should create the omp.h file for you
>> (somewhere), and you could put that into
>> src/external/gpl3/gcc/lib/libgomp/arch/eco32/omp.h for a start and see
>> if you get further with mknative.
>>
>> Maybe omp.h is needed in step 4 before it is (re-)generated later in the
>> process, and we just never noticed (as we have existing files for all
>> our architectures).
>>
>> Martin
> No worries :)
> I was about to embark this mission on the NetBSD source anyway because
> libgomp needs some OS-headers and I would like to keep me standalone GCC
> pretty much clean (well as clean as those sources can be after I messed
> with them :P )
>
> I will see what I can do - I can't be that hard. After porting GCC,
> Binutils, Newlib and the NetBSD kernel over the course of my studies
> this is the final step.
>
> I will document this and keep this thread posted.
> Thanks a lot in advance!
>
> Jens
>
Okay I am back :)
I poked around the gcc inside the NetBSD source and yes .. the
eco32--netbsd target seems broken.
Building it outside the source-tree crashes while trying make
all-target-libgcc.
It doesn't find any headers :(
I have a general idea of what is going wrong.
Here the output for 'make all-target-libgcc' (same with all-target-libgomp)
/home/okarin/temp/nbeg/./gcc/xgcc -B/home/okarin/temp/nbeg/./gcc/
-B/home/okarin/eco32/tests/netbsd-new/usr/src/./obj/tooldir/eco32--netbsd/bin/
-B/home/okarin/eco32/tests/netbsd-new/usr/src/./obj/tooldir/eco32--netbsd/lib/
-isystem
/home/okarin/eco32/tests/netbsd-new/usr/src/./obj/tooldir/eco32--netbsd/include
-isystem
/home/okarin/eco32/tests/netbsd-new/usr/src/./obj/tooldir/eco32--netbsd/sys-include
-g -O2 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall
-Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I../.././gcc
-I/home/okarin/eco32/tests/netbsd-new/usr/src/tools/gcc/../../external/gpl3/gcc/dist/libgcc
-I/home/okarin/eco32/tests/netbsd-new/usr/src/tools/gcc/../../external/gpl3/gcc/dist/libgcc/.
-I/home/okarin/eco32/tests/netbsd-new/usr/src/tools/gcc/../../external/gpl3/gcc/dist/libgcc/../gcc
-I/home/okarin/eco32/tests/netbsd-new/usr/src/tools/gcc/../../external/gpl3/gcc/dist/libgcc/../include
-DHAVE_CC_TLS -DUSE_EMUTLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF
_muldi3.dep -DL_muldi3 -c
/home/okarin/eco32/tests/netbsd-new/usr/src/tools/gcc/../../external/gpl3/gcc/dist/libgcc/../gcc/libgcc2.c
\
In file included from
/home/okarin/eco32/tests/netbsd-new/usr/src/tools/gcc/../../external/gpl3/gcc/dist/libgcc/../gcc/libgcc2.c:29:0:
/home/okarin/eco32/tests/netbsd-new/usr/src/tools/gcc/../../external/gpl3/gcc/dist/libgcc/../gcc/tsystem.h:44:20:
fatal error: stddef.h: No such file or directory
compilation terminated.
Makefile:370: recipe for target '_muldi3.o' failed
I will take care of this tomorrow.
Home |
Main Index |
Thread Index |
Old Index