Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142095 - x11-drivers/ati-drivers-8.21.7-r1 fails
Summary: x11-drivers/ati-drivers-8.21.7-r1 fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
: 127098 141294 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-29 08:23 UTC by R. May
Modified: 2006-11-10 14:28 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
error log for x86 (ati-err.log,7.53 KB, text/plain)
2006-08-06 18:04 UTC, Ioannis Aslanidis (RETIRED)
Details
error log for x86 with gcc 4.1.1 (ati-error-4.1.log,1.92 KB, text/plain)
2006-08-06 18:12 UTC, Ioannis Aslanidis (RETIRED)
Details
full error log for x86 with gcc 4.1.1 (ati-4.1.log,9.06 KB, text/plain)
2006-08-07 11:58 UTC, Ioannis Aslanidis (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description R. May 2006-07-29 08:23:18 UTC
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
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-07-29 08:27:02 UTC
Post some errors and emerge --info.
Comment 2 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-08-06 18:04:42 UTC
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.
Comment 3 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-08-06 18:05:51 UTC
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

Comment 4 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-08-06 18:12:45 UTC
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.
Comment 5 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-08-07 11:58:36 UTC
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
Comment 6 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-08-07 12:09:35 UTC
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?

Comment 7 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-08-07 12:25:11 UTC
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'
Comment 8 Péter Werner 2006-09-02 05:39:43 UTC
See 
http://forums.gentoo.org/viewtopic-t-494445-highlight-atidrivers.html

workaround: use testing version
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-11-10 14:01:08 UTC
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).
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-11-10 14:03:58 UTC
*** Bug 141294 has been marked as a duplicate of this bug. ***
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-11-10 14:28:48 UTC
*** Bug 127098 has been marked as a duplicate of this bug. ***