cygwin, gcc and mips-elf target

Mile Davidovic Mile.Davidovic@micronasnit.com
Wed Nov 13 06:52:00 GMT 2002


Hi

I have a nightmare to build gcc-20020930 on cygwin for mips-elf target. 

I successfully build binutils with this options:
../binutils-020924/configure --host=i686-pc-cygwin --prefix=/mips
--target=mips-elf 

Then I try to build gcc with next options:
../gcc-20020930/configure --prefix=/mips --target=mips-elf --nfp
--with-gnu-as --with-gnu-ld --with-newlib --enable-languages=c
--with-included-gettext --enable-threads --enable-shared 

Unfortunately make failed with next error messages and what I did wrong?
Any hint? 

make[1]: Entering directory `/src/g_objd/libiberty'
make[2]: Entering directory `/src/g_objd/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/src/g_objd/libiberty/testsuite'
make[1]: Leaving directory `/src/g_objd/libiberty'
make[1]: Entering directory `/src/g_objd/gcc'
(cd intl && make all)
make[2]: Entering directory `/src/g_objd/gcc/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/src/g_objd/gcc/intl'
echo '/*WARNING: This file is automatically generated!*/' >tmp-c-parse.y
sed -e "/^ifobjc$/,/^end ifobjc$/d" \
  -e "/^ifc$/d" -e "/^end ifc$/d" \
  ../../gcc-20020930/gcc/c-parse.in >>tmp-c-parse.y
/bin/sh ../../gcc-20020930/gcc/move-if-change tmp-c-parse.y
../../gcc-20020930/gcc/c-parse.y ../../gcc-20020930/gcc/c-parse.y is
unchanged make GCC_FOR_TARGET="/src/g_objd/gcc/xgcc -B/src/g_objd/gcc/
-B/lexra/mips-lexra-elf/bin/ -B/lexra/mips-lexra-elf/lib/ -isystem
/lexra/mips-lexra-elf/include" \
  BUILD_PREFIX="" BUILD_PREFIX_1="loser-" \
  AR_FOR_TARGET="mips-lexra-elf-ar" \
  AR_CREATE_FOR_TARGET="mips-lexra-elf-ar  rc" \
  AR_FLAGS_FOR_TARGET="" \
  CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -fno-common"
\
  RANLIB_FOR_TARGET="mips-lexra-elf-ranlib" \
  RANLIB_TEST_FOR_TARGET="[ -f mips-lexra-elf-ranlib ] || ( [
"i686-pc-cygwin" = "mips-lexra-elf" ] && [ -f /usr/bin/ranlib -o -f
/bin/ranlib ] )" \
  NM_FOR_TARGET="/lexra/mips-lexra-elf/bin/nm.exe" AWK="gawk" \
  LIBGCC2_CFLAGS="-O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include  -G 0 -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-Dinhibit_libc" \
  INCLUDES="-I. -I. -I../../gcc-20020930/gcc -I../../gcc-20020930/gcc/.
-I../../gcc-20020930/gcc/config -I../../gcc-20020930/gcc/../include" \
  CONFIG_H="config.h auto-host.h
../../gcc-20020930/gcc/../include/ansidecl.h
../../gcc-20020930/gcc/config/i386/xm-cygwin.h
../../gcc-20020930/gcc/config/mips/mips.h
../../gcc-20020930/gcc/config/mips/elf.h
../../gcc-20020930/gcc/config/tm-dwarf2.h
../../gcc-20020930/gcc/defaults.h ../../gcc-20020930/gcc/defaults.h
insn-constants.h insn-flags.h" MACHMODE_H="machmode.h machmode.def " \
  LIB1ASMSRC='mips/mips16.S' \
  MAKEOVERRIDES= \
  -f libgcc.mk all
make[2]: Entering directory `/src/g_objd/gcc'
for d in libgcc soft-float libgcc/soft-float el libgcc/el soft-float/el
libgcc/soft-float/el; do \
  if [ -d $d ]; then true; else /bin/sh
../../gcc-20020930/gcc/mkinstalldirs $d; fi; \ done if [ -f stmp-dirs ];
then true; else touch stmp-dirs; fi
/src/g_objd/gcc/xgcc -B/src/g_objd/gcc/ -B/lexra/mips-lexra-elf/bin/
-B/lexra/mips-lexra-elf/lib/ -isystem /lexra/mips-lexra-elf/include -O2
-DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -isystem ./include  -G 0 -g  -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc-20020930/gcc
-I../../gcc-20020930/gcc/. -I../../gcc-20020930/gcc/config
-I../../gcc-20020930/gcc/../include  -DL_muldi3 -c
../../gcc-20020930/gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from tconfig.h:23,
                 from ../../gcc-20020930/gcc/libgcc2.c:36:
../../gcc-20020930/gcc/defaults.h:39: error: redeclaration of `enum
cmp_type'
../../gcc-20020930/gcc/defaults.h:40: error: conflicting types for
`CMP_SI'
../../gcc-20020930/gcc/config/mips/mips.h:40: error: previous
declaration of `CMP_SI'
../../gcc-20020930/gcc/defaults.h:41: error: conflicting types for
`CMP_DI'
../../gcc-20020930/gcc/config/mips/mips.h:41: error: previous
declaration of `CMP_DI'
../../gcc-20020930/gcc/defaults.h:42: error: conflicting types for
`CMP_SF'
../../gcc-20020930/gcc/config/mips/mips.h:42: error: previous
declaration of `CMP_SF'
../../gcc-20020930/gcc/defaults.h:43: error: conflicting types for
`CMP_DF'
../../gcc-20020930/gcc/config/mips/mips.h:43: error: previous
declaration of `CMP_DF'
../../gcc-20020930/gcc/defaults.h:45: error: conflicting types for
`CMP_MAX'
../../gcc-20020930/gcc/config/mips/mips.h:45: error: previous
declaration of `CMP_MAX'
../../gcc-20020930/gcc/defaults.h:50: error: redeclaration of `enum
delay_type'
../../gcc-20020930/gcc/defaults.h:51: error: conflicting types for
`DELAY_NONE'
../../gcc-20020930/gcc/config/mips/mips.h:51: error: previous
declaration of `DELAY_NONE'
../../gcc-20020930/gcc/defaults.h:52: error: conflicting types for
`DELAY_LOAD'
../../gcc-20020930/gcc/config/mips/mips.h:52: error: previous
declaration of `DELAY_LOAD'
../../gcc-20020930/gcc/defaults.h:53: error: conflicting types for
`DELAY_HILO'
../../gcc-20020930/gcc/config/mips/mips.h:53: error: previous
declaration of `DELAY_HILO'
../../gcc-20020930/gcc/defaults.h:55: error: conflicting types for
`DELAY_FCMP'
../../gcc-20020930/gcc/config/mips/mips.h:55: error: previous
declaration of `DELAY_FCMP'
../../gcc-20020930/gcc/defaults.h:62: error: redeclaration of `enum
processor_type'
../../gcc-20020930/gcc/defaults.h:63: error: conflicting types for
`PROCESSOR_DEFAULT'
../../gcc-20020930/gcc/config/mips/mips.h:63: error: previous
declaration of `PROCESSOR_DEFAULT'
../../gcc-20020930/gcc/defaults.h:64: error: conflicting types for
`PROCESSOR_R3000'
../../gcc-20020930/gcc/config/mips/mips.h:64: error: previous
declaration of `PROCESSOR_R3000'
../../gcc-20020930/gcc/defaults.h:65: error: conflicting types for
`PROCESSOR_R3900'
../../gcc-20020930/gcc/config/mips/mips.h:65: error: previous
declaration of `PROCESSOR_R3900'
../../gcc-20020930/gcc/defaults.h:66: error: conflicting types for
`PROCESSOR_R6000'
../../gcc-20020930/gcc/config/mips/mips.h:66: error: previous
declaration of `PROCESSOR_R6000'
../../gcc-20020930/gcc/defaults.h:67: error: conflicting types for
`PROCESSOR_R4000'
../../gcc-20020930/gcc/config/mips/mips.h:67: error: previous
declaration of `PROCESSOR_R4000'
../../gcc-20020930/gcc/defaults.h:68: error: conflicting types for
`PROCESSOR_R4100'
../../gcc-20020930/gcc/config/mips/mips.h:68: error: previous
declaration of `PROCESSOR_R4100'
../../gcc-20020930/gcc/defaults.h:69: error: conflicting types for
`PROCESSOR_R4111'
../../gcc-20020930/gcc/config/mips/mips.h:69: error: previous
declaration of `PROCESSOR_R4111'
../../gcc-20020930/gcc/defaults.h:70: error: conflicting types for
`PROCESSOR_R4121'
../../gcc-20020930/gcc/config/mips/mips.h:70: error: previous
declaration of `PROCESSOR_R4121'
../../gcc-20020930/gcc/defaults.h:71: error: conflicting types for
`PROCESSOR_R4300'
../../gcc-20020930/gcc/config/mips/mips.h:71: error: previous
declaration of `PROCESSOR_R4300'
../../gcc-20020930/gcc/defaults.h:72: error: conflicting types for
`PROCESSOR_R4320'
../../gcc-20020930/gcc/config/mips/mips.h:72: error: previous
declaration of `PROCESSOR_R4320'
../../gcc-20020930/gcc/defaults.h:73: error: conflicting types for
`PROCESSOR_R4600'
../../gcc-20020930/gcc/config/mips/mips.h:73: error: previous
declaration of `PROCESSOR_R4600'
../../gcc-20020930/gcc/defaults.h:74: error: conflicting types for
`PROCESSOR_R4650'
../../gcc-20020930/gcc/config/mips/mips.h:74: error: previous
declaration of `PROCESSOR_R4650'
../../gcc-20020930/gcc/defaults.h:75: error: conflicting types for
`PROCESSOR_R5000'
../../gcc-20020930/gcc/config/mips/mips.h:75: error: previous
declaration of `PROCESSOR_R5000'
../../gcc-20020930/gcc/defaults.h:76: error: conflicting types for
`PROCESSOR_R5400'
../../gcc-20020930/gcc/config/mips/mips.h:76: error: previous
declaration of `PROCESSOR_R5400'
../../gcc-20020930/gcc/defaults.h:77: error: conflicting types for
`PROCESSOR_R5500'
../../gcc-20020930/gcc/config/mips/mips.h:77: error: previous
declaration of `PROCESSOR_R5500'
../../gcc-20020930/gcc/defaults.h:78: error: conflicting types for
`PROCESSOR_R8000'
../../gcc-20020930/gcc/config/mips/mips.h:78: error: previous
declaration of `PROCESSOR_R8000'
../../gcc-20020930/gcc/defaults.h:79: error: conflicting types for
`PROCESSOR_R4KC'
../../gcc-20020930/gcc/config/mips/mips.h:79: error: previous
declaration of `PROCESSOR_R4KC'
../../gcc-20020930/gcc/defaults.h:80: error: conflicting types for
`PROCESSOR_R5KC'
../../gcc-20020930/gcc/config/mips/mips.h:80: error: previous
declaration of `PROCESSOR_R5KC'
../../gcc-20020930/gcc/defaults.h:81: error: conflicting types for
`PROCESSOR_R20KC'
../../gcc-20020930/gcc/config/mips/mips.h:81: error: previous
declaration of `PROCESSOR_R20KC'
../../gcc-20020930/gcc/defaults.h:82: error: conflicting types for
`PROCESSOR_SR71000'
../../gcc-20020930/gcc/config/mips/mips.h:82: error: previous
declaration of `PROCESSOR_SR71000'
../../gcc-20020930/gcc/defaults.h:84: error: conflicting types for
`PROCESSOR_SB1'
../../gcc-20020930/gcc/config/mips/mips.h:84: error: previous
declaration of `PROCESSOR_SB1'
../../gcc-20020930/gcc/defaults.h:113: error: redeclaration of `enum
mips_abicalls_type'
../../gcc-20020930/gcc/defaults.h:114: error: conflicting types for
`MIPS_ABICALLS_NO'
../../gcc-20020930/gcc/config/mips/mips.h:114: error: previous
declaration of `MIPS_ABICALLS_NO'
../../gcc-20020930/gcc/defaults.h:116: error: conflicting types for
`MIPS_ABICALLS_YES'
../../gcc-20020930/gcc/config/mips/mips.h:116: error: previous
declaration of `MIPS_ABICALLS_YES'
../../gcc-20020930/gcc/defaults.h:124: error: redeclaration of `enum
block_move_type'
../../gcc-20020930/gcc/defaults.h:125: error: conflicting types for
`BLOCK_MOVE_NORMAL'
../../gcc-20020930/gcc/config/mips/mips.h:125: error: previous
declaration of `BLOCK_MOVE_NORMAL'
../../gcc-20020930/gcc/defaults.h:126: error: conflicting types for
`BLOCK_MOVE_NOT_LAST'
../../gcc-20020930/gcc/config/mips/mips.h:126: error: previous
declaration of `BLOCK_MOVE_NOT_LAST'
../../gcc-20020930/gcc/defaults.h:128: error: conflicting types for
`BLOCK_MOVE_LAST'
../../gcc-20020930/gcc/config/mips/mips.h:128: error: previous
declaration of `BLOCK_MOVE_LAST'
../../gcc-20020930/gcc/defaults.h:132: error: redefinition of `struct
mips_cpu_info' In file included from tconfig.h:23,
                 from ../../gcc-20020930/gcc/libgcc2.c:36:
../../gcc-20020930/gcc/defaults.h:1008:1: warning:
"ASM_ABI_DEFAULT_SPEC" redefined In file included from tconfig.h:20,
                 from ../../gcc-20020930/gcc/libgcc2.c:36:
../../gcc-20020930/gcc/config/mips/mips.h:1020:1: warning: this is the
location of the previous definition
../../gcc-20020930/gcc/defaults.h:2008: error: redeclaration of `enum
reg_class'
../../gcc-20020930/gcc/defaults.h:2009: error: conflicting types for
`NO_REGS'
../../gcc-20020930/gcc/config/mips/mips.h:2009: error: previous
declaration of `NO_REGS'
../../gcc-20020930/gcc/defaults.h:2010: error: conflicting types for
`M16_NA_REGS'
../../gcc-20020930/gcc/config/mips/mips.h:2010: error: previous
declaration of `M16_NA_REGS'
../../gcc-20020930/gcc/defaults.h:2011: error: conflicting types for
`M16_REGS'
../../gcc-20020930/gcc/config/mips/mips.h:2011: error: previous
declaration of `M16_REGS'
../../gcc-20020930/gcc/defaults.h:2012: error: conflicting types for
`T_REG'
../../gcc-20020930/gcc/config/mips/mips.h:2012: error: previous
declaration of `T_REG'
../../gcc-20020930/gcc/defaults.h:2013: error: conflicting types for
`M16_T_REGS'
../../gcc-20020930/gcc/config/mips/mips.h:2013: error: previous
declaration of `M16_T_REGS'
../../gcc-20020930/gcc/defaults.h:2014: error: conflicting types for
`GR_REGS'
../../gcc-20020930/gcc/config/mips/mips.h:2014: error: previous
declaration of `GR_REGS'
../../gcc-20020930/gcc/defaults.h:2015: error: conflicting types for
`FP_REGS'
../../gcc-20020930/gcc/config/mips/mips.h:2015: error: previous
declaration of `FP_REGS'
../../gcc-20020930/gcc/defaults.h:2016: error: conflicting types for
`HI_REG'
../../gcc-20020930/gcc/config/mips/mips.h:2016: error: previous
declaration of `HI_REG'
../../gcc-20020930/gcc/defaults.h:2017: error: conflicting types for
`LO_REG'
../../gcc-20020930/gcc/config/mips/mips.h:2017: error: previous
declaration of `LO_REG'
../../gcc-20020930/gcc/defaults.h:2018: error: conflicting types for
`HILO_REG'
../../gcc-20020930/gcc/config/mips/mips.h:2018: error: previous
declaration of `HILO_REG'
../../gcc-20020930/gcc/defaults.h:2019: error: conflicting types for
`MD_REGS'
../../gcc-20020930/gcc/config/mips/mips.h:2019: error: previous
declaration of `MD_REGS'
../../gcc-20020930/gcc/defaults.h:2020: error: conflicting types for
`COP0_REGS'
../../gcc-20020930/gcc/config/mips/mips.h:2020: error: previous
declaration of `COP0_REGS'
../../gcc-20020930/gcc/defaults.h:2021: error: conflicting types for
`COP2_REGS'
../../gcc-20020930/gcc/config/mips/mips.h:2021: error: previous
declaration of `COP2_REGS'
../../gcc-20020930/gcc/defaults.h:2022: error: conflicting types for
`COP3_REGS'
../../gcc-20020930/gcc/config/mips/mips.h:2022: error: previous
declaration of `COP3_REGS'
../../gcc-20020930/gcc/defaults.h:2023: error: conflicting types for
`HI_AND_GR_REGS'
../../gcc-20020930/gcc/config/mips/mips.h:2023: error: previous
declaration of `HI_AND_GR_REGS'
../../gcc-20020930/gcc/defaults.h:2024: error: conflicting types for
`LO_AND_GR_REGS'
../../gcc-20020930/gcc/config/mips/mips.h:2024: error: previous
declaration of `LO_AND_GR_REGS'
../../gcc-20020930/gcc/defaults.h:2025: error: conflicting types for
`HILO_AND_GR_REGS'
../../gcc-20020930/gcc/config/mips/mips.h:2025: error: previous
declaration of `HILO_AND_GR_REGS'
../../gcc-20020930/gcc/defaults.h:2026: error: conflicting types for
`HI_AND_FP_REGS'
../../gcc-20020930/gcc/config/mips/mips.h:2026: error: previous
declaration of `HI_AND_FP_REGS'
../../gcc-20020930/gcc/defaults.h:2027: error: conflicting types for
`COP0_AND_GR_REGS'
../../gcc-20020930/gcc/config/mips/mips.h:2027: error: previous
declaration of `COP0_AND_GR_REGS'
../../gcc-20020930/gcc/defaults.h:2028: error: conflicting types for
`COP2_AND_GR_REGS'
../../gcc-20020930/gcc/config/mips/mips.h:2028: error: previous
declaration of `COP2_AND_GR_REGS'
../../gcc-20020930/gcc/defaults.h:2029: error: conflicting types for
`COP3_AND_GR_REGS'
../../gcc-20020930/gcc/config/mips/mips.h:2029: error: previous
declaration of `COP3_AND_GR_REGS'
../../gcc-20020930/gcc/defaults.h:2030: error: conflicting types for
`ALL_COP_REGS'
../../gcc-20020930/gcc/config/mips/mips.h:2030: error: previous
declaration of `ALL_COP_REGS'
../../gcc-20020930/gcc/defaults.h:2031: error: conflicting types for
`ALL_COP_AND_GR_REGS'
../../gcc-20020930/gcc/config/mips/mips.h:2031: error: previous
declaration of `ALL_COP_AND_GR_REGS'
../../gcc-20020930/gcc/defaults.h:2032: error: conflicting types for
`ST_REGS'
../../gcc-20020930/gcc/config/mips/mips.h:2032: error: previous
declaration of `ST_REGS'
../../gcc-20020930/gcc/defaults.h:2033: error: conflicting types for
`ALL_REGS'
../../gcc-20020930/gcc/config/mips/mips.h:2033: error: previous
declaration of `ALL_REGS'
../../gcc-20020930/gcc/defaults.h:2035: error: conflicting types for
`LIM_REG_CLASSES'
../../gcc-20020930/gcc/config/mips/mips.h:2035: error: previous
declaration of `LIM_REG_CLASSES'
../../gcc-20020930/gcc/defaults.h:2731: error: redefinition of `struct
mips_args'
../../gcc-20020930/gcc/defaults.h:2774: warning: redefinition of
`CUMULATIVE_ARGS'
../../gcc-20020930/gcc/config/mips/mips.h:2774: warning:
`CUMULATIVE_ARGS' previously declared here In file included from
tconfig.h:23,
                 from ../../gcc-20020930/gcc/libgcc2.c:36:
../../gcc-20020930/gcc/defaults.h:4701:1: warning: null character(s)
ignored
../../gcc-20020930/gcc/defaults.h:2774: internal compiler error:
Segmentation fault Please submit a full bug report, with preprocessed
source if appropriate. See
<URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory `/src/g_objd/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/src/g_objd/gcc'
make: *** [all-gcc] Error 2

Please help.

Thank in advance
Mile


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list