Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 339365 - emerge ati-drivers fails on emake step
Summary: emerge ati-drivers fails on emake step
Status: RESOLVED DUPLICATE of bug 336467
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-01 16:25 UTC by gunainmnoaodann
Modified: 2010-10-02 16:06 UTC (History)
1 user (show)

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 gunainmnoaodann 2010-10-01 16:25:49 UTC
ati-drivers-10.8 fails to emerge because of an emake step.

Reproducible: Always

Steps to Reproduce:
1. emerge ati-drivers
2.
3.

Actual Results:  
make -j4 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= GCC_VER_MAJ=4 KVER=2.6.35-gentoo-r9 KDIR=/usr/src/linux kmod_build 
make -C /usr/src/linux M=/var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.35-gentoo-r9'
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_io.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_pci.o
/var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.c: In function 'KCL_IOCTL_AllocUserSpace32':
/var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.c:196: error: implicit declaration of function 'compat_alloc_user_space'
/var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.c:196: warning: return makes pointer from integer without a cast
make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:452:
/var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h: In function 'FGLDRM__vma_info':
/var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:497: warning: format '%08lx' expects type 'long unsigned int', but argument 5 has type 'phys_addr_t'
make[1]: *** [_module_/var/tmp/portage/x11-drivers/ati-drivers-10.8/work/common/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.35-gentoo-r9'
make: *** [kmod_build] Error 2
 * ERROR: x11-drivers/ati-drivers-10.8 failed:
 *   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.35-gentoo-r9 KDIR=/usr/src/linux kmod_build
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 3702:  Called linux-mod_src_compile
 *   environment, line 2855:  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}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";


Expected Results:  
To be installed

adding the ~amd64 keyword to package.keywords lets ati-drivers-10.9-r1 install
Comment 1 gunainmnoaodann 2010-10-01 16:27:06 UTC
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.35-gentoo-x86_64-AMD_Athlon-tm-_II_X4_620_Processor-with-gentoo-1.12.13
Timestamp of tree: Fri, 01 Oct 2010 02:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.4_p6-r1, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 RTCW-ETEULA DOOM3 AdobeFlash-10.1 AdobeFlash-10"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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 X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cddb cdinstall cdr cli consolekit cracklib crypt cxx dbus dri dts dvd dvdr dvdread emboss encode exif expat fam firefox flac fortran ftp gdbm gif gpm gtk hal iconv imlib ipv6 java java6 javascript jpeg lcms ldap libnotify lm_sensors mad mikmod mmap mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib mysql ncurses nls nocd nptl nptlonly ogg opengl openmp oss pam pango pcre pda pdf perl php png ppds pppd python qt3support qt4 readline reflection samba sdl session spell sse sse2 ssl startup-notification svg symlink sysfs syslog tcpd threads tiff truetype unicode usb videos vorbis wifi x264 xcb xcomposite xine xinerama xml xorg xpm xscreensaver xulrunner xv xvid 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" 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="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fglrx" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Agostino Sarubbo gentoo-dev 2010-10-01 21:36:53 UTC
CXXFLAGS=${CFLAGS}

btw, have you tried without ccache?
Comment 3 gunainmnoaodann 2010-10-02 06:10:29 UTC
(In reply to comment #2)
> CXXFLAGS=${CFLAGS}
> 
> btw, have you tried without ccache?
> 

I changed the CXXFLAGS="-O2 -pipe" to CXXFLAGS="${CFLAGS}" and just left it at that first.  I got identical results (did a diff to make sure) as the ones posted in Actual Results above.  The same resulted after disabling ccache.
Comment 4 Enrico Tagliavini 2010-10-02 10:45:23 UTC
error: implicit declaration of function 'compat_alloc_user_space'

this is just a duplicate of bug 336467 . please update to ati-drivers 10.9-r1
Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2010-10-02 15:40:24 UTC

*** This bug has been marked as a duplicate of bug 336467 ***
Comment 6 gunainmnoaodann 2010-10-02 15:41:29 UTC
(In reply to comment #4)
> error: implicit declaration of function 'compat_alloc_user_space'
> 
> this is just a duplicate of bug 336467 . please update to ati-drivers 10.9-r1
> 

I did. Thanks.
Comment 7 Enrico Tagliavini 2010-10-02 16:06:53 UTC
(In reply to comment #6)
> I did. Thanks.
> 

you're welcome