This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Building Ada in 3.3 on Solaris 9/SPARC with Sun CC


I'd suggest building first without Ada, then using the built
compiler (and your gnat) to compile again. You could
also use GNAT as your C compiler to start with instead
of Sun C.

Laurent

On Fri, 2003-05-23 at 21:45, Albert Chin-A-Young wrote:
> I'm bootstrapping GCC 3.3 using Sun's C compiler and GNAT 3.15p on
> Solaris 9/SPARC. During 'make boostrap', I get:
>   $ make bootstrap
>   ...
>   cc -c   -g  -DIN_GCC     -DHAVE_CONFIG_H    -I. -Iada
>   -I/opt/build/gcc-3.3/gcc -I/opt/build/gcc-3.3/gcc/ada
>   -I/opt/build/gcc-3.3/gcc/config -I/opt/build/gcc-3.3/gcc/../include
>   /opt/build/gcc-3.3/gcc/ada/targtyps.c -o ada/targtyps.o
>   "/opt/build/gcc-3.3/gcc/ada/types.h", line 85: syntax error before or at: (
>   "/opt/build/gcc-3.3/gcc/ada/types.h", line 85: warning: "typedef"
>   valid only for function declaration
>   "/opt/build/gcc-3.3/gcc/ada/types.h", line 85: warning: old-style
>   declaration or incorrect type for: Fat_Pointer
>   "/opt/build/gcc-3.3/gcc/ada/atree.h", line 299: cannot recover from
>   previous errors
> 
> The offending code of /opt/build/gcc-3.3/gcc/ada/types.h seems to be:
>   typedef struct {const char *Array; String_Template *Bounds; } 
>           __attribute ((aligned (sizeof (char *) * 2))) Fat_Pointer;
> 
> If I remove __attribute, the compile succeeds but I get the following
> warnings:
>   "/opt/build/gcc-3.3/gcc/ada/namet.h", line 69: warning: integer
>   overflow detected: op "<<"
>   "/opt/build/gcc-3.3/gcc/ada/stringt.h", line 74: warning: integer
>   overflow detected: op "<<"
>   "/opt/build/gcc-3.3/gcc/ada/stringt.h", line 90: warning: integer
>   overflow detected: op "<<"


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