[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc
Subject: Building Ada in 3.1.1 when CC!=gcc
From: Albert Chin <gcc () lists ! thewrittenword ! com>
Date: 2002-07-31 17:15:33
[Download RAW message or body]
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)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic