Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 765805 - sci-libs/blis-0.6.0 fails to compile: fmaintrin.h:63:1: error: inlining failed in call to ‘always_inline’ ‘_mm256_fmadd_ps’: target specific option mismatch
Summary: sci-libs/blis-0.6.0 fails to compile: fmaintrin.h:63:1: error: inlining faile...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: lumin
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-01-17 20:59 UTC by Agostino Sarubbo
Modified: 2024-06-03 13:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,50.69 KB, text/plain)
2021-01-17 20:59 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-01-17 20:59:13 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-libs/blis-0.6.0 fails to compile.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2021-01-17 20:59:16 UTC
Created attachment 683407 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-01-17 20:59:17 UTC
Possible context of error(s):

/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/fmaintrin.h:63:1: error: inlining failed in call to ‘always_inline’ ‘_mm256_fmadd_ps’: target specific option mismatch
Comment 3 Sv. Lockal 2024-06-02 10:55:09 UTC
This was caused by cpu autodetection (detected as skx) with manual specification of `-march=x86-64` in CFLAGS. I'll update ebuild to disable autodetection and rely on CPU_FLAGS_* USE_EXPAND flags.
Comment 4 Larry the Git Cow gentoo-dev 2024-06-03 13:27:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d5cefbcb6fdcfe5deb2f679b27f8b510c18c7c9

commit 9d5cefbcb6fdcfe5deb2f679b27f8b510c18c7c9
Author:     Sv. Lockal <lockalsash@gmail.com>
AuthorDate: 2024-06-02 11:03:33 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2024-06-03 13:27:02 +0000

    sci-libs/blis: don't autodetect CPU, build according to cpu_flags_*
    
    This PR closes multiple issues:
    * binary packaging had flaws, because even on x86-64 target machine won't always match host cpu
    * crossdev compilation did not work, because correct compilers were not passed
    * tests did not work, because LD_LIBRARY_PATH had hardcoded `haswell` target
    * PYTHON_COMPAT: drop 3.9, add 3.12 and 3.13
    
    This also adds few checks for aarch64 architecture, but aarch64 was not added
    to KEYWORDS, as few tests failed (in 0.9, not in 1.0).
    
    Note that while cpu_flags_*-based configuration resembles automatic one,
    it is not fully the same. For example, there are 2 types of Skylake CPUs:
    with 1 or 2 FMA units. Attempt to enable cpu_flags_x86_avx512vl on CPUs with
    1 FMA unit will result in reduced performance. Previously this was handled by
    automatic detection of 1FMA Skylake as Haswell; now user should not specify
    cpu_flags_x86_avx512vl if CPU has degraded AVX-512 support.
    
    Closes: https://bugs.gentoo.org/928018
    Closes: https://bugs.gentoo.org/765805
    Closes: https://bugs.gentoo.org/929769
    Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 .../{blis-0.9.0.ebuild => blis-0.9.0-r1.ebuild}    | 59 +++++++++++++++-------
 1 file changed, 41 insertions(+), 18 deletions(-)