Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301163 - x11-drivers/ati-drivers-9.11 does not build ( with Xen ? )
Summary: x11-drivers/ati-drivers-9.11 does not build ( with Xen ? )
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-16 05:41 UTC by DEMAINE Benoît-Pierre, aka DoubleHP
Modified: 2011-07-23 15:24 UTC (History)
2 users (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 DEMAINE Benoît-Pierre, aka DoubleHP 2010-01-16 05:41:08 UTC
uranus ~ # emerge -va x11-drivers/ati-drivers
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild  N    ] x11-drivers/ati-drivers-9.11  USE="modules (multilib) -debug" 0 kB
Total: 1 package (1 new), Size of downloads: 0 kB
Would you like to merge these packages? [Yes/No]
[...]
fglrx/build_mod/2.6.x/kcl_pci.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_str.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_wait.o
In file included from /var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:450:
/var/tmp/portage/x11-drivers/ati-drivers-9.11/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-9.11/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'
/var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_MapPageToPfn':
/var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1592: warning: unused variable 'bus_addr'
  LD [M]  /var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/fglrx.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: could not find /var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/.libfglrx_ip.a.GCC4.cmd for /var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/libfglrx_ip.a.GCC4
FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol 'xen_features'
make[2]: *** [__modpost] Error 1
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.31-xen-r10'
make: *** [kmod_build] Error 2
 * ERROR: x11-drivers/ati-drivers-9.11 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.31-xen-r10-Gentoo-uranus-1-12 KDIR=/usr/src/linux kmod_build
 *
 * Call stack:
 *     ebuild.sh, line   48:  Called src_compile
 *   environment, line 3706:  Called linux-mod_src_compile
 *   environment, line 2866:  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}";
 *
 * If you need support, post the output of 'emerge --info =x11-drivers/ati-drivers-9.11',
 * the complete build log and the output of 'emerge -pqv =x11-drivers/ati-drivers-9.11'.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/ati-drivers-9.11/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/ati-drivers-9.11/temp/environment'.
 * S: '/var/tmp/portage/x11-drivers/ati-drivers-9.11/work'

>>> Failed to emerge x11-drivers/ati-drivers-9.11, Log file:

>>>  '/var/tmp/portage/x11-drivers/ati-drivers-9.11/temp/build.log'
uranus ~ #
Comment 1 DEMAINE Benoît-Pierre, aka DoubleHP 2010-01-16 05:41:59 UTC
Portage 2.2_rc61 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-xen-r10-Gentoo-uranus-1-11 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.31-xen-r10-Gentoo-uranus-1-11-x86_64-AMD_Athlon-tm-_II_X2_245_Processor-with-gentoo-1.12.13
Timestamp of tree: Mon, 11 Jan 2010 22:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ABI="amd64"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA skype-eula"
ACCEPT_PROPERTIES="*"
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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias"
ARCH="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-O2 -march=athlon64 -pipe"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CVS_RSH="ssh"
CXXFLAGS="-O2 -march=athlon64 -pipe"
DEFAULT_ABI="amd64"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vim"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--verbose --with-bdeps=y --buildpkg"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://ftp.vectranet.pl/gentoo/ http://ftp.twaren.net/Linux/Gentoo/ ftp://ftp.vectranet.pl/gentoo/ ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ ftp://ftp.twaren.net/Linux/Gentoo/     ftp://mirror.qubenet.net/mirror/gentoo/"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4/info"
INPUT_DEVICES="evdev keyboard mouse _synaptics wacom_BUG_DONT_COMPILE _penmount mutouch _acecad _aiptek _citron _elographics _fpit _hyperpen _joystick _tslib virtualbox vmmouse _void"
KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LDFLAGS="-Wl,--as-needed"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x86="lib32"
LIBDIR_x86_fbsd="lib32"
LINGUAS="en fr en_GB fr_FR en_US"
LIRC_DEVICES="usbirboy com1 com2 userspace"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAIL="/var/mail/root"
MAKEOPTS="-j4"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.18/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4/man"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
NOCOLOR="true"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc x86-openbsd ppc-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[lister ELOG] package ${PACKAGE}"
PORTAGE_ELOG_MAILURI="root /usr/sbin/sendmail"
PORTAGE_ELOG_SYSTEM="save echo:warn,error"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_TMPFS="/dev/shm"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/enlightenment /usr/local/portage/layman/mpd"
PORT_ENOTICE_DIR="/var/enotice"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/root"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4"
RPMDIR="/usr/portage/rpm"
RUBY_TARGETS="ruby18"
SHELL="/bin/bash"
SHLVL="1"
SSH_AGENT_PID="6206"
SSH_AUTH_SOCK="/tmp/ssh-MQcjTq6205/agent.6205"
SSH_CLIENT="192.168.0.51 56184 22"
SSH_CONNECTION="192.168.0.51 56184 192.168.0.52 22"
SSH_TTY="/dev/pts/1"
STAGE1_USE="multilib nptl nptlonly unicode"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
TERM="Eterm"
USE="3dnow 3dnowext 3dnowprefetch X Xaw3d ___NEVER_change_this ___disable_at_install_then_enable_later ___flags_that_cause_circular_deps ___langs ___maybe_an_other_day ___moz ___non_reorganises ___really_not_for_me ___replytolist ___xcb ___xen ___you_should_not_modify_those __samba __vlc_and_mplayer_options_ __vlc_options__ a52 aac aalib abm accessibility ace acm acpi aiglx aim alsa amd64 amr amrnb amrwb amuled ao aoss apache2 api apic apm asf atm audiofile autobuild avi bash-completion bashlogger berkdb bidi binfilter bitmap-fonts bl bluetooth bmp bonjour bootsplash branding bzip2 cairo cdda cddb cdio cdparanoia cdr cgi cjk clflush cli cmov cmp_legacy compress console consolekit constant_tsc contrast corba cpio cpudetection cr8_legacy cracklib crypt cups curl cx16 cx8 cxx daap dbus dc1394 de device-mapper dg dga dhcp dirac disk-partition djvu dmi dmx dri dts dv dvd dvdread dvi dvipdfm dynamic eap-tls eds emboss enca encode esd ethereal evo examples exif extapic extd_apicid extrafilters fam fame fbcon ffmpeg fifo finger firefox flac flash flask foomaticdb fortran fping fpu fpx freetype ftp fuse fxsr fxsr_opt gadu gd gdbm ggi gif gimp git gkrellm gmp gnome gnuplot gnutls gopher gphoto2 gpm graphviz gs gsm gstreamer gtk gtk2 hal hardcoded-tables hddtemp hdri hotpixels ht httpd hvm i8x0 ibs ical icecast iconv icq id3tag idea idn ieee1394 imagemagick imap imlib ipv6 irc jabber jack jadetex javascript jbig jpeg jpeg2k lahf_lm lame laptop latex3 lcms lensfun libcaca libg++ libgcrypt libnotify libssh2 libwww lirc listentcp live lj lm lm_sensors logrotate lua lzo mad matroska matrox mca mce md5sum meanwhile mikmod misalignsse mjpeg mmx mmxext mng modplug modules monitor motif mozcalendar mozdom mp2 mp3 mp4 mpeg mplayer mppe-mppc msn msr mtrr mtyhtv mudflap multilib musepack music musicbrainz nas ncurses nemesi netboot network nls nntp no-htdocs nonstop_tsc nptl nptlonly nsplugin ntp nut nx offensive ogg oggflac oggvorbis openal openexr opengl openmp openntpd oss osvw pae pam pat pcre pdf pdflib pdpe1gb perl pge plotutils plugins png pni pnm posix pppd pse pse36 pstricks pvr pygrub python qq qt qt3 quicktime radio radius rar raw rdtscp readline reflection rep_good rpm rss rtc rtsp samba sasl schroedinger screen sdl sdl-image sensord sep server session shout silc skinit skins smp sms sndfile sound speex spell spl srt sse sse2 sse4a ssh ssl startup-notification stream subtitles suid svg svm swat symlink syscall sysfs syslog taglib tcpd teletext tex4ht tga theora threads tiff timezone tivo tk transmitter truetype truetype-fonts tsc twolame type1-fonts udev unicode upnp urandom usb uuencode v4l v4l2 vcd vcdx vim vim-syntax vim-with-x vlm vme vorbis wdt wma wmf wxwindows x264 xanim xcomposite xinerama xml xml2 xmlreader xmlrpc xmlwriter xmms xmp xorg xosd xpm xrandr xscreensaver xsm xulrunner xv xvid xvmc yahoo yv12 zeroconf zip zlib zoran" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse _synaptics wacom_BUG_DONT_COMPILE _penmount mutouch _acecad _aiptek _citron _elographics _fpit _hyperpen _joystick _tslib virtualbox vmmouse _void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fr en_GB fr_FR en_US" LIRC_DEVICES="usbirboy com1 com2 userspace" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="apm _chips _cirrus fbdev vmware virtualbox _i810 _i128 _mga _nv _nvidia _s3 _s3virge _sis _tga _trident v4l vesa _vga _via _tdfx _intel _mach64 _mga _none _r128 radeon radeonhd _s3virge _savage _sis _sunffb _tdfx _trident _via" 
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="apm _chips _cirrus fbdev vmware virtualbox _i810 _i128 _mga _nv _nvidia _s3 _s3virge _sis _tga _trident v4l vesa _vga _via _tdfx _intel _mach64 _mga _none _r128 radeon radeonhd _s3virge _savage _sis _sunffb _tdfx _trident _via"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share"
_="/usr/bin/emerge"
bash4="4.0.35(2)-release"
Comment 2 DEMAINE Benoît-Pierre, aka DoubleHP 2010-01-16 05:42:43 UTC
uranus ~ # emerge -pqv =x11-drivers/ati-drivers-9.11
[ebuild  N    ] x11-drivers/ati-drivers-9.11  USE="modules (multilib) -debug"
uranus ~ #
Comment 3 DEMAINE Benoît-Pierre, aka DoubleHP 2010-01-16 05:43:30 UTC
[32;01m*[0m CPV:  x11-drivers/ati-drivers-9.11
 [32;01m*[0m REPO: gentoo
 [32;01m*[0m USE:  amd64 elibc_glibc kernel_linux modules multilib userland_GNU
 [32;01m*[0m Determining the location of the kernel source code
 [32;01m*[0m Found kernel source directory:
 [32;01m*[0m     /usr/src/linux
 [32;01m*[0m Found sources for kernel version:
 [32;01m*[0m     2.6.31-xen-r10-Gentoo-uranus-1-12
 [32;01m*[0m 
 [32;01m*[0m Please note that this driver supports only graphic cards based on
 [32;01m*[0m r600 chipset and newer.
 [32;01m*[0m This represent the ATI Radeon HD series at this moment.
 [32;01m*[0m 
 [32;01m*[0m If your card is older then usage of x11-drivers/xf86-video-ati
 [32;01m*[0m as replacement is highly recommended. Rather than staying with
 [32;01m*[0m old versions of this driver.
 [32;01m*[0m For migration informations please reffer to:
 [32;01m*[0m http://www.gentoo.org/proj/en/desktop/x/x11/ati-migration-guide.xml
 [32;01m*[0m 
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/x11-drivers/ati-drivers-9.11/work
>>> Preparing source in /var/tmp/portage/x11-drivers/ati-drivers-9.11/work ...
 [32;01m*[0m Applying ati-drivers-xen.patch ...
[A[72C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying ati-powermode-opt-path-2.patch ...
[A[72C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Converting 2.6.x/Makefile to use M= instead of SUBDIRS= ...
[A[72C  [34;01m[ [32;01mok[34;01m ][0m
>>> Unpacking ./../common/usr/src/ati/fglrx_sample_source.tgz to /var/tmp/portage/x11-drivers/ati-drivers-9.11/work/extra
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/ati-drivers-9.11/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/ati-drivers-9.11/work ...
 [32;01m*[0m Preparing fglrx module
make -j4 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= GCC_VER_MAJ=4 KVER=2.6.31-xen-r10-Gentoo-uranus-1-12 KDIR=/usr/src/linux kmod_build 
make -C /usr/src/linux M=/var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.31-xen-r10'
  Updating /var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/Makefile.xen
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_io.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_pci.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_str.o
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_wait.o
In file included from /var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:450:
/var/tmp/portage/x11-drivers/ati-drivers-9.11/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-9.11/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'
/var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_MapPageToPfn':
/var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1592: warning: unused variable 'bus_addr'
  LD [M]  /var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/fglrx.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: could not find /var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/.libfglrx_ip.a.GCC4.cmd for /var/tmp/portage/x11-drivers/ati-drivers-9.11/work/common/lib/modules/fglrx/build_mod/2.6.x/libfglrx_ip.a.GCC4
FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol 'xen_features'
make[2]: *** [__modpost] Error 1
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.31-xen-r10'
make: *** [kmod_build] Error 2
 [31;01m*[0m ERROR: x11-drivers/ati-drivers-9.11 failed:
 [31;01m*[0m   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.31-xen-r10-Gentoo-uranus-1-12 KDIR=/usr/src/linux kmod_build
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line   48:  Called src_compile
 [31;01m*[0m   environment, line 3706:  Called linux-mod_src_compile
 [31;01m*[0m   environment, line 2866:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m               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}";
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of 'emerge --info =x11-drivers/ati-drivers-9.11',
 [31;01m*[0m the complete build log and the output of 'emerge -pqv =x11-drivers/ati-drivers-9.11'.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/x11-drivers/ati-drivers-9.11/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/x11-drivers/ati-drivers-9.11/temp/environment'.
 [31;01m*[0m S: '/var/tmp/portage/x11-drivers/ati-drivers-9.11/work'
Comment 4 DEMAINE Benoît-Pierre, aka DoubleHP 2010-01-16 05:45:37 UTC
I don't understand what to do with
* The ebuild environment file is located at
'/var/tmp/portage/x11-drivers/ati-drivers-9.11/temp/environment'.
 * S: '/var/tmp/portage/x11-drivers/ati-drivers-9.11/work'

And i think that comment 1 renders "emerge --info" useless.

Good luck.
Comment 5 DEMAINE Benoît-Pierre, aka DoubleHP 2010-01-16 05:47:18 UTC
So ... if this driver will never build on Xen, this should be detected and told by the build, the same way the ebuild detects misconfigured kernel.
Comment 6 Patrick Lauer gentoo-dev 2010-01-16 10:50:16 UTC
FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol
'xen_features'

In other words you can't use those two together. Bad fglrx!
Comment 7 Enrico Tagliavini 2011-06-05 18:40:42 UTC
Closing for inactivity. We will see what will happen with linux-3.0 since it integrates XEN iirc. If needed i will add a check to the ati-drivers ebuild to blacklist xen
Comment 8 DEMAINE Benoît-Pierre, aka DoubleHP 2011-06-05 18:55:49 UTC
Inactivity ? NEEDINFO ? inactivity from maints or devs, maybe; which info do you need from me ?

I said it does not compile; as long as nobody tells me a new ebuild is available, there is no need for any new test, and nothing I can do.

Reopening. Until I am said what I shall do.
Comment 9 Enrico Tagliavini 2011-06-06 16:44:33 UTC
If you are happy i will keep it open until linux 3.0 will be out. From what your log says this is not a gentoo bug, the xen kernels were not supported in the past by fglrx, now the situation may be changed with linux 3.0 since xen is integrated in the mainline kernel.

Just a side note: the bug will stay open until there is a reason to do so, not until we say you what to to :)

Don't take me wrong, i don't want to be rude, xen is not officially supported by fglrx, it might work maybe (one year ago was simply a no go), i don't have all the time i want so i give precendence to what is more important from my point of view, i can be wrong of couse, but kindly ask goes a long way.
Comment 10 Enrico Tagliavini 2011-06-06 16:51:56 UTC
Forgotten a couple of things:

(In reply to comment #8)
> I said it does not compile; as long as nobody tells me a new ebuild is
> available, there is no need for any new test, and nothing I can do.

You can help finding a solution :), make or find a patch, modify the ebuild if needed and attach the new ebuild to the bug, ask AMD to officially support xen and so on.
Comment 11 Enrico Tagliavini 2011-06-06 17:28:20 UTC
For your happiness: fglrx compile with git-sources-3.0_rc1, i didn't tested it on runtime, i leave this to you if you want.

To test you just need to modify one line in the ebuild: change line 130 with:
if ! kernel_is ge 2 6; then

the original line is
if ! kernel_is 2 6; then
Comment 12 DEMAINE Benoît-Pierre, aka DoubleHP 2011-06-06 18:50:46 UTC
When is linux 3.0 planed for ?

The bug shall stay open ... not just to make me happy, but so that if someone else meet it, we have a reference bug to track people, and regoup dups. Even if you don't plan to fix it. Not for me: for other users.

Enrico: lol :)
Comment 13 Enrico Tagliavini 2011-06-06 19:19:51 UTC
Linux-3.0 will be out in few months, we are at rc2 now. Fix bugs related to ati-drivers ebuild is my primary goal keep it in mind. But i'm not Don Quixote i don't fight windmills like ati propietary drivers supporting xen. Upstream must take care of it, not me. I don't even have the source code of the driver itself but the kernel wrapper. Luckly this time we have it for free i hope, since this times it builds.

And no if the bug is not a gentoo bug it should just be closed. You can search for closed bug too, and google index them, so you can find them pretty easly.
Comment 14 Enrico Tagliavini 2011-07-23 15:24:06 UTC
Well linux 3.0 is out and..... fglrx can be built against a XEN enabled kernel, so the bug can be closed.

That said, i've tried to run a dom0 with fglrx and the result is a black screen. fglrx kernel module loads fine but in Xorg log it says:

[    14.455] (WW) System lacks support for changing MTRRs
[    14.456] (EE) fglrx(0): V_BIOS address 0x0 out of range
[    14.456] (II) fglrx(0): Invalid ATI BIOS from int10, the adapter is not VGA-enabled
[    14.456] (EE) fglrx(0): Invalid video BIOS signature!
[    14.456] (EE) fglrx(0): GetBIOSParameter failed
[    14.456] (EE) fglrx(0): PreInitAdapter failed
[    14.456] (EE) fglrx(0): PreInit failed
[    14.456] (II) fglrx(0): === [xdl_xs110_atiddxPreInit] === end

so running an fglrx powered dom0 is not possible, for me at least. What i can't actually understand is why linux-3.0 misses the XEN_PCIDEV_BACKEND_PASS config option, which enables the VGA passthrough according to http://wiki.xensource.com/xenwiki/XenVGAPassthrough . Oh well, this ca be an argument for another bug i guess.