www.delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1999/05/12/06:45:32

X-Envelope-Sender-Is: martin DOT kahlert AT mchp DOT siemens DOT de (at relayer david.siemens.de)
Date: Wed, 12 May 1999 12:38:23 +0200
From: Martin Kahlert <martin DOT kahlert AT mchp DOT siemens DOT de>
Message-Id: <199905121038.MAA29882@keksy.mchp.siemens.de>
To: pgcc AT delorie DOT com
Subject: Strange preprocessor bug?
Reply-To: pgcc AT delorie DOT com

Hi,
a very strange bug from the snapshot (10.May):

rm -f SYSCALLS.c tmp-SYSCALLS.s
cat ../../pgcc/gcc/sys-types.h ../../pgcc/gcc/sys-protos.h > SYSCALLS.c
./xgcc -B./ -B/sw/pgcc/i686-pc-linux-gnulibc1/bin/ -DIN_GCC -DUSE_GNULIBC_1 
    -g -W -Wall -I./include -I. -I../../pgcc/gcc -I../../pgcc/gcc/config 
    -I../../pgcc/gcc/../include \
  -aux-info SYSCALLS.c.X -E -S -o tmp-SYSCALLS.s SYSCALLS.c 
In file included from SYSCALLS.c:86:
include/stddef.h:28: machine/ansi.h: No such file or directory
make: *** [SYSCALLS.c.X] Error 1

O.k. i thought, such things can happen.
But then i changed the lines around 28 from gcc/include/stddef.h from
#if defined (__BSD_NET2__) || defined (____386BSD____) || \
    defined (__FreeBSD__) || defined (__NetBSD__)
#include <machine/ansi.h>
#endif

into 
#if 0
#include <machine/ansi.h>
#endif

And the same problem again! This seems to indicate a cpp 
miscompilation, since the first stage went o.k.

What is my problem here?

Bye,
Martin.

PS: 
My build procedure:
../pgcc/configure --prefix=/sw/pgcc --enable-shared --disable-debug
gmake LANGUAGES='c c++ f77 proto' bootstrap-lean

System is a Linux-PPro/2.0.36 kernel.

--MAA02180.926505396/david.siemens.de--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019