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]

Re: gcc-20010115/hppa2.0w-hp-hpux11.00 bootstrap fails


On 17-Jan-2001, Fleischer, Karsten (K.) <kfleisc1@ford.com> wrote:
> 
> I tried to bootstrap the 20010115 snapshot on HP-UX 11.00.
> It fails with the following output:
> 
> stage1/xgcc -Bstage1/ -B/usr/local/hppa2.0w-hp-hpux11.00/bin/ -c  -DIN_GCC
> -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FILE
> -I. -I. -I../../gcc-20010115/gcc -I../../gcc-20010115/gcc/.
> -I../../gcc-20010115/gcc/config -I../../gcc-20010115/gcc/../include
> ../../gcc-20010115/gcc/gencodes.c
> In file included from tm.h:7,
>                  from ../../gcc-20010115/gcc/config/pa/xm-pahpux.h:47,
>                  from config.h:7,
>                  from genrtl.h:3,
>                  from ../../gcc-20010115/gcc/rtl.h:1538,
>                  from ../../gcc-20010115/gcc/gencodes.c:27:
> ../../gcc-20010115/gcc/config/pa/pa.h:26: redeclaration of `enum cmp_type'
> ../../gcc-20010115/gcc/config/pa/pa.h:27: conflicting types for `CMP_SI'
> ../../gcc-20010115/gcc/config/pa/pa.h:27: previous declaration of `CMP_SI'
> ../../gcc-20010115/gcc/config/pa/pa.h:28: conflicting types for `CMP_SF'

It looks like the problem here is that this header file is being
included twice.

To find out where it is being included from the other time,
try compiling with `-Wp,-H' in CFLAGS.

Probably wrapping a header guard

	#ifndef PA_H_INCLUDED
	#define PA_H_INCLUDED
	...
	#endif

around the contents of pa.h may avoid the problem.

Hope this helps,
	Fergus.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.

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