Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 May 2019 11:37:44 +0200
From:      Tobias Kortkamp <tobik@freebsd.org>
To:        Yuri <yuri@freebsd.org>
Cc:        =?iso-8859-1?Q?Ren=E9?= Ladan <rene@freebsd.org>, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r502756 - head/math/cminpack
Message-ID:  <20190527093744.GA6518@urd.tobik.me>
In-Reply-To: <8206336d-a8c3-24ee-9c87-b82f17f2b7d4@freebsd.org>
References:  <201905270010.x4R0AxdH047274@repo.freebsd.org> <CADL2u4im1Jqx2XqH6UMUbksmJL5Qg6g3crZcgAaS5j2SQ_txQA@mail.gmail.com> <8206336d-a8c3-24ee-9c87-b82f17f2b7d4@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--k1lZvvs/B4yU6o8G
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 27, 2019 at 02:24:24AM -0700, Yuri wrote:
> On 2019-05-27 00:51, Ren=E9 Ladan wrote:
> >
> >
> >     =A0 math/cminpack: Fix build by adding USES=3Dlocalbase
> >
> >     =A0 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=20
> > broken.
>=20
>=20
> It builds in poudriere, but fails on some other systems with a lot of=20
> packages installed.

Hi Yuri,

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

=3D=3D=3D>  Building for cminpack-1.3.6
[1/100] /usr/local/libexec/ccache/cc -DUSE_CBLAS  -O2 -pipe  -fstack-protec=
tor-strong -isystem /usr/local/include -fno-strict-aliasing -O2 -pipe  -fst=
ack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -fP=
IC -MD -MT CMakeFiles/cminpack.dir/chkder.c.o -MF CMakeFiles/cminpack.dir/c=
hkder.c.o.d -o CMakeFiles/cminpack.dir/chkder.c.o   -c /construction/home/t=
obias/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-stro=
ng -isystem /usr/local/include -fno-strict-aliasing -O2 -pipe  -fstack-prot=
ector-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/po=
rts/head/math/cminpack/work/cminpack-1.3.6/chkder.c
In file included from /construction/home/tobias/ports/head/math/cminpack/wo=
rk/cminpack-1.3.6/chkder.c:3:
/construction/home/tobias/ports/head/math/cminpack/work/cminpack-1.3.6/cmin=
packP.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-protec=
tor-strong -isystem /usr/local/include -fno-strict-aliasing -O2 -pipe  -fst=
ack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -fP=
IC -MD -MT CMakeFiles/cminpack.dir/enorm.c.o -MF CMakeFiles/cminpack.dir/en=
orm.c.o.d -o CMakeFiles/cminpack.dir/enorm.c.o   -c /construction/home/tobi=
as/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-stro=
ng -isystem /usr/local/include -fno-strict-aliasing -O2 -pipe  -fstack-prot=
ector-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/wo=
rk/cminpack-1.3.6/enorm.c:3:
/construction/home/tobias/ports/head/math/cminpack/work/cminpack-1.3.6/cmin=
packP.h:17:10: fatal error: 'cblas.h' file not found
#include <cblas.h>
         ^~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
=3D=3D=3D> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=3Dyes 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=3D	USE_BLAS

to build as intended in dirty environments.

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


--k1lZvvs/B4yU6o8G
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQGTBAEBCgB9FiEElXvTEJc6ePgdQuobpPCftzzFH2EFAlzrr+VfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDk1
N0JEMzEwOTczQTc4RjgxRDQyRUExQkE0RjA5RkI3M0NDNTFGNjEACgkQpPCftzzF
H2GD3Qf/ca/dXfdyUwiX4WZkNSTcuABxjBa//go3RyC+f2EjZn5Qvqieuv3t3s9v
IXpd3QIzQqVQGmTTAI+PoVq2Y8f/q31ZrzpV+7xrJ6bX+7hZVYd2YGzvB0umB8vV
wxU4jjj/iBg3M/Fsy/4hA/212txt7Gfs73cojU7cn1h0PokAa37UmL7/UWMNYn6T
yVFp3SljM5hVvGuY2aIa3eSY78pGcJPL/Q7BfM9jilrdmc9+uFZDypUR5h96IVK/
jYTNhVjNfkW6Kd6CtDZhTxIaYBgbzj0TyFvEPMxR8EItcb4NFnieic5x8stvtbAU
eWHztKsGa+Rkah5XeZRjcZgTGmZLMA==
=d/2P
-----END PGP SIGNATURE-----

--k1lZvvs/B4yU6o8G--



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