1/1

|
Building gcc-3.2.3 on cygwin
by Unknown on Feb 7, 2005 |
Not available! | ||
|
Hi all,
I'm trying to build gcc-3.2.3 under the Cygwin environment. I am following
my own rules for building under Linux at
http://www.asisi.co.uk/or1kecos.html but I cannot build gcc-3.2.3 - I get
the following error:
make: Entering directory `/home/or1k-cvs/or1k/b-gcc'
make[1]: Entering directory `/home/or1k-cvs/or1k/b-gcc/libiberty'
make[2]: Entering directory `/home/or1k-cvs/or1k/b-gcc/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/or1k-cvs/or1k/b-gcc/libiberty/testsuite'
make[1]: Leaving directory `/home/or1k-cvs/or1k/b-gcc/libiberty'
make[1]: Entering directory `/home/or1k-cvs/or1k/b-gcc/gcc'
gcc -DIN_GCC -DCROSS_COMPILE -g -O2 -W -Wall -Wwrite-strings -Wstrict-prot
otypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_C
ONFIG_H -DGENERATOR_FILE -o gengenrtl.exe \
gengenrtl.o ../libiberty/libiberty.a
../libiberty/libiberty.a: could not read symbols: Archive has no index; run
ranlib to add one
collect2: ld returned 1 exit status
make[1]: *** [gengenrtl.exe] Error 1
make[1]: Leaving directory `/home/or1k-cvs/or1k/b-gcc/gcc'
make: *** [all-gcc] Error 2
make: Leaving directory `/home/or1k-cvs/or1k/b-gcc'
I have tried running ranlib on libiberty.a as suggested in the error report
(although I think it already did this in the make process) but it made no
difference.
Of course I never had this problem on Linux - can anyone give me some ideas
as to what might be going wrong?
Thanks in advance,
Robert
PS - I will get the page onto Opencores at some point - have just been busy
with other stuff.
Robert Cragie, Design Engineer
_______________________________________________________________
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
http://www.jennic.com Tel: +44 (0) 114 281 2655
_______________________________________________________________
|
|||
|
Building gcc-3.2.3 on cygwin
by Unknown on Feb 8, 2005 |
Not available! | ||
|
* Robert Cragie (rcc@jennic.com) wrote:
Hi all,
I'm trying to build gcc-3.2.3 under the Cygwin environment. I am following
my own rules for building under Linux at
http://www.asisi.co.uk/or1kecos.html but I cannot build gcc-3.2.3 - I get
the following error:
Well, just about a week ago i built the whole toolchain for cygwin. I'd suggest you try with gcc-3.4.2 in the cvs. This should work... (well it worked for me) best regards, p. |
|||
|
Building gcc-3.2.3 on cygwin
by Unknown on Feb 8, 2005 |
Not available! | ||
|
I get exactly the same error when building gcc-3.4.2. See attached log.
I am doing:
$
../gcc-3.4.2/configure --target=or32-elf --prefix=/usr/local/bin --enable-la
nguages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --with-gxx-include-d
ir=/usr/local/bin/or32-elf/include -v 2>&1 | tee configure.out
$ make -w all install 2>&1 | tee make.out
I am using newlib-1.11.0
gcc -v gives me:
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/specs
Configured with:
/gcc/gcc-3.3.3-3/configure --verbose --prefix=/usr --exec-prefix=/usr --sysc
onfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,java,objc,pasca
l --enable-nls --without-included-gettext --enable-libgcj --with-system-zlib
--enable-interpreter --enable-threads=posix --enable-java-gc=boehm --enable
-sjlj-exceptions --disable-version-specific-runtime-libs --disable-win32-reg
istry
Thread model: posix
gcc version 3.3.3 (cygwin special)
I will try to get to the bottom of this but any helpful pointers would be
much appreciated. I note there are differences between the ATS script but I
do need to build C++ in and use newlib for eCos support.
Robert Cragie, Design Engineer
Direct: +44 (0) 114 281 4512
_______________________________________________________________
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
http://www.jennic.com Tel: +44 (0) 114 281 2655 Confidential
_______________________________________________________________
-----Original Message-----
From: openrisc-bounces@opencores.org
[mailto:openrisc-bounces@opencores.org]On Behalf Of Matjaz Breskvar
Sent: 08 February 2005 02:46
To: List about OpenRISC project
Subject: Re: [openrisc] Building gcc-3.2.3 on cygwin
* Robert Cragie (rcc@jennic.com) wrote:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make.out.gz
Type: application/x-gzip
Size: 5900 bytes
Desc: not available
Url : http://www.opencores.org/forums/openrisc/attachments/20050208/604c6941/make.out-0001.bin
> Hi all,
> > I'm trying to build gcc-3.2.3 under the Cygwin environment. I am following
> my own rules for building under Linux at
> http://www.asisi.co.uk/or1kecos.html but I cannot build
gcc-3.2.3 - I get
> the following error:
Well, just about a
week ago i built the whole toolchain for cygwin. I'd suggest you try
with gcc-3.4.2 in the cvs. This should work... (well it worked for me)
best regards,
p.
_______________________________________________
http://www.opencores.org/mailman/listinfo/openrisc
|
|||
|
Building gcc-3.2.3 on cygwin
by Unknown on Feb 8, 2005 |
Not available! | ||
|
OK - found the problem. It was finding the wrong 'ar' due to path order. It
might have been sensible to follow my document verbatim :-)
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 Robert Cragie
Sent: 08 February 2005 10:30
To: List about OpenRISC project
Subject: RE: [openrisc] Building gcc-3.2.3 on cygwin
I get exactly the same error when building gcc-3.4.2. See attached log.
I am doing:
$
../gcc-3.4.2/configure --target=or32-elf --prefix=/usr/local/bin
--enable-la
nguages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib
--with-gxx-include-d
ir=/usr/local/bin/or32-elf/include -v 2>&1 | tee configure.out
$ make -w all install 2>&1 | tee make.out
I am using newlib-1.11.0
gcc -v gives me:
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/specs
Configured with:
/gcc/gcc-3.3.3-3/configure --verbose --prefix=/usr
--exec-prefix=/usr --sysc
onfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib
--mandir=/usr/share/man
--infodir=/usr/share/info
--enable-languages=c,ada,c++,d,f77,java,objc,pasca
l --enable-nls --without-included-gettext --enable-libgcj
--with-system-zlib
--enable-interpreter --enable-threads=posix
--enable-java-gc=boehm --enable
-sjlj-exceptions --disable-version-specific-runtime-libs
--disable-win32-reg
istry
Thread model: posix
gcc version 3.3.3 (cygwin special)
I will try to get to the bottom of this but any helpful pointers would be
much appreciated. I note there are differences between the ATS
script but I
do need to build C++ in and use newlib for eCos support.
Robert Cragie, Design Engineer
Direct: +44 (0) 114 281 4512
_______________________________________________________________
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
http://www.jennic.com Tel: +44 (0) 114 281 2655 Confidential
_______________________________________________________________
> -----Original Message-----
> From: openrisc-bounces@opencores.org
> [mailto:openrisc-bounces@opencores.org]On Behalf Of Matjaz Breskvar
> Sent: 08 February 2005 02:46
> To: List about OpenRISC project
> Subject: Re: [openrisc] Building gcc-3.2.3 on cygwin
>
>
> * Robert Cragie (rcc@jennic.com) wrote:
> Hi all,
> > I'm trying to build gcc-3.2.3 under the Cygwin environment. I > am following
> my own rules for building under Linux at
> http://www.asisi.co.uk/or1kecos.html but I cannot build
> gcc-3.2.3 - I get
> the following error:
>
> Well, just about a
> week ago i built the whole toolchain for cygwin. I'd suggest you try
> with gcc-3.4.2 in the cvs. This should work... (well it worked for me)
>
> best regards,
> p.
> _______________________________________________
> http://www.opencores.org/mailman/listinfo/openrisc
>
|
|||
|
Building gcc-3.2.3 on cygwin
by jcastillo on Feb 8, 2005 |
jcastillo
Posts: 32 Joined: Jun 29, 2004 Last seen: Dec 21, 2021 |
||
|
Hi Robert,
I have a question about newlib. You say in your webpage that in order to
compile gcc to run with eCos you have to download newlib-1.11 from newlib
webpage. But the official version hasn't got inside the or32 machine port,
so I am quite amazing that it works. Do you know why?
Best Regards
Javier Castillo
-----Mensaje original-----
De: openrisc-bounces@opencores.org [mailto:openrisc-bounces@opencores.org]
En nombre de Robert Cragie
Enviado el: martes, 08 de febrero de 2005 12:42
Para: List about OpenRISC project
Asunto: RE: [openrisc] Building gcc-3.2.3 on cygwin
OK - found the problem. It was finding the wrong 'ar' due to path order. It
might have been sensible to follow my document verbatim :-)
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 Robert Cragie
Sent: 08 February 2005 10:30
To: List about OpenRISC project
Subject: RE: [openrisc] Building gcc-3.2.3 on cygwin
I get exactly the same error when building gcc-3.4.2. See attached log.
I am doing:
$
../gcc-3.4.2/configure --target=or32-elf --prefix=/usr/local/bin
--enable-la
nguages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib
--with-gxx-include-d
ir=/usr/local/bin/or32-elf/include -v 2>&1 | tee configure.out
$ make -w all install 2>&1 | tee make.out
I am using newlib-1.11.0
gcc -v gives me:
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/specs
Configured with:
/gcc/gcc-3.3.3-3/configure --verbose --prefix=/usr
--exec-prefix=/usr --sysc
onfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib
--mandir=/usr/share/man
--infodir=/usr/share/info
--enable-languages=c,ada,c++,d,f77,java,objc,pasca
l --enable-nls --without-included-gettext --enable-libgcj
--with-system-zlib
--enable-interpreter --enable-threads=posix
--enable-java-gc=boehm --enable
-sjlj-exceptions --disable-version-specific-runtime-libs
--disable-win32-reg
istry
Thread model: posix
gcc version 3.3.3 (cygwin special)
I will try to get to the bottom of this but any helpful pointers would be
much appreciated. I note there are differences between the ATS
script but I
do need to build C++ in and use newlib for eCos support.
Robert Cragie, Design Engineer
Direct: +44 (0) 114 281 4512
_______________________________________________________________
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
http://www.jennic.com Tel: +44 (0) 114 281 2655 Confidential
_______________________________________________________________
_______________________________________________
http://www.opencores.org/mailman/listinfo/openrisc
> -----Original Message-----
> From: openrisc-bounces@opencores.org
> [mailto:openrisc-bounces@opencores.org]On Behalf Of Matjaz Breskvar
> Sent: 08 February 2005 02:46
> To: List about OpenRISC project
> Subject: Re: [openrisc] Building gcc-3.2.3 on cygwin
>
>
> * Robert Cragie (rcc@jennic.com) wrote:
> Hi all,
> > I'm trying to build gcc-3.2.3 under the Cygwin environment. I > am following
> my own rules for building under Linux at
> http://www.asisi.co.uk/or1kecos.html but I cannot build
> gcc-3.2.3 - I get
> the following error:
>
> Well, just about a
> week ago i built the whole toolchain for cygwin. I'd suggest you try
> with gcc-3.4.2 in the cvs. This should work... (well it worked for me)
>
> best regards,
> p.
> _______________________________________________
> http://www.opencores.org/mailman/listinfo/openrisc
>
|
|||
|
Building gcc-3.2.3 on cygwin
by Unknown on Feb 8, 2005 |
Not available! | ||
|
Hi Javier,
I'm not 100% sure - I just got the information from here:
http://ecos.sourceware.org/build-toolchain.html
IIRC, newlib is just a library to replace glibc to prevent GNU copyleft
issues - important for embedded software. So it's simply compiled with
or32-elf-gcc as far as I know and doesn't itself need or32 support - or at
least the bit required by eCos doesn't.
It is probably worth noting that a newer version of newlib is required if
building with a later GCC - my latest build with GCC 3.3.3 failed and I had
to apply the following patch:
diff -rc newlib/libc/ctype/iswctype.c
../gcc-3.4.2/newlib/libc/ctype/iswctype.c
*** newlib/libc/ctype/iswctype.c Fri Sep 20 21:13:10 2002
--- ../gcc-3.4.2/newlib/libc/ctype/iswctype.c Tue Feb 8 14:22:28 2005
***************
*** 62,67 ****
--- 62,68 ----
case WC_XDIGIT:
return iswxdigit (c);
default:
+ return 0;
}
/* otherwise unknown */
diff -rc newlib/libc/ctype/wctype.c ../gcc-3.4.2/newlib/libc/ctype/wctype.c
*** newlib/libc/ctype/wctype.c Fri Sep 20 21:13:10 2002
--- ../gcc-3.4.2/newlib/libc/ctype/wctype.c Tue Feb 8 14:23:46 2005
***************
*** 121,126 ****
--- 121,127 ----
return WC_XDIGIT;
break;
default:
+ break;
}
/* otherwise invalid */
Note also that the page on http://www.asisi.co.uk/or1kecos.html also seems
to work with Cygwin (as obtained yesterday). I will update this and
endeavour to get it onto the Opencores site soon.
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 jcastillo
Sent: 08 February 2005 17:08
To: 'List about OpenRISC project'
Subject: RE: [openrisc] Building gcc-3.2.3 on cygwin
Hi Robert,
I have a question about newlib. You say in your webpage that in order to
compile gcc to run with eCos you have to download newlib-1.11 from newlib
webpage. But the official version hasn't got inside the or32 machine port,
so I am quite amazing that it works. Do you know why?
Best Regards
Javier Castillo
-----Mensaje original-----
De: openrisc-bounces@opencores.org [mailto:openrisc-bounces@opencores.org]
En nombre de Robert Cragie
Enviado el: martes, 08 de febrero de 2005 12:42
Para: List about OpenRISC project
Asunto: RE: [openrisc] Building gcc-3.2.3 on cygwin
OK - found the problem. It was finding the wrong 'ar' due to path
order. It
might have been sensible to follow my document verbatim :-)
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 Robert Cragie
> Sent: 08 February 2005 10:30
> To: List about OpenRISC project
> Subject: RE: [openrisc] Building gcc-3.2.3 on cygwin
>
>
> I get exactly the same error when building gcc-3.4.2. See attached log.
>
> I am doing:
>
> $
> ../gcc-3.4.2/configure --target=or32-elf --prefix=/usr/local/bin
> --enable-la
> nguages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib
> --with-gxx-include-d
> ir=/usr/local/bin/or32-elf/include -v 2>&1 | tee configure.out
> $ make -w all install 2>&1 | tee make.out
>
> I am using newlib-1.11.0
>
> gcc -v gives me:
>
> Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/specs
> Configured with:
> /gcc/gcc-3.3.3-3/configure --verbose --prefix=/usr
> --exec-prefix=/usr --sysc
> onfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib
> --mandir=/usr/share/man
> --infodir=/usr/share/info
> --enable-languages=c,ada,c++,d,f77,java,objc,pasca
> l --enable-nls --without-included-gettext --enable-libgcj
> --with-system-zlib
> --enable-interpreter --enable-threads=posix
> --enable-java-gc=boehm --enable
> -sjlj-exceptions --disable-version-specific-runtime-libs
> --disable-win32-reg
> istry
> Thread model: posix
> gcc version 3.3.3 (cygwin special)
>
> I will try to get to the bottom of this but any helpful
pointers would be
> much appreciated. I note there are differences between the ATS
> script but I
> do need to build C++ in and use newlib for eCos support.
>
> Robert Cragie, Design Engineer
>
> Direct: +44 (0) 114 281 4512
> _______________________________________________________________
> Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
> http://www.jennic.com Tel: +44 (0) 114 281 2655 Confidential
> _______________________________________________________________
>
_______________________________________________
http://www.opencores.org/mailman/listinfo/openrisc
_______________________________________________
http://www.opencores.org/mailman/listinfo/openrisc
> -----Original Message-----
> From: openrisc-bounces@opencores.org
> [mailto:openrisc-bounces@opencores.org]On Behalf Of Matjaz Breskvar
> Sent: 08 February 2005 02:46
> To: List about OpenRISC project
> Subject: Re: [openrisc] Building gcc-3.2.3 on cygwin
>
>
> * Robert Cragie (rcc@jennic.com) wrote:
> > Hi all,
> > > > I'm trying to build gcc-3.2.3 under the Cygwin environment. I > am following
> > my own rules for building under Linux at
> > http://www.asisi.co.uk/or1kecos.html but I cannot build
> gcc-3.2.3 - I get
> > the following error:
>
> Well, just about a
> week ago i built the whole toolchain for cygwin. I'd suggest you try
> with gcc-3.4.2 in the cvs. This should work... (well it worked for me)
>
> best regards,
> p.
> _______________________________________________
> http://www.opencores.org/mailman/listinfo/openrisc
>
> |
|||
1/1

