[Bug fortran/68268] configure: error: GNU Fortran is not working;

2015-11-18 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68268

--- Comment #9 from kargl at gcc dot gnu.org ---
(In reply to isearcher from comment #8)
> 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?

GCC bugzilla is not a user support forum.
Post to gcc-help with questions of this 
nature.  The answer to your question lies
in the ldconfig documentation.

[Bug fortran/68268] configure: error: GNU Fortran is not working;

2015-11-18 Thread isearcher at 126 dot com
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?

[Bug fortran/68268] configure: error: GNU Fortran is not working;

2015-11-12 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68268

--- Comment #7 from Dominique d'Humieres  ---
> I "make distclean",and make again. Everything goes well. And gfortran is made.
> The problem is solved. thanks for the advice.

You're welcome! 

Further advice, 4.8.0 is quite old and unsupported: you should go to at least
4.9.3 or better 5.2. Your gmp, mpfr and mpc libs are also old. I am using
GMP version 6.0.0, MPFR version 3.1.2, MPC version 1.0.3.

[Bug fortran/68268] configure: error: GNU Fortran is not working;

2015-11-12 Thread isearcher at 126 dot com
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;

2015-11-11 Thread isearcher at 126 dot com
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;

2015-11-11 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68268

--- Comment #4 from Dominique d'Humieres  ---
Executing "./configure ..." means you are bootstrapping in the sources
directory which is not supported according the manual. You must create a build
directory, cd to it, and execute "sources_dir/./configure ..." from it, then
"make".

[Bug fortran/68268] configure: error: GNU Fortran is not working;

2015-11-10 Thread isearcher at 126 dot com
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;

2015-11-10 Thread isearcher at 126 dot com
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;

2015-11-10 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68268

Dominique d'Humieres  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

--- Comment #1 from Dominique d'Humieres  ---
Read https://gcc.gnu.org/install/configure.html

> First, we highly recommend that GCC be built into a separate directory
> from the sources which does not reside within the source tree.
> This is how we generally build GCC; building where srcdir == objdir
> should still work, but doesn't get extensive testing; building where
> objdir is a subdirectory of srcdir is unsupported.