Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832816 - dev-libs/capnproto-0.9.1 - ld: src/capnp/libcapnp.so.0.9.1: undefined reference to `__atomic_load_8'
Summary: dev-libs/capnproto-0.9.1 - ld: src/capnp/libcapnp.so.0.9.1: undefined referen...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: libatomic-linking 762892
  Show dependency tree
 
Reported: 2022-02-06 18:39 UTC by ernsteiswuerfel
Modified: 2022-02-28 00:24 UTC (History)
2 users (show)

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


Attachments
emerge --info (file_832816.txt,6.07 KB, text/plain)
2022-02-06 18:39 UTC, ernsteiswuerfel
Details
build.log (capnproto-0.9.1:20220206-182857.log,42.07 KB, text/plain)
2022-02-06 18:40 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2022-02-06 18:39:27 UTC
Created attachment 764480 [details]
emerge --info

[...]
[78/106] /usr/bin/powerpc-unknown-linux-gnu-g++ -Dcapnp_rpc_EXPORTS -I/var/tmp/portage/dev-libs/capnproto-0.9.1/work/capnproto-0.9.1/c++/src/capnp/.. -I/var/tmp/portage/dev-libs/capnproto-0.9.1/work/capnproto-0.9.1/c++/src/kj/..  -O2 -mcpu=7450 -pipe -fPIC -Wall -Wextra -Wno-strict-aliasing -Wno-sign-compare -Wno-unused-parameter -pthread -MD -MT src/capnp/CMakeFiles/capnp-rpc.dir/ez-rpc.c++.o -MF src/capnp/CMakeFiles/capnp-rpc.dir/ez-rpc.c++.o.d -o src/capnp/CMakeFiles/capnp-rpc.dir/ez-rpc.c++.o -c /var/tmp/portage/dev-libs/capnproto-0.9.1/work/capnproto-0.9.1/c++/src/capnp/ez-rpc.c++
[79/106] : && /usr/bin/powerpc-unknown-linux-gnu-g++ -O2 -mcpu=7450 -pipe -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu src/capnp/CMakeFiles/capnpc_capnp.dir/compiler/capnpc-capnp.c++.o -o src/capnp/capnpc-capnp  -Wl,-rpath,/var/tmp/portage/dev-libs/capnproto-0.9.1/work/capnproto-0.9.1/c++_build/src/capnp:/var/tmp/portage/dev-libs/capnproto-0.9.1/work/capnproto-0.9.1/c++_build/src/kj:  src/capnp/libcapnp.so.0.9.1  src/kj/libkj.so.0.9.1  -lpthread && :
FAILED: src/capnp/capnpc-capnp 
: && /usr/bin/powerpc-unknown-linux-gnu-g++ -O2 -mcpu=7450 -pipe -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu src/capnp/CMakeFiles/capnpc_capnp.dir/compiler/capnpc-capnp.c++.o -o src/capnp/capnpc-capnp  -Wl,-rpath,/var/tmp/portage/dev-libs/capnproto-0.9.1/work/capnproto-0.9.1/c++_build/src/capnp:/var/tmp/portage/dev-libs/capnproto-0.9.1/work/capnproto-0.9.1/c++_build/src/kj:  src/capnp/libcapnp.so.0.9.1  src/kj/libkj.so.0.9.1  -lpthread && :
/usr/lib/gcc/powerpc-unknown-linux-gnu/11.2.0/../../../../powerpc-unknown-linux-gnu/bin/ld: src/capnp/libcapnp.so.0.9.1: undefined reference to `__atomic_load_8'
/usr/lib/gcc/powerpc-unknown-linux-gnu/11.2.0/../../../../powerpc-unknown-linux-gnu/bin/ld: src/capnp/libcapnp.so.0.9.1: undefined reference to `__atomic_store_8'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
 * ERROR: dev-libs/capnproto-0.9.1::gentoo failed (compile phase):
 *   ninja -v -j1 -l0 failed
Comment 1 ernsteiswuerfel archtester 2022-02-06 18:40:20 UTC
Created attachment 764481 [details]
build.log
Comment 2 Andreas Sturmlechner gentoo-dev 2022-02-27 19:38:37 UTC
Debian patch: https://sources.debian.org/patches/capnproto/0.9.1-2/07_libatomic.patch/
Comment 3 Larry the Git Cow gentoo-dev 2022-02-27 23:30:07 UTC
The bug has been closed via the following commit(s):

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

commit adbf12388bbda19a3ad3911b7488c14d67b95df1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-02-27 23:29:45 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-02-27 23:29:55 +0000

    dev-libs/capnproto: fix build on PPC (-latomic)
    
    Closes: https://bugs.gentoo.org/832816
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/capnproto/capnproto-0.9.1.ebuild          |  4 ++
 .../files/capnproto-0.9.1-libatomic.patch          | 59 ++++++++++++++++++++++
 2 files changed, 63 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2022-02-27 23:48:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e8b3e9588eacd192978599a5199fbb54071a53e

commit 8e8b3e9588eacd192978599a5199fbb54071a53e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-02-27 23:47:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-02-27 23:47:41 +0000

    dev-libs/capnproto: fix libatomic on PPC
    
    Thanks to Arfrever; I skimmed the patch, thought it looked reasonable,
    didn't notice the latter part was for CMake config file, not CMakeLists.txt.
    
    Closes: https://bugs.gentoo.org/832816
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/capnproto/capnproto-0.9.1.ebuild          | 10 ++--
 .../files/capnproto-0.9.1-libatomic.patch          | 59 ----------------------
 2 files changed, 5 insertions(+), 64 deletions(-)
Comment 5 Larry the Git Cow gentoo-dev 2022-02-28 00:24:13 UTC
The bug has been referenced in the following commit(s):

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

commit af10fe810dd1e7d1c6c132a2e659a0dc40df2ed9
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-02-28 00:23:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-02-28 00:23:53 +0000

    dev-libs/capnproto: final(!) libatomic fix
    
    Bug: https://bugs.gentoo.org/832816
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/capnproto/capnproto-0.9.1.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)