[MacPorts] #61643: OpenBLAS @0.3.12 +gcc9: Build error: "always_inline function '_mm256_loadu_ps' requires target feature 'avx', but would be inlined into function 'ssum_k' that is compiled without support for 'avx'"
MacPorts
noreply at macports.org
Tue Nov 24 14:54:17 UTC 2020
#61643: OpenBLAS @0.3.12 +gcc9: Build error: "always_inline function
'_mm256_loadu_ps' requires target feature 'avx', but would be inlined into
function 'ssum_k' that is compiled without support for 'avx'"
----------------------+----------------------
Reporter: anowacki | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Keywords: | Port: OpenBLAS
----------------------+----------------------
Trying to build OpenBLAS @0.3.12 +gcc9 on a MacPro 6.1 (macOS 10.14.6,
Xcode 11.3.1) leads to errors in the build complaining that AVX features
cannot be inlined into functions compiled without AVX support:
{{{
:info:build /usr/bin/clang -c -O3 -DMAX_STACK_ALLOC=2048 -DEXPRECISION
-Wall -m64 -DF_INTERFACE_GFOR
T -fPIC -DNO_AVX512 -DSMP_SERVER -DMAX_CPU_NUMBER=12
-DMAX_PARALLEL_NUMBER=1 -DBUILD_SINGLE=1 -DBUIL
D_DOUBLE=1 -DBUILD_COMPLEX=1 -DBUILD_COMPLEX16=1 -DVERSION=\"1\" -msse3
-mssse3 -msse4.1 -UASMNAME -
UASMFNAME -UNAME -UCNAME -UCHAR_NAME -UCHAR_CNAME
-DASMNAME=_strmm_iutncopy -DASMFNAME=_strmm_iutnco
py_ -DNAME=strmm_iutncopy_ -DCNAME=strmm_iutncopy
-DCHAR_NAME=\"strmm_iutncopy_\" -DCHAR_CNAME=\"str
mm_iutncopy\" -DNO_AFFINITY -I.. -UDOUBLE -UCOMPLEX -Wno-uninitialized
-UDOUBLE -UCOMPLEX -UOUTER -
ULOWER -UUNIT generic/trmm_utcopy_16.c -o strmm_iutncopy.o
:info:build ../kernel/x86_64/../arm/sum.c:69:17: error: always_inline
function '_mm256_setzero_ps' r
equires target feature 'avx', but would be inlined into function 'ssum_k'
that is compiled without s
upport for 'avx'
:info:build v_f32 vsum0 = v_zero_f32();
:info:build ^
:info:build ../kernel/x86_64/../arm/../simd/intrin_avx.h:59:20: note:
expanded from macro 'v_zero_f3
2'
:info:build #define v_zero_f32 _mm256_setzero_ps
}}}
Likewise for the attempted inlining of {{{_mm256_add_ps}}}.
{{{_mm256_loadu_ps}}}, and so on.
My machine only supports AVX1 according to {sysctl}.
I haven't yet tried OpenBLAS-devel.
Logfile attached.
--
Ticket URL: <https://trac.macports.org/ticket/61643>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list