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]

Cross compiler for mcore


Hello,

I'm looking for help in building a cross compiler for mcore under
cygwin-1.1.4 . I'm a subscriber of cross-gcc mailing list, but I cannot
find a solution or help there. So, maybe someone can help me here...

I receive the announce of the GCC port to M*Core in February. Then in
the current mounth I need a cross compiler for M*Core and I download
different gcc snapshots in a way to build the cross compiler for the
target mcore-elf. I think gcc-20000221 snapshot is the best way to do
this, but I tried with other snapshots too. In all cases it was
impossible to build a working compiler with libraries.

I'm using binutils-2.10 and newlib-1.8.2 headers in the task.

As an example of the problem, when I try to compile gcc-20000221 for a
target mcore-elf I get the following failure in the end of the process,
when building libstdc++ (file stdexcepti.cc) :

make[2]: Leaving directory `/tmp/build-mcore/gcc/mcore-elf/libio'
test x"no" != xyes || \
  /tmp/build-mcore/gcc/gcc/g++ -B/tmp/build-mcore/gcc/gcc/
-B/mcoretools/mcore-elf/bin/ -c -g -O2 -fno-implicit-templates
-I/src/gcc-snap/egcs-20000221/libstdc++
-I/src/gcc-snap/egcs-20000221/libstdc++/stl -I../libio
-I/src/gcc-snap/egcs-20000221/libstdc++/../libio -nostdinc++
/src/gcc-snap/egcs-20000221/libstdc++/stdexcepti.cc -o pic/stdexcepti.o
/tmp/build-mcore/gcc/gcc/g++ -B/tmp/build-mcore/gcc/gcc/
-B/mcoretools/mcore-elf/bin/ -c -g -O2 -fno-implicit-templates
-I/src/gcc-snap/egcs-20000221/libstdc++
-I/src/gcc-snap/egcs-20000221/libstdc++/stl -I../libio
-I/src/gcc-snap/egcs-20000221/libstdc++/../libio -nostdinc++
/src/gcc-snap/egcs-20000221/libstdc++/stdexcepti.cc
/src/gcc-snap/egcs-20000221/libstdc++/stdexcepti.cc: In function `void
__out_of_range (const char *)':
/src/gcc-snap/egcs-20000221/libstdc++/stdexcepti.cc:15: exception
handling disabled, use -fexceptions
/src/gcc-snap/egcs-20000221/libstdc++/stdexcepti.cc:15: to enable
make[1]: *** [stdexcepti.o] Error 1
make[1]: Leaving directory `/tmp/build-mcore/gcc/mcore-elf/libstdc++'
make: *** [all-target-libstdc++] Error 2
make: Leaving directory `/tmp/build-mcore/gcc'

Of course I tried to use the option "-fexceptions" in the compilation
process of this file, but in this case I get the message "invalid
option" as a mcore-elf-g++ response.


Is it possible to someone to give me help in this question?

Thanks in advance,

Joćo Cadamuro Junior
LIT / CPDTT / CEFET-PR


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