Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232525 - x11-drivers/xf86-video-ati-6.8.0-r1 - radeon_crtc.c errors
Summary: x11-drivers/xf86-video-ati-6.8.0-r1 - radeon_crtc.c errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-20 23:25 UTC by hayakawa
Modified: 2009-05-14 17:34 UTC (History)
1 user (show)

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


Attachments
build log (build.log,69.28 KB, text/plain)
2008-07-20 23:28 UTC, hayakawa
Details
ebuild environment (environment,115.46 KB, text/plain)
2008-07-20 23:28 UTC, hayakawa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hayakawa 2008-07-20 23:25:22 UTC
I updated to kernel 2.6.25-r6 and xf86-video-ati-6.8.0-r1 no longer compiles. Prior to this I have been able to build for my ATI tech RV 280 [Radeon 92000] (rev 01) video card with no problem. My make.conf
has VIDEO_CARDS="ati" (which has been for years - I tried to change this to "radeon" but still same problem), but I added "dri" to USE in this build. I have not changed anything in my xorg.conf file. 

Heres my emerge --info:
---
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-3.4.6, glibc-2.6.1-r0, 2.6.25-gentoo-r6 i686)
=================================================================
System uname: 2.6.25-gentoo-r6 i686 AMD Athlon(tm) MP 2600+
Timestamp of tree: Sat, 19 Jul 2008 02:15:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-mp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /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/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-mp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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.namerica.gentoo.org/gentoo-portage"
USE="X acl acpi alsa berkdb cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde kerberos ldap mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python qt qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl svg tcpd tiff truetype unicode vorbis win32codecs x86 xml xorg xv 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 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="ati"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
---
Heres the tail end of the emerge xf86-video-ati:
--- 
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./AtomBios/includes -Wall -I/usr/include/xorg -I/usr/include/drm -I/usr/include/X11/dri -DDISABLE_EASF -DENABLE_ALL_SERVICE_FUNCTIONS -DATOM_BIOS -DATOM_BIOS_PARSER -DFGL_LINUX -DDRIVER_PARSER -O2 -march=athlon-mp -pipe -fomit-frame-pointer -MT radeon_crtc.lo -MD -MP -MF .deps/radeon_crtc.Tpo -c radeon_crtc.c  -fPIC -DPIC -o .libs/radeon_crtc.o
radeon_crtc.c:109: error: syntax error before "n"
radeon_crtc.c: In function `RADEONDiv':
radeon_crtc.c:111: error: `n' undeclared (first use in this function)
radeon_crtc.c:111: error: (Each undeclared identifier is reported only once
radeon_crtc.c:111: error: for each function it appears in.)
radeon_crtc.c:111: error: `d' undeclared (first use in this function)
radeon_crtc.c: In function `RADEONComputePLL':
radeon_crtc.c:168: error: `CARD64' undeclared (first use in this function)
radeon_crtc.c:168: error: syntax error before "freq"
radeon_crtc.c:174: error: syntax error before "pll"
make[2]: *** [radeon_crtc.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./AtomBios/includes -Wall -I/usr/include/xorg -I/usr/include/drm -I/usr/include/X11/dri -DDISABLE_EASF -DENABLE_ALL_SERVICE_FUNCTIONS -DATOM_BIOS -DATOM_BIOS_PARSER -DFGL_LINUX -DDRIVER_PARSER -O2 -march=athlon-mp -pipe -fomit-frame-pointer -MT radeon_output.lo -MD -MP -MF .deps/radeon_output.Tpo -c radeon_output.c  -fPIC -DPIC -o .libs/radeon_output.o
radeon_output.c: In function `RADEONSetupConnectors':
radeon_output.c:2694: warning: unsigned int format, RADEONDacType arg (arg 4)
radeon_output.c:2694: warning: unsigned int format, RADEONTmdsType arg (arg 5)
radeon_output.c:2694: warning: unsigned int format, RADEONConnectorType arg (arg 6)
radeon_output.c:2694: warning: unsigned int format, RADEONDacType arg (arg 8)
radeon_output.c:2694: warning: unsigned int format, RADEONTmdsType arg (arg 9)
radeon_output.c:2694: warning: unsigned int format, RADEONConnectorType arg (arg 10)
make[2]: Leaving directory `/var/tmp/portage/x11-drivers/xf86-video-ati-6.8.0-r1/work/xf86-video-ati-6.8.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-drivers/xf86-video-ati-6.8.0-r1/work/xf86-video-ati-6.8.0'
make: *** [all] Error 2
 * 
 * ERROR: x11-drivers/xf86-video-ati-6.8.0-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2940:  Called x-modular_src_compile
 *             environment, line 3725:  Called x-modular_src_make
 *             environment, line 3761:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/x11-drivers/xf86-video-ati-6.8.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/xf86-video-ati-6.8.0-r1/temp/environment'.
 * 
---
I thought it might be related to bug 227821, but the folks discussing
that bug think not.
Comment 1 hayakawa 2008-07-20 23:28:04 UTC
Created attachment 160966 [details]
build log
Comment 2 hayakawa 2008-07-20 23:28:40 UTC
Created attachment 160967 [details]
ebuild environment
Comment 3 hayakawa 2008-07-21 20:43:12 UTC
(In reply to comment #2)
> Created an attachment (id=160967) [edit]
> ebuild environment
> 

This seems to have been fixed by running an "emerge -uD world".
Now xf86-video-ati compiles successfully.  Display manager
fails on boot but comes up okay with startx.
Comment 4 Honza 2008-09-18 09:42:46 UTC
With same problem, I did only reemerged x11-proto/videoproto and updated x11-proto/xproto (from 7.0.7 to 7.0.10) and it helped too. So I suppose there is missing dependence on some newer x11-proto/xproto version - can't say which one, because someone already deleted 7.0.8 and 7.0.9 from servers.
Comment 5 Hugo Herbelin 2008-12-14 00:13:27 UTC
Building xf86-video-ati-6.8.0-r1 fails for me with xproto 7.0.7 on a ppc. 

File radeon_crtc.c needs type CARD64 to be defined which was not the case in file Xmd.h of xproto 7.0.7 on my 32-bits ppc arch. This is solved in xproto 7.0.10. Hence a dependency of xf86-video-ati-6.8.0-r1 over a version of xproto that defines CARD64 on all archs seems missing.
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2009-05-14 17:34:04 UTC
Since 7.10 xproto is oldest version in main tree i am going to close this one as fixed.