public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Building on Cygwin
@ 2005-05-20 15:15 thean kiat sew
  2005-05-20 15:22 ` Eljay Love-Jensen
  0 siblings, 1 reply; 2+ messages in thread
From: thean kiat sew @ 2005-05-20 15:15 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Building on Cygwin
  2005-05-20 15:15 Building on Cygwin thean kiat sew
@ 2005-05-20 15:22 ` Eljay Love-Jensen
  0 siblings, 0 replies; 2+ messages in thread
From: Eljay Love-Jensen @ 2005-05-20 15:22 UTC (permalink / raw)
  To: thean kiat sew, gcc-help

Hi Kiat,

>...what is the cause?

I'm not sure if this is the cause of your problem, but it is a problem as far as I know:  you cannot configure & make GCC in the directory of the source, nor in any subdirectory thereof.

Delete your tainted GCC source directory.

Untar your GCC source directory fresh.

Create a peer directory to your GCC source directory.

Inside that peer directory, run the configure process (e.g., ../gcc-3.4.3-source/configure --enable-languages=c,c++ --prefix=/home/newshell/sh1), and then make.

NOTE:  I've had better luck referencing the configure script with a fully specified absolute path, but it appears that most people use a relative path.

HTH,
--Eljay

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-20 15:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-20 15:15 Building on Cygwin thean kiat sew
2005-05-20 15:22 ` Eljay Love-Jensen

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