Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Mar 2014 20:02:24 +0100 (CET)
From:      Christoph Moench-Tegeder <cmt@burggraben.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/187501: math/atlas : really needs USE_GCC
Message-ID:  <20140312190224.F02BC301A9@elch.exwg.net>
Resent-Message-ID: <201403121910.s2CJA0hP054160@freefall.freebsd.org>

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

>Number:         187501
>Category:       ports
>Synopsis:       math/atlas : really needs USE_GCC
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 12 19:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Christoph Moench-Tegeder
>Release:        FreeBSD 10.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD elch.exwg.net 10.0-RELEASE FreeBSD 10.0-RELEASE #2 r260689: Wed Jan 15 18:32:44 CET 2014 cmt@elch.exwg.net:/usr/obj/usr/src/sys/ELCH amd64

gcc-4.7.3                      lang/gcc
atlas-3.8.4_4,1                math/atlas

>Description:
	The build of math/atlas fails:

: 1 warning generated.
: cmnd=make IRunCComp CC='cc' CCFLAGS='-O -fomit-frame-pointer -Wl,-rpath=   ' | fgrep SUCCESS
:    cc -O -fomit-frame-pointer -Wl,-rpath=    : SUCCESS!
: /lib/libgcc_s.so.1: version GCC_4.6.0 required by /usr/local/lib/gcc47/libgfortran.so.3 not found
: cmnd=make IRunF77Comp F77='gfortran47' F77FLAGS='-O -Wl,-rpath=   -m64' | fgrep SUCCESS
:    gfortran47 -O -Wl,-rpath=   -m64 : FAILURE!
: g77: not found
: cmnd=make IRunF77Comp F77='g77' F77FLAGS='-O -Wl,-rpath=   ' | fgrep SUCCESS
   g77 -O -Wl,-rpath=    : FAILURE!
: f77: not found
: cmnd=make IRunF77Comp F77='f77' F77FLAGS='-O -Wl,-rpath=   ' | fgrep SUCCESS
:    f77 -O -Wl,-rpath=    : FAILURE!
:
:
: Unable to find usable compiler for F77; abortingMake sure compilers are in your path, and specify good compilers to configure
: (see INSTALL.txt or 'configure --help' for details)*** Error code 7

Relevant part is the "/lib/libgcc_s.so.1: version GCC_4.6.0 required by
/usr/local/lib/gcc47/libgfortran.so.3 not found", also please note
"-Wl,-rpath=". mat/atlas' Makefile uses EXTRA_FLAGS to pass the rpath to
the linker, as in "EXTRA_FLAGS?=   -Wl,-rpath=${_GCC_RUNTIME}", but
_GCC_RUNTIME is not set:
: cmt@elch:atlas$ make -V _GCC_RUNTIME
: 
: cmt@elch:atlas$

I traced this back to USE_GCC not being set, even though ports commit r344614
http://svnweb.freebsd.org/ports?view=revision&sortby=date&revision=344614
explicitly mentions using "USES=fortran, USE_GCC=yes". Looks like
math/atlas needs the USE_GCC after all.

For lack of time I did not test this with other ports modified in r344614.

>How-To-Repeat:

>Fix:

Simple patch:

Index: Makefile
===================================================================
--- Makefile	(revision 347994)
+++ Makefile	(working copy)
@@ -18,6 +18,7 @@
 
 USE_BZIP2=	yes
 USES=		fortran
+USE_GCC=	yes
 
 CONFLICTS=	atlas-devel-[0-9]* cblas-[0-9]*
 MANUAL_PACKAGE_BUILD=	Optimizes for the local machine.


Regards,
Christoph
>Release-Note:
>Audit-Trail:
>Unformatted:



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