This bug has similarities with bug no 20811. For some reason the gfortran compilier cannot locate a file when its absolute path is included. See below:
My operating system: $ uname -a Linux lylt0061.terma.com 2.6.18-1.2868.fc6 #1 SMP Fri Dec 15 17:31:29 EST 2006 i686 i686 i386 GNU/Linux The source file: $ more test.f program main include '/home/allan/slot2usl/physcons.inc' stop end The include file: $ ls -l /home/allan/slot2usl/physcons.inc -rw-r--r-- 1 allan users 158 Dec 19 12:05 /home/allan/slot2usl/physcons.inc The call to the compiler and error message: $ gfortran -v -c test.f Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux Thread model: posix gcc version 4.1.1 20061011 (Red Hat 4.1.1-30) /usr/libexec/gcc/i386-redhat-linux/4.1.1/f951 test.f -ffixed-form -quiet -dumpbase test.f -mtune=generic -auxbase test -version -I /usr/lib/gcc/i386-redhat-linux/4.1.1/finclude -o /tmp/cc6e5iPa.s GNU F95 version 4.1.1 20061011 (Red Hat 4.1.1-30) (i386-redhat-linux) compiled by GNU C version 4.1.1 20061011 (Red Hat 4.1.1-30). GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129304 Error: Can't open included file '/home/allan/slot2usl/physcons.inc' Hope someone can help. Regards Allan -- Summary: gfortran include problem Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: aog at terma dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30276