NetBSD Problem Report #42624

From www@NetBSD.org  Fri Jan 15 10:10:23 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 2B76B63C368
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 15 Jan 2010 10:10:23 +0000 (UTC)
Message-Id: <20100115101022.910EA63C2E4@www.NetBSD.org>
Date: Fri, 15 Jan 2010 10:10:22 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: math/blas does not compile on Solaris
X-Send-Pr-Version: www-1.0

>Number:         42624
>Category:       pkg
>Synopsis:       math/blas does not compile on Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    asau
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 15 10:15:00 +0000 2010
>Closed-Date:    Wed Nov 17 00:52:53 +0000 2010
>Last-Modified:  Wed Nov 17 00:52:53 +0000 2010
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
math/blas does not compile on Solaris:

libtool: link: f77 -G -h libblas.so.1 -o .libs/libblas.so.1.0.1  .libs/caxpy.o .libs/ccopy.o .libs/cdotc.o .libs/cdotu.o .libs/cgbmv.o .libs/cgemm.o .libs/cgemv.o .libs/cgerc.o .libs/cgeru.o .libs/chbmv.o .libs/chemm.o .libs/chemv.o .libs/cher.o .libs/cher2.o .libs/cher2k.o .libs/cherk.o .libs/chpmv.o .libs/chpr.o .libs/chpr2.o .libs/crotg.o .libs/cscal.o .libs/csrot.o .libs/csscal.o .libs/cswap.o .libs/csymm.o .libs/csyr2k.o .libs/csyrk.o .libs/ctbmv.o .libs/ctbsv.o .libs/ctpmv.o .libs/ctpsv.o .libs/ctrmm.o .libs/ctrmv.o .libs/ctrsm.o .libs/ctrsv.o .libs/dasum.o .libs/daxpy.o .libs/dcabs1.o .libs/dcopy.o .libs/ddot.o .libs/dgbmv.o .libs/dgemm.o .libs/dgemv.o .libs/dger.o .libs/dnrm2.o .libs/drot.o .libs/drotg.o .libs/drotm.o .libs/drotmg.o .libs/dsbmv.o .libs/dscal.o .libs/dsdot.o .libs/dspmv.o .libs/dspr.o .libs/dspr2.o .libs/dswap.o .libs/dsymm.o .libs/dsymv.o .libs/dsyr.o .libs/dsyr2.o .libs/dsyr2k.o .libs/dsyrk.o .libs/dtbmv.o .libs/dtbsv.o .libs/dtpmv.o .libs/dtpsv.o .l
 ibs/dtrmm.o .libs/dtrmv.o .libs/dtrsm.o .libs/dtrsv.o .libs/dzasum.o .libs/dznrm2.o .libs/icamax.o .libs/idamax.o .libs/isamax.o .libs/izamax.o .libs/lsame.o .libs/sasum.o .libs/saxpy.o .libs/scabs1.o .libs/scasum.o .libs/scnrm2.o .libs/scopy.o .libs/sdot.o .libs/sdsdot.o .libs/sgbmv.o .libs/sgemm.o .libs/sgemv.o .libs/sger.o .libs/snrm2.o .libs/srot.o .libs/srotg.o .libs/srotm.o .libs/srotmg.o .libs/ssbmv.o .libs/sscal.o .libs/sspmv.o .libs/sspr.o .libs/sspr2.o .libs/sswap.o .libs/ssymm.o .libs/ssymv.o .libs/ssyr.o .libs/ssyr2.o .libs/ssyr2k.o .libs/ssyrk.o .libs/stbmv.o .libs/stbsv.o .libs/stpmv.o .libs/stpsv.o .libs/strmm.o .libs/strmv.o .libs/strsm.o .libs/strsv.o .libs/xerbla.o .libs/zaxpy.o .libs/zcopy.o .libs/zdotc.o .libs/zdotu.o .libs/zdrot.o .libs/zdscal.o .libs/zgbmv.o .libs/zgemm.o .libs/zgemv.o .libs/zgerc.o .libs/zgeru.o .libs/zhbmv.o .libs/zhemm.o .libs/zhemv.o .libs/zher.o .libs/zher2.o .libs/zher2k.o .libs/zherk.o .libs/zhpmv.o .libs/zhpr.o .libs/zhpr2.o .li
 bs/zrotg.o .libs/zscal.o .libs/zswap.o .libs/zsymm.o .libs/zsyr2k.o .libs/zsyrk.o .libs/ztbmv.o .libs/ztbsv.o .libs/ztpmv.o .libs/ztpsv.o .libs/ztrmm.o .libs/ztrmv.o .libs/ztrsm.o .libs/ztrsv.o    -L/software/pkgsrc/source/pkgsrc/math/blas/work.spare4200/.buildlink/lib   
gcc: .libs/libblas.so.1.0.1: No such file or directory
gcc: libblas.so.1: No such file or directory

gcc is lang/gcc34. Is there a problem with the options passed to gcc by f2c?

Additional note: The package I actually want to build is devel/diffuse, the dependency chain is diffuse->py-gtk2->py-numpy->blas. IMHO this is another fine example for too much default dependencies.
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@gnats.netbsd.org
Cc: 
Subject: Re: pkg/42624: math/blas does not compile on Solaris
Date: Fri, 15 Jan 2010 20:16:39 -0600 (CST)

 There were some recent libtool changes. I don't know if is related, but 
 maybe you can try updating your libtool-base and trying again (after 
 make clean in blas too).

From: =?iso-8859-1?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@NetBSD.org, gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/42624: math/blas does not compile on Solaris
Date: Sat, 16 Jan 2010 19:17:03 +0100

 > There were some recent libtool changes. I don't know if is related, but 
 > maybe you can try updating your libtool-base and trying again (after 
 > make clean in blas too).

 I have a few other packages that won't compile, where I suspect libtool to be the culprit. But I don't think this is the case here. Either it's a change in f2c itself (that broke compatibility with GCC 3), or the wrapper script "f77" is bogus. Yes, libtool-base is at the current version in my pkgsrc tree.

Responsible-Changed-From-To: pkg-manager->asau
Responsible-Changed-By: asau@NetBSD.org
Responsible-Changed-When: Thu, 18 Feb 2010 21:39:41 +0000
Responsible-Changed-Why:
Fortran problem.


State-Changed-From-To: open->analyzed
State-Changed-By: asau@NetBSD.org
State-Changed-When: Thu, 18 Feb 2010 21:39:41 +0000
State-Changed-Why:
f2c-f77 wrapper isn't compatible enough, it should interpret .F suffix.


From: Aleksej Saushev <asau@inbox.ru>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/42624
Date: Fri, 19 Feb 2010 22:09:32 +0300

 The problem is that "gcc -E" is BAD CPP.

 Set CPP=cpp in mk.conf and rebuild (sequentially):
 lang/f2c, devel/libtool-base, math/blas.

 Explanation:

 1. pkgtools/bootstrap-mk-files redefines CPP as "$(CC) -E",
 see pkgtools/bootstrap-mk-files/files/mods/SunOS.sys.mk

 2. lang/f2c uses CPP to build f2c-f77 wrapper that simulates g77 interface.

 3. devel/libtool-base uses the f2c-f77 script to determine calling
 convention for Fortran compiler.

 Just because "gcc -E test.F" breaks instead of preprocessing the file
 libtool chooses wrong convention.

 As result you see "f77 -G -h" instead of "f77 -shared -Wl,-z -Wl,text..."


 -- 
 HE CE3OH...

From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: Aleksej Saushev <asau@inbox.ru>, asau@NetBSD.org, gnats-admin@NetBSD.org,
 pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/42624
Date: Mon, 01 Mar 2010 09:02:48 +0100

 >   Set CPP=cpp in mk.conf and rebuild (sequentially):
 >   lang/f2c, devel/libtool-base, math/blas.

 That did work. And math/py-numpy now compiles as well. Thanks for this 
 thorough analysis.

 -- 
   Jörn Clausen                             joern.clausen@uni-bielefeld.de
   Hochschulrechenzentrum                 http://www.uni-bielefeld.de/hrz/
   Universität Bielefeld

From: Tim Zingelman <tez@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/42624 CVS commit: pkgsrc/pkgtools/bootstrap-mk-files
Date: Wed, 12 May 2010 20:57:46 +0000

 Module Name:	pkgsrc
 Committed By:	tez
 Date:		Wed May 12 20:57:46 UTC 2010

 Modified Files:
 	pkgsrc/pkgtools/bootstrap-mk-files: Makefile
 	pkgsrc/pkgtools/bootstrap-mk-files/files/mods: SunOS.sys.mk

 Log Message:
 In SunOS, use cpp rather than ${CC} -E, as gcc -E is broken.

 If /usr/ucb/lib/cpp is in the path before gnu cpp this could break things
 but that is not an expected situation.  The only executable in /usr/ucb/lib
 is cpp, so there is no other reason to add it to the path.

 This should fix PR#42624


 To generate a diff of this commit:
 cvs rdiff -u -r1.24 -r1.25 pkgsrc/pkgtools/bootstrap-mk-files/Makefile
 cvs rdiff -u -r1.2 -r1.3 \
     pkgsrc/pkgtools/bootstrap-mk-files/files/mods/SunOS.sys.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: analyzed->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 13 May 2010 18:40:32 +0000
State-Changed-Why:
The fix has been committed; does it work?


From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/42624
Date: Tue, 16 Nov 2010 15:03:33 +0100

 Please close this PR. I finally bootstrapped pkgsrc on Solaris and was 
 able to build math/blas using lang/gcc34 without any problems.

 -- 
   Jörn Clausen                             joern.clausen@uni-bielefeld.de
   Hochschulrechenzentrum                 http://www.uni-bielefeld.de/hrz/
   Universität Bielefeld

State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Wed, 17 Nov 2010 00:52:53 +0000
State-Changed-Why:
Confirmed fixed; thanks :-)


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.