Summary: | dev-libs/openssl-3.0.7-r1: ld.lld: error: undefined reference due to --no-allow-shlib-undefined: __atomic_is_lock_free | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | nvinson234 |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sam, srcshelton, xtkoba |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/openssl/openssl/pull/16584 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 408963 | ||
Attachments: |
build.log.gz
gentoo.config.patch openssl-3.0.7-clang.patch |
Description
nvinson234
2022-12-14 12:30:29 UTC
Created attachment 842633 [details]
build.log.gz
Uncompressed log was too big to attach. Had to gzip.
For now, we need linux-latomic when building with Clang. Easy reproducer: CC=clang CFLAGS="-O2 -fuse-ld=lld" ebuild openssl-3.0.7-r2.ebuild clean instal We can do it based on checking CC in the config file, I think. talking with sam_ on irc, this "works" for now to at least build on a clang system --- openssl-3.0.7-r2.ebuild 2022-12-28 21:37:19.499923686 +0000 +++ openssl-3.0.7-r3.ebuild 2022-12-28 21:30:41.620317139 +0000 @@ -145,6 +145,7 @@ # Don't remove the no strict aliasing bits below! filter-flags -fstrict-aliasing append-flags -fno-strict-aliasing + append-flags -latomic append-flags $(test-flags-CC -Wa,--noexecstack) Created attachment 849876 [details, diff]
gentoo.config.patch
Patch to gentoo-config to build openssl with *-clang profiles.
Created attachment 849878 [details, diff]
openssl-3.0.7-clang.patch
patch to openssl to define update existing clang profiles and add missing clang profiles.
Please ignore openssl-3.0.7-clang.patch. Further testing, shows this patch not needed. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9d631a188bd27b62082fd93a7f434b00e458b1b commit d9d631a188bd27b62082fd93a7f434b00e458b1b Author: Nicholas Vinson <nvinson234@gmail.com> AuthorDate: 2023-02-22 00:57:55 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2023-02-22 19:29:31 +0000 dev-libs/openssl: gentoo.config-1.0.4 clang fix Update gentoo.config-1.0.4 to better support clang compiler toolchains Closes: https://bugs.gentoo.org/885901 Signed-off-by: Nicholas Vinson <nvinson234@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/29711 Signed-off-by: Mike Gilbert <floppym@gentoo.org> dev-libs/openssl/files/gentoo.config-1.0.4 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) is only x86 affected by this? |