svn commit: r502756 - head/math/cminpack

Tobias Kortkamp tobik at freebsd.org
Mon May 27 09:37:55 UTC 2019


On Mon, May 27, 2019 at 02:24:24AM -0700, Yuri wrote:
> On 2019-05-27 00:51, René Ladan wrote:
> >
> >
> >       math/cminpack: Fix build by adding USES=localbase
> >
> >       It couldn't find cblas.h on my system without this.
> >
> > Does it build with poudriere without the fix? It was not known to be 
> > broken.
> 
> 
> It builds in poudriere, but fails on some other systems with a lot of 
> packages installed.

Hi Yuri,

outside of Poudriere it still fails to build on 13.0/amd64 for me
even with USES=localbase:

===>  Building for cminpack-1.3.6
[1/100] /usr/local/libexec/ccache/cc -DUSE_CBLAS  -O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -fPIC -MD -MT CMakeFiles/cminpack.dir/chkder.c.o -MF CMakeFiles/cminpack.dir/chkder.c.o.d -o CMakeFiles/cminpack.dir/chkder.c.o   -c /construction/home/tobias/ports/head/math/cminpack/work/cminpack-1.3.6/chkder.c
FAILED: CMakeFiles/cminpack.dir/chkder.c.o
/usr/local/libexec/ccache/cc -DUSE_CBLAS  -O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -fPIC -MD -MT CMakeFiles/cminpack.dir/chkder.c.o -MF CMakeFiles/cminpack.dir/chkder.c.o.d -o CMakeFiles/cminpack.dir/chkder.c.o   -c /construction/home/tobias/ports/head/math/cminpack/work/cminpack-1.3.6/chkder.c
In file included from /construction/home/tobias/ports/head/math/cminpack/work/cminpack-1.3.6/chkder.c:3:
/construction/home/tobias/ports/head/math/cminpack/work/cminpack-1.3.6/cminpackP.h:17:10: fatal error: 'cblas.h' file not found
#include <cblas.h>
         ^~~~~~~~~
1 error generated.
[2/100] /usr/local/libexec/ccache/cc -DUSE_CBLAS  -O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -fPIC -MD -MT CMakeFiles/cminpack.dir/enorm.c.o -MF CMakeFiles/cminpack.dir/enorm.c.o.d -o CMakeFiles/cminpack.dir/enorm.c.o   -c /construction/home/tobias/ports/head/math/cminpack/work/cminpack-1.3.6/enorm.c
FAILED: CMakeFiles/cminpack.dir/enorm.c.o
/usr/local/libexec/ccache/cc -DUSE_CBLAS  -O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -fPIC -MD -MT CMakeFiles/cminpack.dir/enorm.c.o -MF CMakeFiles/cminpack.dir/enorm.c.o.d -o CMakeFiles/cminpack.dir/enorm.c.o   -c /construction/home/tobias/ports/head/math/cminpack/work/cminpack-1.3.6/enorm.c
In file included from /construction/home/tobias/ports/head/math/cminpack/work/cminpack-1.3.6/enorm.c:3:
/construction/home/tobias/ports/head/math/cminpack/work/cminpack-1.3.6/cminpackP.h:17:10: fatal error: 'cblas.h' file not found
#include <cblas.h>
         ^~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

I think the real problem here is that the port is missing

CMAKE_OFF=	USE_BLAS

to build as intended in dirty environments.

Index: Makefile
===================================================================
--- Makefile	(revision 502778)
+++ Makefile	(working copy)
@@ -10,11 +10,13 @@
 
 LICENSE_FILE=	${WRKSRC}/CopyrightMINPACK.txt
 
-USES=		cmake localbase
+USES=		cmake
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	devernay
 
+CMAKE_OFF=	USE_BLAS
+
 OPTIONS_DEFINE=	EXAMPLES
 
 post-install-EXAMPLES-on:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 618 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20190527/f0f50a50/attachment.sig>


More information about the svn-ports-all mailing list