Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926488 - dev-libs/simde-0.7.6 fails to compile: round.c:(.text+0x1dae3): undefined reference to roundevenf
Summary: dev-libs/simde-0.7.6 fails to compile: round.c:(.text+0x1dae3): undefined ref...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ionen Wolkens
URL: https://github.com/simd-everywhere/si...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-08 11:43 UTC by Agostino Sarubbo
Modified: 2024-03-08 12:29 UTC (History)
0 users

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


Attachments
build.log (build.log,262.84 KB, text/plain)
2024-03-08 11:43 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-08 11:43:45 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-libs/simde-0.7.6 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)
System: MUSL-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#MUSL)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-03-08 11:43:46 UTC
Created attachment 887008 [details]
build.log

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


/usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x1e5dc): undefined reference to `roundevenf'
/usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x1ec46): undefined reference to `roundevenf'
/usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x1f0d5): undefined reference to `roundevenf'
/usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x1fbce): undefined reference to `roundevenf'
/usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x203f0): undefined reference to `roundevenf'
/usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x214b6): undefined reference to `roundeven'
/usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x21b9a): undefined reference to `roundevenf'
/usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x21fe7): undefined reference to `roundeven'
/usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x22b18): undefined reference to `roundeven'
/usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x24de1): undefined reference to `roundeven'
/usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x265bc): undefined reference to `roundeven'
/usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x27d97): undefined reference to `roundeven'
FAILED: test/x86/avx512/round-emul-c 
FAILED: test/x86/avx512/round-native-c 
round.c:(.text+0x1d49c): undefined reference to `roundevenf'
round.c:(.text+0x1dae3): undefined reference to `roundevenf'
round.c:(.text+0x20985): undefined reference to `roundeven'
round.c:(.text+0x23606): undefined reference to `roundeven'
collect2: error: ld returned 1 exit status
Comment 3 Ionen Wolkens gentoo-dev 2024-03-08 12:05:06 UTC
Hm, apparently this is a new C23 function and musl does not define it "yet". There was a workaround for emscripten wrt $URL which lacks it as well but I don't think it takes musl into consideration.

In theory it'll be fixed by a future musl version, but maybe could do a similar workaround meanwhile.
Comment 4 Larry the Git Cow gentoo-dev 2024-03-08 12:29:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44d553ed0237c6542f39ebf6a5e84c373cf7e176

commit 44d553ed0237c6542f39ebf6a5e84c373cf7e176
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2024-03-08 12:17:06 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2024-03-08 12:28:17 +0000

    dev-libs/simde: fix building tests with musl
    
    Needs a revbump given this modifies an installed header which
    otherwise could lead to revdeps failing to build with musl
    rather than tests.
    
    On top of now building, the tests passes fine (llvm-musl).
    
    Closes: https://bugs.gentoo.org/926488
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 dev-libs/simde/files/simde-0.7.6-musl.patch            | 18 ++++++++++++++++++
 .../{simde-0.7.6.ebuild => simde-0.7.6-r1.ebuild}      |  4 ++++
 2 files changed, 22 insertions(+)