This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Building Ada in 3.3 on Solaris 9/SPARC with Sun CC
- From: Laurent GUERBY <guerby at acm dot org>
- To: Albert Chin-A-Young <china at thewrittenword dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 23 May 2003 22:14:24 +0200
- Subject: Re: Building Ada in 3.3 on Solaris 9/SPARC with Sun CC
- Organization:
- References: <20030523194557.GA49145@spuckler.il.thewrittenword.com>
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 "<<"