Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Oct 2007 11:41:49 GMT
From:      Harald Servat <redcrash@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/117204: PAPI/devel port fix for GCC 4.2
Message-ID:  <200710151141.l9FBfnUl048170@www.freebsd.org>
Resent-Message-ID: <200710151150.l9FBo2pY085014@freefall.freebsd.org>

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

>Number:         117204
>Category:       ports
>Synopsis:       PAPI/devel port fix for GCC 4.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 15 11:50:02 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Harald Servat
>Release:        6.2
>Organization:
>Environment:
FreeBSD BSCIT03.cepba.upc.edu 6.2-RELEASE FreeBSD 6.2-RELEASE #1: Mon Mar 12 20:40:26 CET 2007     root@BSCIT03.cepba.upc.edu:/usr/obj/usr/src/sys/laptop  i386
>Description:
I've got my port broken on AMD64/FreeBSD 7 machines (building farms, I think).
The problem is related with the name of the fortran compiler (gfortran42), which is not found using the configure script. 
As a suggestion in the ports@freebsd.org, I've added a new line into the Makefile port in order to solve this.

I'm attaching the fix in diff -U format.

Thank you!
>How-To-Repeat:

>Fix:
--- Makefile    Tue Oct  2 09:50:38 2007
+++ Makefile.new        Mon Oct 15 13:36:29 2007
@@ -37,11 +37,7 @@
 ONLY_FOR_ARCHS_REASON= HWPMC kernel module is only available for I386 and \
   AMD64 machines
 
-.if ${OSVERSION} >= 700042
-.if ${ARCH} == "amd64"
-BROKEN=                Does not compile with GCC 4.2
-.endif
-.endif
+CONFIGURE_ENV=  F77="${F77}"
 
 .if defined(WITHOUT_CTESTS)
 PLIST_SUB+=    CTESTS="@comment "


>Release-Note:
>Audit-Trail:
>Unformatted:



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