ports/93690: /usr/ports/Mk/bsd.gcc.mk doesn't know about gfortran

Pedro F. Giffuni giffunip at asme.org
Wed Feb 22 04:10:10 UTC 2006


>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 at 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:



More information about the freebsd-ports-bugs mailing list