Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905623 - dev-util/ostree-2023.1 - ld.lld: error: undefined reference due to --no-allow-shlib-undefined: gpg_strerror_r
Summary: dev-util/ostree-2023.1 - ld.lld: error: undefined reference due to --no-allow...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Zac Medico
URL: https://github.com/ostreedev/ostree/p...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: LD-is-lld, systemwide-lld
  Show dependency tree
 
Reported: 2023-05-02 23:27 UTC by ernsteiswuerfel
Modified: 2023-06-14 19:25 UTC (History)
1 user (show)

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


Attachments
build.log (ostree-2023.1:20230502-231750.log,515.84 KB, text/plain)
2023-05-02 23:27 UTC, ernsteiswuerfel
Details
emerge --info (file_905623.txt,7.53 KB, text/plain)
2023-05-02 23:28 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2023-05-02 23:27:07 UTC
Created attachment 861056 [details]
build.log

[...]
libtool: link: clang -std=gnu99 -fno-strict-aliasing -pipe -Wall -Werror=shadow -Werror=empty-body -Werror=strict-prototypes -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=format=2 -Werror=format-security -Werror=format-nonliteral -Werror=pointer-arith -Werror=init-self -Werror=missing-declarations -Werror=return-type -Werror=switch -Werror=overflow -Werror=int-conversion -Werror=parentheses -Werror=undef -Werror=incompatible-pointer-types -Werror=misleading-indentation -Werror=missing-include-dirs -Wstrict-aliasing=2 -Werror=unused-result -I./src/libotutil -I./src/libostree -I./src/libostree -I./src/ostree -I./libglnx -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/json-c "-DPKGLIBEXECDIR=\"/usr/libexec/libostree\"" -Os -march=bdver2 -mtune=bdver2 -pipe -Wl,-O1 -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -o .libs/ostree src/ostree/ostree-main.o src/ostree/ostree-ot-builtin-admin.o src/ostree/ostree-ot-builtin-cat.o src/ostree/ostree-ot-builtin-config.o src/ostree/ostree-ot-builtin-checkout.o src/ostree/ostree-ot-builtin-checksum.o src/ostree/ostree-ot-builtin-commit.o src/ostree/ostree-ot-builtin-create-usb.o src/ostree/ostree-ot-builtin-diff.o src/ostree/ostree-ot-builtin-export.o src/ostree/ostree-ot-builtin-find-remotes.o src/ostree/ostree-ot-builtin-fsck.o src/ostree/ostree-ot-builtin-init.o src/ostree/ostree-ot-builtin-pull-local.o src/ostree/ostree-ot-builtin-log.o src/ostree/ostree-ot-builtin-ls.o src/ostree/ostree-ot-builtin-prune.o src/ostree/ostree-ot-builtin-refs.o src/ostree/ostree-ot-builtin-remote.o src/ostree/ostree-ot-builtin-reset.o src/ostree/ostree-ot-builtin-rev-parse.o src/ostree/ostree-ot-builtin-sign.o src/ostree/ostree-ot-builtin-summary.o src/ostree/ostree-ot-builtin-show.o src/ostree/ostree-ot-builtin-static-delta.o src/ostree/ostree-ot-main.o src/ostree/ostree-ot-dump.o src/ostree/ostree-ot-editor.o src/ostree/ostree-ot-builtin-gpg-sign.o src/ostree/ostree-ot-admin-builtin-init-fs.o src/ostree/ostree-ot-admin-builtin-diff.o src/ostree/ostree-ot-admin-builtin-deploy.o src/ostree/ostree-ot-admin-builtin-finalize-staged.o src/ostree/ostree-ot-admin-builtin-boot-complete.o src/ostree/ostree-ot-admin-builtin-undeploy.o src/ostree/ostree-ot-admin-builtin-instutil.o src/ostree/ostree-ot-admin-builtin-kargs.o src/ostree/ostree-ot-admin-builtin-cleanup.o src/ostree/ostree-ot-admin-builtin-os-init.o src/ostree/ostree-ot-admin-builtin-set-origin.o src/ostree/ostree-ot-admin-builtin-status.o src/ostree/ostree-ot-admin-builtin-switch.o src/ostree/ostree-ot-admin-builtin-pin.o src/ostree/ostree-ot-admin-builtin-upgrade.o src/ostree/ostree-ot-admin-builtin-unlock.o src/ostree/ostree-ot-admin-instutil-builtin-selinux-ensure-labeled.o src/ostree/ostree-ot-admin-instutil-builtin-set-kargs.o src/ostree/ostree-ot-admin-instutil-builtin-grub2-generate.o src/ostree/ostree-ot-admin-functions.o src/ostree/ostree-ot-admin-kargs-builtin-edit-in-place.o src/ostree/ostree-ot-remote-builtin-add.o src/ostree/ostree-ot-remote-builtin-delete.o src/ostree/ostree-ot-remote-builtin-list.o src/ostree/ostree-ot-remote-builtin-show-url.o src/ostree/ostree-ot-remote-builtin-refs.o src/ostree/ostree-ot-remote-builtin-summary.o src/ostree/ostree-ot-remote-builtin-gpg-import.o src/ostree/ostree-ot-remote-builtin-gpg-list-keys.o src/ostree/ostree-ot-remote-builtin-add-cookie.o src/ostree/ostree-ot-remote-builtin-delete-cookie.o src/ostree/ostree-ot-remote-builtin-list-cookies.o src/ostree/ostree-ot-remote-cookie-util.o src/ostree/ostree-ot-builtin-pull.o src/ostree/ostree-ot-builtin-trivial-httpd.o src/ostree/ostree-parse-datetime.o  -Wl,--as-needed ./.libs/libglnx.a ./.libs/libotutil.a ./.libs/libostree-1.so -lgpgme -llzma -lz -lcrypto -lcurl -lgio-2.0 -lgobject-2.0 -lglib-2.0 ./.libs/libbsdiff.a -pthread
ld.lld: error: undefined reference due to --no-allow-shlib-undefined: gpg_strerror_r
>>> referenced by ./.libs/libostree-1.so
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Makefile:4265: ostree] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-util/ostree-2023.1/work/libostree-2023.1'
make[1]: *** [Makefile:7854: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-util/ostree-2023.1/work/libostree-2023.1'
make: *** [Makefile:3195: all] Error 2
Comment 1 ernsteiswuerfel archtester 2023-05-02 23:28:32 UTC
Created attachment 861057 [details]
emerge --info
Comment 2 Jannik Glückert 2023-05-03 11:04:49 UTC
I'm getting this on glibc aswell.
Comment 3 vivivivivivi 2023-05-10 01:51:48 UTC
same issue here @ amd64 default/linux/amd64/17.1/systemd/clang/merged-usr
Comment 4 ewomer 2023-05-21 18:59:56 UTC
Same issue here also, custom profile 

gentoo:default/linux/amd64/17.1/systemd/clang/merged-usr
gentoo:targets/desktop
Comment 5 Lunarequest 2023-05-25 12:29:06 UTC
same issue here using default/linux/amd64/17.1/systemd/clang/merged-usr
Comment 6 ernsteiswuerfel archtester 2023-06-03 09:48:35 UTC
Same for ostree-2023.2 and with app-crypt/gpgme-1.20.0 as rdep.
Comment 7 Denis Strizhkin 2023-06-08 20:55:38 UTC
same for clang16 ~amd64 llvm profile ostree-2023.3
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-08 21:40:34 UTC
No more confirmations needed, thank you!
Comment 9 Jannik Glückert 2023-06-14 12:21:43 UTC
Upstream bug https://github.com/ostreedev/ostree/pull/2880
Comment 10 Larry the Git Cow gentoo-dev 2023-06-14 19:25:33 UTC
The bug has been closed via the following commit(s):

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

commit 9db2d23d177238c1e948044762fd3eb020d9c747
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-06-14 19:24:50 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-06-14 19:24:50 +0000

    dev-util/ostree: fix build w/ lld, drop obsolete musl patch
    
    And new revision given underlinking affects the installed products.
    
    Closes: https://bugs.gentoo.org/905623
    Signed-off-by: Sam James <sam@gentoo.org>

 ...stree-2023.3-libgpg-error-underlinked-lld.patch |  27 +++++
 dev-util/ostree/ostree-2023.3-r1.ebuild            | 118 +++++++++++++++++++++
 2 files changed, 145 insertions(+)