This is the mail archive of the
mailing list for the GCC project.
Re: gcc-20010115/hppa2.0w-hp-hpux11.00 bootstrap fails
- To: fjh at cs dot mu dot oz dot au (Fergus Henderson)
- Subject: Re: gcc-20010115/hppa2.0w-hp-hpux11.00 bootstrap fails
- From: Joe Buck <jbuck at racerx dot synopsys dot com>
- Date: Wed, 17 Jan 2001 12:03:19 -0800 (PST)
- Cc: kfleisc1 at ford dot com ("Fleischer, Karsten (K.)"), gcc at gcc dot gnu dot org ('gcc at gcc dot gnu dot org')
> > ../../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
> around the contents of pa.h may avoid the problem.
No, that doesn't suffice; if you include-guard all the headers you get
a link failure in the first "genxxx" program (genrecog? I don't remember)
because of duplicated symbols.