* Building current CVS for ARM under cygwin
@ 2001-03-21 9:53 Lewin A.R.W. Edwards
2001-03-21 20:46 ` Alexandre Oliva
0 siblings, 1 reply; 7+ messages in thread
From: Lewin A.R.W. Edwards @ 2001-03-21 9:53 UTC (permalink / raw)
To: gcc-help
I'm trying to build gcc (current sources) so that I can compile arm-elf
executables with Thumb code. gcc 2.95.2 works fine, but doesn't work for
thumb (the thumb-elf configuration won't work for the OS I'm trying to
compile, and the vendor suggests to use a more recent snapshot, and the
-mthumb switch when compiling).
The problem is that somewhere gcc's build process got broken (at least for
target arm-elf) when compiling under cygwin. But I _NEED_ to use cygwin.
Any help would be greatly appreciated.
My configure line was /src/gcc/configure --target=arm-elf --prefix=/tools
--exec-prefix=/tools/H-i686-pc-cygwin --with-gnu-as --with-gnu-ld
--with-newlib -v 2>&1 | tee configure.out
When I make with
make -w all-gcc install-gcc LANGUAGES="c c++" 2>&1 | tee make.out
I get:
In file included from /src/gcc/gcc/config/i386/xm-cygwin.h:22,
from config.h:5,
from /src/gcc/gcc/errors.c:25:
/usr/include/sys/cygwin.h:90: warning: integer constant is unsigned in ANSI
C, s
igned with -traditional
/usr/include/sys/cygwin.h:91: warning: ANSI C restricts enumerator values
to ran
ge of `int'
gcc -DCROSS_COMPILE -DIN_GCC -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototy
pes -Wmissing-prototypes -Wtraditional -pedantic
-Wno-long-long -DHAVE_CONFIG_H
-DGENERATOR_FILE -o gencodes.exe \
gencodes.o rtl.o bitmap.o ggc-none.o gensupport.o hashtab.o safe-ctype.o
print-
rtl.o errors.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case ""
in ?
*) echo ;; esac ` ` case "" in ?*) echo ;; esac ` ` case "" in ?*)
echo ;; es
ac ` -ladvapi32
./gencodes.exe /src/gcc/gcc/config/arm/arm.md > tmp-codes.h
'src/gcc/gcc/config/arm/arm.md:36: unknown rtx code `define_constants
/src/gcc/gcc/config/arm/arm.md:36: following context is
` [(IP_REGNUM 12);
Scratch register'
make[1]: *** [s-codes] Error 1
make[1]: Leaving directory `/tmp/build/gcc/gcc'
make: *** [all-gcc] Error 2
make: Leaving directory `/tmp/build/gcc'
=== Lewin A.R.W. Edwards (Embedded Engineer)
Work: http://www.digi-frame.com/
Personal: http://www.zws.com/ and http://www.larwe.com/
"Und setzet ihr nicht das Leben ein,
Nie wird euch das Leben gewonnen sein."
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Building current CVS for ARM under cygwin
2001-03-21 9:53 Building current CVS for ARM under cygwin Lewin A.R.W. Edwards
@ 2001-03-21 20:46 ` Alexandre Oliva
2001-03-21 20:50 ` Lewin A.R.W. Edwards
0 siblings, 1 reply; 7+ messages in thread
From: Alexandre Oliva @ 2001-03-21 20:46 UTC (permalink / raw)
To: Lewin A.R.W. Edwards; +Cc: gcc-help
On Mar 21, 2001, "Lewin A.R.W. Edwards" <larwe@larwe.com> wrote:
> 'src/gcc/gcc/config/arm/arm.md:36: unknown rtx code `define_constants
> /src/gcc/gcc/config/arm/arm.md:36: following context is ` [(IP_REGNUM
> 12);
Are you trying to use current GCC's arm.md with an older GCC release?
This is not going to work. define_constants is a new construct.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Building current CVS for ARM under cygwin
2001-03-21 20:46 ` Alexandre Oliva
@ 2001-03-21 20:50 ` Lewin A.R.W. Edwards
2001-03-21 21:19 ` Alexandre Oliva
0 siblings, 1 reply; 7+ messages in thread
From: Lewin A.R.W. Edwards @ 2001-03-21 20:50 UTC (permalink / raw)
To: Alexandre Oliva; +Cc: gcc-help
Hi Alexandre,
> > 'src/gcc/gcc/config/arm/arm.md:36: unknown rtx code `define_constants
> > /src/gcc/gcc/config/arm/arm.md:36: following context is ` [(IP_REGNUM
> > 12);
>
>Are you trying to use current GCC's arm.md with an older GCC release?
>This is not going to work. define_constants is a new construct.
No, I was using a new complete CVS checkout. The problem turns out to be
CR/LF (damn cygwin), so I used tr -d '\r' to fix that one file, and got
much further in the build process. However now it fails linking cc1.exe. On
the advice of Jonathan Larmour (Red Hat) I've submitted this one to GNAT:
gcc -DCROSS_COMPILE -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototy
pes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
-DHAVE_CONFIG_H
-o cc1.exe \
c-parse.o c-lang.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-c
onvert.o c-aux-info.o c-common.o c-format.o c-semantics.o c-dump.o libcpp.a
mai
n.o libbackend.a obstack.o -lintl -ladvapi32 ../libiberty/libiberty.a
libbackend.a(recog.o)(.text+0x231b): undefined reference to `PUSH_ROUNDING'
libbackend.a(recog.o)(.text+0x2335): undefined reference to `PUSH_ROUNDING'
collect2: ld returned 1 exit status
make[1]: *** [cc1.exe] Error 1
make[1]: Leaving directory `/tmp/build/gcc/gcc'
make: *** [all-gcc] Error 2
make: Leaving directory `/tmp/build/gcc'
=== Lewin A.R.W. Edwards (Embedded Engineer)
Work: http://www.digi-frame.com/
Personal: http://www.zws.com/ and http://www.larwe.com/
"Und setzet ihr nicht das Leben ein,
Nie wird euch das Leben gewonnen sein."
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Building current CVS for ARM under cygwin
2001-03-21 20:50 ` Lewin A.R.W. Edwards
@ 2001-03-21 21:19 ` Alexandre Oliva
2001-03-22 3:56 ` Lewin A.R.W. Edwards
0 siblings, 1 reply; 7+ messages in thread
From: Alexandre Oliva @ 2001-03-21 21:19 UTC (permalink / raw)
To: Lewin A.R.W. Edwards; +Cc: gcc-help
On Mar 22, 2001, "Lewin A.R.W. Edwards" <larwe@larwe.com> wrote:
> libbackend.a(recog.o)(.text+0x231b): undefined reference to `PUSH_ROUNDING'
> libbackend.a(recog.o)(.text+0x2335): undefined reference to `PUSH_ROUNDING'
I believe a CVS update will fix this.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Building current CVS for ARM under cygwin
2001-03-21 21:19 ` Alexandre Oliva
@ 2001-03-22 3:56 ` Lewin A.R.W. Edwards
0 siblings, 0 replies; 7+ messages in thread
From: Lewin A.R.W. Edwards @ 2001-03-22 3:56 UTC (permalink / raw)
To: Alexandre Oliva; +Cc: gcc-help
> > libbackend.a(recog.o)(.text+0x231b): undefined reference to `PUSH_ROUNDING'
> > libbackend.a(recog.o)(.text+0x2335): undefined reference to `PUSH_ROUNDING'
>
>I believe a CVS update will fix this.
I got this error with yesterday's CVS.
=== Lewin A.R.W. Edwards (Embedded Engineer)
Work: http://www.digi-frame.com/
Personal: http://www.zws.com/ and http://www.larwe.com/
"Und setzet ihr nicht das Leben ein,
Nie wird euch das Leben gewonnen sein."
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Building current CVS for ARM under cygwin
2001-03-22 5:17 David Korn
@ 2001-03-22 5:30 ` Lewin A.R.W. Edwards
0 siblings, 0 replies; 7+ messages in thread
From: Lewin A.R.W. Edwards @ 2001-03-22 5:30 UTC (permalink / raw)
To: David Korn, Alexandre Oliva; +Cc: gcc-help
> >> > libbackend.a(recog.o)(.text+0x231b): undefined reference
> >to `PUSH_ROUNDING'
> >
> >I got this error with yesterday's CVS.
>
> It was a bugged checkin that was quickly fixed: see
As my colleagues would say, "Booty!" (Hence the name of the bootstrap
module in all our shipping products - BOOTY ;)
Thanks, I'm going to go update my sources now.
=== Lewin A.R.W. Edwards (Embedded Engineer)
Work: http://www.digi-frame.com/
Personal: http://www.zws.com/ and http://www.larwe.com/
"Und setzet ihr nicht das Leben ein,
Nie wird euch das Leben gewonnen sein."
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Building current CVS for ARM under cygwin
@ 2001-03-22 5:17 David Korn
2001-03-22 5:30 ` Lewin A.R.W. Edwards
0 siblings, 1 reply; 7+ messages in thread
From: David Korn @ 2001-03-22 5:17 UTC (permalink / raw)
To: 'Lewin A.R.W. Edwards', Alexandre Oliva; +Cc: gcc-help
>> > libbackend.a(recog.o)(.text+0x231b): undefined reference
>to `PUSH_ROUNDING'
>> > libbackend.a(recog.o)(.text+0x2335): undefined reference
>to `PUSH_ROUNDING'
>>
>>I believe a CVS update will fix this.
>
>I got this error with yesterday's CVS.
It was a bugged checkin that was quickly fixed: see
http://gcc.gnu.org/ml/gcc-patches/2001-03/msg01550.html
and the related thread.
DaveK
--
All your base are belong to us!
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2001-03-22 5:30 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-21 9:53 Building current CVS for ARM under cygwin Lewin A.R.W. Edwards
2001-03-21 20:46 ` Alexandre Oliva
2001-03-21 20:50 ` Lewin A.R.W. Edwards
2001-03-21 21:19 ` Alexandre Oliva
2001-03-22 3:56 ` Lewin A.R.W. Edwards
2001-03-22 5:17 David Korn
2001-03-22 5:30 ` Lewin A.R.W. Edwards
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).