Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(Funtoo) Lvm2-2.02.95-r2 fails to compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
rikkiz0r
n00b
n00b


Joined: 30 Sep 2013
Posts: 5

PostPosted: Mon Sep 30, 2013 9:55 pm    Post subject: (Funtoo) Lvm2-2.02.95-r2 fails to compile Reply with quote

Hi,

This is an crosspost from the funtoo forums. I am new to funtoo and gentoo so forgive me for my nooby question.
When I run emerge -uDN @world it tries to install lvm2-2.02.95-r2 however it fails to compile. I have found this bugtracker page: https://bugs.gentoo.org/show_bug.cgi?id=424810
I tried to add the patch however I didn't manage to succeed. Can anyone point me in the right direction?

Here are my logs:

Code:
emerge -pqv '=sys-fs/lvm2-2.02.95-r2'
[ebuild  N    ] sys-fs/lvm2-2.02.95-r2  USE="lvm1 readline static static-libs udev -clvm -cman (-selinux)"

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news it


Code:
emerge --info =sys-fs/lvm2-2.02.95-r2
WARNING: One or more repositories have missing repo_name entries:

        /usr/local/portage/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.


Portage 2.3.6-r5 (funtoo/1.0/linux-gnu/arch/x86-64bit, gcc-4.6.4, glibc-2.15-r4, 3.11.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.11.1-gentoo-x86_64-Intel-R-_Core-TM-_i7-4700MQ_CPU_@_2.40GHz-with-gentoo-2.2.0
KiB Mem:     7899184 total,   4363860 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of tree: Mon, 30 Sep 2013 17:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r1000, 3.3.2-r1000
dev-util/ccache:          3.1.9-r2
dev-util/cmake:           2.8.11.2
sys-apps/baselayout:      2.2.0-r4
sys-apps/openrc:          0.10.3-r1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.4-r2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r4
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=corei7 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="git://github.com/funtoo/ports-2012.git"
SYNC_USER="root"
USE="X acl alsa amd64 apng bbswitch berkdb bzip2 cdr colord consolekit cracklib crypt cxx dbus dhcpcd dri dvd dvdr dvdread eds evo flac gdbm gif gnome gnome-keyring gpm gstreamer gtk iconv icu introspection ipv6 jpeg lame mad mmx modules mp3 mpeg mudflap multilib nautilus ncurses nls nouveau nptl nss ogg opengl openmp pam pcre png policykit ppp pppd pulseaudio python readline resolvconf sse sse2 ssl tcpd tiff tools truetype udev unicode vorbis wavpack wext win32codecs xml xorg zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel ice1724 intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 cgi cgid 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 authn_core authz_core socache_shmcb unixd" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_ABIS="2.7 3.3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel nvidia nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK


Code:
localhost temp # tail -n 50 build.log
rm -f libdevmapper-event.a
ar rs libdevmapper-event.a libdevmapper-event.o
ar: creating libdevmapper-event.a
ln -s -f libdevmapper-event.so.1.02 libdevmapper-event.so
cc -march=corei7 -O2 -pipe -march=corei7 -O2 -pipe -fPIC  -O2 -march=corei7 -O2 -pipe -fPIC  -O2 -march=corei7 -O2 -pipe -fPIC  -O2 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -O2 -L./libdm -L./lib -L./daemons/dmeventd -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -O2 -L../libdm -L../lib -L../daemons/dmeventd -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -O2 -L../../libdm -L../../lib -L../../daemons/dmeventd -Wl,--export-dynamic -L. -o dmeventd dmeventd.o \
-ldl -ldevmapper-event -lpthread  -ldevmapper -rdynamic
cc -march=corei7 -O2 -pipe -march=corei7 -O2 -pipe -fPIC  -O2 -march=corei7 -O2 -pipe -fPIC  -O2 -march=corei7 -O2 -pipe -fPIC  -O2 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -O2 -L./libdm -L./lib -L./daemons/dmeventd -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -O2 -L../libdm -L../lib -L../daemons/dmeventd -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -O2 -L../../libdm -L../../lib -L../../daemons/dmeventd -Wl,--export-dynamic -Wl,--no-export-dynamic -static -L. -L../../libdm/ioctl -o dmeventd.static \
dmeventd.o -ldl -ldevmapper-event -lpthread  -ldevmapper  -ludev
dmeventd.o: In function `_register_for_event':
dmeventd.c:(.text+0x1031): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ludev
collect2: ld returned 1 exit status
make[2]: *** [dmeventd.static] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/sys-fs/lvm2-2.02.95-r2/work/LVM2.2.02.95/daemons/dmeventd'
make[1]: *** [dmeventd.device-mapper] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-fs/lvm2-2.02.95-r2/work/LVM2.2.02.95/daemons'
make: *** [daemons.device-mapper] Error 2
make: *** Waiting for unfinished jobs....
cc -march=corei7 -O2 -pipe -march=corei7 -O2 -pipe -fPIC  -O2 -march=corei7 -O2 -pipe -fPIC  -O2 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -O2 -L./libdm -L./lib -L./daemons/dmeventd -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -O2 -L../libdm -L../lib -L../daemons/dmeventd -L../libdm \
      -o dmsetup dmsetup.o -ldevmapper  -ludev
cc -march=corei7 -O2 -pipe -march=corei7 -O2 -pipe -fPIC  -O2 -march=corei7 -O2 -pipe -fPIC  -O2 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -O2 -L./libdm -L./lib -L./daemons/dmeventd -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -O2 -L../libdm -L../lib -L../daemons/dmeventd -Wl,--no-export-dynamic -static -L../libdm/ioctl \
      -o dmsetup.static dmsetup.o -ldevmapper  -ludev    -ludev
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ludev
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ludev
dmsetup.o: In function `main':
dmsetup.c:(.text.startup+0xba5): undefined reference to `udev_get_dev_path'
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
make[1]: *** [dmsetup] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [dmsetup.static] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-fs/lvm2-2.02.95-r2/work/LVM2.2.02.95/tools'
make: *** [tools.device-mapper] Error 2
emake failed
 * ERROR: sys-fs/lvm2-2.02.95-r2 failed (compile phase):
 *   compile fail
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 3708:  Called die
 * The specific snippet of code:
 *       emake || die "compile fail"
 *
 * If you need support, post the output of `emerge --info '=sys-fs/lvm2-2.02.95-r2'`,
 * the complete build log and the output of `emerge -pqv '=sys-fs/lvm2-2.02.95-r2'`.
 * The complete build log is located at '/var/tmp/portage/sys-fs/lvm2-2.02.95-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-fs/lvm2-2.02.95-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-fs/lvm2-2.02.95-r2/work/LVM2.2.02.95'
 * S: '/var/tmp/portage/sys-fs/lvm2-2.02.95-r2/work/LVM2.2.02.95'
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1480

PostPosted: Tue Oct 01, 2013 12:15 am    Post subject: Reply with quote

Easy first thing you can try:
MAKEOPTS="-j1"
when error "cannot find"

The second thing:
Find some newer - more recent version - ebuild in an overlay. This version doesn't exist any more for Gentoo, but Funtoo may have its reason perhaps.
Back to top
View user's profile Send private message
rikkiz0r
n00b
n00b


Joined: 30 Sep 2013
Posts: 5

PostPosted: Tue Oct 01, 2013 11:38 am    Post subject: Reply with quote

Thank you for an answer, I will try to install a more recent version via an overlay.
Back to top
View user's profile Send private message
N8Fear
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2013
Posts: 140
Location: Berlin (Germany)

PostPosted: Tue Oct 01, 2013 2:12 pm    Post subject: Reply with quote

Since -ludev could nnot be found, first of all make sure, that udev is properly installed. If you don't want to install udev, disable the udev useflag.
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Tue Oct 01, 2013 2:58 pm    Post subject: Reply with quote

If udev is indeed installed, check it's USE="static-libs" status. But... older versions of cryptsetup and lvm2 are known to be broken for USE="static static-libs", propably good idea to try these in /etc/portage/package.use

Code:

virtual/udev -static -static-libs
sys-fs/lvm2 -static -static-libs
sys-fs/cryptsetup -static -static-libs
Back to top
View user's profile Send private message
rikkiz0r
n00b
n00b


Joined: 30 Sep 2013
Posts: 5

PostPosted: Tue Oct 01, 2013 7:50 pm    Post subject: Reply with quote

Hi,

I added your entrys to /etc/portage/package.use however it didn't make a difference.

Looks like I need to install a new version using an overlay.

However I now also have "util-linux-2.23.2-r1" broken because of an udev problem.
I installed udev with the ebuild tool since emerge wouldn't compile it because util-linux was first in cue.

Code:
checking for udev_new in -ludev... no
configure: error: udev selected but libudev not found

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-apps/util-linux-2.23.2-r1/work/util-linux-2.23.2/config.log
 * ERROR: sys-apps/util-linux-2.23.2-r1 failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   93:  Called src_configure
 *        environment, line 2949:  Called econf '--enable-fs-paths-extra=/usr/sbin:/bin:/usr/bin' '--enable-nls' '--enable-agetty' '--with-bashcompletiondir=/usr/share/bash-completion' '--disable-bash-completion' '--disable-setpriv' '--enable-cramfs' '--disable-cytune' '--disable-fdformat' '--disable-elvtune' '--with-ncurses=auto' '--disable-kill' '--disable-last' '--disable-login' '--enable-mesg' '--enable-partx' '--enable-raw' '--enable-rename' '--disable-reset' '--enable-schedutils' '--disable-su' '--enable-wall' '--enable-write' '--enable-makeinstall-chown' '--enable-makeinstall-setuid' '--without-selinux' '--without-slang' '--disable-static' '--with-udev'
 *   phase-helpers.sh, line  521:  Called die
 * The specific snippet of code:
 *                      die "econf failed"


N8Fear wrote:
Since -ludev could nnot be found, first of all make sure, that udev is properly installed. If you don't want to install udev, disable the udev useflag.

Disabling the udev useflag is not an option since the flag is not in my make.conf
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54304
Location: 56N 3W

PostPosted: Tue Oct 01, 2013 8:11 pm    Post subject: Reply with quote

rikkiz0r,

From your emerge --info
Code:
USE="X acl alsa amd64 apng bbswitch berkdb bzip2 cdr colord consolekit cracklib crypt cxx dbus dhcpcd dri dvd dvdr dvdread eds evo flac gdbm gif gnome gnome-keyring gpm gstreamer gtk iconv icu introspection ipv6 jpeg lame mad mmx modules mp3 mpeg mudflap multilib nautilus ncurses nls nouveau nptl nss ogg opengl openmp pam pcre png policykit ppp pppd pulseaudio python readline resolvconf sse sse2 ssl tcpd tiff tools truetype udev ...

udev is probably in your profile.

You can turn it off on a per package basis on package.use
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
rikkiz0r
n00b
n00b


Joined: 30 Sep 2013
Posts: 5

PostPosted: Tue Oct 01, 2013 8:27 pm    Post subject: Reply with quote

Ah, I didn't know I could turn it off on a package base.

I'm now trying to install lvm2-2.02.97 from an Gentoo overlay, I have no idea if this is going to work on Funtoo but I hope so.


Edit:

Solved it by disabling use flag for the lvm2 and the cryptsetup package.
Back to top
View user's profile Send private message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1435
Location: Berlin, Germany

PostPosted: Sun Aug 03, 2014 3:21 pm    Post subject: Reply with quote

This is quite an old thread at this point, but I've run up against the same issue. Emerging lvm2-2.02.108::gentoo fails with the following:
Code:
../lib/liblvm-internal.a(sharedlib.o): In function `load_shared_library':
sharedlib.c:(.text+0x165): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib64/libblkid.a(libcommon_la-fileutils.o): In function `mkdir_p':
(.text+0x110): multiple definition of `mkdir_p'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib64/libudev.a(libsystemd_shared_la-mkdir.o):(.text.mkdir_p+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib64/libudev.a(libsystemd_shared_la-util.o): In function `gid_to_name':
(.text.gid_to_name+0x31): warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib64/libudev.a(libsystemd_shared_la-util.o): In function `get_group_creds':
(.text.get_group_creds+0xca): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib64/libudev.a(libudev_la-libudev-util.o): In function `util_lookup_group':
(.text.util_lookup_group+0xd7): warning: Using 'getgrnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib64/libudev.a(libsystemd_shared_la-util.o): In function `get_user_creds':
(.text.get_user_creds+0x163): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib64/libudev.a(libsystemd_shared_la-util.o): In function `get_user_creds':
(.text.get_user_creds+0xe7): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib64/libudev.a(libudev_la-libudev-util.o): In function `util_lookup_user':
(.text.util_lookup_user+0xcc): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib64/libudev.a(libsystemd_shared_la-util.o): In function `lookup_uid':
(.text.lookup_uid+0x82): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
collect2: error: ld returned 1 exit status
Makefile:151: recipe for target 'lvm.static' failed
make[1]: *** [lvm.static] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-fs/lvm2-2.02.108/work/LVM2.2.02.108/tools'
make.tmpl:277: recipe for target 'tools' failed
make: *** [tools] Error 2
However, the solution you advocate (hi Neddy!) conflicts with changes to my package.use I made specifically to follow one of your other guides: namely, this one for creating an initrd to boot on systems with /usr on a RAID volume.

So, /usr on RAID with >udev-182 requires that I build lvm2 with +static, but lvm2-2.0.2.108 won't build with that flag.

Is there another solution?

Cheers,

EE
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum