Bug 185375 - math/lapack fails to build with PROFILE=on
Summary: math/lapack fails to build with PROFILE=on
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Maho Nakata
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-31 23:10 UTC by Philipp Ost
Modified: 2015-03-24 17:31 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Ost 2013-12-31 23:10:00 UTC
math/lapack fails to build with PROFILE=on.

It fails with the following error:
[...]
gfortran46 -O -Wl,-rpath=/usr/local/lib/gcc46 -pg -c slatm3.f -o slatm3.o
gfortran46 -O -Wl,-rpath=/usr/local/lib/gcc46 -pg -c slatm5.f -o slatm5.o
gfortran46 -O -Wl,-rpath=/usr/local/lib/gcc46 -pg -c slatm6.f -o slatm6.o
gfortran46 -O -Wl,-rpath=/usr/local/lib/gcc46 -pg -c slatm7.f -o slatm7.o
gfortran46 -O -Wl,-rpath=/usr/local/lib/gcc46 -pg -c slahilb.f -o slahilb.o
/usr/local/bin/ld: //usr/lib/libc_p.a(sbrk.po): undefined reference to symbol '_
end'
//lib/libc.so.7: error adding symbols: DSO missing from command line
collect2: ld returned 1 exit status
*** [testslamch] Error code 1
/usr/local/bin/ld: //usr/lib/libc_p.a(sbrk.po): undefined reference to symbol '_
end'
//lib/libc.so.7: error adding symbols: DSO missing from command line
collect2: ld returned 1 exit status
/usr/local/bin/ld: //usr/lib/libc_p.a(sbrk.po): undefined reference to symbol '_
end'
//lib/libc.so.7: error adding symbols: DSO missing from command line
collect2: ld returned 1 exit status
*** [testdsecnd] Error code 1
gfortran46 -O -Wl,-rpath=/usr/local/lib/gcc46 -pg -c clatms.f -o clatms.o
*** [testlsame] Error code 1
/usr/local/bin/ld: //usr/lib/libc_p.a(sbrk.po): undefined reference to symbol '_
end'
/usr/local/bin/ld: //usr/lib/libc_p.a(sbrk.po): undefined reference to symbol '_
end'
//lib/libc.so.7: error adding symbols: DSO missing from command line
//lib/libc.so.7: error adding symbols: DSO missing from command line
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
gfortran46 -O -Wl,-rpath=/usr/local/lib/gcc46 -pg -c clatme.f -o clatme.o
gfortran46 -O -Wl,-rpath=/usr/local/lib/gcc46 -pg -c clatmr.f -o clatmr.o
*** [testdlamch] Error code 1
*** [testsecond] Error code 1
5 errors
*** [lapack_install] Error code 2
gfortran46 -O -Wl,-rpath=/usr/local/lib/gcc46 -pg -c clatmt.f -o clatmt.o
gfortran46 -O -Wl,-rpath=/usr/local/lib/gcc46 -pg -c clagge.f -o clagge.o
[...]
gfortran46 -O0 -pg -c dlaran.f
gfortran46 -O -Wl,-rpath=/usr/local/lib/gcc46 -pg -c dlarnd.f -o dlarnd.o
/usr/local/bin/ar cr ../../libtmglib.a slatms.o slatme.o slatmr.o slatmt.o  slag
ge.o slagsy.o slakf2.o slarge.o slaror.o slarot.o slatm2.o  slatm3.o slatm5.o sl
atm6.o slatm7.o slahilb.o clatms.o clatme.o clatmr.o clatmt.o  clagge.o claghe.o
 clagsy.o clakf2.o clarge.o claror.o clarot.o  clatm1.o clarnd.o clatm2.o clatm3
.o clatm5.o clatm6.o clahilb.o slatm1.o slaran.o slarnd.o dlatms.o dlatme.o dlat
mr.o dlatmt.o  dlagge.o dlagsy.o dlakf2.o dlarge.o dlaror.o dlarot.o dlatm2.o  d
latm3.o dlatm5.o dlatm6.o dlatm7.o dlahilb.o zlatms.o zlatme.o zlatmr.o zlatmt.o
  zlagge.o zlaghe.o zlagsy.o zlakf2.o zlarge.o zlaror.o zlarot.o  zlatm1.o zlarn
d.o zlatm2.o zlatm3.o zlatm5.o zlatm6.o zlahilb.o        dlatm1.o dlaran.o dlarn
d.o
/usr/local/bin/ranlib ../../libtmglib.a
1 error
*** [build-profile] Error code 2

Stop in /usr/ports/math/lapack.
*** [build] Error code 1

Stop in /usr/ports/math/lapack.

Fix: 

Set PROFILE=off.
How-To-Repeat: Set PROFILE=on; then: make
Comment 1 Edwin Groothuis freebsd_committer 2013-12-31 23:10:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->maho

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 commit-hook freebsd_committer 2015-03-24 17:30:12 UTC
A commit references this bug:

Author: robak
Date: Tue Mar 24 17:29:48 UTC 2015
New revision: 382127
URL: https://svnweb.freebsd.org/changeset/ports/382127

Log:
  math/lapack: fix build when PROFILE option is selected

  - Since dynamic linking is broken when PROFILE is used, enforce '-static' LDFLAGS
  - Maintainer's timeout (maho@FreeBSD.org)

  PR:		185375
  Submitted by:	Pawel Biernacki <pawel.biernacki@gmail.com>

Changes:
  head/math/lapack/Makefile
Comment 3 Bartek Rutkowski freebsd_committer 2015-03-24 17:31:34 UTC
Committed, thanks for your work!