gcc 3.4 - gnatmake has wrong gcc name

Joel Sherrill joel.sherrill@OARcorp.com
Wed Mar 17 15:43:00 GMT 2004


Hi,

I now have managed to build RTEMS toolsets including
Ada for multiple CPU families (arm, i386, m68k,
mips, sparc, and powerpc).  I am focusing more detailed
testing on the sparc right now since I have rewritten
sparc/config/rtemself.h.  The toolset is capable
of compiling RTEMS so it looks OK BUT...

My target is sparc-rtems4.7.  sparc-rtems4.7-gnatmake
is confused about the name of the target gcc.  It is
failing with this:

sparc-gcc -c -O -gnata -gnatE -gnato -g 
-B/opt/gcc-3.4-test/sparc-rtems4.7/erc32/lib -specs bsp_specs -qrtems 
-mcpu=cypress hello.adb
sparc-rtems4: error, unable to locate sparc-gcc

Note that the name of the gcc is wrong and that the name
used in the error message is also wrong.

The sdefault.adb has this:

   S0 : constant String := "/opt/gcc-3.4-test/";
    S1 : constant String := 
"/opt/gcc-3.4-test/lib/gcc/sparc-rtems4.7/3.4.0/adainclude/";
    S2 : constant String := 
"/opt/gcc-3.4-test/lib/gcc/sparc-rtems4.7/3.4.0/adalib/";
    S3 : constant String := "sparc-unknown-rtems4.7/";
    S4 : constant String := 
"/opt/gcc-3.4-test/lib/gcc/sparc-rtems4.7/3.4.0/";

S0, S1, S3, adn S4 are OK.  S3 is the canonical target name so
is probably OK but it must be being parsed somewhere and
getting confused.

Advice and pointers appreciated.

--joel



More information about the Gcc mailing list