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]

Building Ada in 3.1.1 when CC!=gcc


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)


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