NetBSD Problem Report #52100

From www@NetBSD.org  Tue Mar 21 15:12:39 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id AF08D7A1F9
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 21 Mar 2017 15:12:39 +0000 (UTC)
Message-Id: <20170321151238.822DA7A2B8@mollari.NetBSD.org>
Date: Tue, 21 Mar 2017 15:12:38 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: installation of math/py-scipy fails on NetBSD 7.0.1/amd64
X-Send-Pr-Version: www-1.0

>Number:         52100
>Category:       pkg
>Synopsis:       installation of math/py-scipy fails on NetBSD 7.0.1/amd64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 21 15:15:00 +0000 2017
>Last-Modified:  Wed Mar 22 15:50:01 +0000 2017
>Originator:     Joern Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
Installation of math/py-scipy fails on NetBSD 7.0.1/amd64 with

/usr/pkgsrc/math/py-scipy/work/.wrapper/bin/gfortran -Wall -g -shared  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib build/temp.netbsd-7.0.1-amd64-2.7/scipy/integrate/_quadpackmodule.o -L/usr/pkg/lib -L/usr/pkg/bin/../lib/gcc-lib/x86_64--netbsd/4.1.2 -L/usr/pkg/lib -Lbuild/temp.netbsd-7.0.1-amd64-2.7 -lquadpack -lmach -llapack -llapack -lblas -lblas -lpython2.7 -lgfortran -o build/lib.netbsd-7.0.1-amd64-2.7/scipy/integrate/_quadpack.so
ld: cannot find -lgfortran
ld: cannot find -lgfortran
error: Command "/usr/pkgsrc/math/py-scipy/work/.wrapper/bin/gfortran -Wall -g -shared  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib build/temp.netbsd-7.0.1-amd64-2.7/scipy/integrate/_quadpackmodule.o -L/usr/pkg/lib -L/usr/pkg/bin/../lib/gcc-lib/x86_64--netbsd/4.1.2 -L/usr/pkg/lib -Lbuild/temp.netbsd-7.0.1-amd64-2.7 -lquadpack -lmach -llapack -llapack -lblas -lblas -lpython2.7 -lgfortran -o build/lib.netbsd-7.0.1-amd64-2.7/scipy/integrate/_quadpack.so" failed with exit status 1


NB that this is already the installation phase, the build went fine.

The gfortran wrapper calls g95, which hasn't changed on my system since July 2016.

I tried compilation/installation with and without cwrappers, the error is the same in both cases.
>How-To-Repeat:

>Fix:

>Audit-Trail:
From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/52100: installation of math/py-scipy fails on NetBSD
 7.0.1/amd64
Date: Wed, 22 Mar 2017 16:01:41 +0100

 On Tue, Mar 21, 2017 at 03:15:00PM +0000, joern.clausen@uni-bielefeld.de wrote:
 > The gfortran wrapper calls g95, which hasn't changed on my system since July 2016.

 Seems to be fallout from the last numpy update. It now hardcodes the
 Fortran library in numpy/distutils/fcompiler/gnu.py ~line 282. Set
 g2c = "f95" as workaround.

 Joerg

From: =?UTF-8?Q?J=c3=b6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org, pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,
 pkgsrc-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/52100: installation of math/py-scipy fails on NetBSD
 7.0.1/amd64
Date: Wed, 22 Mar 2017 16:45:29 +0100

 What do you mean by "set"? Where/how?

 $ make install g2c=f95

 did not work. Or do I have to rebuild numpy as well?


 -- 
 Jörn Clausen
 Plattformen & Serverdienste
 Hochschulrechenzentrum

 Universität Bielefeld
 Universitätsstraße 25
 33615 Bielefeld
 Telefon: +49 521 106-12601
 E-Mail: joern.clausen@uni-bielefeld.de

 http://www.uni-bielefeld.de/hrz

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.