Solved Problems compiling lang/gcc

I'm trying to compile and install KDE from ports, and as part of that, I need to compile GCC. But whenever I attempt to do so, I'm getting the following error messages:
Code:
[...]
c++ -c  -g -DIN_GCC  -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I.././../gcc-4.8.5/gcc -I.././../gcc-4.8.5/gcc/build -I.././../gcc-4.8.5/gcc/../include  -I.././../gcc-4.8.5/gcc/../libcpp/include -DLIBICONV_PLUG \
  -o build/gencheck.o .././../gcc-4.8.5/gcc/gencheck.c
c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
In file included from .././../gcc-4.8.5/gcc/gencheck.c:23:
In file included from ./tm.h:16:
./options.h:4293:3: error: redefinition of enumerator 'OPT_C'
  OPT_C = 129,  /* -C */
  ^
./options.h:4290:3: note: previous definition is here
  OPT_C = 126,  /* -C */
  ^
./options.h:4301:3: error: redefinition of enumerator 'OPT_d'
  OPT_d = 137,  /* -d */
  ^
./options.h:4299:3: note: previous definition is here
  OPT_d = 135,  /* -d */
  ^
./options.h:4302:3: error: redefinition of enumerator 'OPT_D'
  OPT_D = 138,  /* -D */
  ^
./options.h:4300:3: note: previous definition is here
  OPT_D = 136,  /* -D */
  ^
./options.h:4305:3: error: redefinition of enumerator 'OPT_d'
  OPT_d = 141,  /* -d */
  ^
./options.h:4299:3: note: previous definition is here
  OPT_d = 135,  /* -d */
  ^
./options.h:4306:3: error: redefinition of enumerator 'OPT_D'
  OPT_D = 142,  /* -D */
  ^
./options.h:4300:3: note: previous definition is here
  OPT_D = 136,  /* -D */
  ^
./options.h:4307:3: error: redefinition of enumerator 'OPT_d'
  OPT_d = 143,  /* -d */
  ^
./options.h:4299:3: note: previous definition is here
  OPT_d = 135,  /* -d */
  ^
./options.h:4315:3: error: redefinition of enumerator 'OPT_E'
  OPT_E = 151,  /* -E */
  ^
./options.h:4313:3: note: previous definition is here
  OPT_E = 149,  /* -E */
  ^
./options.h:4913:3: error: redefinition of enumerator 'OPT_H'
  OPT_H = 749,  /* -H */
  ^
./options.h:4911:3: note: previous definition is here
  OPT_H = 747,  /* -H */
  ^
./options.h:4916:3: error: redefinition of enumerator 'OPT_I'
  OPT_I = 752,  /* -I */
  ^
./options.h:4914:3: note: previous definition is here
  OPT_I = 750,  /* -I */
  ^
./options.h:4974:3: error: redefinition of enumerator 'OPT_MF'
  OPT_MF = 810,  /* -MF */
  ^
./options.h:4972:3: note: previous definition is here
  OPT_MF = 808,  /* -MF */
  ^
./options.h:4978:3: error: redefinition of enumerator 'OPT_M'
  OPT_M = 814,  /* -M */
  ^
./options.h:4961:3: note: previous definition is here
  OPT_M = 797,  /* -M */
  ^
./options.h:4992:3: error: redefinition of enumerator 'OPT_M'
  OPT_M = 828,  /* -M */
  ^
./options.h:4961:3: note: previous definition is here
  OPT_M = 797,  /* -M */
  ^
./options.h:5001:3: error: redefinition of enumerator 'OPT_MM'
  OPT_MM = 837,  /* -MM */
  ^
./options.h:4998:3: note: previous definition is here
  OPT_MM = 834,  /* -MM */
  ^
./options.h:5016:3: error: redefinition of enumerator 'OPT_MP'
  OPT_MP = 852,  /* -MP */
  ^
./options.h:5011:3: note: previous definition is here
  OPT_MP = 847,  /* -MP */
  ^
./options.h:5072:3: error: redefinition of enumerator 'OPT_o'
  OPT_o = 908,  /* -o */
  ^
./options.h:5069:3: note: previous definition is here
  OPT_o = 905,  /* -o */
  ^
./options.h:5074:3: error: redefinition of enumerator 'OPT_o'
  OPT_o = 910,  /* -o */
  ^
./options.h:5069:3: note: previous definition is here
  OPT_o = 905,  /* -o */
  ^
./options.h:5081:3: error: redefinition of enumerator 'OPT_P'
  OPT_P = 917,  /* -P */
  ^
./options.h:5077:3: note: previous definition is here
  OPT_P = 913,  /* -P */
  ^
./options.h:5179:3: error: redefinition of enumerator 'OPT_U'
  OPT_U = 1015,  /* -U */
  ^
./options.h:5177:3: note: previous definition is here
  OPT_U = 1013,  /* -U */
  ^
./options.h:5183:3: error: redefinition of enumerator 'OPT_v'
  OPT_v = 1019,
fatal error: too many errors emitted, stopping now
This applies to gcc-4.8.5_2.
 
Back
Top