public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Duplicated enums building gcc-4.7.0 on AIX6.1
@ 2012-05-30 17:22 John M Collins
  0 siblings, 0 replies; only message in thread
From: John M Collins @ 2012-05-30 17:22 UTC (permalink / raw)
  To: gcc-help

Please could you send any replies to my email address too as I'm not
subscribed - thanks.

I'm trying to build gcc-4.7.0 on AIX6.1 where there is a version of
gcc-4.6.3 on without all the bits I want such as C++ (and built with a
funny --prefix).

From an empty directory I am doing:

../gcc-4.7.0/configure --prefix=/usr --enable-langauges=c,c++
make bootstrap

(I've tried the configure with --disable-multilibs in case that makes
any difference but it doesn't).

It goes for a while and then I get to:

gcc -c   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common 
-DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.7.0/gcc
-I../../gcc-4.7.0/gcc/build -I../../gcc-4.7.0/gcc/../include
-I../../gcc-4.7.0/gcc/../libcpp/include -I/opt/gnu/buildgcc/./gmp
-I/opt/gnu/gcc-4.7.0/gmp -I/opt/gnu/buildgcc/./mpfr
-I/opt/gnu/gcc-4.7.0/mpfr -I/opt/gnu/gcc-4.7.0/mpc/src 
-I../../gcc-4.7.0/gcc/../libdecnumber
-I../../gcc-4.7.0/gcc/../libdecnumber/dpd -I../libdecnumber    \
    -o build/genflags.o ../../gcc-4.7.0/gcc/genflags.c
In file included from ./tm.h:13:0,
                 from ../../gcc-4.7.0/gcc/genflags.c:27:
./options.h:4019:3: error: redeclaration of enumerator 'OPT_C'
./options.h:4017:3: note: previous definition of 'OPT_C' was here
./options.h:4033:3: error: redeclaration of enumerator 'OPT_d'
./options.h:4031:3: note: previous definition of 'OPT_d' was here
./options.h:4034:3: error: redeclaration of enumerator 'OPT_D'
./options.h:4032:3: note: previous definition of 'OPT_D' was here
./options.h:4041:3: error: redeclaration of enumerator 'OPT_d'
./options.h:4033:3: note: previous definition of 'OPT_d' was here
./options.h:4042:3: error: redeclaration of enumerator 'OPT_D'
./options.h:4034:3: note: previous definition of 'OPT_D' was here
./options.h:4043:3: error: redeclaration of enumerator 'OPT_d'
./options.h:4041:3: note: previous definition of 'OPT_d' was here
./options.h:4060:3: error: redeclaration of enumerator 'OPT_E'
./options.h:4058:3: note: previous definition of 'OPT_E' was here
./options.h:4633:3: error: redeclaration of enumerator 'OPT_H'
./options.h:4629:3: note: previous definition of 'OPT_H' was here
./options.h:4636:3: error: redeclaration of enumerator 'OPT_I'
./options.h:4634:3: note: previous definition of 'OPT_I' was here
./options.h:4707:3: error: redeclaration of enumerator 'OPT_MD'
./options.h:4705:3: note: previous definition of 'OPT_MD' was here
./options.h:4713:3: error: redeclaration of enumerator 'OPT_M'
./options.h:4703:3: note: previous definition of 'OPT_M' was here
./options.h:4722:3: error: redeclaration of enumerator 'OPT_MG'
./options.h:4720:3: note: previous definition of 'OPT_MG' was here
./options.h:4729:3: error: redeclaration of enumerator 'OPT_M'
./options.h:4713:3: note: previous definition of 'OPT_M' was here
./options.h:4736:3: error: redeclaration of enumerator 'OPT_MM'
./options.h:4732:3: note: previous definition of 'OPT_MM' was here
./options.h:4739:3: error: redeclaration of enumerator 'OPT_MM'
./options.h:4736:3: note: previous definition of 'OPT_MM' was here
./options.h:4752:3: error: redeclaration of enumerator 'OPT_MP'
./options.h:4750:3: note: previous definition of 'OPT_MP' was here
./options.h:4814:3: error: redeclaration of enumerator 'OPT_nostdinc'
./options.h:4812:3: note: previous definition of 'OPT_nostdinc' was here
./options.h:4820:3: error: redeclaration of enumerator 'OPT_o'
./options.h:4817:3: note: previous definition of 'OPT_o' was here
./options.h:4840:3: error: redeclaration of enumerator 'OPT_pedantic'
./options.h:4838:3: note: previous definition of 'OPT_pedantic' was here
./options.h:4843:3: error: redeclaration of enumerator 'OPT_pedantic_errors'
./options.h:4841:3: note: previous definition of 'OPT_pedantic_errors'
was here
./options.h:4844:3: error: redeclaration of enumerator 'OPT_P'
./options.h:4836:3: note: previous definition of 'OPT_P' was here
./options.h:4963:3: error: redeclaration of enumerator 'OPT_U'
./options.h:4961:3: note: previous definition of 'OPT_U' was here
./options.h:4974:3: error: redeclaration of enumerator 'OPT_v'
./options.h:4970:3: note: previous definition of 'OPT_v' was here
./options.h:4983:3: error: redeclaration of enumerator 'OPT_Wall'
./options.h:4981:3: note: previous definition of 'OPT_Wall' was here
./options.h:5007:3: error: redeclaration of enumerator 'OPT_w'
./options.h:5003:3: note: previous definition of 'OPT_w' was here
./options.h:5012:3: error: redeclaration of enumerator 'OPT_Wconversion'
./options.h:5010:3: note: previous definition of 'OPT_Wconversion' was here
./options.h:5022:3: error: redeclaration of enumerator 'OPT_Wdeprecated'
./options.h:5020:3: note: previous definition of 'OPT_Wdeprecated' was here
./options.h:5036:3: error: redeclaration of enumerator 'OPT_Werror'
./options.h:5034:3: note: previous definition of 'OPT_Werror' was here
./options.h:5199:3: error: redeclaration of enumerator 'OPT_Wunused'
./options.h:5195:3: note: previous definition of 'OPT_Wunused' was here

I've looked at gcc/options.h and indeed there are duplicated enums in there.

Is there any way I can move this one on?

Thanks for any help you can give.

-- 
John Collins
jmc@xisl.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-30 17:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-30 17:22 Duplicated enums building gcc-4.7.0 on AIX6.1 John M Collins

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).