Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Feb 2006 04:06:14 GMT
From:      "Pedro F. Giffuni" <giffunip@asme.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/93690: /usr/ports/Mk/bsd.gcc.mk doesn't know about gfortran
Message-ID:  <200602220406.k1M46Dki039038@www.freebsd.org>
Resent-Message-ID: <200602220410.k1M4A7T2071718@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         93690
>Category:       ports
>Synopsis:       /usr/ports/Mk/bsd.gcc.mk doesn't know about gfortran
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 22 04:10:06 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Pedro F. Giffuni
>Release:        6.0-Release
>Organization:
>Environment:
FreeBSD etoile.cable.net.co 6.0-RELEASE FreeBSD 6.0-RELEASE #12: Sat Feb 11 13:45:47 COT 2006     root@etoile.cable.net.co:/usr/src/sys/amd64/compile/DIMENSION  amd64

>Description:
              Currently setting USE_GCC for any version of gcc sets 

F77:=                   g77-${V}

On gcc version 4.0 and greater there is no g77. While the new gfortran can build fortran77 programs, it is also a Fortran95 and most software packages, includeng the autotools expect to find FC defined as the fortran95 compiler.

gfortran and f77 are incompatible unless gfortran is forced to use the older format with the -ff2c option.



>How-To-Repeat:
              On some ports that I am developing I need fortran90 and I have to use this:
BUILD_DEPENDS=  ${FC}:${PORTSDIR}/lang/gfortran

USE_GCC=        4.1+
WITH_FORTRAN=   yes
FC=     ${LOCALBASE}/bin/gfortran41
F77=    ${FC}

CONFIGURE_ENV+= FC=${FC} F77=${FC} FCFLAGS=${FCFLAGS}
>Fix:
              (silence...)
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602220406.k1M46Dki039038>