LinuxSir.cn,穿越时空的Linuxsir!

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

编译x11-apps/xf86dga出错,特来求助。

[复制链接]
发表于 2009-4-28 21:40:18 | 显示全部楼层 |阅读模式
在升级系统的时候遇到如下的问题:
>>> Emerging (3 of 348) x11-apps/xf86dga-1.0.2
* xf86dga-1.0.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                 [ ok ]
* checking ebuild checksums ;-) ...                                     [ ok ]
* checking auxfile checksums ;-) ...                                    [ ok ]
* checking miscfile checksums ;-) ...                                   [ ok ]
>>> Unpacking source...
>>> Unpacking xf86dga-1.0.2.tar.bz2 to /var/tmp/portage/x11-apps/xf86dga-1.0.2/work
>>> Source unpacked in /var/tmp/portage/x11-apps/xf86dga-1.0.2/work
>>> Compiling source in /var/tmp/portage/x11-apps/xf86dga-1.0.2/work/xf86dga-1.0.2 ...
* econf: updating xf86dga-1.0.2/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating xf86dga-1.0.2/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --prefix=/usr --datadir=/usr/share --build=i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of i686-pc-linux-gnu-gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for i686-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XF86DGA... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
make -j2
make  all-am
make[1]: Entering directory `/var/tmp/portage/x11-apps/xf86dga-1.0.2/work/xf86dga-1.0.2'
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.     -O2 -march=i686 -pipe -MT dga-dga.o -MD -MP -MF ".deps/dga-dga.Tpo" -c -o dga-dga.o `test -f 'dga.c' || echo './'`dga.c; \
        then mv -f ".deps/dga-dga.Tpo" ".deps/dga-dga.Po"; else rm -f ".deps/dga-dga.Tpo"; exit 1; fi
sed -e 's|__vendorversion__|"xf86dga 1.0.2" "X Version 11"|' -e 's|__xorgversion__|"xf86dga 1.0.2" "X Version 11"|' -e 's|__xservername__|Xorg|g' -e 's|__xconfigfile__|xorg.conf|g' -e 's|__projectroot__|/usr|g' -e 's|__apploaddir__||' -e 's|__appmansuffix__|1|g' -e 's|__libmansuffix__|3|g' -e 's|__adminmansuffix__|8|g' -e 's|__miscmansuffix__|7|g' -e 's|__filemansuffix__|5|g' < dga.man > dga.1
i686-pc-linux-gnu-gcc  -O2 -march=i686 -pipe  -Wl,-O1 -o dga  dga-dga.o -lXxf86dga -lXaw7 -lXmu -lXt -lX11 -lSM -lICE   
/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../libXxf86dga.so: file not recognized: File format not recognized
collect2: ld 返回 1
make[1]: *** [dga] 错误 1
make[1]: Leaving directory `/var/tmp/portage/x11-apps/xf86dga-1.0.2/work/xf86dga-1.0.2'
make: *** [all] 错误 2
*
* ERROR: x11-apps/xf86dga-1.0.2 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 3016:  Called x-modular_src_compile
*             environment, line 3796:  Called x-modular_src_make
*             environment, line 3835:  Called die
* The specific snippet of code:
*       emake || die "emake failed"
*  The die message:
*   emake failed
 楼主| 发表于 2009-4-29 03:32:21 | 显示全部楼层
主要是这里:
/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../libXxf86dga.so: file not recognized: File format not recognized


尝试切换到3.4.6版的gcc进行编译,还是出现同样的问题。

贴出本人的 emerge --info  ,以期有助于达人指点:
Shrek shrek # emerge --info
Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.28-gentoo-r5-i686-Pentium-R-_Dual-Core_CPU_E5200_@_2.50GHz-with-glibc2.0
Timestamp of tree: Tue, 28 Apr 2009 06:30:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /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="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
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="X a52 aac aalib acl acpi alsa apm arts audiofile avahi bash-completion berkdb branding bzip2 cddb cdparanoia cdr cjk cli cracklib crypt cscope css csv cups dbus doc dri dts dv dvd dvdr dvdread encode examples exif fbsplash ffmpeg flac fortran gdbm gif glade gnome gpm gtk gtk2 hal hbci iconv immqt-bc ipv6 isdnlog jpeg lame live lua mad midi mmx mng mp3 mpeg mudflap ncurses nls nptl nptlonly nvidia ofx ogg openal openexr opengl openmp pam pcre pdf perl png pppd python quicktime quotes readline reflection ruby samba session spl sse sse2 ssl ssse3 stock subversion svg sysfs tcpd theora tiff unicode v4l v4l2 vcd vim-syntax vorbis wifi wma wmf wxwindows x264 x86 xft xml xorg xpm xv xvid xvmc 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="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
回复 支持 反对

使用道具 举报

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

本版积分规则

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