Bug 245926 - math/openblas: does not build under poudriere on FreeBSD 11.3-RELEASE-p8
Summary: math/openblas: does not build under poudriere on FreeBSD 11.3-RELEASE-p8
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-26 13:03 UTC by Gerard Seibert
Modified: 2020-04-27 12:23 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (phd_kimberlite)


Attachments
Poudriere Build Log For "math/openblas" (8.34 KB, text/plain)
2020-04-26 13:03 UTC, Gerard Seibert
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerard Seibert 2020-04-26 13:03:11 UTC
Created attachment 213804 [details]
Poudriere Build Log For "math/openblas"

I have tried several times to build this port. Poudriere issues this error message: "has to be built manually: Optimizes for the build machine." A copy of the build log is attached.

FreeBSD scorpio.seibercom.net 11.3-RELEASE-p7 FreeBSD 11.3-RELEASE-p7 #0: Tue Mar 17 08:32:23 UTC 2020     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

~ $ freebsd-version
11.3-RELEASE-p8
Comment 1 Rainer Hurling 2020-04-26 16:48:11 UTC
Hi Gerard,

This is because of the following part in the math/openblas ports Makefile:

.if ! ( ${PORT_OPTIONS:MDYNAMIC_ARCH} && ( ${ARCH} == "amd64" || ${ARCH} == "i386" ) )
MANUAL_PACKAGE_BUILD=   Optimizes for the build machine.
.endif


In most cases, _enabling_ OPTION DYNAMIC_ARCH should do the job. 

(Disabling it, the port has to build code optimized for a specific CPU. Poudriere is not able to do this in its default settings.)

HTH,
Rainer
Comment 2 Gerard Seibert 2020-04-26 18:11:24 UTC
(In reply to Rainer Hurling from comment #1)

Okay, so what is the recommended way to build this port? "math/suitesparse", "math/py-numpy", and "devel/boost-python-libs" all are skipped by poudriere because the math/openblas port will not build.

This seems like a bug that should have been squashed while ago. This all came about when I tried to install the meta port "x11/kde5"; therefore I doubt that I am the only one experiencing this problem.
Comment 3 Rainer Hurling 2020-04-26 19:58:58 UTC
(In reply to Gerard Seibert from comment #2)

As I said in comment #1, enabling OPTION DYNAMIC_ARCH in math/openblas should do the job.


You can set/unset options of ports in Poudriere by running "poudriere options ...", before you start with "poudriere bulk ...". 

There are some more ways to set ports options in Poudriere, see 'man 8 poudriere'.
Comment 4 Thierry Thomas freebsd_committer 2020-04-26 20:15:19 UTC
(In reply to Rainer Hurling from comment #3)

Is not PACKAGE_BUILDING set by default in Poudriere?
Comment 5 Rainer Hurling 2020-04-27 12:23:55 UTC
(In reply to Thierry Thomas from comment #4)

Yes, but even if PACKAGE_BUILDING is set (default), math/openblas does not build, if OPTION DYNAMIC_ARCH is disabled.

I just double checked, at least on my boxes (all 13.0-CURRENT amd64) this seems to be true.