Hi, I am still new to LLVM and also GNU softwares.
I am doing a project using LLVM.
I was building cfrontend on my windows cygwin, however I encountered
this problem, may I now what is the cause?
********************************
my configuration output is:
bash-2.05b$ ../src/configure --prefix=$CFEINSTALL --disable-threads --disable-n
ls --disable-shared --enable-languages=c,c++
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.)
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) c:/mingw/bin/../lib/gcc-lib/mingw32/3
.2.3/../../../../mingw32/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
...
...
...
In file included from ../../src/gcc/c-opts.c:39:
options.h:25: error: redefinition of `OPT_d'
options.h:23: error: `OPT_d' previously defined here
../../src/gcc/c-opts.c: In function `c_common_init_options':
../../src/gcc/c-opts.c:190: error: `CL_C' undeclared (first use in this
function
)
../../src/gcc/c-opts.c:190: error: (Each undeclared identifier is reported only
once
../../src/gcc/c-opts.c:190: error: for each function it appears in.)
../../src/gcc/c-opts.c:190: error: initializer element is not constant
../../src/gcc/c-opts.c:190: error: (near initialization for `lang_flags[0]')
../../src/gcc/c-opts.c:190: error: `CL_ObjC' undeclared (first use in this
funct
ion)
../../src/gcc/c-opts.c:190: error: initializer element is not constant
../../src/gcc/c-opts.c:190: error: (near initialization for `lang_flags[1]')
../../src/gcc/c-opts.c:190: error: `CL_CXX' undeclared (first use in this
functi
on)
../../src/gcc/c-opts.c:190: error: initializer element is not constant
../../src/gcc/c-opts.c:190: error: (near initialization for `lang_flags[2]')
../../src/gcc/c-opts.c:190: error: `CL_ObjCXX' undeclared (first use in this
fun
ction)
../../src/gcc/c-opts.c:190: error: initializer element is not constant
../../src/gcc/c-opts.c:190: error: (near initialization for `lang_flags[3]')
make[1]: *** [c-opts.o] Error 1
make[1]: Leaving directory `/home/cfrontend/build/gcc'
make: *** [all-gcc] Error 2
bash-2.05b$
**************************************
Your help will be very much appreciated.
Kiat
The very first time you build GCC, you should do "make bootstrap". After that, you can use "make" and "make install" Reid. On Fri, 2005-05-20 at 00:15 +0800, thean kiat sew wrote:> Hi, I am still new to LLVM and also GNU softwares. > > I am doing a project using LLVM. > > I was building cfrontend on my windows cygwin, however I encountered > this problem, may I now what is the cause? > > ******************************** > my configuration output is: > bash-2.05b$ ../src/configure --prefix=$CFEINSTALL --disable-threads --disable-n > ls --disable-shared --enable-languages=c,c++ > > 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.) > 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) c:/mingw/bin/../lib/gcc-lib/mingw32/3 > .2.3/../../../../mingw32/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 > ... > ... > ... > In file included from ../../src/gcc/c-opts.c:39: > options.h:25: error: redefinition of `OPT_d' > options.h:23: error: `OPT_d' previously defined here > ../../src/gcc/c-opts.c: In function `c_common_init_options': > ../../src/gcc/c-opts.c:190: error: `CL_C' undeclared (first use in this function > ) > ../../src/gcc/c-opts.c:190: error: (Each undeclared identifier is reported only > once > ../../src/gcc/c-opts.c:190: error: for each function it appears in.) > ../../src/gcc/c-opts.c:190: error: initializer element is not constant > ../../src/gcc/c-opts.c:190: error: (near initialization for `lang_flags[0]') > ../../src/gcc/c-opts.c:190: error: `CL_ObjC' undeclared (first use in this funct > ion) > ../../src/gcc/c-opts.c:190: error: initializer element is not constant > ../../src/gcc/c-opts.c:190: error: (near initialization for `lang_flags[1]') > ../../src/gcc/c-opts.c:190: error: `CL_CXX' undeclared (first use in this functi > on) > ../../src/gcc/c-opts.c:190: error: initializer element is not constant > ../../src/gcc/c-opts.c:190: error: (near initialization for `lang_flags[2]') > ../../src/gcc/c-opts.c:190: error: `CL_ObjCXX' undeclared (first use in this fun > ction) > ../../src/gcc/c-opts.c:190: error: initializer element is not constant > ../../src/gcc/c-opts.c:190: error: (near initialization for `lang_flags[3]') > make[1]: *** [c-opts.o] Error 1 > make[1]: Leaving directory `/home/cfrontend/build/gcc' > make: *** [all-gcc] Error 2 > > bash-2.05b$ > > ************************************** > > Your help will be very much appreciated. > > Kiat > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050519/267440b8/attachment.sig>
On Thu, 19 May 2005, Reid Spencer wrote:> The very first time you build GCC, you should do "make bootstrap". After > that, you can use "make" and "make install"I don't think that 'make bootstrap' is tested at all. Stick with make and make install. -Chris> On Fri, 2005-05-20 at 00:15 +0800, thean kiat sew wrote: >> Hi, I am still new to LLVM and also GNU softwares. >> >> I am doing a project using LLVM. >> >> I was building cfrontend on my windows cygwin, however I encountered >> this problem, may I now what is the cause? >> >> ******************************** >> my configuration output is: >> bash-2.05b$ ../src/configure --prefix=$CFEINSTALL --disable-threads --disable-n >> ls --disable-shared --enable-languages=c,c++ >> >> 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.) >> 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) c:/mingw/bin/../lib/gcc-lib/mingw32/3 >> .2.3/../../../../mingw32/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 >> ... >> ... >> ... >> In file included from ../../src/gcc/c-opts.c:39: >> options.h:25: error: redefinition of `OPT_d' >> options.h:23: error: `OPT_d' previously defined here >> ../../src/gcc/c-opts.c: In function `c_common_init_options': >> ../../src/gcc/c-opts.c:190: error: `CL_C' undeclared (first use in this function >> ) >> ../../src/gcc/c-opts.c:190: error: (Each undeclared identifier is reported only >> once >> ../../src/gcc/c-opts.c:190: error: for each function it appears in.) >> ../../src/gcc/c-opts.c:190: error: initializer element is not constant >> ../../src/gcc/c-opts.c:190: error: (near initialization for `lang_flags[0]') >> ../../src/gcc/c-opts.c:190: error: `CL_ObjC' undeclared (first use in this funct >> ion) >> ../../src/gcc/c-opts.c:190: error: initializer element is not constant >> ../../src/gcc/c-opts.c:190: error: (near initialization for `lang_flags[1]') >> ../../src/gcc/c-opts.c:190: error: `CL_CXX' undeclared (first use in this functi >> on) >> ../../src/gcc/c-opts.c:190: error: initializer element is not constant >> ../../src/gcc/c-opts.c:190: error: (near initialization for `lang_flags[2]') >> ../../src/gcc/c-opts.c:190: error: `CL_ObjCXX' undeclared (first use in this fun >> ction) >> ../../src/gcc/c-opts.c:190: error: initializer element is not constant >> ../../src/gcc/c-opts.c:190: error: (near initialization for `lang_flags[3]') >> make[1]: *** [c-opts.o] Error 1 >> make[1]: Leaving directory `/home/cfrontend/build/gcc' >> make: *** [all-gcc] Error 2 >> >> bash-2.05b$ >> >> ************************************** >> >> Your help will be very much appreciated. >> >> Kiat >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev >-Chris -- http://nondot.org/sabre/ http://llvm.cs.uiuc.edu/