Hi, Configure is successful, But "make" is giving error: The configure is done with: # /export/packages/compilers/GNU/gcc-4.3.0/configure --with-mpfr=/export/packages/compilers/GNU/mpfr --with-gmp=/export/packages/compilers/GNU/gmp --prefix=/export/packages/compilers/GNU/gcc430 --enable-stage1-languages=c,c++,fortran | tee gcc430_ccf_config_out # make | tee make_all rm gfortran.pod make[3]: Leaving directory `/export/packages/compilers/GNU/gcc430/gcc' mkdir -p -- x86_64-unknown-linux-gnu/libgcc Checking multilib configuration for libgcc... Configuring stage 1 in x86_64-unknown-linux-gnu/libgcc configure: creating cache ./config.cache checking for --enable-version-specific-runtime-libs... no checking for a BSD-compatible install... /usr/bin/install -c checking for gawk... gawk checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for x86_64-unknown-linux-gnu-ar... ar checking for x86_64-unknown-linux-gnu-lipo... lipo checking for x86_64-unknown-linux-gnu-nm... /export/packages/compilers/GNU/gcc430/./gcc/nm checking for x86_64-unknown-linux-gnu-ranlib... ranlib checking for x86_64-unknown-linux-gnu-strip... strip checking whether ln -s works... yes checking for x86_64-unknown-linux-gnu-gcc... /export/packages/compilers/GNU/gcc430/./gcc/xgcc -B/exp ort/packages/compilers/GNU/gcc430/./gcc/ -B/export/packages/compilers/GNU/gcc430/x86_64-unknown-linu x-gnu/bin/ -B/export/packages/compilers/GNU/gcc430/x86_64-unknown-linux-gnu/lib/ -isystem /export/pa ckages/compilers/GNU/gcc430/x86_64-unknown-linux-gnu/include -isystem /export/packages/compilers/GNU /gcc430/x86_64-unknown-linux-gnu/sys-include checking for suffix of object files... configure: error: cannot compute suffix of object files: cann ot compile See `config.log' for more details. make[2]: *** [configure-stage1-target-libgcc] Error 1 make[2]: Leaving directory `/export/packages/compilers/GNU/gcc430' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/export/packages/compilers/GNU/gcc430' make: *** [all] Error 2 The config.log inside gcc contains: conftest.c:11:28: error: ac_nonexistent.h: No such file or directory configure:3017: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define HAVE_GNU_LD 0 | #define HAVE_GNU_AS 0 | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:3056: result: /usr/bin/gcc -E configure:3080: /usr/bin/gcc -E conftest.c errors. Is this causing the error? Do you have any idea of ac_nonexistent.h header file? Thanks, Sangamesh On Wed, Oct 22, 2008 at 11:12 PM, Vardhan, Sundara (GE Infra, Energy) <sundara.vardhan@xxxxxx> wrote: > Hi > > Sorry it should be c,c++,fortran and not a period. > > Regards > > Vardhan > > -----Original Message----- > From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On > Behalf Of Vardhan, Sundara (GE Infra, Energy) > Sent: Wednesday, October 22, 2008 7:47 AM > To: Sangamesh B; gcc ML > Subject: RE: GCC-4.1.2: gfortran not getting installed > > Hi Sangamesh > > Use > ./configure --enable-languages=c,c++.fortran to configure > > Gmp is a free library for arbitrary precision arithmetic and can be > downloaded from gmplib.org. I think you would require to install mpfr > too. This can be downloaded from mpfr.org > > Follow to compile instructions for both. Once you have installed these > two in, say, /usr/local then use --with-gmp=/usr/local/<gmpdir> and > --with-mpfr=/usr/local/<mpfrdir> to be part of the gcc configure. > > Hope this helps. > > With Regards > > Vardhan > > > -----Original Message----- > From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On > Behalf Of Sangamesh B > Sent: Wednesday, October 22, 2008 7:19 AM > To: gcc ML > Subject: GCC-4.1.2: gfortran not getting installed > > Hi All, > > I'm trying to install GCC-4.1.2 package, with all available > utilities C, C++. FORTRAN, OBJ C etc on Rocks-4.2 Linux cluster. > (Rocks is a clustering tool, built on Cent OS 4.5). > > The configure is not able to install Fortran. And I don't see option > to enable Fortran (such as --languages=FORTRAN). > > The output of configure is: > > # ./configure > creating cache ./config.cache > checking host system type... x86_64-unknown-linux-gnu checking target > system type... x86_64-unknown-linux-gnu checking build system type... > x86_64-unknown-linux-gnu checking for a BSD compatible install... > /usr/bin/install -c checking whether ln works... yes checking whether ln > -s works... yes checking for gcc... /usr/bin/gcc4 checking whether the C > compiler (/usr/bin/gcc4 ) works... yes checking whether the C compiler > (/usr/bin/gcc4 ) is a cross-compiler... no checking whether we are > using GNU C... yes checking whether /usr/bin/gcc4 accepts -g... yes > checking for gnatbind... no checking whether compiler driver understands > Ada... no checking how to compare bootstrapped objects... cmp > --ignore-initial=16 $$f1 $$f2 > checking for correct version of gmp.h... no > > What is this gmp.h about? > > The following languages will be built: c,c++,java,objc > *** This configuration is not supported in the following subdirectories: > target-libada gnattools target-libgfortran > (Any other directories should still work fine.) > > Why its not building FORTRAN? > > > checking for bison... bison -y > checking for bison... bison > checking for gm4... no > checking for gnum4... no > checking for m4... m4 > checking for flex... no > checking for lex... no > checking for flex... no > checking for makeinfo... makeinfo > checking for expect... expect > checking for runtest... no > checking for x86_64-unknown-linux-gnu-ar... no checking for ar... ar > checking for x86_64-unknown-linux-gnu-as... no checking for as... as > checking for x86_64-unknown-linux-gnu-dlltool... no checking for > dlltool... no checking for x86_64-unknown-linux-gnu-ld... no checking > for ld... ld checking for x86_64-unknown-linux-gnu-lipo... no checking > for lipo... no checking for x86_64-unknown-linux-gnu-nm... no checking > for nm... nm checking for x86_64-unknown-linux-gnu-ranlib... no checking > for ranlib... ranlib checking for x86_64-unknown-linux-gnu-strip... no > checking for strip... strip checking for > x86_64-unknown-linux-gnu-windres... no checking for windres... no > checking for x86_64-unknown-linux-gnu-objcopy... no checking for > objcopy... objcopy checking for x86_64-unknown-linux-gnu-objdump... no > checking for objdump... objdump checking for > x86_64-unknown-linux-gnu-ar... no checking for ar... ar checking for > x86_64-unknown-linux-gnu-as... no checking for as... as checking for > x86_64-unknown-linux-gnu-cc... no checking for cc... cc checking for > x86_64-unknown-linux-gnu-c++... no checking for c++... c++ checking for > x86_64-unknown-linux-gnu-dlltool... no checking for dlltool... no > checking for x86_64-unknown-linux-gnu-gcc... no checking for gcc... gcc > checking for x86_64-unknown-linux-gnu-gcj... no checking for gcj... no > checking for x86_64-unknown-linux-gnu-gfortran... no checking for > gfortran... gfortran checking for x86_64-unknown-linux-gnu-ld... no > checking for ld... ld checking for x86_64-unknown-linux-gnu-lipo... no > checking for lipo... no checking for x86_64-unknown-linux-gnu-nm... no > checking for nm... nm checking for x86_64-unknown-linux-gnu-objdump... > no checking for objdump... objdump checking for > x86_64-unknown-linux-gnu-ranlib... no checking for ranlib... ranlib > checking for x86_64-unknown-linux-gnu-strip... no checking for strip... > strip checking for x86_64-unknown-linux-gnu-windres... no checking for > windres... no checking where to find the target ar... host tool checking > where to find the target as... host tool checking where to find the > target cc... just compiled checking where to find the target c++... just > compiled checking where to find the target c++ for libstdc++... just > compiled checking where to find the target dlltool... host tool checking > where to find the target gcc... just compiled checking where to find the > target gcj... just compiled checking where to find the target > gfortran... host tool checking where to find the target ld... host tool > checking where to find the target lipo... host tool checking where to > find the target nm... host tool checking where to find the target > objdump... host tool checking where to find the target ranlib... host > tool checking where to find the target strip... host tool checking where > to find the target windres... host tool checking whether to enable > maintainer-specific portions of Makefiles... no checking if symbolic > links between directories work... yes updating cache ./config.cache > creating ./config.status creating Makefile > > After "make", the installed directory contains: > > # ls bin/ > addr2name.awk412 gcc412 gcov412 grmiregistry412 > x86_64-unknown-linux-gnu-g++412 > c++412 gccbug412 gij412 jcf-dump412 > x86_64-unknown-linux-gnu-gcc412 > cpp412 gcj412 gjnih412 jv-convert412 > x86_64-unknown-linux-gnu-gcc-4.1.2 > fastjar412 gcj-dbtool412 grepjar412 jv-scan412 > x86_64-unknown-linux-gnu-gcj412 > g++412 gcjh412 grmic412 > x86_64-unknown-linux-gnu-c++412 x86_64-unknown-linux-gnu-gcjh412 > > > Please someone help me to install gfortran along with other binaries. > > Find some more details in config.log attached herewith. > > Thanks, > Sangamesh > Consultant, HPC >