[Bug fortran/68268] New: configure: error: GNU Fortran is not working;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68268 Bug ID: 68268 Summary: configure: error: GNU Fortran is not working; Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: isearcher at 126 dot com Target Milestone: --- Created attachment 36672 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36672&action=edit config.log I want to upgrade gfortran on a linux sever with gcc version 4.1.2 20080704 (Red Hat 4.1.2-48).I use the configure command like this: ./configure --prefix=/wk5/WJ/gcc -enable-threads=posix -disable-checking -disable-multilib -enable-languages=c,fortran --with-gmp=/wk5/WJ/gmp-4.3.2 --with-mpfr=/wk5/WJ/mpfr-2.4.2 --with-mpc=/wk5/WJ/mpc-0.8.1 When i make gcc,i found this error: libtool.m4: error: problem compiling FC test program ... checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether the GNU Fortran compiler is working... no configure: error: GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching /wk5/WJ/tmp/gcc-4.8.0/x86_64-unknown-linux-gnu/libgfortran/config.log make[1]: *** [configure-target-libgfortran] Error 1 make[1]: Leaving directory `/wk5/WJ/tmp/gcc-4.8.0' make: *** [all] Error 2 the config.log is also attached. Is there anybody knows what's the problem? thanks.
[Bug fortran/68268] configure: error: GNU Fortran is not working;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68268 --- Comment #2 from isearcher at 126 dot com --- i download GCC installation file and tar it at /wk5/WJ/tmp. And i configure GCC at /wk5/WJ/gcc. ./configure --prefix=/wk5/WJ/gcc -enable-threads=posix -disable-checking -disable-multilib -enable-languages=c,c++ --with-gmp=/wk5/WJ/gmp-4.3.2 --with-mpfr=/wk5/WJ/mpfr-2.4.2 --with-mpc=/wk5/WJ/mpc-0.8.1 i don't think there is something wrong with the srcdir and objdir. As i am working on a linux server, and can't get the root authority, i make the above choice.
[Bug fortran/68268] configure: error: GNU Fortran is not working;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68268 --- Comment #3 from isearcher at 126 dot com --- Sorry, the configure command is like this (fortran is added): ./configure --prefix=/wk5/WJ/gcc -enable-threads=posix -disable-checking -disable-multilib -enable-languages=c,fortran --with-gmp=/wk5/WJ/gmp-4.3.2 --with-mpfr=/wk5/WJ/mpfr-2.4.2 --with-mpc=/wk5/WJ/mpc-0.8.1 By the way, should i download the gfortran installation files additionally and install gfortran in this way?
[Bug fortran/68268] configure: error: GNU Fortran is not working;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68268 --- Comment #5 from isearcher at 126 dot com --- Hello! I create a build directory, cd to it, and execute "sources_dir/./configure ..." like this : /wk5/WJ/tmp/gcc-4.8.0/configure --prefix=/wk5/WJ/gcc -enable-threads=posix -disable-checking -disable-multilib -enable-languages=c,c++,fortran --with-gmp=/wk5/WJ/gmp-4.3.2 --with-mpfr=/wk5/WJ/mpfr-2.4.2 --with-mpc=/wk5/WJ/mpc-0.8.1 But there is a new error: make[2]: Entering directory `/wk5/WJ/gcc' make[3]: Entering directory `/wk5/WJ/gcc' rm -f stage_current make[3]: Leaving directory `/wk5/WJ/gcc' Comparing stages 2 and 3 warning: gcc/cc1plus-checksum.o differs warning: gcc/cc1-checksum.o differs Bootstrap comparison failure! gcc/plugin.o differs gcc/gcc.o differs make[2]: *** [compare] Error 1 make[2]: Leaving directory `/wk5/WJ/gcc' make[1]: *** [stage3-bubble] Error 2 make[1]: Leaving directory `/wk5/WJ/gcc' make: *** [all] Error 2 thanks.
[Bug fortran/68268] configure: error: GNU Fortran is not working;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68268 --- Comment #6 from isearcher at 126 dot com --- I "make distclean",and make again. Everything goes well. And gfortran is made. The problem is solved. thanks for the advice.
[Bug fortran/68268] configure: error: GNU Fortran is not working;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68268 --- Comment #8 from isearcher at 126 dot com --- Now here is a new problem. Gfortran can now produce the a.out, but when i run ./a.out, there is an error: ./a.out: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory Ahy sugguestions?