Building on Cygwin
thean kiat sew
kiatsew@gmail.com
Fri May 20 15:15:00 GMT 2005
Hi,
I am currently building gcc-3.4.3 using binutils-2.15 on cygwin,
however I encounter this problem, may I know what is the cause?
my configure script output:
****************
bash-2.05b$ ../../gcc-3.4.3/configure --enable-languages=c,c++ --prefix=/home/
newshell/sh1
loading cache ./config.cache
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
checking build system type... i686-pc-cygwin
checking for a BSD compatible install... (cached) /usr/bin/install -c
*** This configuration is not supported in the following subdirectories:
target-libffi target-boehm-gc target-zlib target-libjava target-libf2c zlib
fastjar target-libobjc
(Any other directories should still work fine.)
*** removing intl/Makefile to force reconfigure
*** removing libiberty/Makefile to force reconfigure
*** removing gcc/Makefile to force reconfigure
checking for i686-pc-cygwin-ar... no
checking for ar... (cached) ar
checking for i686-pc-cygwin-as... no
checking for as... (cached) as
checking for i686-pc-cygwin-dlltool... no
checking for dlltool... (cached) dlltool
checking for i686-pc-cygwin-ld... (cached) /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3
/../../../../i686-pc-cygwin/bin/ld.exe
checking for i686-pc-cygwin-nm... no
checking for nm... (cached) nm
checking for i686-pc-cygwin-ranlib... no
checking for ranlib... (cached) ranlib
checking for i686-pc-cygwin-windres... no
checking for windres... (cached) windres
checking for i686-pc-cygwin-objcopy... no
checking for objcopy... (cached) objcopy
checking for i686-pc-cygwin-objdump... no
checking for objdump... (cached) objdump
checking for i686-pc-cygwin-ar... no
checking for ar... (cached) ar
checking for i686-pc-cygwin-as... no
checking for as... (cached) as
checking for i686-pc-cygwin-dlltool... no
checking for dlltool... (cached) dlltool
checking for i686-pc-cygwin-ld... no
checking for ld... (cached) ld
checking for i686-pc-cygwin-nm... no
checking for nm... (cached) nm
checking for i686-pc-cygwin-ranlib... no
checking for ranlib... (cached) ranlib
checking for i686-pc-cygwin-windres... no
checking for windres... (cached) windres
checking whether to enable maintainer-specific portions of Makefiles... no
updating cache ./config.cache
creating ./config.status
creating Makefile
bash-2.05b$
*****************
bash-2.05b$ make
......
......
......
gcc -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissin
g-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I../../../g
cc-3.4.3/gcc -I../../../gcc-3.4.3/gcc/. -I../../../gcc-3.4.3/gcc/../include \
../../../gcc-3.4.3/gcc/c-opts.c -o c-opts.o
In file included from ../../../gcc-3.4.3/gcc/c-opts.c:39:
options.h:25: error: redefinition of `OPT_d'
options.h:23: error: `OPT_d' previously defined here
../../../gcc-3.4.3/gcc/c-opts.c: In function `c_common_init_options':
../../../gcc-3.4.3/gcc/c-opts.c:191: error: `CL_C' undeclared (first use in this
function)
../../../gcc-3.4.3/gcc/c-opts.c:191: error: (Each undeclared identifier is repor
ted only once
../../../gcc-3.4.3/gcc/c-opts.c:191: error: for each function it appears in.)
../../../gcc-3.4.3/gcc/c-opts.c:191: error: initializer element is not constant
../../../gcc-3.4.3/gcc/c-opts.c:191: error: (near initialization for `lang_flags
[0]')
../../../gcc-3.4.3/gcc/c-opts.c:191: error: `CL_ObjC' undeclared (first use in t
his function)
../../../gcc-3.4.3/gcc/c-opts.c:191: error: initializer element is not constant
../../../gcc-3.4.3/gcc/c-opts.c:191: error: (near initialization for `lang_flags
[1]')
../../../gcc-3.4.3/gcc/c-opts.c:191: error: `CL_CXX' undeclared (first use in th
is function)
../../../gcc-3.4.3/gcc/c-opts.c:191: error: initializer element is not constant
../../../gcc-3.4.3/gcc/c-opts.c:191: error: (near initialization for `lang_flags
[2]')
../../../gcc-3.4.3/gcc/c-opts.c:191: error: `CL_ObjCXX' undeclared (first use in
this function)
../../../gcc-3.4.3/gcc/c-opts.c:191: error: initializer element is not constant
../../../gcc-3.4.3/gcc/c-opts.c:191: error: (near initialization for `lang_flags
[3]')
make[1]: *** [c-opts.o] Error 1
make[1]: Leaving directory `/home/newshell/build/gcc/gcc'
make: *** [all-gcc] Error 2
bash-2.05b$
**********************
Your help will be very much appreciated.
Kiat
More information about the Gcc-help
mailing list