avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] avr-g++


From: Torsten Mohr
Subject: [avr-gcc-list] avr-g++
Date: Sat, 18 May 2002 12:33:18 +0200

Hi everybody,

i have some questions regarding avr-g++, it would be great
if somebody would take the time to give me some help.


It seems that g++ needs some more "support functions"
than normal C.  I think C++ needs at least a "malloc"
additionally to normal C, but couldn't think of any more
things that are necessary.

Can anybody give me some examples what else is needed by C++?


It doesn't seem to be so easy to generate a working g++.
Why can't these other needed functions be written in a
portable way and distributed along with gcc or newlib?


Is there a general way to enable what is needed or describe
what needs to be done or ported to for example generate a
powerpc-unknown-elf-g++ (I also have an evaluation board for
this one)?


I found some patches to generate an avr-g++, they also let
compile a test program, but that one doesn't link, there
are always some parts missing.


It would be great if anybody could give me a hint about what
is required to generate a working g++, what libs are needed,
what is existent, what needs to be written, what is the difference
in requirements between C and C++ and so on.


When i try to compile gcc as an "avr-g++", i compile and install:
binutils
gcc, C only
avr-libc
newlib
gcc again, but this fails:

I tried to compile gcc-3.0.2, 3.0.4 and 3.1 like this:
../gcc-$GVER/configure \
--target=avr \
--prefix=/opt/avr \
--with-newlib \
--disable-nls \
--enable-languages=c,c++,java
make

But it always fails at:
gcc-3.1/libstdc++-v3/src/locale-inst.cc -o locale-inst.o
/tmp/ccQumY8s.s: Assembler messages:
/tmp/ccQumY8s.s:6745: Error: value of 69840 too large for field \
of 2 bytes at 7996
/tmp/ccQumY8s.s:6763: Error: value of 69810 too large for field \
of 2 bytes at 8026
/tmp/ccQumY8s.s:6886: Error: value of 69634 too large for field \
of 2 bytes at 8202
/tmp/ccQumY8s.s:6905: Error: value of 69602 too large for field \
of 2 bytes at 8234
/tmp/ccQumY8s.s:7021: Error: value of 69454 too large for field \
of 2 bytes at 8382
/tmp/ccQumY8s.s:7135: Error: value of 69344 too large for field \
of 2 bytes at 8492
/tmp/ccQumY8s.s:7154: Error: value of 69312 too large for field \
of 2 bytes at 8524
/tmp/ccQumY8s.s:7371: Error: value of 69004 too large for field \
of 2 bytes at 8832
/tmp/ccQumY8s.s:7719: Error: value of 68692 too large for field \
of 2 bytes at 9144
/tmp/ccQumY8s.s:8203: Error: value of 68294 too large for field \
of 2 bytes at 9542
/tmp/ccQumY8s.s:8222: Error: value of 68262 too large for field \
of 2 bytes at 9574
/tmp/ccQumY8s.s:8349: Error: value of 68102 too large for field \
of 2 bytes at 9734
/tmp/ccQumY8s.s:8650: Error: value of 67816 too large for field \
of 2 bytes at 10020
/tmp/ccQumY8s.s:8669: Error: value of 67784 too large for field \
of 2 bytes at 10052
/tmp/ccQumY8s.s:8816: Error: value of 67632 too large for field \
of 2 bytes at 10204
/tmp/ccQumY8s.s:9854: Error: value of 66672 too large for field \
of 2 bytes at 11130
make[3]: *** [locale-inst.lo] Error 1
make[3]: Leaving directory `/rest/tmp/avr-gpp/avr/libstdc++-v3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/rest/tmp/avr-gpp/avr/libstdc++-v3'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/rest/tmp/avr-gpp/avr/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2


Has anybody got some hints for me?


Best regards,
Torsten.
avr-gcc-list at http://avr1.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]