View previous topic :: View next topic |
Author |
Message |
jbpros Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/102170648340fc6625bf213.jpg)
Joined: 05 May 2004 Posts: 133 Location: Brussels, Belgium
|
Posted: Sat Jul 28, 2007 4:25 am Post subject: device-mapper emerge fails (lib64, amd64) [SOLVED] |
|
|
Hi!
When I try to emerge sys-fs/device-mapper during installation on an athlon64 with raid5+lvm2, before first reboot, it fails with the following message:
Code: | (...)
make[1]: Leaving directory `/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/work/device-mapper.1.02.19/lib'
make -C dmsetup install
make[1]: Entering directory `/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/work/device-mapper.1.02.19/dmsetup'
/usr/bin/install -c -D -o root -g root -m 555 dmsetup /var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/image//sbin/dmsetup
make[1]: Leaving directory `/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/work/device-mapper.1.02.19/dmsetup'
mv: cannot stat `/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/image//usr/lib64': No such file or directory
| .
I tried upgrading everthing to latest version with no luck. All device-mapper versions fail with this message.
Any idea?
Last edited by jbpros on Sat Jul 28, 2007 9:48 pm; edited 2 times in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
didymos Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1790706086435438446060f.jpg)
Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Sat Jul 28, 2007 7:19 am Post subject: |
|
|
Could you post the output above that? Also, "emerge --info" _________________ Thomas S. Howard |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jbpros Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/102170648340fc6625bf213.jpg)
Joined: 05 May 2004 Posts: 133 Location: Brussels, Belgium
|
Posted: Sat Jul 28, 2007 11:42 am Post subject: |
|
|
Sure:
Code: | >>> Source compiled.
>>> Test phase [not enabled]: sys-fs/device-mapper-1.02.19-r1
>>> Install device-mapper-1.02.19-r1 into /var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/image/ category sys-fs
make -C include
make[1]: Entering directory `/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/work/device-mapper.1.02.19/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/work/device-mapper.1.02.19/include'
make -C man
make[1]: Entering directory `/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/work/device-mapper.1.02.19/man'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/work/device-mapper.1.02.19/man'
make -C lib
make[1]: Entering directory `/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/work/device-mapper.1.02.19/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/work/device-mapper.1.02.19/lib'
make -C dmsetup
make[1]: Entering directory `/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/work/device-mapper.1.02.19/dmsetup'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/work/device-mapper.1.02.19/dmsetup'
make -C include install
make[1]: Entering directory `/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/work/device-mapper.1.02.19/include'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/work/device-mapper.1.02.19/include'
make -C man install
make[1]: Entering directory `/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/work/device-mapper.1.02.19/man'
*** Installing in /var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/image//usr/share/man/man8 ***
make[1]: Leaving directory `/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/work/device-mapper.1.02.19/man'
make -C lib install
make[1]: Entering directory `/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/work/device-mapper.1.02.19/lib'
/usr/bin/install -c -D -o root -g root -m 555 ioctl/libdevmapper.so \
/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/image//usr/lib/libdevmapper.so.1.02
ln -s -f libdevmapper.so.1.02 \
/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/image//usr/lib/libdevmapper.so
/usr/bin/install -c -D -o root -g root -m 444 libdevmapper.h \
/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/image//usr/include/libdevmapper.h
make[1]: Leaving directory `/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/work/device-mapper.1.02.19/lib'
make -C dmsetup install
make[1]: Entering directory `/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/work/device-mapper.1.02.19/dmsetup'
/usr/bin/install -c -D -o root -g root -m 555 dmsetup /var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/image//sbin/dmsetup
make[1]: Leaving directory `/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/work/device-mapper.1.02.19/dmsetup'
mv: cannot stat `/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/image//usr/lib64': No such file or directory
!!! ERROR: sys-fs/device-mapper-1.02.19-r1 failed.
Call stack:
ebuild.sh, line 1621: Called dyn_install
ebuild.sh, line 1067: Called qa_call 'src_install'
ebuild.sh, line 44: Called src_install
device-mapper-1.02.19-r1.ebuild, line 30: Called die
!!! move libdir
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-fs/device-mapper-1.02.19-r1/temp/build.log'.
|
emerge --info:
Code: | livecd ~ # emerge --info
Portage 2.1.2.9 (default-linux/amd64, gcc-4.1.2, glibc-2.5-r4, 2.6.19-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 27 Jul 2007 03:20:01 +0000
dev-lang/python: 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.61
sys-devel/automake: 1.9.6-r2, 1.10
sys-devel/binutils: 2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.23b
virtual/os-headers: 2.6.21
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.gentoo.skynet.be/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://anubis.gemini.jbpros.net/gentoo-portage"
USE="alsa amd64 apache2 berkdb bitmap-fonts cli cracklib crypt dri fortran iconv ipv6 isdnlog midi mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl php postgres pppd python readline reflection session spl srvdir ssl tcpd truetype-fonts type1-fonts xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
|
Thank you! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jbpros Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/102170648340fc6625bf213.jpg)
Joined: 05 May 2004 Posts: 133 Location: Brussels, Belgium
|
Posted: Sat Jul 28, 2007 12:05 pm Post subject: |
|
|
I wrote an ugly hack because I'm in a rush for this server box: I added the ++-prefixed line below on the ebuild:
Code: | src_install() {
make install DESTDIR="${D}" || die
# move shared libs to /
++ mv "${D}"/usr/lib "${D}"/usr/$(get_libdir) || die "fix libdir"
mv "${D}"/usr/$(get_libdir) "${D}"/ || die "move libdir"
dolib.a lib/ioctl/libdevmapper.a || die "dolib.a"
gen_usr_ldscript libdevmapper.so
insinto /etc
doins "${FILESDIR}"/dmtab
insinto /lib/rcscripts/addons
doins "${FILESDIR}"/dm-start.sh
newinitd "${FILESDIR}"/device-mapper.rc device-mapper || die
insinto /etc/udev/rules.d/
newins "${FILESDIR}"/64-device-mapper.rules-1.02.19 64-device-mapper.rules
dodoc INSTALL INTRO README VERSION WHATS_NEW
} |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
didymos Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1790706086435438446060f.jpg)
Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Sat Jul 28, 2007 1:07 pm Post subject: |
|
|
Quote: |
Portage 2.1.2.9 (default-linux/amd64, gcc-4.1.2, glibc-2.5-r4, 2.6.19-gentoo-r5 x86_64)
|
That's the problem. You aren't supposed to set the profile to that. Good choices are:
Code: |
default-linux/amd64/2007.0
default-linux/amd64/2007.0/server
default-linux/amd64/2007.0/desktop
|
though others exist. Run:
Code: |
eselect profile list
|
to see all valid profiles. Each one will have a number next to it. You can then set it by doing:
Code: |
eselect profile set <number>
|
The upper level profiles are incomplete. They're really just meant to be inherited, acting as a common base for the various 200x.x profiles (there's hardened and selinux ones as well, but most people use one of the default-linux profiles). _________________ Thomas S. Howard |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jbpros Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/102170648340fc6625bf213.jpg)
Joined: 05 May 2004 Posts: 133 Location: Brussels, Belgium
|
Posted: Sat Jul 28, 2007 1:32 pm Post subject: |
|
|
Ouch, I'm just an idiot Thank you for the help! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|