This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Building Ada in 3.1.1 when CC!=gcc
- From: Albert Chin <gcc at lists dot thewrittenword dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 31 Jul 2002 12:15:33 -0500
- Subject: Building Ada in 3.1.1 when CC!=gcc
- Reply-to: gcc at gcc dot gnu dot org
I take it CC must be gcc when building Ada in 3.1.1:
$ mkdir objdir
$ cd objdir
$ ADAC=/opt/build/gnat/bin/gcc GNATBIND=/opt/build/gnat/bin/gnatbind \
CC=cc ../configure --with-gnu-as --enable-nls \
--with-included-gettext --enable-shared --enable-libgcj \
--enable-threads --enable-languages="ada,c,c++,f77"
...
$ gmake bootstrap
...
cc -c -DIN_GCC `echo -g |sed -e 's/-pedantic//g' -e
's/-Wtraditional//g'` -I- -I. -I.. -I../../../gcc/ada
-I../../../gcc/ada/.. -I../../../gcc/ada/../config
-I../../../gcc/ada/../../include ../../../gcc/ada/targtyps.c
"../../../gcc/ada/types.h", line 86: syntax error before or at: (
"../../../gcc/ada/types.h", line 86: warning: "typedef" valid only for
function declaration
"../../../gcc/ada/types.h", line 86: cannot recover from previous errors
cc: acomp failed for ../../../gcc/ada/targtyps.c
gmake[3]: *** [targtyps.o] Error 2
Line 85ff in gcc/ada/types.h is:
typedef struct {const char *Array; String_Template *Bounds; }
__attribute ((aligned (sizeof (char *) * 2))) Fat_Pointer;
Solaris cc of course knows nothing about __attribute().
--
albert chin (china@thewrittenword.com)