Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 883355 - sys-fs/lvm2-2.03.17[+static +static-libs} - /usr/lib/gcc/powerpc64-unknown-linux-gnu/11/../../../../powerpc64-unknown-linux-gnu/bin/ld: cannot find -lsystemd: No such file or directory collect2: error: ld returned 1 exit status
Summary: sys-fs/lvm2-2.03.17[+static +static-libs} - /usr/lib/gcc/powerpc64-unknown-li...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-27 20:36 UTC by ernsteiswuerfel
Modified: 2022-11-28 02:34 UTC (History)
1 user (show)

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


Attachments
build.log (lvm2-2.03.17:20221127-153617.log,106.97 KB, text/plain)
2022-11-27 20:36 UTC, ernsteiswuerfel
Details
emerge --info (file_883355.txt,6.53 KB, text/plain)
2022-11-27 20:38 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2022-11-27 20:36:07 UTC
Created attachment 837825 [details]
build.log

Build fails with USE +static +static-libs. It seems to pull something in from systemd even when -systemd is seleclted (constrain for +static).

[...]
powerpc64-unknown-linux-gnu-gcc -MT lvm-static.o -MMD -MP -MF lvm-static.d -c -I../tools -I. -I.. -I../include -include configure.h -I/usr/include/valgrind   -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64    -O2 -mcpu=970 -mtune=970 -pipe -fPIC  lvm-static.c -o lvm-static.o
    [CC] lvm.static
powerpc64-unknown-linux-gnu-gcc -O2 -mcpu=970 -mtune=970 -pipe -fPIC -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--no-export-dynamic -static -L../libdm/ioctl \
	-o lvm.static command.o dumpconfig.o formats.o lvchange.o lvconvert.o lvconvert_poll.o lvcreate.o lvdisplay.o lvextend.o lvmcmdline.o lvmdevices.o lvmdiskscan.o lvpoll.o lvreduce.o lvremove.o lvrename.o lvresize.o lvscan.o polldaemon.o pvchange.o pvck.o pvcreate.o pvdisplay.o pvmove.o pvmove_poll.o pvremove.o pvresize.o pvscan.o reporter.o segtypes.o tags.o toollib.o vgcfgbackup.o vgcfgrestore.o vgchange.o vgck.o vgcreate.o vgdisplay.o vgexport.o vgextend.o vgimport.o vgimportclone.o vgimportdevices.o vgmerge.o vgmknodes.o vgreduce.o vgremove.o vgrename.o vgscan.o vgsplit.o lvm-static.o ../lib/liblvm-internal.a ../libdaemon/client/libdaemonclient.a ../device_mapper/libdevice-mapper.a ../base/libbase.a -L../daemons/dmeventd -ldevmapper-event -L../libdm/ioctl -ldevmapper -lreadline  -lsystemd -lblkid  -laio    -lm -lpthread   -lblkid  -lm -lpthread
/usr/lib/gcc/powerpc64-unknown-linux-gnu/11/../../../../powerpc64-unknown-linux-gnu/bin/ld: cannot find -lsystemd: No such file or directory
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:145: lvm.static] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-fs/lvm2-2.03.17/work/LVM2.2.03.17/tools'
make: *** [make.tmpl:384: tools] Error 2
 * ERROR: sys-fs/lvm2-2.03.17::gentoo failed (compile phase):


Building with with USE -static -static-libs works.
Comment 1 ernsteiswuerfel archtester 2022-11-27 20:38:21 UTC
Created attachment 837827 [details]
emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2022-11-28 02:34:51 UTC
The bug has been closed via the following commit(s):

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

commit 5c9bd87d48660861eeb9f2460e13515450b2fbb2
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2022-11-28 02:25:41 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2022-11-28 02:34:00 +0000

    sys-fs/lvm2: wire up app-machineid and systemd-journal options
    
    Closes: https://bugs.gentoo.org/883355
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-fs/lvm2/{lvm2-2.03.14-r4.ebuild => lvm2-2.03.14-r5.ebuild} | 2 ++
 sys-fs/lvm2/{lvm2-2.03.16-r2.ebuild => lvm2-2.03.16-r3.ebuild} | 2 ++
 sys-fs/lvm2/{lvm2-2.03.17.ebuild => lvm2-2.03.17-r1.ebuild}    | 2 ++
 3 files changed, 6 insertions(+)