



Re: build gcc for c++
by Unknown on Mar 22, 2004 |
Not available! | ||
Ken,
I am not sure where exactly did you go wrong, but if I am correct you are trying to compile gcc (should be host gcc) with or1k gcc (target). Perhaps you forgot --prefix with configure. Try starting from scratch with ATS script and then modify it to compile gcc for your configuration. Marko On Monday 22 March 2004 07:01, you wrote:
Dear Markom
I want to build gcc for ecos, by ./gcc-3.2.3/configure --target=or32-elf --with-gnu-as --with-gnu-ld -- verbose --enable-threads --prefix=/root/tools/i386-redhat-linux -- enable-languages=c++ --enable-cheaders=c_compatibility I get the following messages , what mistake I made ? thanks BR Ken hecking for alloca.h... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... (cached) no checking whether time.h and sys/time.h may both be included... (cached) no checking whether errno must be declared... (cached) yes checking for ANSI C header files... (cached) no checking for uintptr_t... (cached) no checking whether the C compiler (/root/or1k/b-gcc/gcc/xgcc - B/root/or1k/b-gcc/gcc/ -B/root/tools/i386-redhat-linux/or32-elf/bin/ - B/root/tools/i386-redhat-linux/or32-elf/lib/ -isystem /root/tools/i386- redhat-linux/or32-elf/include -O2 -g -O2 ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. make[1]: *** [config.status] Error 1 make[1]: Leaving directory `/root/or1k/b-gcc/or32-elf/libiberty' make: *** [all-target-libiberty] Error 2 |
Re: build gcc for c++
by Unknown on Mar 23, 2004 |
Not available! | ||
Have a look at http://www.asisi.co.uk/or1kecos.html for a step-by-step
guide.
Robert Cragie, Design Engineer
_______________________________________________________________
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
http://www.jennic.com Tel: +44 (0) 114 281 2655
_______________________________________________________________
-----Original Message-----
From: openrisc-bounces@opencores.org
[mailto:openrisc-bounces@opencores.org]On Behalf Of Marko Mlinar
Sent: 22 March 2004 06:55
To: kenyeby@yahoo.com.tw
Cc: openrisc@opencores.org
Subject: [openrisc] Re: build gcc for c++
Ken,
I am not sure where exactly did you go wrong, but if I am correct you are
trying to compile gcc (should be host gcc) with or1k gcc
(target). Perhaps
you forgot --prefix with configure.
Try starting from scratch with ATS script and then modify it to
compile gcc
for your configuration.
Marko
On Monday 22 March 2004 07:01, you wrote:
> Dear Markom
> > I want to build gcc for ecos, > by > ./gcc-3.2.3/configure --target=or32-elf --with-gnu-as --with-gnu-ld -- > verbose --enable-threads --prefix=/root/tools/i386-redhat-linux -- > enable-languages=c++ --enable-cheaders=c_compatibility > > I get the following messages , what mistake I made ? > thanks > BR > Ken > > > hecking for alloca.h... (cached) yes > checking for sys/wait.h that is POSIX.1 compatible... (cached) no > checking whether time.h and sys/time.h may both be included... > (cached) no > checking whether errno must be declared... (cached) yes > checking for ANSI C header files... (cached) no > checking for uintptr_t... (cached) no > checking whether the C compiler (/root/or1k/b-gcc/gcc/xgcc - > B/root/or1k/b-gcc/gcc/ -B/root/tools/i386-redhat-linux/or32-elf/bin/ - > B/root/tools/i386-redhat-linux/or32-elf/lib/ -isystem /root/tools/i386- > redhat-linux/or32-elf/include -O2 -g -O2 ) works... no > configure: error: installation or configuration problem: C compiler cannot
> create executables.
_______________________________________________
http://www.opencores.org/mailman/listinfo/openrisc
> make[1]: *** [config.status] Error 1 > make[1]: Leaving directory `/root/or1k/b-gcc/or32-elf/libiberty' > make: *** [all-target-libiberty] Error 2 |



