This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Still problems with latest CVS for arm-elf (cygwin)


I'm working with the latest (this morning) CVS and it has fixed the link 
error to PUSH_ROUNDING. However even after considerable massaging, I have 
hit a compile problem I just can't solve.

(Note that the line numbers in longlong.h mentioned below don't exist).

I'd love some more help on this...

The text below assumes you have your gcc sources in /src/gcc/gcc-xxxxxxxx 
and your temp build directory is /tmp/build/gcc.

Strip CRs from /src/gcc/gcc-xxxxxxxx/gcc/config/arm/arm.md
Build according to instructions. You'll eventually get to about 10,000 
lines of errors. Strip CRs from /tmp/build/gcc/gcc/tconfig.h and edit that 
file:
add to the top:
#ifndef LARWE_TCONFIG_H
#define LARWE_TCONFIG_H
add to the bottom:
#endif
Strip CRs from the file /src/gcc/gcc-xxxxxxxx/gcc/config/arm/elf.h, edit 
the file and add to the top:
#ifndef LARWE_ARM_ELF_H
#define LARWE_ARM_ELF_H
add to the bottom:
#endif
Strip CRs from the file /src/gcc/gcc-xxxxxxxx/gcc/config/arm/unknown-elf.h, 
edit the file and add to the top:
#ifndef LARWE_UNKNOWN_ELF_H
#define LARWE_UNKNOWN_ELF_H
add to the bottom:
#endif
Strip CRs from the file /src/gcc/gcc-xxxxxxxx/gcc/longlong.h, edit the file 
and add a blank line to the end.

Now you wind up with these errors:

ake[2]: Entering directory `/tmp/build/gcc/gcc/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/build/gcc/gcc/po'
if [ -f specs.ready ] ; then \
	true; \
else \
	touch specs.ready; \
fi
make GCC_FOR_TARGET="/tmp/build/gcc/gcc/xgcc -B/tmp/build/gcc/gcc/ 
-nostdinc -B/tmp/build/gcc/arm-elf/newlib/ -isystem 
/tmp/build/gcc/arm-elf/newlib/targ-include -isystem 
/digiframe/gccdl/gcc/newlib/libc/include 
-B/tools/H-i686-pc-cygwin/arm-elf/bin/ 
-B/tools/H-i686-pc-cygwin/arm-elf/lib/ -isystem 
/tools/H-i686-pc-cygwin/arm-elf/include" \
   HOST_PREFIX="" HOST_PREFIX_1="loser-" \
   AR_FOR_TARGET="arm-elf-ar" \
   AR_CREATE_FOR_TARGET="arm-elf-ar  rc" \
   AR_FLAGS_FOR_TARGET="" \
   OLDCC="cc" CCLIBFLAGS="-O" \
   CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long" \
   RANLIB_FOR_TARGET="arm-elf-ranlib" \
   RANLIB_TEST_FOR_TARGET="[ -f arm-elf-ranlib ] || ( [ "i686-pc-cygwin" = 
"arm-unknown-elf" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )" \
   NM_FOR_TARGET="arm-elf-nm" AWK="gawk" \
   LIBGCC2_CFLAGS="-O2  -DCROSS_COMPILE -DIN_GCC    -W -Wall 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem 
./include  -Dinhibit_libc -fno-inline -g1  -DIN_LIBGCC2 
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc" \
   INCLUDES="-I. -I. -I/digiframe/gccdl/gcc/gcc 
-I/digiframe/gccdl/gcc/gcc/. -I/digiframe/gccdl/gcc/gcc/config 
-I/digiframe/gccdl/gcc/gcc/../include" MAYBE_USE_COLLECT2="" \
   CONFIG_H="config.h auto-host.h gansidecl.h 
/digiframe/gccdl/gcc/gcc/config/i386/xm-cygwin.h 
/digiframe/gccdl/gcc/gcc/config/arm/unknown-elf.h defaults.h insn-codes.h" 
MACHMODE_H="machmode.h machmode.def" \
   LIB1ASMSRC='arm/lib1funcs.asm' \
   MAKEOVERRIDES= \
   -f libgcc.mk all
make[2]: Entering directory `/tmp/build/gcc/gcc'
for d in libgcc thumb libgcc/thumb; do \
   if [ -d $d ]; then true; else mkdir $d; fi \
done
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/tmp/build/gcc/gcc/xgcc -B/tmp/build/gcc/gcc/ -nostdinc 
-B/tmp/build/gcc/arm-elf/newlib/ -isystem 
/tmp/build/gcc/arm-elf/newlib/targ-include -isystem 
/digiframe/gccdl/gcc/newlib/libc/include 
-B/tools/H-i686-pc-cygwin/arm-elf/bin/ 
-B/tools/H-i686-pc-cygwin/arm-elf/lib/ -isystem 
/tools/H-i686-pc-cygwin/arm-elf/include -O2  -DCROSS_COMPILE -DIN_GCC    -W 
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem 
./include  -Dinhibit_libc -fno-inline -g1  -DIN_LIBGCC2 
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I/digiframe/gccdl/gcc/gcc 
-I/digiframe/gccdl/gcc/gcc/. -I/digiframe/gccdl/gcc/gcc/config 
-I/digiframe/gccdl/gcc/gcc/../include  -DL_muldi3 -c 
/digiframe/gccdl/gcc/gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from /digiframe/gccdl/gcc/gcc/libgcc2.h:320,
                  from /digiframe/gccdl/gcc/gcc/config/arm/elf.h:46,
                  from /digiframe/gccdl/gcc/gcc/config/arm/unknown-elf.h:205,
                  from tconfig.h:3,
                  from /digiframe/gccdl/gcc/gcc/libgcc2.c:36:
/digiframe/gccdl/gcc/gcc/longlong.h: In function `__mulhi3':
/digiframe/gccdl/gcc/gcc/longlong.h:362: warning: implicit declaration of 
function `__umulsidi3'
In file included from /digiframe/gccdl/gcc/gcc/libgcc2.h:320,
                  from /digiframe/gccdl/gcc/gcc/config/arm/elf.h:46,
                  from /digiframe/gccdl/gcc/gcc/config/arm/unknown-elf.h:205,
                  from tconfig.h:3,
                  from /digiframe/gccdl/gcc/gcc/libgcc2.c:36:
/digiframe/gccdl/gcc/gcc/longlong.h:2236:5: warning: no newline at end of file
/digiframe/gccdl/gcc/gcc/longlong.h:1511:1: unterminated #ifndef
/digiframe/gccdl/gcc/gcc/longlong.h:1508:1: unterminated #else
/digiframe/gccdl/gcc/gcc/longlong.h:1488:1: unterminated #ifdef
In file included from /digiframe/gccdl/gcc/gcc/config/arm/unknown-elf.h:205,
                  from tconfig.h:3,
                  from /digiframe/gccdl/gcc/gcc/libgcc2.c:36:
/digiframe/gccdl/gcc/gcc/config/arm/elf.h: At top level:
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:354: parse error before "__mulhi3"
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:354: parse error before "u"
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:355: warning: return type 
defaults to `int'
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:355: conflicting types for `__mulhi3'
/digiframe/gccdl/gcc/gcc/longlong.h:355: previous declaration of `__mulhi3'
/digiframe/gccdl/gcc/gcc/config/arm/elf.h: In function `__mulhi3':
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:359: `u' undeclared (first use in 
this function)
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:359: (Each undeclared identifier 
is reported only once
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:359: for each function it appears 
in.)
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:360: `v' undeclared (first use in 
this function)
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:360: warning: left-hand operand 
of comma expression has no effect
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:363: `UWtype' undeclared (first 
use in this function)
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:363: parse error before "uu"
In file included from /digiframe/gccdl/gcc/gcc/config/arm/unknown-elf.h:205,
                  from tconfig.h:3,
                  from /digiframe/gccdl/gcc/gcc/libgcc2.c:36:
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:742:34: warning: no newline at 
end of file
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:724:1: unterminated #ifdef
/digiframe/gccdl/gcc/gcc/libgcc2.c: At top level:
/digiframe/gccdl/gcc/gcc/libgcc2.c:354: parse error before "__mulhi3"
/digiframe/gccdl/gcc/gcc/libgcc2.c:354: parse error before "u"
/digiframe/gccdl/gcc/gcc/libgcc2.c:355: warning: return type defaults to `int'
/digiframe/gccdl/gcc/gcc/libgcc2.c:355: warning: function declaration isn't 
a prototype
/digiframe/gccdl/gcc/gcc/libgcc2.c:355: redefinition of `__mulhi3'
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:355: `__mulhi3' previously 
defined here
/digiframe/gccdl/gcc/gcc/libgcc2.c: In function `__mulhi3':
/digiframe/gccdl/gcc/gcc/libgcc2.c:360: warning: left-hand operand of comma 
expression has no effect
/digiframe/gccdl/gcc/gcc/libgcc2.c:363: parse error before "uu"
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory `/tmp/build/gcc/gcc'
make[1]: *** [stmp-multilib] Error 2
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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]