Bug 192186 - wrong g77 version (compat-g77) for gcc
Summary: wrong g77 version (compat-g77) for gcc
Status: RESOLVED DUPLICATE of bug 127745
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Development (show other bugs)
Version: Final
Hardware: 32bit SuSE Linux 10.1
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Michael Matz
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-13 15:58 UTC by Ralph Heinkel
Modified: 2006-07-31 12:33 UTC (History)
3 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Minimal fortran source code for test case (26 bytes, text/plain)
2006-07-14 08:41 UTC, Ralph Heinkel
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***