Latest update for xf86-video-openchrome (pulled in by xorg-drivers-1.10 even though I only need nouveau) doesn't compile. The previous version I have installed, 0.2.904_p891, compiles fine. Reproducible: Always Steps to Reproduce: 1. `emerge -DavuN world` or `emerge xf86-video-openchrome` Actual Results: compile failure Expected Results: normal install ================================================================= `emerge --info`: Portage 2.2.0_alpha15 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.12.2-r0, 2.6.37-gentoo-delan2 x86_64) ================================================================= System uname: Linux-2.6.37-gentoo-delan2-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-gentoo-2.0.1 Timestamp of tree: Thu, 20 Jan 2011 07:15:02 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.6.6-r1, 2.7.1, 3.1.3 dev-util/cmake: 2.8.3-r1 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.7.0 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.10.3, 1.11.1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.5.2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers) Repositories: gentoo oss-overlay x11 mozilla dottout rion ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo" LANG="C" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j16" 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" PORTDIR_OVERLAY="/var/lib/layman/oss-overlay /var/lib/layman/x11 /var/lib/layman/mozilla /var/lib/layman/dottout /var/lib/layman/rion" SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" USE="X aac acl acpi amd64 apng avahi berkdb bzip2 cairo cli cracklib crypt cups cxx dbus device-mapper dhcp dri dvd extras fat fortran gdbm gdu gnome gpm gtk iconv ipv6 jpeg libass lm_sensors matroska mmx modules mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre perl png policykit pppd python readline run-as-root sdl sdl-sound session sqlite sse sse2 ssl stream sysfs tcpd tftp unicode usb x264 xinerama xorg xrandr xv 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 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" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Last lines before make error: libtool: link: x86_64-pc-linux-gnu-gcc -shared .libs/via_3d.o .libs/via_accel.o .libs/via_bandwidth.o .libs/via_ch7xxx.o .libs/via_cursor.o .libs/via_crtc.o .libs/via_dga.o .libs/via_display.o .libs/via_driver.o .libs/via_i2c.o .libs/via_id.o .libs/via_lvds.o .libs/via_memcpy.o .libs/via_memory.o .libs/via_mode.o .libs/via_panel.o .libs/via_shadow.o .libs/via_swov.o .libs/via_timing.o .libs/via_vbe.o .libs/via_vgahw.o .libs/via_video.o .libs/via_vt162x.o .libs/via_dri.o .libs/via_xvmc.o -Wl,--as-needed -march=native -Wl,-O1 -Wl,-z -Wl,lazy -Wl,-soname -Wl,openchrome_drv.so -o .libs/openchrome_drv.so /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `.libs/via_3d.o' is incompatible with i386:x86-64 output .libs/via_3d.o: In function `viaInit3DState': /keeps/gentoo/svn/openchrome/src/via_3d.c:585: undefined reference to `ErrorF' .libs/via_3d.o: In function `viaSet3DTexture': /keeps/gentoo/svn/openchrome/src/via_3d.c:188: undefined reference to `ErrorF' collect2: ld returned 1 exit status make[3]: *** [openchrome_drv.la] Error 1 make[3]: Leaving directory `/var/tmp/portage/x11-drivers/xf86-video-openchrome-0.2.904_p904/work/xf86-video-openchrome-0.2.904_p904/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/x11-drivers/xf86-video-openchrome-0.2.904_p904/work/xf86-video-openchrome-0.2.904_p904/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/x11-drivers/xf86-video-openchrome-0.2.904_p904/work/xf86-video-openchrome-0.2.904_p904' make: *** [all] Error 2 emake failed =================================================================
Just encountered same error. Reason is: /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `.libs/via_3d.o' is incompatible with i386:x86-64 output Actually tarball contains src/via_3d.lo and src/.libs/via_3d.o that cause this error.
Does 0.2.904_p906 work for you?
Yes, it installs perfectly.
_p906 solved it for me as well (on an actual via system) Delan, shouldn't you consider setting VIDEO_CARDS="nouveau" in your make.conf, in order not to install drivers for every card on the market? Nice of you to file this bug though, it sure helped me.
I was apparently shipping the binaries that had somehow got built (I think through some automation by the autogen script, perhaps) and which were obviously local to the architecture I used then. I checked out a fresh copy of the upstream repo and shipped that now - with eautoreconf running in the src_prepare() phase, something that /didn't/ use to work for me, and that's how _p906 now properly works. Thanks for the report and for testing.