Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 925172 - sys-libs/libblockdev-3.0.4 - ld.lld: error: undefined reference due to --no-allow-shlib-undefined: uuid_generate
Summary: sys-libs/libblockdev-3.0.4 - ld.lld: error: undefined reference due to --no-a...
Status: RESOLVED DUPLICATE of bug 910487
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: LD-is-lld, systemwide-lld
  Show dependency tree
 
Reported: 2024-02-21 12:43 UTC by ernsteiswuerfel
Modified: 2024-02-21 13:02 UTC (History)
1 user (show)

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


Attachments
build.log (libblockdev-3.0.4:20240221-123550.log,152.52 KB, text/plain)
2024-02-21 12:43 UTC, ernsteiswuerfel
Details
emerge --info (file_925172.txt,7.64 KB, text/plain)
2024-02-21 12:43 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2024-02-21 12:43:11 UTC
Created attachment 885608 [details]
build.log

Links ok with ld.bfd but fails with ld.lld.

[...]
clang -DPACKAGE_NAME=\"libblockdev\" -DPACKAGE_TARNAME=\"libblockdev\" -DPACKAGE_VERSION=\"3.0.4\" -DPACKAGE_STRING=\"libblockdev\ 3.0.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"https://github.com/storaged-project/libblockdev\" -DPACKAGE=\"libblockdev\" -DVERSION=\"3.0.4\" -DNDEBUG=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_DLFCN_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_FCNTL_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_LINUX_RANDOM_H=1 -DHAVE_GLOB_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_MATH_H=1 -DWITH_BD_NVME=/\*\*/ -DWITH_BD_BTRFS=/\*\*/ -DWITH_BD_CRYPTO=/\*\*/ -DWITH_BD_LOOP=/\*\*/ -DWITH_BD_MDRAID=/\*\*/ -DWITH_BD_SWAP=/\*\*/ -DWITH_BD_PART=/\*\*/ -DWITH_BD_FS=/\*\*/ -DWITH_BD_NVME=/\*\*/ -DLIBCRYPTSETUP_24=1 -DLIBCRYPTSETUP_26=1 -DLIBMOUNT_NEW_ERR_API=1 -DHAVE_LIBNVME_1_4=1 -I.  -I./../include/  -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/bytesize   -Wall -Wextra -Os -march=znver2 -pipe -std=gnu99 -c -o vfat_resize-vfat-resize.o `test -f 'vfat-resize.c' || echo './'`vfat-resize.c
/bin/sh ../libtool  --tag=CC   --mode=link clang -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/bytesize   -Wall -Wextra -Os -march=znver2 -pipe -std=gnu99 -Wl,--no-undefined -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -o vfat-resize vfat_resize-vfat-resize.o ./../src/lib/libblockdev.la -lglib-2.0 -lbytesize -lparted -lparted-fs-resize 
libtool: link: clang -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/bytesize -Wall -Wextra -Os -march=znver2 -pipe -std=gnu99 -Wl,--no-undefined -Wl,-O1 -Wl,-z -Wl,pack-relative-relocs -o .libs/vfat-resize vfat_resize-vfat-resize.o  -Wl,--as-needed ./../src/lib/.libs/libblockdev.so -L./../utils/ /var/tmp/portage/sys-libs/libblockdev-3.0.4/work/libblockdev-3.0.4/src/utils/.libs/libbd_utils.so -lm -lgio-2.0 -ludev -lkmod -ldl -lgobject-2.0 -lglib-2.0 -lbytesize -lparted -lparted-fs-resize
ld.lld: error: undefined reference due to --no-allow-shlib-undefined: uuid_generate
>>> referenced by /usr/lib/libparted-fs-resize.so
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [Makefile:490: vfat-resize] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-libs/libblockdev-3.0.4/work/libblockdev-3.0.4/tools'
make: *** [Makefile:508: all-recursive] Error 1
 * ERROR: sys-libs/libblockdev-3.0.4::gentoo failed (compile phase):
 *   emake failed
Comment 1 ernsteiswuerfel archtester 2024-02-21 12:43:42 UTC
Created attachment 885609 [details]
emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-02-21 13:02:56 UTC

*** This bug has been marked as a duplicate of bug 910487 ***