Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928018 - sci-libs/blis-0.9.0 fails to compile: bli_x86_asm_macros.h:102:21: error: the register xmm15 cannot be clobbered in asm for the current target
Summary: sci-libs/blis-0.9.0 fails to compile: bli_x86_asm_macros.h:102:21: error: the...
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: 2024-03-28 07:52 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,78.76 KB, text/plain)
2024-03-28 07:52 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 2024-03-28 07:52:24 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-libs/blis-0.9.0 fails to compile.
Discovered on: x86 (internal ref: tinderbox_x86)
System: GCC-14-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-14)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-03-28 07:52:25 UTC
Created attachment 888883 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-03-28 07:52:26 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


configure: could not find '.git' directory; using unmodified version file.
./frame/include/bli_x86_asm_macros.h:102:21: error: the register ‘xmm15’ cannot be clobbered in ‘asm’ for the current target
Comment 3 Sv. Lockal 2024-06-02 10:54:01 UTC
This was caused by cpu autodetection (detected as zen3) with manual specification of `-march=i686` 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:16 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(-)