[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 115050] New: g77 (obsolete with gcc4) and gfortran coexistence leads to configure failure
From:       kdevelop-bugs-admin () barney ! cs ! uni-potsdam ! de
Date:       2005-10-25 9:09:39
Message-ID: 20051025110937.115050.i.l.egusquiza () telefonica ! net
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=115050         
           Summary: g77 (obsolete with gcc4) and gfortran coexistence leads
                    to configure failure
           Product: kdevelop
           Version: 3.2.2
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-bugs kdevelop org
        ReportedBy: i.l.egusquiza telefonica net


Version:           3.2.2 (using KDE 3.4.2, Mandrake Linux Cooker i586 - Cooker)
Compiler:          Target: i586-mandriva-linux-gnu
OS:                Linux (i686) release 2.6.12-12mdk

g77 development has been discontinued, and its role in gcc has been taken up by \
gfortran (http://gcc.gnu.org/wiki/GFortranG77)

For legacy reasons, g77 and gfortran have to be kept at the same time in some \
machines. However, the libraries for gcc3.4 and gcc4 can be mixed up, or wrongly set \
up

In the current Mandriva distribution (at least) this entails failed link resolution \
with crtbegin.o (for starters) when using g77.

Kdevelop configure checks for g77 and gfortran (line 1701). However, if it fails g77 \
it does not try to supplant it with gfortran

Configure log on "hello world" .f program (partial):

configure:1705: checking for g77
configure:1721: found /usr/bin/g77
configure:1731: result: g77
configure:1746: checking for Fortran 77 compiler version
configure:1749: g77 --version </dev/null >&5
GNU Fortran (GCC) 3.4.3 (Mandrakelinux 10.2 3.4.3-7mdk)
Copyright (C) 2004 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
or type the command `info -f g77 Copying'.
configure:1752: $? = 0
configure:1754: g77 -v </dev/null >&5
Using built-in specs.
Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib --with-slibdir=/lib \
--mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --e \
nable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit \
--enable-clocale=gnu --disable-libunwind-exceptions --enable-languages=c,c+ \
+,ada,f77,objc,java --host=i586-mandrake-linux-gnu --with-system-zlib Thread model: \
posix gcc version 3.4.3 (Mandrakelinux 10.2 3.4.3-7mdk)
configure:1757: $? = 0
configure:1759: g77 -V </dev/null >&5
g77: `-V' option must have argument
configure:1762: $? = 1
configure:1776: checking for Fortran 77 compiler default output file name
configure:1779: g77   conftest.f  >&5
ld: crtbegin.o: No such file: No such file or directory
configure:1782: $? = 1
configure: failed program was:
> program main
> 
> end
configure:1821: error: Fortran 77 compiler cannot create executables
See `config.log' for more details.



I have (partially) solved the problem for myself by removing g77 from the system, \
leading to correct configuration with gfortran


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic