Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 558654 - =x11-drivers/ati-drivers-15.7-r2: does not build with USE="modules"
Summary: =x11-drivers/ati-drivers-15.7-r2: does not build with USE="modules"
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-25 06:51 UTC by AAAA
Modified: 2015-08-28 17:57 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,11.40 KB, application/octet-stream)
2015-08-25 06:54 UTC, AAAA
Details

Note You need to log in before you can comment on or make changes to this bug.
Description AAAA 2015-08-25 06:51:45 UTC
=x11-drivers/ati-drivers-15.7-r2 (Drake Donahue ebuild /w patch) fails to build with USE="modules" Successful build with USE="-modules"

Tried resent bug reports and fixes to the 15.X pkg,
https://bugs.gentoo.org/show_bug.cgi?id=548118
https://bugs.gentoo.org/show_bug.cgi?id=554590

Reproducible: Always

Steps to Reproduce:
1.Do the manual sed patches to init.c and pci.c.
sed -i 's/EXPORT_SYMBOL_GPL(cpu_tlbstate)/EXPORT_SYMBOL(cpu_tlbstate)/g' '/usr/src/linux/arch/x86/mm/init.c'
sed -i 's/EXPORT_SYMBOL_GPL(pci_ignore_hotplug)/EXPORT_SYMBOL(pci_ignore_hotplug)/g' '/usr/src/linux/drivers/pci/pci.c'
2.Build and install Kernel 4.2.0-rc7 and eselect the kernel.
3.Enable modules via USE, pakage.use/, etc...
4.Emerge ati-drivers-15.7-r2 with the 15.7-r2.patch.
Actual Results:  
/var/tmp/portage/x11-drivers/ati-drivers-15.7-r2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:194:22: fatal error: asm/i387.h: No such file or directory
 #include "asm/i387.h"
                      ^
compilation terminated.
scripts/Makefile.build:258: recipe for target '/var/tmp/portage/x11-drivers/ati-drivers-15.7-r2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o' failed
make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-15.7-r2/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/tmp/portage/x11-drivers/ati-drivers-15.7-r2/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:145:8: error: unknown type name ‘notifier_block_no_const’
 static notifier_block_no_const firegl_acpi_lid_notifier = {
        ^
/var/tmp/portage/x11-drivers/ati-drivers-15.7-r2/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:149:9: error: field name not in record or union initializer
         .notifier_call = firegl_acpi_lid_event,
         ^
/var/tmp/portage/x11-drivers/ati-drivers-15.7-r2/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:149:9: error: (near initialization for ‘firegl_acpi_lid_notifier’)
/var/tmp/portage/x11-drivers/ati-drivers-15.7-r2/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:149:9: error: initializer element is not computable at load time
/var/tmp/portage/x11-drivers/ati-drivers-15.7-r2/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:149:9: error: (near initialization for ‘firegl_acpi_lid_notifier’)
/var/tmp/portage/x11-drivers/ati-drivers-15.7-r2/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c: In function ‘KCL_ACPI_InstallLidHandler’:

Expected Results:  
Modules and package would build.

emerge -pqv;
[ebuild   R   ] x11-drivers/ati-drivers-15.7-r2  USE="modules qt4 -debug -gdm-hack -pax_kernel -static-libs" ABI_X86="32 (64)" 

emerge --info;
Portage 2.2.20.1 (python 2.7.10-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.21-r1, 4.2.0-rc7 x86_64)
=================================================================
System uname: Linux-4.2.0-rc7-x86_64-Intel-R-_Xeon-R-_CPU_E3-1550_v2_@_3.50GHz-with-gentoo-2.2
KiB Mem:    16394916 total,  13301084 free
KiB Swap:    9435132 total,   9435132 free
Timestamp of repository gentoo: Mon, 24 Aug 2015 00:45:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.0) 2.25.1
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/lib/i2pd/certificates"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl alsa amd64 berkdb bluetooth bzip2 caja cli cracklib crypt cups cxx d3d9 dbus dmx doc dri editor egl gconf gdbm gles gles1 gles2 gtk gtk+ gtk3 gtk3+ gtkstyle hardened i2p-hardening iconv java jpeg justify libkms lm_sensors mmx mmxext modules mpeg3 multicore multilib ncurses networkmanager nls nptl open_perms opencl opengl openmax openmp openrc openvg osmesa pam pcre pie png pulseaudio python r600-llvm-compiler readline seccomp session sound spell sse sse2 ssl ssp tcpd threads truetype udev udisks unconfined unicode unwind urandom vaapi vdpau x11-drivers xa xattr xdm-auth xinput xorg xtpax xvmc zlib" ABI_X86="64 32" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi 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"
USE_PYTHON="2.7 3.3 3.4"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 AAAA 2015-08-25 06:54:41 UTC
Created attachment 410178 [details]
build.log
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-08-28 17:56:11 UTC
(In reply to AAAA from comment #0)
> =x11-drivers/ati-drivers-15.7-r2 (Drake Donahue ebuild /w patch) fails to
> build with USE="modules" Successful build with USE="-modules"

There is no ati-drivers-15.7-r2 in portage: https://gitweb.gentoo.org/repo/gentoo.git/tree/x11-drivers/ati-drivers
and not in x11 overlay: https://gitweb.gentoo.org/proj/x11.git/tree/x11-drivers/ati-drivers

So it seems this is not a bug in an official gentoo ebuild. Please report this bug directly to Drake Donahue or whatever person/project is responsible for the ebuild which you are using.