* Building Ada in 3.1.1 when CC!=gcc
@ 2002-07-31 13:11 Albert Chin
[not found] ` <200207312026.02075.guifo@wanadoo.fr>
0 siblings, 1 reply; 2+ messages in thread
From: Albert Chin @ 2002-07-31 13:11 UTC (permalink / raw)
To: 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)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Building Ada in 3.1.1 when CC!=gcc
[not found] ` <20020731140856.A49896@oolong.il.thewrittenword.com>
@ 2002-08-01 11:42 ` Guillaume Foliard
0 siblings, 0 replies; 2+ messages in thread
From: Guillaume Foliard @ 2002-08-01 11:42 UTC (permalink / raw)
To: gcc
Hi,
> I was under the impression that ADAC would be used to bootstrap the
> Ada compiler and CC for everything else. Oh well, I'll try to find the
> thread you mentioned.
Here is the first message of it
http://gcc.gnu.org/ml/gcc/2002-03/msg00326.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-08-01 18:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-31 13:11 Building Ada in 3.1.1 when CC!=gcc Albert Chin
[not found] ` <200207312026.02075.guifo@wanadoo.fr>
[not found] ` <20020731140856.A49896@oolong.il.thewrittenword.com>
2002-08-01 11:42 ` Guillaume Foliard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).