as in summary: x11-drivers/xf86-video-openchrome-0.2.904 fails to build against x11-libs/libdrm-1.4.17 Reproducible: Always Steps to Reproduce:
Created attachment 214146 [details] emerge --info + ebuild log + ebuild envinronment
(In reply to comment #0) > as in summary: > x11-drivers/xf86-video-openchrome-0.2.904 fails to build against > x11-libs/libdrm-1.4.17 > > Reproducible: Always > > Steps to Reproduce: > vim /etc/portage/packages.mask and paste this line >=x11-libs/libdrm-2.4.17 >=media-libs/mesa-7.7-r1 now emerge x11-drivers/xf86-video-openchrome that's all. this error "via_drm.h"
openchrome it's different of git repo unichrome and svn trunk openchrome official site. it's more stable of the gentoo repo.
I'm having all kinds of trouble building r839 and r840 on a stable system, so this cannot as yet be fixed by putting a snapshot ebuild in the tree.
Created attachment 224063 [details, diff] xf86-video-openchrome-0.2.904-libdrm-header-include.patch Horribly ugly workaround to make xf86-video-openchrome-0.2.904 build against newer libdrm.
Fixed in xf86-video-openchrome-0.2.904-r1
(In reply to comment #5) > Created an attachment (id=224063) [details] > xf86-video-openchrome-0.2.904-libdrm-header-include.patch > > Horribly ugly workaround to make xf86-video-openchrome-0.2.904 build against > newer libdrm. Um, is that the same horrible ugly workaround you've just put in -r1?
RSVP
Created attachment 224603 [details] Build log, patch fails (the one in the tree, that is)
No need to CC X11 team members when whole alias is added. Anyway looks like messup if it does not apply. For now someone revert the commit i supose (i cant do such magic from windows :])
I have removed the broken -r1 from the tree. I am still looking to put a recent snapshot in the tree.
(In reply to comment #10) > No need to CC X11 team members when whole alias is added. It hardly matters - bugzilla filters that nicely. It does tell me that chithanh probably thought he could touch it without review...
I suggest fixing libdrm instead. If a DRM header is using uint32_t, then it must also include stdint.h, not all users of that header: /usr/include/drm/drm_mode.h:311: error: expected specifier-qualifier-list before ‘uint32_t’
Sorry about that, I made a mistake and committed the wrong patch. But I have tried to contact you on IRC for several days to get your opinion. Patch against libdrm exists in fdo bugzilla https://bugs.freedesktop.org/show_bug.cgi?id=26994
I have put 0.2.904_p841 in the tree. Please try that and reopen this bug report if you still see this very same build issue (it should be fine with both the current stable and the future stable target).
I'm still seeing this with x11-drivers/xf86-video-openchrome-0.2.904_p841 .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 # emerge --info Portage 2.1.8.3 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.3, glibc-2.10.1-r0, 2.6.33-gentoo-r1 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.33-gentoo-r1-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-gentoo-2.0.1 Timestamp of tree: Tue, 20 Apr 2010 20:00:01 +0000 distcc 3.1 x86_64-pc-linux-gnu [enabled] app-shells/bash: 4.1_p5 dev-java/java-config: 1.3.7, 2.1.10 dev-lang/python: 2.6.5-r1, 3.1.2-r2 dev-python/pycrypto: 2.0.1-r5 dev-util/cmake: 2.8.1-r1 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.1-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11.1 sys-devel/binutils: 2.20.1 sys-devel/gcc: 4.3.2, 4.4.3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.33 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distcc distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz/ ftp://ftp.fi.muni.cz/pub/linux/gentoo/" LANG="cs_CZ.UTF-8" LC_ALL="" LDFLAGS="-Wl,-O1" LINGUAS="en" MAKEOPTS="-j8" 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="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 64bit 7zip X a52 aac aalib ace acpi alsa amarok amd amd64 arts audio bash-completion bdf bitmap-fonts bzip2 cairo cdparanoia cdr cdrom cjk colordiff css curl dbus divx dri dvd dvdr dvdread dvi emacs encode enscript epydoc exceptions exif faillog fat fbsplash ffmpeg firefox flash fontconfig ftp gif gnutls gtk hal id3 java javascript jpeg jpeg2k kde lame log4j logrotate mime mp2 mp3 mp4 mpeg mpeg2 mplayer multilib nls ogg opengl openssh pango pcf pdf png python qt3support quicktime rar realmedia sound sql sqlite sse sse2 ssl subversion svg syslog tidy tiff tk truetype truetype-fonts type1 type1-fonts unicode unzip usb utils vcd video vnc vncviewer vorbis webdav webkit wma xcb xine xml xorg xsl xslt xterm xv zip" ALSA_CARDS="hda-intel" 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" 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" LINGUAS="en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="via vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #16) > I'm still seeing this with x11-drivers/xf86-video-openchrome-0.2.904_p841 > > .libs/via_3d.o: In function `viaInit3DState': > /keeps/gentoo/svn/openchrome/src/via_3d.c:585: undefined reference to `ErrorF' I don't think that issue is the same as the one discussed in this bug. Open a separate bug report.
Well, it's exactly the same bug as described in http://forums.gentoo.org/viewtopic-t-821360-start-0.html and for me, it's simply not fixed. Pasting more history: 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 -march=k8 -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.4.3/../../../../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
The build failure described in that forum post is apparently not related to this bug.
Chí-Thanh, bug 316809 filled.