LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1134|回复: 18

emerge sys-fs/lvm2-2.02.51-r2 安装失败!!请求指点!!!

[复制链接]
发表于 2009-11-13 17:25:39 | 显示全部楼层 |阅读模式
请各位高手指点一下啊!

升级python和系统时都遇到Failed to emerge sys-fs/lvm2-2.02.51-r2!!

请问各位如何处之!兄弟们,很急的!是公司的电脑哦。还需要工作呢,万一又弄坏了,礼拜一又无法工作了,等着挨骂了啊。晕死……

是编译失败!如何处理呢?
发表于 2009-11-13 18:18:46 | 显示全部楼层
请养成贴出完整错误输出的好习惯。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-13 18:53:51 | 显示全部楼层
错误如下

。。。。。

collect2: ld returned 1 exit status
make[1]: *** [dmsetup] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/work/LVM2.2.02.51/tools'
make: *** [tools.device-mapper] Error 2
* ERROR: sys-fs/lvm2-2.02.51-r2 failed:
*   compile problem
*
* Call stack:
*     ebuild.sh, line  55:  Called src_compile
*   environment, line 6028:  Called die
* The specific snippet of code:
*       emake || die "compile problem"
*
* If you need support, post the output of 'emerge --info =sys-fs/lvm2-2.02.51-r2',
* the complete build log and the output of 'emerge -pqv =sys-fs/lvm2-2.02.51-r2'.
* The complete build log is located at '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/temp/environment'.
* S: '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/work/LVM2.2.02.51'

>>> Failed to emerge sys-fs/lvm2-2.02.51-r2, Log file:

>>>  '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/temp/build.log'

* Messages for package sys-fs/lvm2-2.02.51-r2:

* Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with
* their static versions. If you need the static binaries,
* you must append .static the filename!
* ERROR: sys-fs/lvm2-2.02.51-r2 failed:
*   compile problem
*
* Call stack:
*     ebuild.sh, line  55:  Called src_compile
*   environment, line 6028:  Called die
* The specific snippet of code:
*       emake || die "compile problem"
*
* If you need support, post the output of 'emerge --info =sys-fs/lvm2-2.02.51-r2',
* the complete build log and the output of 'emerge -pqv =sys-fs/lvm2-2.02.51-r2'.
* The complete build log is located at '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/temp/environment'.
* S: '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/work/LVM2.2.02.51'

localhost ~ # emerge --info =sys-fs/lvm2-2.02.51-r2
Portage 2.1.7.4 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.11-r0, 2.6.30-gentoo-r8 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.30-gentoo-r8-i686-Intel-R-_Core-TM-2_Duo_CPU_E7400_@_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 12 Nov 2009 19:30:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r13, 2.5.2-r7, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r2
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.archermind.com/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/profile/rsync_excludes"
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://192.168.100.197/gentoo-portage"
USE="X acl avahi berkdb bzip2 cli cracklib crypt cups dbus dri fortran gdbm gnome gpm gtk hal iconv ipv6 modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl sysfs tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="intel vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTDIR_OVERLAY

localhost ~ # emerge -pqv =sys-fs/lvm2-2.02.51-r2
[ebuild  N    ] sys-fs/lvm2-2.02.51-r2  USE="lvm1 readline static -clvm (-cman) (-selinux)"
回复 支持 反对

使用道具 举报

发表于 2009-11-13 19:18:37 | 显示全部楼层
Post by uusky;2045491
  * If you need support, post the output of 'emerge --info =sys-fs/lvm2-2.02.51-r2',
* the complete build log and the output of 'emerge -pqv =sys-fs/lvm2-2.02.51-r2'.
* The complete build log is located at '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/temp/environment'.

首先要说的是,包的编译输出保存在build.log,一般还需要这些信息来辅助定位错误具体的位置。

environment保存的是编译时的环境变量,也有一定的参考价值。

这些信息都是必需的,像build.log这样的大文件就不要直接贴出来,上传为附件就好。

从以上输出只能看出是编译错误。
回复 支持 反对

使用道具 举报

发表于 2009-11-13 19:25:11 | 显示全部楼层
collect2: ld returned 1 exit status

这句话上面是关键
你恰好省略了关键部分
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-13 19:41:11 | 显示全部楼层
>>> Emerging (1 of 1) sys-fs/lvm2-2.02.51-r2
* LVM2.2.02.51.tgz RMD160 SHA1 SHA256 size ;-) ...                      [ ok ]
。。。

>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-fs/lvm2-2.02.51-r2/work/LVM2.2.02.51 ...
* Doing symlinks
/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/work/LVM2.2.02.51/include /var/tmp/portage/sys-fs/lvm2-2.02.51-r2/work/LVM2.2.02.51
make
find . -maxdepth 1 -type l -exec rm -f \{\} \;
for i in `cat .symlinks`; do ln -s $i ; done
touch .symlinks_created
/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/work/LVM2.2.02.51
* Doing device-mapper
/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/work/LVM2.2.02.51/libdm /var/tmp/portage/sys-fs/lvm2-2.02.51-r2/work/LVM2.2.02.51
make
set -e; \
        FILE=`echo ioctl/libdm-iface.d | sed 's/\\//\\\\\\//g;s/\\.d//g'`; \
        DEPS=`echo ../make.tmpl ../VERSION Makefile ../include/.symlinks_created | sed -e 's/\\//\\\\\\//g'`; \
        i686-pc-linux-gnu-gcc -MM -Iioctl -I. -I. -I../include -DDM_DEVICE_UID=0 -DDM_DEVICE_GID=0 -DDM_DEVICE_MODE=0600 -DHAVE_CONFIG_H -DDM_IOCTLS -O2 -march=i686 -pipe -O2 -march=i686 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 ioctl/libdm-iface.c | \
        sed "s/\(.*\)\.o[ :]*/$FILE.o $FILE.d $FILE.pot: $DEPS /g" > ioctl/libdm-iface.d; \
        [ -s ioctl/libdm-iface.d ] || rm -f ioctl/libdm-iface.d
set -e; \
        FILE=`echo regex/ttree.d | sed 's/\\//\\\\\\//g;s/\\.d//g'`; \
        DEPS=`echo ../make.tmpl ../VERSION Makefile ../include/.symlinks_created | sed -e 's/\\//\\\\\\//g'`; \
        i686-pc-linux-gnu-gcc -MM -Iioctl -I. -I. -I../include -DDM_DEVICE_UID=0 -DDM_DEVICE_GID=0 -DDM_DEVICE_MODE=0600 -DHAVE_CONFIG_H -DDM_IOCTLS -O2 -march=i686 -pipe -O2 -march=i686 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 regex/ttree.c | \
        sed "s/\(.*\)\.o[ :]*/$FILE.o $FILE.d $FILE.pot: $DEPS /g" > regex/ttree.d; \
        [ -s regex/ttree.d ] || rm -f regex/ttree.d
set -e; \
        FILE=`echo regex/parse_rx.d | sed 's/\\//\\\\\\//g;s/\\.d//g'`; \
        DEPS=`echo ../make.tmpl ../VERSION Makefile ../include/.symlinks_created | sed -e 's/\\//\\\\\\//g'`; \
        i686-pc-linux-gnu-gcc -MM -Iioctl -I. -I. -I../include -DDM_DEVICE_UID=0 -DDM_DEVICE_GID=0 -DDM_DEVICE_MODE=0600 -DHAVE_CONFIG_H -DDM_IOCTLS -O2 -march=i686 -pipe -O2 -march=i686 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 regex/parse_rx.c | \
        sed "s/\(.*\)\.o[ :]*/$FILE.o $FILE.d $FILE.pot: $DEPS /g" > regex/parse_rx.d; \
        [ -s regex/parse_rx.d ] || rm -f regex/parse_rx.d
set -e; \
        FILE=`echo regex/matcher.d | sed 's/\\//\\\\\\//g;s/\\.d//g'`; \
        DEPS=`echo ../make.tmpl ../VERSION Makefile ../include/.symlinks_created | sed -e 's/\\//\\\\\\//g'`; \

。。。。。


        i686-pc-linux-gnu-gcc -MM -I. -I../include -DLVM_SHARED_PATH=\"/usr/sbin/lvm\" -DHAVE_CONFIG_H -DDM_IOCTLS -O2 -march=i686 -pipe -O2 -march=i686 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -O2 -march=i686 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 formats.c | \
        sed "s/\(.*\)\.o[ :]*/$FILE.o $FILE.d $FILE.pot: $DEPS /g" > formats.d; \
        [ -s formats.d ] || rm -f formats.d
set -e; \
        FILE=`echo dumpconfig.d | sed 's/\\//\\\\\\//g;s/\\.d//g'`; \
        DEPS=`echo ../make.tmpl ../VERSION Makefile ../include/.symlinks_created | sed -e 's/\\//\\\\\\//g'`; \
        i686-pc-linux-gnu-gcc -MM -I. -I../include -DLVM_SHARED_PATH=\"/usr/sbin/lvm\" -DHAVE_CONFIG_H -DDM_IOCTLS -O2 -march=i686 -pipe -O2 -march=i686 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -O2 -march=i686 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 dumpconfig.c | \
        sed "s/\(.*\)\.o[ :]*/$FILE.o $FILE.d $FILE.pot: $DEPS /g" > dumpconfig.d; \
        [ -s dumpconfig.d ] || rm -f dumpconfig.d
make[1]: Leaving directory `/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/work/LVM2.2.02.51/tools'
make[1]: Entering directory `/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/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 -O2 -march=i686 -pipe -O2 -march=i686 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -O2 -march=i686 -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 -O2 -march=i686 -pipe -O2 -march=i686 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -O2 -march=i686 -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
collect2: ld returned 1 exit status
make[1]: *** [dmsetup] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/work/LVM2.2.02.51/tools'
make: *** [tools.device-mapper] Error 2
* ERROR: sys-fs/lvm2-2.02.51-r2 failed:
*   compile problem
*
* Call stack:
*     ebuild.sh, line  55:  Called src_compile
*   environment, line 6028:  Called die
* The specific snippet of code:
*       emake || die "compile problem"
*
* If you need support, post the output of 'emerge --info =sys-fs/lvm2-2.02.51-r2',
* the complete build log and the output of 'emerge -pqv =sys-fs/lvm2-2.02.51-r2'.
* The complete build log is located at '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/temp/environment'.
* S: '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/work/LVM2.2.02.51'

>>> Failed to emerge sys-fs/lvm2-2.02.51-r2, Log file:

>>>  '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/temp/build.log'

* Messages for package sys-fs/lvm2-2.02.51-r2:

* Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with
* their static versions. If you need the static binaries,
* you must append .static the filename!
* ERROR: sys-fs/lvm2-2.02.51-r2 failed:
*   compile problem
*
* Call stack:
*     ebuild.sh, line  55:  Called src_compile
*   environment, line 6028:  Called die
* The specific snippet of code:
*       emake || die "compile problem"
*
* If you need support, post the output of 'emerge --info =sys-fs/lvm2-2.02.51-r2',
* the complete build log and the output of 'emerge -pqv =sys-fs/lvm2-2.02.51-r2'.
* The complete build log is located at '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/temp/environment'.
* S: '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/work/LVM2.2.02.51'
回复 支持 反对

使用道具 举报

发表于 2009-11-13 19:47:46 | 显示全部楼层
把make.conf里的LDFLAGS="-Wl,-O1"去掉试试。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-13 19:48:36 | 显示全部楼层
log 太大了,贴不出来啊!

环境如下:


ALSA_CARDS=
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'
ARCH=x86
AT_GNUCONF_UPDATE=no
AT_M4DIR=
CBUILD=i686-pc-linux-gnu
CDEFINE_default=__unix__
CFLAGS='-O2 -march=i686 -pipe'
CHOST=i686-pc-linux-gnu
CHOST_default=i686-pc-linux-gnu
CROSSCOMPILE_OPTS=
CTARGET_default=i686-pc-linux-gnu
CVS_RSH=ssh
CXXFLAGS='-O2 -march=i686 -pipe'
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-uzEXJqzf2W,guid=e47583ae359859a3001736504afd21dd
DEFAULT_ABI=default
DEFINED_PHASES=' compile configure install postinst prepare setup test unpack'
DEPEND=$'!!sys-fs/device-mapper\n\tclvm? ( =sys-cluster/dlm-2*\n\t\tcman? ( =sys-cluster/cman-2* ) )  =sys-devel/automake-1.10*\n\t>=sys-devel/autoconf-2.61 sys-devel/libtool'
DESCRIPTION='User-land utilities for LVM2 (device-mapper) software.'
DESKTOP_SESSION=gnome
DESTTREE=/usr
DIROPTIONS=-m0755
EAPI=2
ECONF_SOURCE=.
ELIBC=glibc
ELIBTOOL_VERSION=2.0.2
ELT_APPLIED_PATCHES=
ELT_LTMAIN_SH=
ELT_PATCH_DIR=/usr/portage/eclass/ELT-patches
EPATCH_EXCLUDE=
EPATCH_FORCE=no
EPATCH_MULTI_MSG='Applying various patches (bugfixes/updates) ...'
EPATCH_OPTS='-g0 -E --no-backup-if-mismatch'
EPATCH_SINGLE_MSG=
EPATCH_SOURCE=/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/work/patch
EPATCH_SUFFIX=patch.bz2
EXEOPTIONS=-m0755
FEATURES='assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch'
GCC_SPECS=
GDK_USE_XFT=1
GDMSESSION=gnome
GDM_XSERVER_LOCATION=local
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_KEYRING_SOCKET=/tmp/keyring-7wz2dy/socket
GTK_RC_FILES=/etc/gtk/gtkrc:/root/.gtkrc-1.2-gnome2
HOMEPAGE=http://sources.redhat.com/lvm2/
INHERITED='toolchain-funcs portability multilib libtool autotools eutils'
INPUT_DEVICES='keyboard mouse'
INSDESTTREE=
INSOPTIONS=-m0644
IUSE='readline +static clvm cman +lvm1 selinux '
KERNEL=linux
KERNEL_ABI=default
KEYWORDS='~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86'
KV=2.6.26-gentoo-r4
LCD_DEVICES='bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text'
LDFLAGS=-Wl,-O1
LIBDIR_default=lib
LIBOPTIONS=-m0644
LICENSE=GPL-2
MAKEOPTS=-j4
MULTILIB_ABIS=default
NETBEANS='apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml'
OPENGL_PROFILE=xorg-x11
ORBIT_SOCKETDIR=/tmp/orbit-root
PDEPEND=' '
PKG_CONFIG_PATH=/usr/qt/3/lib/pkgconfig
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES='css gif htm[l]? jp[e]?g js pdf png'
PROFILE_ONLY_VARIABLES='ARCH ELIBC KERNEL USERLAND'
PROPERTIES=
PROVIDE=
PYTHONDONTWRITEBYTECODE=1
QMAKESPEC=linux-g++
QTDIR=/usr/qt/3
RDEPEND=$'!!sys-fs/device-mapper\n\tclvm? ( =sys-cluster/dlm-2*\n\t\tcman? ( =sys-cluster/cman-2* ) )\n\t!<sys-apps/openrc-0.4\n\t!!sys-fs/lvm-user\n\t!!sys-fs/clvm\n\t>=sys-apps/util-linux-2.16  '
RESTRICT=
S=/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/work/LVM2.2.02.51
SANDBOX_DEBUG=0
SANDBOX_DENY=
SANDBOX_PID=20372
SANDBOX_PREDICT=/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/homedir:/dev/crypto:/var/cache/fontconfig
SANDBOX_READ=/:/dev/stdin:/var/tmp
SANDBOX_VERBOSE=1
SANDBOX_WRITE=:/dev/console:/dev/fd:/dev/full:/dev/null:/dev/pts/:/dev/pty:/dev/shm:/dev/stderr:/dev/stdout:/dev/tts:/dev/tty:/dev/vc/:/dev/zero:/proc/self/fd:/tmp/:/usr/lib/cf:/usr/lib/conftest:/usr/lib32/cf:/usr/lib32/conftest:/usr/lib64/cf:/usr/lib64/conftest:/usr/tmp/cf:/usr/tmp/conftest:/var/tmp:/var/tmp/:/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/homedir/.bash_history
SESSION_MANAGER=local/localhost/tmp/.ICE-unix/904,unix/localhost:/tmp/.ICE-unix/904
SLOT=0
SRC_URI=$'ftp://sources.redhat.com/pub/lvm2/LVM2.2.02.51.tgz\n\t\t ftp://sources.redhat.com/pub/lvm2/old/LVM2.2.02.51.tgz'
USE='elibc_glibc kernel_linux lvm1 readline static userland_GNU x86'
USERLAND=GNU
USERNAME=root
VIDEO_CARDS=
WANT_AUTOCONF=2.5
WANT_AUTOMAKE=1.10
WINDOWID=31457322
WINDOWPATH=7:7
XDG_CONFIG_DIRS=/etc/xdg
XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/gdm
XDG_MENU_PREFIX=gnome-
XDG_SESSION_COOKIE=b309891676d0df38f9d347084aefd6bc-1258103261.444131-1096795605
_=PKG_INSTALL_MASK
_E_DOCDESTTREE_=
_E_EXEDESTTREE_=
___ECLASS_RECUR_MULTILIB=yes
___ECLASS_RECUR_TOOLCHAIN_FUNCS=yes
conf=lvm2-2.02.51-r2


下面太多贴不了了。郁闷
回复 支持 反对

使用道具 举报

发表于 2009-11-13 19:55:03 | 显示全部楼层
说了,贴不了就上传。编辑帖子时,点高级模式,再点下面的管理附件,再就不用说了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-13 19:55:42 | 显示全部楼层
还是不行啊!

郁闷得很!


make[1]: Leaving directory `/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/work/LVM2.2.02.51/tools'
make[1]: Entering directory `/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/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=i686 -pipe -march=i686 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -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=i686 -pipe -march=i686 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -O2 -march=i686 -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
collect2: ld returned 1 exit status
make[1]: *** [dmsetup] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/work/LVM2.2.02.51/tools'
make: *** [tools.device-mapper] Error 2
* ERROR: sys-fs/lvm2-2.02.51-r2 failed:
*   compile problem
*
* Call stack:
*     ebuild.sh, line  55:  Called src_compile
*   environment, line 6028:  Called die
* The specific snippet of code:
*       emake || die "compile problem"
*
* If you need support, post the output of 'emerge --info =sys-fs/lvm2-2.02.51-r2',
* the complete build log and the output of 'emerge -pqv =sys-fs/lvm2-2.02.51-r2'.
* The complete build log is located at '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/temp/environment'.
* S: '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/work/LVM2.2.02.51'

>>> Failed to emerge sys-fs/lvm2-2.02.51-r2, Log file:

>>>  '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/temp/build.log'

* Messages for package sys-fs/lvm2-2.02.51-r2:

* Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with
* their static versions. If you need the static binaries,
* you must append .static the filename!
* ERROR: sys-fs/lvm2-2.02.51-r2 failed:
*   compile problem
*
* Call stack:
*     ebuild.sh, line  55:  Called src_compile
*   environment, line 6028:  Called die
* The specific snippet of code:
*       emake || die "compile problem"
*
* If you need support, post the output of 'emerge --info =sys-fs/lvm2-2.02.51-r2',
* the complete build log and the output of 'emerge -pqv =sys-fs/lvm2-2.02.51-r2'.
* The complete build log is located at '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/temp/environment'.
* S: '/var/tmp/portage/sys-fs/lvm2-2.02.51-r2/work/LVM2.2.02.51'


我的make.conf文件如下:

# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
#CFLAGS="-O2 -march=i686 -pipe"
CFLAGS="-march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j1"
ACCEPT_KEYWORDS="~x86"  # modify by zch
# add by zch
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/profile/rsync_excludes"

USE=" X apache2 alsa arts avi berkdb bitmap-fonts cairo cdr cli crypt cups dbus dlloader dri dvd dvdr eds elibc_glibc emboss encode esd fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kernel_linux ldap libg++ mad mikmod mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png ppds pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl samba tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU vorbis win32codecs x86 xml xorg xv zlib sqlite immqt-bc mailwrapper curl subversion"
USE=" X samba nptl nptlonly -ipv6 -fortran unicode svg hal dbus kde qt3 qt4 -arts -eds -esd -gnome -gstreamer -gtk -firefox samba"
FEATURES=""
CONFIG_PROTECT="/etc"
#FETCHCOMMAND="/usr/bin/axel -a -o /\${DISTDIR}/\${FILE} \${URI}"
#RESUMECOMMAND="/usr/bin/axel -a -o /\${DISTDIR}/\${FILE} \${URI}"
GENTOO_MIRRORS="http://mirror.archermind.com/gentoo"
SYNC="rsync://192.168.100.197/gentoo-portage"
VIDEO_CARDS="intel vesa"
INPUT_DEVICES="keyboard mouse"
#PORTDIR_OVERLAY="/usr/local/portage"

USE="-qt3 -qt4 -arts -kde X dbus gtk gnome hal avahi"

初次接触gentoo,感觉还是比较难!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表