Summary: | sys-fs/lvm2-2.02.48-r1 failed: cannot find -ldevmapper-event | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Kevin Morgan <morgankevinj> |
Component: | [OLD] Core system | Assignee: | Robin Johnson <robbat2> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | agk, cardoe, idl0r, laborer2008, martin.danjou14, t.schaefer |
Priority: | High | ||
Version: | 2008.0 | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Build log
environment Updated build log |
Description
Kevin Morgan
2009-07-17 13:30:18 UTC
Created attachment 198299 [details]
Build log
Created attachment 198301 [details]
environment
This probably only happens on a "fresh" system, with no existing lvm2. Patching the ebuild like this fixes the issue, though there may be a way to patch the makefile as well to achieve the same results: --- lvm2-2.02.48-r1.ebuild 2009-07-05 20:13:25.000000000 -0400 +++ lvm2-2.02.49.ebuild 2009-07-19 15:22:05.752899779 -0400 @@ -128,6 +128,16 @@ emake || die "failed to build lib" popd + einfo "tools" + pushd tools + emake liblvm2cmd.a || die "failed to build liblvm2cmd" + popd + + einfo "daemons" + pushd daemons + emake || die "failed to build daemons" + popd + einfo "Doing main build" emake || die "compile problem" idl0r pushed a patch to the buildsystem earlier today that should fix it, please test. (In reply to comment #4) > idl0r pushed a patch to the buildsystem earlier today that should fix it, > please test. > Can you clarify? (In reply to comment #5) > (In reply to comment #4) > > idl0r pushed a patch to the buildsystem earlier today that should fix it, > > please test. > > > > Can you clarify? > I modified the as-needed.patch so that it should link fine now. See http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/files/lvm2-2.02.48-as-needed.patch?r1=1.1&r2=1.2 So please sync and try again :) Created attachment 198628 [details]
Updated build log
Timestamp of tree: Mon, 20 Jul 2009 11:30:01 +0000
make[1]: Leaving directory `/var/tmp/portage/sys-fs/lvm2-2.02.48-r1/work/LVM2.2.02.48/tools'
make[1]: Entering directory `/var/tmp/portage/sys-fs/lvm2-2.02.48-r1/work/LVM2.2.02.48/tools'
x86_64-pc-linux-gnu-gcc -c -I. -I../include -DLVM_SHARED_PATH=\"/usr/sbin/lvm\" -DHAVE_CONFIG_H -DDM_IOCTLS -O2 -pipe -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 dmsetup.c -o dmsetup.o
x86_64-pc-linux-gnu-gcc -O2 -pipe -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,-O1 -Wl,-O1 -Wl,--export-dynamic -L./libdm -L./lib -L./daemons/dmeventd -Wl,-O1 -Wl,--export-dynamic -L../libdm -L../lib -L../daemons/dmeventd \
-L../libdm \
-o dmsetup dmsetup.o \
-ldevmapper -lreadline -lrt -ldl -lncurses -llvm-internal -ldevmapper-event -lpthread -ldevmapper
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ldevmapper-event
collect2: ld returned 1 exit status
make[1]: *** [dmsetup] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-fs/lvm2-2.02.48-r1/work/LVM2.2.02.48/tools'
make: *** [tools.device-mapper] Error 2
[31;01m*[0m
[31;01m*[0m ERROR: sys-fs/lvm2-2.02.48-r1 failed.
[31;01m*[0m Call stack:
[31;01m*[0m ebuild.sh, line 49: Called src_compile
[31;01m*[0m environment, line 2288: Called die
[31;01m*[0m The specific snippet of code:
[31;01m*[0m emake || die "compile problem"
[31;01m*[0m The die message:
[31;01m*[0m compile problem
[31;01m*[0m
[31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant.
[31;01m*[0m A complete build log is located at '/var/tmp/portage/sys-fs/lvm2-2.02.48-r1/temp/build.log'.
[31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/sys-fs/lvm2-2.02.48-r1/temp/environment'.
[31;01m*[0m
attached new build log Fixed again, in -r1 and -r2. building sys-fs/lvm2-2.02.51-r1 USE="lvm1 readline static -clvm (-cman) (-selinux)" the same : ld: cannot find -ldevmapper-event collect2: ld returned 1 exit status make[1]: *** [dmsetup] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-fs/lvm2-2.02.51-r1/work/LVM2.2.02.51/tools' Your patch seems to help.... Thank to fix, in advantage... Confirmed on my end: lvm2-2.02.51-r1 exhibits this behavior, and the patch provided seems to clear it up. This is from a sync a few minutes ago. I am still seeing the problem with sys-fs/lvm2-2.02.51-r1 # emerge --info Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r6 i686) ================================================================= System uname: Linux-2.6.30-gentoo-r6-i686-AMD_Athlon-tm-_Processor-with-gentoo-1.12.13 Timestamp of tree: Fri, 20 Nov 2009 17:30:01 +0000 app-shells/bash: 4.0_p28 dev-lang/python: 2.5.4-r3, 2.6.2-r1 dev-util/cmake: 2.6.4 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=i686" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo" LANG="fr_CA.UTF-8" LC_ALL="fr_CA.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="fr en_US" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac acl acpi aim alsa avi bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt dbus dga divx4linux dri dts dvd dvdr dvdread eds emboss encode evo fam fame firefox flac gif gphoto2 gpm gstreamer gtk hal iconv icq imagemagick jabber jack jpeg kde libnotify mad mikmod mmx mmxext modules mozilla mp3 mp4 mpeg msn mudflap nas ncurses nls nptl nptlonly ogg oggvorbis opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline realmedia reflection samba sdl session slp spell spl ssl startup-notification subtitles svg svga sysfs tcpd theora thunar tiff truetype unicode usb v4l vorbis win32codecs wmp x264 x86 xml xml2 xmms xorg xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr en_US" SANE_BACKENDS="epson" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY Here is the tail of the log: i686-pc-linux-gnu-gcc -O2 -march=i686 -O2 -march=i686 -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -O2 -march=i686 -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,-O1 -Wl,-O1 -Wl,--export-dynamic -L./libdm -L./lib -L./daemons/dmeventd -Wl,-O1 -Wl,--export-dynamic -L../libdm -L../lib -L../daemons/dmeventd \ -L../libdm \ -o dmsetup dmsetup.o \ -ldevmapper -lreadline -lrt -ldl -lncurses -llvm-internal -ldevmapper-event -lpthread -ldevmapper /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ldevmapper-event collect2: ld a retourné 1 code d'état d'exécution make[1]: *** [dmsetup] Erreur 1 make[1]: quittant le répertoire « /var/tmp/portage/sys-fs/lvm2-2.02.51-r1/work/LVM2.2.02.51/tools » make: *** [tools.device-mapper] Erreur 2 * * ERROR: sys-fs/lvm2-2.02.51-r1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2740: Called die * The specific snippet of code: * emake || die "compile problem" * The die message: * compile problem * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/sys-fs:lvm2-2.02.51-r1:20091120-180839.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-fs/lvm2-2.02.51-r1/temp/environment'. * same here: make[1]: Entering directory `/var/tmp/portage/sys-fs/lvm2-2.02.51-r1/work/LVM2.2.02.51/tools' i686-pc-linux-gnu-gcc -c -I. -I../include -DLVM_SHARED_PATH=\"/usr/sbin/lvm\" -DHAVE_CONFIG_H -DDM_IOCTLS -march=athlon64 -march=athlon64 -O3 -pipe -march=athlon64 -march=athlon64 -O3 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=athlon64 -march=athlon64 -O3 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 dmsetup.c -o dmsetup.o i686-pc-linux-gnu-gcc -march=athlon64 -march=athlon64 -O3 -pipe -march=athlon64 -march=athlon64 -O3 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=athlon64 -march=athlon64 -O3 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -Wl,-O1 -Wl,-O1 -Wl,--export-dynamic -L./libdm -L./lib -L./daemons/dmeventd -Wl,-O1 -Wl,--export-dynamic -L../libdm -L../lib -L../daemons/dmeventd \ -L../libdm \ -o dmsetup dmsetup.o \ -ldevmapper -lreadline -lrt -ldl -lncurses -llvm-internal -ldevmapper-event -lpthread -ldevmapper /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ldevmapper-event (In reply to comment #13) Sync you tree then try again: emerge --sync (In reply to comment #13) For me comment #14 didn't help. Helped emerging older "LVM2" and then current. Try this: ACCEPT_KEYWORDS="~x86" emerge =sys-fs/lvm2-2.02.45 && emerge =sys-fs/lvm2-2.02.51-r1 (In reply to comment #15) #14 did also not help for me. But #15 did. #15 works on my fresh system too. Thanks. I was having the same issue (same output as in comment #13) and the workaround of comment #15 seemed to fix it. I was just doing a fresh install with a up-to-date portage today, so I'd say that this is still an issue. reopening bug (In reply to comment #15) > (In reply to comment #13) > For me comment #14 didn't help. Helped emerging older "LVM2" and then current. > Try this: > ACCEPT_KEYWORDS="~x86" emerge =sys-fs/lvm2-2.02.45 && emerge > =sys-fs/lvm2-2.02.51-r1 > when i emerge =sys-fs/lvm2-2.02.45 says that the ebuilds that could satisfy have been masked (In reply to comment #17) > #15 works on my fresh system too. Thanks. > Mee to, #15 is the rigt way to fix the error ld: cannot find -ldevmapper-event Please test 2.02.51-r3. Couldn't find 2.02.51-r3, and 2.02.51-r2 did not do the trick. Same error as before when emerging lvm2 with no prior version installed. Oops, sorry -- just noticed you just posted that today and really did mean -r3 (which didn't hit the mirrors yet). I'll go ahead and try that one... It worked, -r3 fixed the build error. Same problem with latest portage tree and lvm2 version 2.02.84 (In reply to comment #26) > Same problem with latest portage tree and lvm2 version 2.02.84 Sergey Gusarov: 1. please open a new bug for your problem 2. CC yourself if you leave a comment Robin Johnson: false alarm, bug already opened and fixed ;) http://bugs.gentoo.org/show_bug.cgi?id=361429 |