Bug 192186

Summary: wrong g77 version (compat-g77) for gcc
Product: [openSUSE] SUSE Linux 10.1 Reporter: Ralph Heinkel <rheinkel>
Component: DevelopmentAssignee: Michael Matz <matz>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: andreas.hanke, pth, suse-beta
Version: Final   
Target Milestone: ---   
Hardware: 32bit   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Minimal fortran source code for test case

Description Ralph Heinkel 2006-07-13 15:58:27 UTC
When compiling this: 

(2-lines program), must be stored as e.g. demo.F, because error does
not show up when stored as demo.f  (lower case extension) since in
that case the preprocessor cc1 is not used!!

        write (*,*) "hello"
        end

 with this command:
   % g77 demo.F -o demo
 this happens:

g77: installation problem, cannot exec `cc1': No such file or directory
   
 with this system:
 <gcc -v output>
Using built-in specs.
Target: i586-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.1.0 --enable-ssp --disable-libssp --enable-java-awt=gtk --enable-gtk-cairo --disable-libjava-multilib --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new --without-system-libunwind --with-cpu=generic --host=i586-suse-linux
Thread model: posix
gcc version 4.1.0 (SUSE Linux)

   <uname -a output>
Linux ralap 2.6.16.13-4-default #1 Wed May 3 04:53:23 UTC 2006 i686 i686 i386 GNU/Linux


 because of <reason why you think so>.

Look at g77 -v:
---------------
Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.5/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,f77 --disable-checking --libdir=/usr/lib --disable-libgcj --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux
Thread model: posix
gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)


The version of g77 (from the compat-g77 package) does not match
the gcc version, it looks V 3.3.5  vs 4.1.0
So dispite cc1 exists in directory /usr/lib/gcc/i586-suse-linux/4.1.0
g77 won't find it.
Comment 1 Ralph Heinkel 2006-07-14 08:41:20 UTC
Created attachment 93532 [details]
Minimal fortran source code for test case

Because indentation / tabs must be correctly set
in fortran I've attached this source code.
Comment 2 Andreas Hanke 2006-07-19 12:17:41 UTC
The problem is indeed caused by g77 not finding cc1, but even if g77 would be able to find cc1, it would not be able to use it because the interface changed incompatibly.

compat-g77 should include a copy of the old cc1 version, otherwise compat-g77's usefulness is drastically reduced.

This problem is present in 10.0, 10.1 and factory. See also: bug 127745 (reported against 10.0 and _incorrectly_ marked as FIXED - the problem is _not_ fixed by renaming sources from *.F to *.f!)
Comment 3 Michael Matz 2006-07-31 12:33:17 UTC

*** This bug has been marked as a duplicate of bug 127745 ***