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]

19980508 won't build on my alpha-linux-gnu system


The problem seems to be simply that SUB_CPP_PREDEFINES isn't defined
in gcc/config/alpha/elf.h, whereas it is in the linux-ecoff.h and
linux-elf.h files in that directory.  The result is that cccp.c
can't be compiled, because it has:

static char *predefs = CPP_PREDEFINES;

And, linux.h has this:

#define CPP_PREDEFINES "\
-D__alpha -D__alpha__ -D__linux__ -D__linux -D_LONGLONG -Dlinux -Dunix \
-Asystem(linux) -Acpu(alpha) -Amachine(alpha) " SUB_CPP_PREDEFINES

The result is:

  -c `echo ../../egcs-19980508/gcc/cccp.c | sed 's,^\./,,'`
../../egcs-19980508/gcc/cccp.c:705: parse error before `SUB_CPP_PREDEFINES'
make[2]: *** [cccp.o] Error 1

(My Alpha is fairly vanilla RedHat 5.0.  Any simple advice about
how to fix this would be appreciated; I'd rather not experiment
right now, as I'm trying to catch up on other work.  Presumably
configuring as alpha-linux-gnulibc1 would work, instead of
just letting configure guess what kind of system I have?  Note
that gcc-2.8.1 fails to guess correctly; specifying "alpha-linux"
to its configure works around the problem.)

        tq vm, (burley)


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