I will emerge xorg-x11 on a XEN kernel but the ati driver fails because of the XEN Architekture. now I skip the Packet /var/tmp/portage/ati-drivers-8.21.7-r1/work/common/lib/modules/fglrx/build_mod/firegl_public.c: In function `__ke_agp_unbind_memory': /var/tmp/portage/ati-drivers-8.21.7-r1/work/common/lib/modules/fglrx/build_mod/firegl_public.c:3910: warning: passing arg 1 of pointer to function from incompatible pointer type make[1]: *** [/var/tmp/portage/ati-drivers-8.21.7-r1/work/common/lib/modules/fglrx/build_mod/firegl_public.o] Error 1 make: *** [_module_/var/tmp/portage/ati-drivers-8.21.7-r1/work/common/lib/modules/fglrx/build_mod] Error 2 make: Leaving directory `/usr/src/linux-2.6.16.26-xen' * DRM module not built >>> Source compiled. >>> Test phase [not enabled]: x11-drivers/ati-drivers-8.21.7-r1 >>> Install ati-drivers-8.21.7-r1 into /var/tmp/portage/ati-drivers-8.21.7-r1/image/ category x11-drivers * Installing fglrx module install: cannot stat `fglrx.ko': No such file or directory !!! ERROR: x11-drivers/ati-drivers-8.21.7-r1 failed. Call stack: ebuild.sh, line 1539: Called dyn_install ebuild.sh, line 1013: Called src_install ati-drivers-8.21.7-r1.ebuild, line 182: Called linux-mod_src_install linux-mod.eclass, line 497: Called die !!! doins fglrx.ko failed !!! If you need support, post the topmost build error, and the call stack if relevant. Regards Roland
Post some errors and emerge --info.
Created attachment 93625 [details] error log for x86 The line numbers match with the error I get so probably the bug is the same as the one I'm experiencing. The problem is a parse error before a string constant.
My emerge --info: Gentoo Base System version 1.6.15 Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.4, glibc-2.4-r3, 2.6.17-gentoo-r4 i686) ================================================================= System uname: 2.6.17-gentoo-r4 i686 AMD Athlon(tm) 64 Processor 3000+ app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=athlon64 -mfpmath=sse -mmmx -msse -msse2 -mno-sse3 -m3dnow -momit-leaf-frame-pointer -ftracer -fomit-frame-pointer -fno-ident -pipe -floop-optimize2 -fweb" CHOST="i686-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/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O3 -march=athlon64 -mfpmath=sse -mmmx -msse -msse2 -mno-sse3 -m3dnow -momit-leaf-frame-pointer -ftracer -fomit-frame-pointer -fno-ident -pipe -floop-optimize2 -fweb" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer sandbox sfperms strict usersandbox" GENTOO_MIRRORS="http://linuv.uv.es/mirror/gentoo/ http://gentoo.blueyonder.co.uk http://mirror.gentoo.no/ http://gentoo.prz.rzeszow.pl http://ftp.du.se/pub/os/gentoo" LDFLAGS="-Wl,-O1 -Wl,--sort-common -s" LINGUAS="es el" 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'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow 7zip X a52 aac acpi alsa apache2 arts audiofile bitmap-fonts blender-game bluetooth bootsplash browserplugin bzlib c++ caps cddb cdinstall cdio cdparanoia cdr cdrom chroot clamav cli crypt cups curl dga dio dlloader dri dv dvd dvdr dvdread eds emboss encode erandom esd ethereal fam fastcgi fbcon flac flash foomaticdb fortran ftp gd gif gimp gmp gpm gstreamer gtk gtk2 icq imagemagick imlib ipv6 isdnlog java javascript jikes jpeg junit kde kdeenablefinal lcms libg++ libwww live lm_sensors mad matroska memlimit mikmod mmx mmx2 motif mp3 mpeg mplayer msn nas ncurses network nls nocd nptl nptlonly ogg openal opengl oss pam pcre perl php pic png ppds pppd python qt qt3 qt4 quicktime readline recode reflection rtc samba sdl session spell spl sse sse2 ssl svg szip tcpd tiff truetype truetype-fonts ttf type1-fonts udev unicode usb userlocales v4l v4l2 videos vorbis wmf xine xinerama xml xmms xorg xpm xprint xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_es linguas_el userland_GNU video_cards_vesa video_cards_radeon" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 93626 [details] error log for x86 with gcc 4.1.1 It gives a completely different error if ati-drivers is compiled with gcc 4.1.1 instead.
Created attachment 93680 [details] full error log for x86 with gcc 4.1.1 I attach the full error log, obviate the previous one for gcc 4.1.1
I did a search around the web and also in our forums and I noticed that for kernels 2.6.17 and above that version of ati-drivers will no work. I changed to ~arch for these drivers and they compiled fine against this kernel with version 8.27.10-r1. In conclussion, instead of trying to fix this, could it be possible to add a check to the ebuild so that it dies with "kernel not supported" before even trying to do anything else?
Right, and together with that, would it be possible to also add that the kernel must be compiled with the same version of GCC with which ati-drivers are going to be compiled? That notification would prevent a successful installation and would report the following error when starting X: FATAL: Error inserting fglrx (/lib/modules/.../fglrx.ko): Invalid module format fglrx: version magic 'blah' should be 'blah blah'
See http://forums.gentoo.org/viewtopic-t-494445-highlight-atidrivers.html workaround: use testing version
This version is no longer in the tree. You need >=8.27.10-r1 for 2.6.17 (and >=8.29.6 for 2.6.18).
*** Bug 141294 has been marked as a duplicate of this bug. ***
*** Bug 127098 has been marked as a duplicate of this bug. ***