https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97003
Bug ID: 97003
Summary: Error: gfortran: No such file or directory and GNU
gortran is nor working
Product: gcc
Version: 6.3.0
Status: UNCONFIRMED
Keywords: build
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: xianping.du at gmail dot com
Target Milestone: ---
Target: Gcc -7.5.0
Build: Gcc- 6.3.0
Created attachment 49205
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49205&action=edit
The configure log with the error information
Compiled the Gcc as the following on the ubuntu 18.04.
1) sudo apt update
2) sudo apt upgrade
3) contrib/download_prerequisites
4) ./configure --prefix=/usr/local/gcc63 --program-suffix=63
--enable-languages=c,c++,fortran --disable-multilib
5) make -j 4
Error is reported as attached with the critical area copied here.
#################################################################
/home/seager/Downloads/gcc-6.3.0/libgfortran/configure: line 1897:
/home/seager/Downloads/gcc-6.3.0/host-x86_64-pc-linux-gnu/gcc/gfortran: No such
file or directory
configure:15673: $? = 127
configure: failed program was:
|
| program foo
| real, parameter :: bar = sin (12.34 / 2.5)
| end program foo
configure:15677: result: no
configure:15679: error: GNU Fortran is not working; please report a bug in
http://gcc.gnu.org/bugzilla, attaching
/home/seager/Downloads/gcc-6.3.0/x86_64-pc-linux-gnu/libgfortran/config.log
###############################################################
I can understand the problem, but I do not know how to fix it. Is there someone
can help on this issue? Thank you for any help.