Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359439 - x11-drivers/ati-drivers-11.2 fails to build on gentoo-sources-2.6.38
Summary: x11-drivers/ati-drivers-11.2 fails to build on gentoo-sources-2.6.38
Status: RESOLVED DUPLICATE of bug 359095
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-19 00:47 UTC by Siena Fath-Azam
Modified: 2011-03-19 07:14 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Siena Fath-Azam 2011-03-19 00:47:00 UTC
When attempting to emerge x11-drivers/ati-drivers-11.2 against the 2.6.38 sources it fails with the following errors:



/var/tmp/portage/x11-drivers/ati-drivers-11.2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:851:9: error: implicit declaration of function 'acquire_console_sem'
/var/tmp/portage/x11-drivers/ati-drivers-11.2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:873:9: error: implicit declaration of function 'release_console_sem'
make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-11.2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/var/tmp/portage/x11-drivers/ati-drivers-11.2/work/common/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.38-gentoo'
make: *** [kmod_build] Error 2
emake failed


Reproducible: Always

Steps to Reproduce:
1. emerge x11-drivers/ati-drivers
2.
3.
Actual Results:  
Failed to emerge x11-drivers/ati-drivers-11.2

Expected Results:  
Successful installation of the package.

emerge --info
Portage 2.1.9.43 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.13-r2, 2.6.37-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.37-gentoo-r1-x86_64-AMD_Phenom-tm-_II_X6_1055T_Processor-with-gentoo-2.0.1
Timestamp of tree: Fri, 18 Mar 2011 13:45:01 +0000
app-shells/bash:     4.2_p8
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 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)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -mcx16 -mpopcnt -msahf -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=amdfam10 -mcx16 -mpopcnt -msahf -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
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=""
SYNC="rsync://rsync29.us.gentoo.org/gentoo-portage"
USE="3dnow X acl alsa amd64 berkdb bzip2 cdda cli cracklib crypt cups cxx dbus device-mapper dri enca ffmpeg fortran gdbm gpm gtk iconv icu ipv6 jpeg kvm mikmod mmx modules moonlight mp3 mudflap multilib ncurses nls nptl nptlonly opengl openmp pam pcre perl png policykit pppd python qemu qt3support readline session sse sse2 sse4 ssl ssse3 sysfs tcpd threads unicode vorbis xorg 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" CAMERAS="ptp2" 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="radeon radeonhd vmware" 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, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Build Log:

 * Package:    x11-drivers/ati-drivers-11.2
 * Repository: gentoo
 * Maintainer: lu_zero@gentoo.org enrico.tagliavini@gmail.com,x11@gentoo.org
 * USE:        amd64 elibc_glibc kernel_linux modules multilib qt4 userland_GNU
 * FEATURES:   sandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.38-gentoo/build
 * Found sources for kernel version:
 *     2.6.38-gentoo
 * 
 * Please note that this driver supports only graphic cards based on
 * r600 chipset and newer.
 * This represent the ATI Radeon HD series at this moment.
 * 
 * If your card is older then usage of x11-drivers/xf86-video-ati
 * as replacement is highly recommended. Rather than staying with
 * old versions of this driver.
 * For migration informations please reffer to:
 * http://www.gentoo.org/proj/en/desktop/x/x11/ati-migration-guide.xml
 * 
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/x11-drivers/ati-drivers-11.2/work
>>> Preparing source in /var/tmp/portage/x11-drivers/ati-drivers-11.2/work ...
 * Applying ati-drivers-fix_compilation-bug-297322.patch ...                             [ ok ]
 * Applying ati-powermode-opt-path-2.patch ...                                           [ ok ]
 * Converting 2.6.x/Makefile to use M= instead of SUBDIRS= ...                           [ ok ]
>>> Unpacking ./../common/usr/src/ati/fglrx_sample_source.tgz to /var/tmp/portage/x11-drivers/ati-drivers-11.2/work/extra
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/ati-drivers-11.2/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/ati-drivers-11.2/work ...
 * Preparing fglrx module
make -j1 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= GCC_VER_MAJ=4 KVER=2.6.38-gentoo KDIR=/usr/src/linux 'CFLAGS_MODULE+=-DMODULE -DATI -DFGL' CFLAGS_MODULE+=-DCOMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_space kmod_build 
make -C /usr/src/linux M=/var/tmp/portage/x11-drivers/ati-drivers-11.2/work/common/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.38-gentoo'
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-11.2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/var/tmp/portage/x11-drivers/ati-drivers-11.2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'fglrx_pci_suspend':
/var/tmp/portage/x11-drivers/ati-drivers-11.2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:851:9: error: implicit declaration of function 'acquire_console_sem'
/var/tmp/portage/x11-drivers/ati-drivers-11.2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:873:9: error: implicit declaration of function 'release_console_sem'
make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-11.2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/var/tmp/portage/x11-drivers/ati-drivers-11.2/work/common/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.38-gentoo'
make: *** [kmod_build] Error 2
emake failed
 * ERROR: x11-drivers/ati-drivers-11.2 failed (compile phase):
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  GCC_VER_MAJ=4 KVER=2.6.38-gentoo KDIR=/usr/src/linux CFLAGS_MODULE+="-DMODULE -DATI -DFGL" CFLAGS_MODULE+=-DCOMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_space kmod_build
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 3827:  Called linux-mod_src_compile
 *   environment, line 2936:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                                      CROSS_COMPILE=${CHOST}-                                          LDFLAGS=\"$(get_abi_LDFLAGS)\" ${BUILD_FIXES}                                           ${BUILD_PARAMS}                        ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDF

LAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 * 
 * If you need support, post the output of 'emerge --info =x11-drivers/ati-drivers-11.2',
 * the complete build log and the output of 'emerge -pqv =x11-drivers/ati-drivers-11.2'.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/ati-drivers-11.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/ati-drivers-11.2/temp/environment'.
 * S: '/var/tmp/portage/x11-drivers/ati-drivers-11.2/work'
Comment 1 Agostino Sarubbo gentoo-dev 2011-03-19 07:14:16 UTC

*** This bug has been marked as a duplicate of bug 359095 ***