Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 759799 - dev-libs/s2n-0.10.21 fails to compile
Summary: dev-libs/s2n-0.10.21 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sven Eden
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-12-13 14:24 UTC by Agostino Sarubbo
Modified: 2020-12-17 15:04 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,385.62 KB, text/plain)
2020-12-13 14:24 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 2020-12-13 14:24:38 UTC
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)
Comment 1 Agostino Sarubbo gentoo-dev 2020-12-13 14:24:41 UTC
Created attachment 678226 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-12-13 14:24:42 UTC
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
Comment 3 crabbed halo ablution 2020-12-13 16:46:42 UTC
This error only happens with USE=test
Comment 4 Sven Eden 2020-12-14 16:45:02 UTC
PR has been submitted.
Comment 5 Larry the Git Cow gentoo-dev 2020-12-17 15:04:53 UTC
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(-)