NetBSD Problem Report #52267

From www@NetBSD.org  Wed May 31 13:05:35 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 7869D7A170
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 31 May 2017 13:05:35 +0000 (UTC)
Message-Id: <20170531130533.0C3467A275@mollari.NetBSD.org>
Date: Wed, 31 May 2017 13:05:33 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: can't compile math/blas, maybe libtool-fortran problem
X-Send-Pr-Version: www-1.0

>Number:         52267
>Category:       pkg
>Synopsis:       can't compile math/blas, maybe libtool-fortran problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 31 13:10:00 +0000 2017
>Last-Modified:  Fri Jun 02 13:55:01 +0000 2017
>Originator:     Joern Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
Compiling math/blas on Solaris 11.3 with GCC 4.9.4, math/blas fails with

libtool-fortran: link: gfortran -shared  -fPIC -Wl,-z -Wl,text -Wl,-h -Wl,libblas.so.4 -o .libs/libblas.so.4.0.0  .libs/isamax.o .libs/sasum.o .libs/saxpy.o .libs/scopy.o .libs/sdot.o .libs/snrm2.o .libs/srot.o .libs/srotg.o .libs/sscal.o .libs/sswap.o .libs/sdsdot.o .libs/srotmg.o .libs/srotm.o .libs/sgemv.o .libs/sgbmv.o .libs/ssymv.o .libs/ssbmv.o .libs/sspmv.o .libs/strmv.o .libs/stbmv.o .libs/stpmv.o .libs/strsv.o .libs/stbsv.o .libs/stpsv.o .libs/sger.o .libs/ssyr.o .libs/sspr.o .libs/ssyr2.o .libs/sspr2.o .libs/sgemm.o .libs/ssymm.o .libs/ssyrk.o .libs/ssyr2k.o .libs/strmm.o .libs/strsm.o .libs/idamax.o .libs/dasum.o .libs/daxpy.o .libs/dcopy.o .libs/ddot.o .libs/dnrm2.o .libs/drot.o .libs/drotg.o .libs/dscal.o .libs/dsdot.o .libs/dswap.o .libs/drotmg.o .libs/drotm.o .libs/dgemv.o .libs/dgbmv.o .libs/dsymv.o .libs/dsbmv.o .libs/dspmv.o .libs/dtrmv.o .libs/dtbmv.o .libs/dtpmv.o .libs/dtrsv.o .libs/dtbsv.o .libs/dtpsv.o .libs/dger.o .libs/dsyr.o .libs/dspr.o .libs/dsyr2.o .libs/
 dspr2.o .libs/dgemm.o .libs/dsymm.o .libs/dsyrk.o .libs/dsyr2k.o .libs/dtrmm.o .libs/dtrsm.o .libs/scabs1.o .libs/scasum.o .libs/scnrm2.o .libs/icamax.o .libs/caxpy.o .libs/ccopy.o .libs/cdotc.o .libs/cdotu.o .libs/csscal.o .libs/crotg.o .libs/cscal.o .libs/cswap.o .libs/csrot.o .libs/cgemv.o .libs/cgbmv.o .libs/chemv.o .libs/chbmv.o .libs/chpmv.o .libs/ctrmv.o .libs/ctbmv.o .libs/ctpmv.o .libs/ctrsv.o .libs/ctbsv.o .libs/ctpsv.o .libs/cgerc.o .libs/cgeru.o .libs/cher.o .libs/chpr.o .libs/cher2.o .libs/chpr2.o .libs/cgemm.o .libs/csymm.o .libs/csyrk.o .libs/csyr2k.o .libs/ctrmm.o .libs/ctrsm.o .libs/chemm.o .libs/cherk.o .libs/cher2k.o .libs/dcabs1.o .libs/dzasum.o .libs/dznrm2.o .libs/izamax.o .libs/zaxpy.o .libs/zcopy.o .libs/zdotc.o .libs/zdotu.o .libs/zdscal.o .libs/zrotg.o .libs/zscal.o .libs/zswap.o .libs/zdrot.o .libs/zgemv.o .libs/zgbmv.o .libs/zhemv.o .libs/zhbmv.o .libs/zhpmv.o .libs/ztrmv.o .libs/ztbmv.o .libs/ztpmv.o .libs/ztrsv.o .libs/ztbsv.o .libs/ztpsv.o .libs/zgerc.
 o .libs/zgeru.o .libs/zher.o .libs/zhpr.o .libs/zher2.o .libs/zhpr2.o .libs/zgemm.o .libs/zsymm.o .libs/zsyrk.o .libs/zsyr2k.o .libs/ztrmm.o .libs/ztrsm.o .libs/zhemm.o .libs/zherk.o .libs/zher2k.o .libs/lsame.o .libs/xerbla.o .libs/xerbla_array.o   -R/opt/pkg-gcc/4.9.4/lib/amd64 -R/opt/pkg-gcc/4.9.4/lib/amd64 -L/opt/pkgsrc/pkg-hrz/pkgsrc/math/blas/work.pkgsrc-sol11i86/.buildlink/lib -l -l -L/opt/pkg-gcc/4.9.4/lib/gcc/i386-pc-solaris2.11/4.9.4/amd64 -L/opt/pkg-gcc/4.9.4/lib/gcc/i386-pc-solaris2.11/4.9.4/../../../amd64 -L/lib/amd64 -L/usr/lib/amd64 -L/opt/pkg-gcc/4.9.4/lib/gcc/i386-pc-solaris2.11/4.9.4 -L/opt/pkg-gcc/4.9.4/lib/gcc/i386-pc-solaris2.11/4.9.4/../../.. /opt/pkg-gcc/4.9.4/lib/amd64/libgfortran.so -L/opt/pkg-gcc/4.9.4/lib/amd64 -lm -lm -lgcc_s /opt/pkg-gcc/4.9.4/lib/amd64/libquadmath.so -lm -lm -lgcc_s -lc -lgcc_s  -Wl,-R/opt/pkg-hrz/20170529/lib  
ld: fatal: library -l-l: not found
collect2: error: ld returned 1 exit status


This did compile with Solaris 11.2/GCC485 some time ago. Bash (used by libtool-fortran) was updated from 4.1 to 4.4 by the Solaris upgrade.

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Wed, 31 May 2017 13:22:21 +0000
Responsible-Changed-Why:
Solaris pkgsrc problem.
(perhaps look in the .work.log file in work*/ to find out what gets translated to '-l -l')


From: =?UTF-8?Q?J=c3=b6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org, solaris-pkg-people@NetBSD.org,
 pkg-manager@NetBSD.org, pkgsrc-bugs@NetBSD.org, gnats-admin@NetBSD.org,
 wiz@NetBSD.org
Cc: 
Subject: Re: pkg/52267 (can't compile math/blas, maybe libtool-fortran problem)
Date: Wed, 31 May 2017 15:52:47 +0200

 This is a multi-part message in MIME format.

 --Boundary_(ID_kic0Su5E+3GZQgZSAiTcMQ)
 Content-type: text/plain; charset=iso-8859-15; format=flowed
 Content-transfer-encoding: 8BIT

 I have attached the last five lines of .work.log, hopefully this gets 
 through...

 It is definitely libtool-fortran that generates "-l-l", but I can't tell 
 where it happens. The input and output look too different to me and 
 libtool-fortran shuffles its input so much that I lose track quickly.

 -- 
 Jörn Clausen
 Plattformen & Serverdienste
 BITS - Bielefelder IT-Servicezentrum

 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/bits

 --Boundary_(ID_kic0Su5E+3GZQgZSAiTcMQ)
 Content-type: text/plain; CHARSET=US-ASCII; name=blas.work.log
 Content-transfer-encoding: quoted-printable
 Content-disposition: attachment; filename=blas.work.log

 [*] /opt/pkgsrc/pkg-hrz/pkgsrc/math/blas/work.pkgsrc-sol11i86/.wrapper/bi=
 n/libtool /opt/pkgsrc/pkg-hrz/pkgsrc/math/blas/work.pkgsrc-sol11i86/.wrap=
 per/bin/libtool --mode=3Dlink --tag=3DFC gfortran -Wl,-R/opt/pkg-hrz/2017=
 0529/lib -o libblas.la isamax.lo sasum.lo saxpy.lo scopy.lo sdot.lo snrm2=
 =2Elo srot.lo srotg.lo sscal.lo sswap.lo sdsdot.lo srotmg.lo srotm.lo sge=
 mv.lo sgbmv.lo ssymv.lo ssbmv.lo sspmv.lo strmv.lo stbmv.lo stpmv.lo strs=
 v.lo stbsv.lo stpsv.lo sger.lo ssyr.lo sspr.lo ssyr2.lo sspr2.lo sgemm.lo=
  ssymm.lo ssyrk.lo ssyr2k.lo strmm.lo strsm.lo idamax.lo dasum.lo daxpy.l=
 o dcopy.lo ddot.lo dnrm2.lo drot.lo drotg.lo dscal.lo dsdot.lo dswap.lo d=
 rotmg.lo drotm.lo dgemv.lo dgbmv.lo dsymv.lo dsbmv.lo dspmv.lo dtrmv.lo d=
 tbmv.lo dtpmv.lo dtrsv.lo dtbsv.lo dtpsv.lo dger.lo dsyr.lo dspr.lo dsyr2=
 =2Elo dspr2.lo dgemm.lo dsymm.lo dsyrk.lo dsyr2k.lo dtrmm.lo dtrsm.lo sca=
 bs1.lo scasum.lo scnrm2.lo icamax.lo caxpy.lo ccopy.lo cdotc.lo cdotu.lo =
 csscal.lo crotg.lo cscal.lo cswap.lo csrot.lo cgemv.lo cgbmv.lo chemv.lo =
 chbmv.lo chpmv.lo ctrmv.lo ctbmv.lo ctpmv.lo ctrsv.lo ctbsv.lo ctpsv.lo c=
 gerc.lo cgeru.lo cher.lo chpr.lo cher2.lo chpr2.lo cgemm.lo csymm.lo csyr=
 k.lo csyr2k.lo ctrmm.lo ctrsm.lo chemm.lo cherk.lo cher2k.lo dcabs1.lo dz=
 asum.lo dznrm2.lo izamax.lo zaxpy.lo zcopy.lo zdotc.lo zdotu.lo zdscal.lo=
  zrotg.lo zscal.lo zswap.lo zdrot.lo zgemv.lo zgbmv.lo zhemv.lo zhbmv.lo =
 zhpmv.lo ztrmv.lo ztbmv.lo ztpmv.lo ztrsv.lo ztbsv.lo ztpsv.lo zgerc.lo z=
 geru.lo zher.lo zhpr.lo zher2.lo zhpr2.lo zgemm.lo zsymm.lo zsyrk.lo zsyr=
 2k.lo ztrmm.lo ztrsm.lo zhemm.lo zherk.lo zher2k.lo lsame.lo xerbla.lo xe=
 rbla_array.lo -rpath /opt/pkg-hrz/20170529/lib -version-info 4:0
 <.> /opt/pkg-hrz/20170529/bin/libtool-fortran --mode=3Dlink --tag=3DFC gf=
 ortran -Wl,-R/opt/pkg-hrz/20170529/lib -o libblas.la isamax.lo sasum.lo s=
 axpy.lo scopy.lo sdot.lo snrm2.lo srot.lo srotg.lo sscal.lo sswap.lo sdsd=
 ot.lo srotmg.lo srotm.lo sgemv.lo sgbmv.lo ssymv.lo ssbmv.lo sspmv.lo str=
 mv.lo stbmv.lo stpmv.lo strsv.lo stbsv.lo stpsv.lo sger.lo ssyr.lo sspr.l=
 o ssyr2.lo sspr2.lo sgemm.lo ssymm.lo ssyrk.lo ssyr2k.lo strmm.lo strsm.l=
 o idamax.lo dasum.lo daxpy.lo dcopy.lo ddot.lo dnrm2.lo drot.lo drotg.lo =
 dscal.lo dsdot.lo dswap.lo drotmg.lo drotm.lo dgemv.lo dgbmv.lo dsymv.lo =
 dsbmv.lo dspmv.lo dtrmv.lo dtbmv.lo dtpmv.lo dtrsv.lo dtbsv.lo dtpsv.lo d=
 ger.lo dsyr.lo dspr.lo dsyr2.lo dspr2.lo dgemm.lo dsymm.lo dsyrk.lo dsyr2=
 k.lo dtrmm.lo dtrsm.lo scabs1.lo scasum.lo scnrm2.lo icamax.lo caxpy.lo c=
 copy.lo cdotc.lo cdotu.lo csscal.lo crotg.lo cscal.lo cswap.lo csrot.lo c=
 gemv.lo cgbmv.lo chemv.lo chbmv.lo chpmv.lo ctrmv.lo ctbmv.lo ctpmv.lo ct=
 rsv.lo ctbsv.lo ctpsv.lo cgerc.lo cgeru.lo cher.lo chpr.lo cher2.lo chpr2=
 =2Elo cgemm.lo csymm.lo csyrk.lo csyr2k.lo ctrmm.lo ctrsm.lo chemm.lo che=
 rk.lo cher2k.lo dcabs1.lo dzasum.lo dznrm2.lo izamax.lo zaxpy.lo zcopy.lo=
  zdotc.lo zdotu.lo zdscal.lo zrotg.lo zscal.lo zswap.lo zdrot.lo zgemv.lo=
  zgbmv.lo zhemv.lo zhbmv.lo zhpmv.lo ztrmv.lo ztbmv.lo ztpmv.lo ztrsv.lo =
 ztbsv.lo ztpsv.lo zgerc.lo zgeru.lo zher.lo zhpr.lo zher2.lo zhpr2.lo zge=
 mm.lo zsymm.lo zsyrk.lo zsyr2k.lo ztrmm.lo ztrsm.lo zhemm.lo zherk.lo zhe=
 r2k.lo lsame.lo xerbla.lo xerbla_array.lo -rpath /opt/pkg-hrz/20170529/li=
 b -version-info 4:0 -L/opt/pkgsrc/pkg-hrz/pkgsrc/math/blas/work.pkgsrc-so=
 l11i86/.buildlink/lib=20
 [*] /opt/pkgsrc/pkg-hrz/pkgsrc/math/blas/work.pkgsrc-sol11i86/.wrapper/bi=
 n/gfortran /opt/pkgsrc/pkg-hrz/pkgsrc/math/blas/work.pkgsrc-sol11i86/.wra=
 pper/bin/gfortran -shared -fPIC -Wl,-z -Wl,text -Wl,-h -Wl,libblas.so.4 -=
 o .libs/libblas.so.4.0.0 .libs/isamax.o .libs/sasum.o .libs/saxpy.o .libs=
 /scopy.o .libs/sdot.o .libs/snrm2.o .libs/srot.o .libs/srotg.o .libs/ssca=
 l.o .libs/sswap.o .libs/sdsdot.o .libs/srotmg.o .libs/srotm.o .libs/sgemv=
 =2Eo .libs/sgbmv.o .libs/ssymv.o .libs/ssbmv.o .libs/sspmv.o .libs/strmv.=
 o .libs/stbmv.o .libs/stpmv.o .libs/strsv.o .libs/stbsv.o .libs/stpsv.o .=
 libs/sger.o .libs/ssyr.o .libs/sspr.o .libs/ssyr2.o .libs/sspr2.o .libs/s=
 gemm.o .libs/ssymm.o .libs/ssyrk.o .libs/ssyr2k.o .libs/strmm.o .libs/str=
 sm.o .libs/idamax.o .libs/dasum.o .libs/daxpy.o .libs/dcopy.o .libs/ddot.=
 o .libs/dnrm2.o .libs/drot.o .libs/drotg.o .libs/dscal.o .libs/dsdot.o .l=
 ibs/dswap.o .libs/drotmg.o .libs/drotm.o .libs/dgemv.o .libs/dgbmv.o .lib=
 s/dsymv.o .libs/dsbmv.o .libs/dspmv.o .libs/dtrmv.o .libs/dtbmv.o .libs/d=
 tpmv.o .libs/dtrsv.o .libs/dtbsv.o .libs/dtpsv.o .libs/dger.o .libs/dsyr.=
 o .libs/dspr.o .libs/dsyr2.o .libs/dspr2.o .libs/dgemm.o .libs/dsymm.o .l=
 ibs/dsyrk.o .libs/dsyr2k.o .libs/dtrmm.o .libs/dtrsm.o .libs/scabs1.o .li=
 bs/scasum.o .libs/scnrm2.o .libs/icamax.o .libs/caxpy.o .libs/ccopy.o .li=
 bs/cdotc.o .libs/cdotu.o .libs/csscal.o .libs/crotg.o .libs/cscal.o .libs=
 /cswap.o .libs/csrot.o .libs/cgemv.o .libs/cgbmv.o .libs/chemv.o .libs/ch=
 bmv.o .libs/chpmv.o .libs/ctrmv.o .libs/ctbmv.o .libs/ctpmv.o .libs/ctrsv=
 =2Eo .libs/ctbsv.o .libs/ctpsv.o .libs/cgerc.o .libs/cgeru.o .libs/cher.o=
  .libs/chpr.o .libs/cher2.o .libs/chpr2.o .libs/cgemm.o .libs/csymm.o .li=
 bs/csyrk.o .libs/csyr2k.o .libs/ctrmm.o .libs/ctrsm.o .libs/chemm.o .libs=
 /cherk.o .libs/cher2k.o .libs/dcabs1.o .libs/dzasum.o .libs/dznrm2.o .lib=
 s/izamax.o .libs/zaxpy.o .libs/zcopy.o .libs/zdotc.o .libs/zdotu.o .libs/=
 zdscal.o .libs/zrotg.o .libs/zscal.o .libs/zswap.o .libs/zdrot.o .libs/zg=
 emv.o .libs/zgbmv.o .libs/zhemv.o .libs/zhbmv.o .libs/zhpmv.o .libs/ztrmv=
 =2Eo .libs/ztbmv.o .libs/ztpmv.o .libs/ztrsv.o .libs/ztbsv.o .libs/ztpsv.=
 o .libs/zgerc.o .libs/zgeru.o .libs/zher.o .libs/zhpr.o .libs/zher2.o .li=
 bs/zhpr2.o .libs/zgemm.o .libs/zsymm.o .libs/zsyrk.o .libs/zsyr2k.o .libs=
 /ztrmm.o .libs/ztrsm.o .libs/zhemm.o .libs/zherk.o .libs/zher2k.o .libs/l=
 same.o .libs/xerbla.o .libs/xerbla_array.o -R/opt/pkg-gcc/4.9.4/lib/amd64=
  -R/opt/pkg-gcc/4.9.4/lib/amd64 -L/opt/pkgsrc/pkg-hrz/pkgsrc/math/blas/wo=
 rk.pkgsrc-sol11i86/.buildlink/lib -l -l -L/opt/pkg-gcc/4.9.4/lib/gcc/i386=
 -pc-solaris2.11/4.9.4/amd64 -L/opt/pkg-gcc/4.9.4/lib/gcc/i386-pc-solaris2=
 =2E11/4.9.4/../../../amd64 -L/lib/amd64 -L/usr/lib/amd64 -L/opt/pkg-gcc/4=
 =2E9.4/lib/gcc/i386-pc-solaris2.11/4.9.4 -L/opt/pkg-gcc/4.9.4/lib/gcc/i38=
 6-pc-solaris2.11/4.9.4/../../.. /opt/pkg-gcc/4.9.4/lib/amd64/libgfortran.=
 so -L/opt/pkg-gcc/4.9.4/lib/amd64 -lm -lm -lgcc_s /opt/pkg-gcc/4.9.4/lib/=
 amd64/libquadmath.so -lm -lm -lgcc_s -lc -lgcc_s -Wl,-R/opt/pkg-hrz/20170=
 529/lib
 WARNING: [arg-source] An -l option must not be followed by another option=
 , -l.
 <.> /opt/pkgsrc/pkg-hrz/pkgsrc/math/blas/work.pkgsrc-sol11i86/.gcc/bin/gf=
 ortran -shared -fPIC -Wl,-z -Wl,text -Wl,-h -Wl,libblas.so.4 -o .libs/lib=
 blas.so.4.0.0 .libs/isamax.o .libs/sasum.o .libs/saxpy.o .libs/scopy.o .l=
 ibs/sdot.o .libs/snrm2.o .libs/srot.o .libs/srotg.o .libs/sscal.o .libs/s=
 swap.o .libs/sdsdot.o .libs/srotmg.o .libs/srotm.o .libs/sgemv.o .libs/sg=
 bmv.o .libs/ssymv.o .libs/ssbmv.o .libs/sspmv.o .libs/strmv.o .libs/stbmv=
 =2Eo .libs/stpmv.o .libs/strsv.o .libs/stbsv.o .libs/stpsv.o .libs/sger.o=
  .libs/ssyr.o .libs/sspr.o .libs/ssyr2.o .libs/sspr2.o .libs/sgemm.o .lib=
 s/ssymm.o .libs/ssyrk.o .libs/ssyr2k.o .libs/strmm.o .libs/strsm.o .libs/=
 idamax.o .libs/dasum.o .libs/daxpy.o .libs/dcopy.o .libs/ddot.o .libs/dnr=
 m2.o .libs/drot.o .libs/drotg.o .libs/dscal.o .libs/dsdot.o .libs/dswap.o=
  .libs/drotmg.o .libs/drotm.o .libs/dgemv.o .libs/dgbmv.o .libs/dsymv.o .=
 libs/dsbmv.o .libs/dspmv.o .libs/dtrmv.o .libs/dtbmv.o .libs/dtpmv.o .lib=
 s/dtrsv.o .libs/dtbsv.o .libs/dtpsv.o .libs/dger.o .libs/dsyr.o .libs/dsp=
 r.o .libs/dsyr2.o .libs/dspr2.o .libs/dgemm.o .libs/dsymm.o .libs/dsyrk.o=
  .libs/dsyr2k.o .libs/dtrmm.o .libs/dtrsm.o .libs/scabs1.o .libs/scasum.o=
  .libs/scnrm2.o .libs/icamax.o .libs/caxpy.o .libs/ccopy.o .libs/cdotc.o =
 =2Elibs/cdotu.o .libs/csscal.o .libs/crotg.o .libs/cscal.o .libs/cswap.o =
 =2Elibs/csrot.o .libs/cgemv.o .libs/cgbmv.o .libs/chemv.o .libs/chbmv.o .=
 libs/chpmv.o .libs/ctrmv.o .libs/ctbmv.o .libs/ctpmv.o .libs/ctrsv.o .lib=
 s/ctbsv.o .libs/ctpsv.o .libs/cgerc.o .libs/cgeru.o .libs/cher.o .libs/ch=
 pr.o .libs/cher2.o .libs/chpr2.o .libs/cgemm.o .libs/csymm.o .libs/csyrk.=
 o .libs/csyr2k.o .libs/ctrmm.o .libs/ctrsm.o .libs/chemm.o .libs/cherk.o =
 =2Elibs/cher2k.o .libs/dcabs1.o .libs/dzasum.o .libs/dznrm2.o .libs/izama=
 x.o .libs/zaxpy.o .libs/zcopy.o .libs/zdotc.o .libs/zdotu.o .libs/zdscal.=
 o .libs/zrotg.o .libs/zscal.o .libs/zswap.o .libs/zdrot.o .libs/zgemv.o .=
 libs/zgbmv.o .libs/zhemv.o .libs/zhbmv.o .libs/zhpmv.o .libs/ztrmv.o .lib=
 s/ztbmv.o .libs/ztpmv.o .libs/ztrsv.o .libs/ztbsv.o .libs/ztpsv.o .libs/z=
 gerc.o .libs/zgeru.o .libs/zher.o .libs/zhpr.o .libs/zher2.o .libs/zhpr2.=
 o .libs/zgemm.o .libs/zsymm.o .libs/zsyrk.o .libs/zsyr2k.o .libs/ztrmm.o =
 =2Elibs/ztrsm.o .libs/zhemm.o .libs/zherk.o .libs/zher2k.o .libs/lsame.o =
 =2Elibs/xerbla.o .libs/xerbla_array.o -L/opt/pkgsrc/pkg-hrz/pkgsrc/math/b=
 las/work.pkgsrc-sol11i86/.buildlink/lib -Wl,-R/opt/pkg-hrz/20170529/lib -=
 m64 -I/opt/pkgsrc/pkg-hrz/pkgsrc/math/blas/work.pkgsrc-sol11i86/.buildlin=
 k/include  -l-l -lgfortran -lm -lgcc_s -lquadmath -lm -lgcc_s -lc -lgcc_s=


 --Boundary_(ID_kic0Su5E+3GZQgZSAiTcMQ)--

From: coypu@sdf.org
To: gnats-bugs@netbsd.org
Cc: joern.clausen@uni-bielefeld.de
Subject: Re: pkg/52267: can't compile math/blas, maybe libtool-fortran problem
Date: Wed, 31 May 2017 19:12:16 +0000

 Hmm, I don't really know my way around libtool but

 I think that the .la files are the ones adding the various -lTHINGS, and
 perhaps one of them has -l.

 I have:
 ./.buildlink/gcc48/lib/libgfortran.la:dependency_libs='-lm'

 (maybe find . -name '*.la' | xargs grep '\-l')

 I see that the libtool files are generated with things using
 `some-command`, I feel like that won't do the right thing if
 some-command errors out, but it would be best to check if any of the .la
 files contains '-l' and which it is!

From: Joerg Sonnenberger <joerg@bec.de>
To: =?iso-8859-1?Q?J=F6rn?= Clausen <joern.clausen@uni-bielefeld.de>
Cc: gnats-bugs@NetBSD.org, solaris-pkg-people@NetBSD.org,
	pkg-manager@NetBSD.org, pkgsrc-bugs@NetBSD.org,
	gnats-admin@NetBSD.org, wiz@NetBSD.org
Subject: Re: pkg/52267 (can't compile math/blas, maybe libtool-fortran
 problem)
Date: Wed, 31 May 2017 23:42:38 +0200

 On Wed, May 31, 2017 at 03:52:47PM +0200, Jörn Clausen wrote:
 > It is definitely libtool-fortran that generates "-l-l", but I can't tell
 > where it happens. The input and output look too different to me and
 > libtool-fortran shuffles its input so much that I lose track quickly.

 Actually, it is originally "-l -l". Trace that one down :)

 Joerg

From: =?UTF-8?Q?J=c3=b6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: coypu@sdf.org, gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/52267: can't compile math/blas, maybe libtool-fortran problem
Date: Thu, 01 Jun 2017 10:16:31 +0200

 libgfortran.la (outside the pkgsrc tree, as I use a standalone GCC) 
 contains this:

 dependency_libs=' '/opt/pkg-gcc/4.9.4/lib'/libquadmath.la -lm'

 The quotes are somewhat weird, but the corresponding file for GCC 4.8.5 
 looks similar.

 I see no other .la files that look suspicious.

 -- 
 Jörn Clausen
 Plattformen & Serverdienste
 BITS - Bielefelder IT-Servicezentrum

From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/52267: can't compile math/blas, maybe libtool-fortran problem
Date: Thu, 1 Jun 2017 19:56:00 +0200

 On Thu, Jun 01, 2017 at 08:20:01AM +0000, Jörn Clausen wrote:
 >  libgfortran.la (outside the pkgsrc tree, as I use a standalone GCC) 
 >  contains this:

 What about libtool-fortran itself?

 Joerg

From: =?UTF-8?Q?J=c3=b6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org, solaris-pkg-people@NetBSD.org,
 gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/52267: can't compile math/blas, maybe libtool-fortran problem
Date: Fri, 02 Jun 2017 08:50:03 +0200

 >  What about libtool-fortran itself?

 Whoa, now I see it. There's some heavy string jumbling going on...

 libtool-fortran contains this definition:

 postdeps="-l -l 
 -L/opt/pkg-gcc/4.9.4/lib/gcc/i386-pc-solaris2.11/4.9.4/amd64 
 -L/opt/pkg-gcc/4.9.4/lib/gcc/i386-pc-solaris2.11/4.9.4/../../../amd64 
 -L/lib/amd64 -L/usr/lib/amd64 
 -L/opt/pkg-gcc/4.9.4/lib/gcc/i386-pc-solaris2.11/4.9.4 
 -L/opt/pkg-gcc/4.9.4/lib/gcc/i386-pc-solaris2.11/4.9.4/../../.. 
 -R/opt/pkg-gcc/4.9.4/lib/amd64 -lgfortran -lm -lgcc_s -lquadmath -lm 
 -lgcc_s -lc -lgcc_s"


 There's "-l -l" at the start that I totally missed. I looked for 
 -lgfortran and didn't expect everything in between to get squashed.

 -- 
 Jörn Clausen
 Plattformen & Serverdienste
 BITS - Bielefelder IT-Servicezentrum

From: =?UTF-8?Q?J=c3=b6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org, solaris-pkg-people@NetBSD.org,
 gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/52267: can't compile math/blas, maybe libtool-fortran problem
Date: Fri, 02 Jun 2017 08:54:27 +0200

 After removing "-l -l", math/blas builds, by the way.

 -- 
 Jörn Clausen
 Plattformen & Serverdienste
 BITS - Bielefelder IT-Servicezentrum

 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/bits

From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/52267: can't compile math/blas, maybe libtool-fortran problem
Date: Fri, 2 Jun 2017 12:40:41 +0200

 On Fri, Jun 02, 2017 at 06:55:00AM +0000, Jörn Clausen wrote:
 > The following reply was made to PR pkg/52267; it has been noted by GNATS.
 > 
 > From: =?UTF-8?Q?J=c3=b6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
 > To: gnats-bugs@NetBSD.org, solaris-pkg-people@NetBSD.org,
 >  gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: pkg/52267: can't compile math/blas, maybe libtool-fortran problem
 > Date: Fri, 02 Jun 2017 08:50:03 +0200
 > 
 >  >  What about libtool-fortran itself?
 >  
 >  Whoa, now I see it. There's some heavy string jumbling going on...

 The next place would be config.log from the libtool-fortran build and/or
 running configure with sh -x and filtering through the output.
 gfortran's -dump-specs is also a good place to check.

 Joerg

From: =?UTF-8?Q?J=c3=b6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org, solaris-pkg-people@NetBSD.org,
 gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/52267: can't compile math/blas, maybe libtool-fortran problem
Date: Fri, 02 Jun 2017 15:53:14 +0200

 >  The next place would be config.log from the libtool-fortran build

 According to config.status, postdeps_FC is the source of "-l -l":

 postdeps_FC='-L/opt/pkgsrc/pkg-hrz/pkgsrc/devel/libtool-fortran/work.pkgsrc-sol11i86/.buildlink/lib 
 -l -l 
 -L/opt/pkgsrc/pkg-hrz/pkgsrc/devel/libtool-fortran/work.pkgsrc-sol11i86/.buildlink/lib 
 -L/opt/pkg-gcc/4.9.4/lib/gcc/i386-pc-solaris2.11/4.9.4/amd64 
 -L/opt/pkg-gcc/4.9.4/lib/gcc/i386-pc-solaris2.11/4.9.4/../../../amd64 
 -L/lib/amd64 -L/usr/lib/amd64 
 -L/opt/pkg-gcc/4.9.4/lib/gcc/i386-pc-solaris2.11/4.9.4 
 -L/opt/pkg-gcc/4.9.4/lib/gcc/i386-pc-solaris2.11/4.9.4/../../.. 
 -R/opt/pkg-gcc/4.9.4/lib/amd64 -lgfortran -lm -lgcc_s -lquadmath -lm 
 -lgcc_s -lc -lgcc_s'

 >  running configure with sh -x and filtering through the output

 It took me some time to run configure with the same environment as when 
 called in pkgsrc :)

 The standalone -l is generated somewhere in the code starting at line 
 21683 of the configure script. There are some calls like

 func_stripname_cnf -l '' -l

 visible in the -x-generated output.

 When pkgsrc runs configure, it uses /usr/bin/bash (which changed from 
 4.1 in Solaris 11.2 to 4.4 in Solaris 11.3). Rerunning configure in the 
 same environment, but using /bin/sh, the calls to func_stripname are 
 missing and the final result is good. So it's hard to say if the 
 configure script contains an error or if a bash bug is triggered.

 The config.logs/.status and -x output is available on request.

 -- 
 Jörn Clausen
 Plattformen & Serverdienste
 BITS - Bielefelder IT-Servicezentrum

>Unformatted:

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.