Solved openblas build fails, Ignored: has to be built manually: Optimizes for the build machine

openblas-0.3.12,1
Build fails with,
Ignored: has to be built manually: Optimizes for the build machine.

My make.conf:
Code:
PETITECHEZ_AGREE_LICENSE=yes
MAKE_JOBS_UNSAFE=yes
MTREE_FOLLOWS_SYMLINKS= -L
BOOTWAIT= 0
MAKE_JOBS_NUMBER= 5
CPUTYPE?= ivybridge
COMPILER_TYPE= clang

CFLAGS+=    -O2 -pipe
CXXFLAGS+=  -O2 -pipe
COPTFLAGS+= -O2 -pipe

DEFAULT_VERSIONS+= ssl=openssl
DEFAULT_VERSIONS+= python=3.7
DEFAULT_VERSIONS+= python3=3.7
DEFAULT_VERSIONS+= perl=5.32
DEFAULT_VERSIONS+= perl5=5.32

NO_NIS=true
WITH_PKGNG=yes
WITHOUT_MNIS=true
WITHOUT_NIS=true

OPTIONS_SET+= SNDIO OPTIMIZED_CFLAGS CPUFLAGS BUILD_OPTIMIZED FLAC MATROSKA OGG MANPAGES IPV6
OPTIONS_UNSET+= DEBUG

.if ${.CURDIR:M*/math/openblas}
CPUTYPE?=
.endif
 
Turn this option on:
Code:
  DYNAMIC_ARCH=off: Support multiple CPU types on i386 and amd64
Or use this:
Code:
NOTE: If you want to specify your CPU microarchitecture manually,
 	please use TARGET_CPU_ARCH knob, e.g., "make TARGET_CPU_ARCH=NEHALEM".
 	This value is set TARGET build flag.

Please remove these:
Code:
CFLAGS+=    -O2 -pipe
CXXFLAGS+=  -O2 -pipe
COPTFLAGS+= -O2 -pipe
The most optimal switches are already set for everything.

This can be removed too:
Code:
WITH_PKGNG=yes
It serves no purpose any more. It was used during the transition period from the old pkg_* tools to pkg(8). There are no old pkg_* tools on 10 and higher, so this is now meaningless.

You can remove this one too:
Code:
MAKE_JOBS_UNSAFE=yes

These don't belong in make.conf and should be put in src.conf:
Code:
WITHOUT_MNIS=true
WITHOUT_NIS=true
This doesn't do anything:
Code:
NO_NIS=true
 
Problem remains,
openblas-0.3.12,1: Ignored: has to be built manually: Optimizes for the build machine.

make.conf
Code:
DYNAMIC_ARCH= off

PETITECHEZ_AGREE_LICENSE=yes
MTREE_FOLLOWS_SYMLINKS= -L
BOOTWAIT= 0
MAKE_JOBS_NUMBER= 5
COMPILER_TYPE= clang

DEFAULT_VERSIONS+= ssl=openssl
DEFAULT_VERSIONS+= python=3.7 
DEFAULT_VERSIONS+= python3=3.7
DEFAULT_VERSIONS+= perl=5.32
DEFAULT_VERSIONS+= perl5=5.32

OPTIONS_SET+= SNDIO OPTIMIZED_CFLAGS CPUFLAGS BUILD_OPTIMIZED FLAC MATROSKA OGG MANPAGES IPV6
OPTIONS_UNSET+= DEBUG
 
Code:
DYNAMIC_ARCH= off
This is a port option.

Code:
root@molly:/usr/ports/math/openblas # make showconfig
===> The following configuration options are available for openblas-0.3.12,1:
     AVX=off: Support Advanced Vector Extensions (AVX)
     AVX2=off: Support Advanced Vector Extensions 2 (AVX2)
     DYNAMIC_ARCH=off: Support multiple CPU types on i386 and amd64
     INTERFACE64=off: Use 8 byte integers on 64-bit architectures
     OPENMP=on: Use OpenMP for threading
===> Use 'make config' to modify these settings

Add it to your OPTIONS_SET list to turn it on.
 
Those are options in the option file of the port. I'm talking about the options in your make.conf, they will overrule whatever is set in the options of the port.
 
Back
Top