https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-libs/s2n-0.10.21 fails to compile. Discovered on: amd64 (internal ref: ci)
Created attachment 678226 [details] build.log build log and emerge --info
Possible context of error(s): s2nd.c:(.text+0x94): undefined reference to `s2n_debug_str' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: s2nd.c:(.text+0xd0): undefined reference to `s2n_debug_str' s2nd.c:(.text+0x13e): undefined reference to `s2n_debug_str' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: s2nd.c:(.text+0x17a): undefined reference to `s2n_debug_str' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: s2nd.c:(.text+0x193): undefined reference to `s2n_debug_str' https.c:(.text+0x277): undefined reference to `s2n_stuffer_growable_alloc' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: https.c:(.text+0x2ca): undefined reference to `s2n_stuffer_write_bytes' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: https.c:(.text+0x31a): undefined reference to `s2n_stuffer_write_bytes' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: https.c:(.text+0x36a): undefined reference to `s2n_stuffer_write_bytes' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: https.c:(.text+0x3ba): undefined reference to `s2n_stuffer_write_bytes' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: https.c:(.text+0x40a): undefined reference to `s2n_stuffer_write_bytes' https.c:(.text+0x67f): undefined reference to `s2n_stuffer_raw_read' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: https.c:(.text+0x7fa): undefined reference to `s2n_stuffer_free' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: https.c:(.text+0x84c): undefined reference to `s2n_debug_str' s2nc.c:(.text.startup+0x5c7): undefined reference to `s2n_connection_set_keyshare_by_name_for_testing' echo.c:(.text+0x45f): undefined reference to `s2n_debug_str' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: echo.c:(.text+0x4be): undefined reference to `s2n_debug_str' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: echo.c:(.text+0x51d): undefined reference to `s2n_debug_str' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: echo.c:(.text+0x57c): undefined reference to `s2n_debug_str' echo.c:(.text+0x6b2): undefined reference to `s2n_debug_str' https.c:(.text+0x277): undefined reference to `s2n_stuffer_growable_alloc' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: https.c:(.text+0x2ca): undefined reference to `s2n_stuffer_write_bytes' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: https.c:(.text+0x31a): undefined reference to `s2n_stuffer_write_bytes' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: https.c:(.text+0x36a): undefined reference to `s2n_stuffer_write_bytes' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: https.c:(.text+0x3ba): undefined reference to `s2n_stuffer_write_bytes' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: https.c:(.text+0x40a): undefined reference to `s2n_stuffer_write_bytes' https.c:(.text+0x67f): undefined reference to `s2n_stuffer_raw_read' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: https.c:(.text+0x7fa): undefined reference to `s2n_stuffer_free' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: https.c:(.text+0x84c): undefined reference to `s2n_debug_str' collect2: error: ld returned 1 exit status
This error only happens with USE=test
PR has been submitted.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bb288997adf7e4dbe498bfa4ff3baed3e42c455 commit 8bb288997adf7e4dbe498bfa4ff3baed3e42c455 Author: Sven Eden <sven.eden@prydeworx.com> AuthorDate: 2020-12-14 16:37:48 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2020-12-17 15:04:42 +0000 dev-libs/s2n: Fix USE="test" and remove -Werror USE="test" was broken, because building of a shared library does not work at the moment. Fixed by removing hidden default visibility. See: https://github.com/awslabs/s2n/issues/2401 -Werror is not recommended for releases and should always be disabled when encountered in build-logs, because there are numerous cases where this breaks without purpose. Closes: https://bugs.gentoo.org/759796 Closes: https://bugs.gentoo.org/759799 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Sven Eden <sven.eden@prydeworx.com> Closes: https://github.com/gentoo/gentoo/pull/18651 Signed-off-by: Joonas Niilola <juippis@gentoo.org> dev-libs/s2n/files/s2n-0.10.21-remove_Werror.patch | 22 ++++++++++++++++++++++ .../{s2n-0.10.21.ebuild => s2n-0.10.21-r1.ebuild} | 15 +++++++++++++-- 2 files changed, 35 insertions(+), 2 deletions(-)