Build Ada compiler for nios2?

Sebastian Huber sebastian.huber@embedded-brains.de
Thu Jan 4 14:08:00 GMT 2018


Hello,

I tried to build an Ada compiler for nios2-rtems5 and ended up with this:

/run/user/10351/b-gcc-nios2/./gcc/xgcc 
-B/run/user/10351/b-gcc-nios2/./gcc/ -nostdinc 
-B/run/user/10351/b-gcc-nios2/nios2-rtems5/newlib/ -isystem 
/run/user/10351/b-gcc-nios2/nios2-rtems5/newlib/targ-include -isystem 
/home/sh/src/gcc/newlib/libc/include 
-B/home/sh/install/nios2-rtems5/bin/ 
-B/home/sh/install/nios2-rtems5/lib/ -isystem 
/home/sh/install/nios2-rtems5/include -isystem 
/home/sh/install/nios2-rtems5/sys-include    -c 
-DCROSS_DIRECTORY_STRUCTURE -DIN_GCC  -W -Wall -g -O2 -g -O2 
-fexceptions -DIN_RTS -DHAVE_GETIPINFO    \
         -iquote /home/sh/src/gcc/gcc \
          -iquote . -iquote .. -iquote ../.. -iquote 
/home/sh/src/gcc/gcc/ada -iquote /home/sh/src/gcc/gcc 
-I/home/sh/src/gcc/include  \
         targext.c -o targext.o
In file included from ../../tm.h:19,
                  from targext.c:46:
/home/sh/src/gcc/gcc/config/nios2/nios2.h:436:31: error: expected '=', 
',', ';', 'asm' or '__attribute__' before 'nios2_section_threshold'
  extern unsigned HOST_WIDE_INT nios2_section_threshold;

This HOST_WIDE_INT is defined in gcc/hwint.h. Who is supposed to include 
this file? Is this done via an #include or via a tm_file (gcc/config.gcc)?

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the Gcc mailing list