Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 May 2018 20:43:11 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r470055 - head/math/ceres-solver
Message-ID:  <201805152043.w4FKhBrW085818@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Tue May 15 20:43:10 2018
New Revision: 470055
URL: https://svnweb.freebsd.org/changeset/ports/470055

Log:
  math/ceres-solver: unbreak ATLAS=on after r465553
  
  When math/suitesparse has OPENBLAS=on:
  -- Found BLAS: /usr/local/lib/libopenblas.so
  -- Found LAPACK library: alapack
  [...]
   0x0000000000000001 NEEDED               Shared library: [libalapack.so.2]
   0x0000000000000001 NEEDED               Shared library: [libopenblas.so.0]
  
  When math/suitesparse has ATLAS=on:
  -- Found BLAS: /usr/local/lib/libf77blas.so;/usr/local/lib/libatlas.so
  -- Found LAPACK library: alapack
  [...]
  //usr/local/lib/libalapack.so.2: undefined reference to `cblas_izamax'
  //usr/local/lib/libalapack.so.2: undefined reference to `cblas_sswap'
  c++: error: linker command failed with exit code 1 (use -v to see invocation)
  
  Pointy hat to:	jbeich

Modified:
  head/math/ceres-solver/Makefile   (contents, props changed)

Modified: head/math/ceres-solver/Makefile
==============================================================================
--- head/math/ceres-solver/Makefile	Tue May 15 20:42:51 2018	(r470054)
+++ head/math/ceres-solver/Makefile	Tue May 15 20:43:10 2018	(r470055)
@@ -2,7 +2,7 @@
 
 PORTNAME=	ceres-solver
 DISTVERSION=	1.14.0
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	math
 
 MAINTAINER=	jbeich@FreeBSD.org
@@ -76,7 +76,8 @@ LAPACK_CMAKE_ON=	-DCMAKE_POLICY_DEFAULT_CMP0056:STRING
 # https://github.com/xianyi/OpenBLAS/wiki/faq#multi-threaded
 ATLAS_USES=		blaslapack:atlas
 ATLAS_CMAKE_ON=		-DBLA_VENDOR:STRING="ATLAS" \
-			-DLAPACK_LIBRARIES:STRING=alapack
+			-DBLAS_LIBRARIES:FILEPATH="${LOCALBASE}/lib/libcblas.so" \
+			-DLAPACK_LIBRARIES:FILEPATH="${LOCALBASE}/lib/libalapack.so"
 ATLAS_IMPLIES=		LAPACK
 GOTOBLAS_DESC=		Goto blas implementation
 GOTOBLAS_USES=		blaslapack:gotoblas



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