Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 565520 - x11-drivers/ati-drivers-15.9-r1 must not be build with gcc-5.2.0
Summary: x11-drivers/ati-drivers-15.9-r1 must not be build with gcc-5.2.0
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
Depends on: 566846
Blocks: gcc-5
  Show dependency tree
Reported: 2015-11-11 16:32 UTC by Gert Wollny
Modified: 2016-11-21 20:05 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Gert Wollny 2015-11-11 16:32:22 UTC
When building ati-drivers with gcc-5.2.0 it raises a bug within the 4.2 kernels. 
I notes this  with gentoo-sources 4.2.5 and 4.2.6 (see below) and locks the console. One can still ssh into the machine.  

gentoo-sources-4.2.5 was build with gcc-4.9.3 and gentoo-sources-4.2.6 with 5.2.0. After re-compiling ati-drivers with gcc-4.9.3 the machine started normal with the kernel from gentoo-sources-4.2.6. I didn't try gentoo-sources-4.2.5. 

Kernel Oops trace: 

fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
[    8.189293] Disabling lock debugging due to kernel taint
[    8.215921] <6>[fglrx] Maximum main memory to use for locked dma buffers: 31553 MBytes.
[    8.216139] <6>[fglrx]   vendor: 1002 device: 6738 revision: 0 count: 1
[    8.216390] <6>[fglrx] IOMMU is enabled, CrossFire are not supported on this platform
[    8.216392] <6>[fglrx] Disable IOMMU in BIOS options or kernel boot parameters to support CF
[    8.216602] <6>[fglrx] ioport: bar 4, base 0xe000, size: 0x100
[    8.217324] PGD 819f78067 PUD 819f79067 PMD 0 
[    8.217493] Oops: 0000 [#1] SMP 
[    8.217619] Modules linked in: fglrx(PO+) microcode r8169 pcspkr fam15h_power k10temp xhci_pci mii 8250 serial_core acpi_cpufreq i2c_piix4 processor i2c_core butto
n ohci_pci thermal_sys xts aesni_intel glue_helper lrw gf128mul ablk_helper cryptd aes_x86_64 cbc sha256_generic scsi_transport_iscsi nfs lockd grace sunrpc reiserfs ext4 jbd2 usbhid xhci_hcd ohci_hcd u
sb_storage ehci_pci ehci_hcd usbcore usb_common scsi_transport_fc sr_mod cdrom sg pata_marvell
[    8.224874] CPU: 0 PID: 2372 Comm: udevd Tainted: P           O    4.2.6-gentoo-fglrx #1
[    8.224931] Hardware name: To be filled by O.E.M. To be filled by O.E.M./M5A97 R2.0, BIOS 1302 11/14/2012
[    8.224987] task: ffff88083a9c30c0 ti: ffff88081af94000 task.ti: ffff88081af94000
[    8.225041] RIP: 0010:[<ffffffffa044195e>]  [<ffffffffa044195e>] firegl_debug_dump+0x19e/0x1b0 [fglrx]
[    8.225249] RSP: 0018:ffff88081af97b18  EFLAGS: 00010286
[    8.225297] RAX: 0000000000000020 RBX: ffff88081af97bf7 RCX: 00000000000012dc
[    8.225346] RDX: 0000000000000000 RSI: ffffffffa0441955 RDI: 0000000000000000
[    8.225395] RBP: 0000000000000020 R08: 0000000000000000 R09: ffffffffa06a0aa2
[    8.225443] R10: ffffffffa044c970 R11: ffffffffa044c930 R12: 000000000000000d
[    8.225491] R13: 0000000000000004 R14: 0000000000000000 R15: ffffffffa06a0aa2
[    8.225540] FS:  00007fb6c7b257c0(0000) GS:ffff88083ec00000(0000) knlGS:0000000000000000
[    8.225595] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    8.225643] CR2: 0000000000000090 CR3: 000000081b059000 CR4: 00000000000406f0
[    8.225690] Stack:
[    8.225735]  000012dc00000078 ffffffffa063d6d0 0000000000000001 ffff88081c8bd380
[    8.225983]  ffff88083a80d098 0000000000000000 ffff88081ba64000 ffffffff8102e84e
[    8.226196]  ffff88081ba64000 0000002e81325550 0000000000000246 0000000000000016
[    8.226409] Call Trace:
[    8.226466]  [<ffffffff8102e84e>] ? acpi_register_gsi_ioapic+0x5e/0x70
[    8.226521]  [<ffffffff814236ff>] ? pci_conf1_read+0xbf/0x110
[    8.226685]  [<ffffffffa044c930>] ? asyncioSvcInitContext+0x30/0x30 [fglrx]
[    8.226849]  [<ffffffffa044c970>] ? asyncioSvcInstallFn+0x40/0x40 [fglrx]
[    8.226906]  [<ffffffff814e91db>] ? _raw_spin_lock+0xb/0x20
[    8.227053]  [<ffffffffa040a174>] ? KAS_Initialize+0x114/0x1e0 [fglrx]
[    8.227242]  [<ffffffffa0419402>] ? firegl_init+0xe2/0xf0 [fglrx]
[    8.227400]  [<ffffffffa042bbc0>] ? firegl_find_interrupt_by_sourceid+0x50/0x50 [fglrx]
[    8.227566]  [<ffffffffa042bbe0>] ? IRQMGR_CallbackWrapper+0x20/0x20 [fglrx]
[    8.227703]  [<ffffffffa109726f>] ? init_module+0x26f/0x49d [fglrx]
[    8.227752]  [<ffffffffa1097000>] ? 0xffffffffa1097000
[    8.227805]  [<ffffffff810002cc>] ? do_one_initcall+0x7c/0x1a0
[    8.227856]  [<ffffffff814e497f>] ? do_init_module+0x51/0x1ca
[    8.227916]  [<ffffffff810affc1>] ? load_module+0x1df1/0x2140
[    8.227965]  [<ffffffff810ad0a0>] ? __symbol_get+0x70/0x70
[    8.228016]  [<ffffffff810b0528>] ? SyS_finit_module+0xa8/0xb0
[    8.228067]  [<ffffffff814e9597>] ? entry_SYSCALL_64_fastpath+0x12/0x6a
[    8.228115] Code: b3 d0 13 00 00 48 c7 c7 80 45 6b a0 e8 ac fd ff ff 48 89 df e8 64 c9 fe ff 48 89 df e8 8c 27 ff ff 48 8b 93 30 14 00 00 48 89 d7 <ff> 92 90 00 00 00 e9 d5 fe ff ff 66 66 66 90 66 66 90 41 57 4d 
[    8.231092]  RSP <ffff88081af97b18>
[    8.231138] CR2: 0000000000000090
[    8.231193] ---[ end trace b6ef44fce234bdd3 ]---

emerge --info: 

Portage (python 2.7.10-final-0, default/linux/amd64/13.0/desktop, gcc-5.2.0, glibc-2.21-r1, 4.2.6-gentoo-fglrx x86_64)
System uname: Linux-4.2.6-gentoo-fglrx-x86_64-AMD_FX-tm-6300_Six-Core_Processor-with-gentoo-2.2
KiB Mem:    32985896 total,  27818908 free
KiB Swap:   67107920 total,  67107920 free
Timestamp of repository gentoo: Tue, 10 Nov 2015 14:00:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10::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::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.2.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo

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

    location: /var/lib/layman/neuroscience
    masters: gentoo
    priority: 0

    location: /var/lib/layman/science
    masters: gentoo
    priority: 1

    location: /var/lib/layman/java
    masters: gentoo
    priority: 2

    location: /var/lib/layman/open-overlay
    masters: gentoo
    priority: 3

    location: /var/lib/layman/x11
    masters: gentoo
    priority: 4

    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 5

    location: /usr/local/portage
    masters: gentoo
    priority: 6

    location: /home/gerddie/Gentoo/gentoo-imaging
    masters: gentoo
    priority: 7

Installed sets: @system
ACCEPT_LICENSE="* -@EULA @FSF-APPROVED ut2003 dlj-1.1 QUAKE4 skype-eula googleearth AdobeFlash-11.x PUEL Oracle-BCLA-JavaSE FraunhoferFDK"
CFLAGS="-ggdb -O2 -ftree-vectorize -march=native -mtune=native -pipe"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
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="-ggdb -O2 -ftree-vectorize -march=native -mtune=native -pipe"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles installsources merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
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"
USE="7zip X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb blas bluetooth branding bzip2 cairo cblas cdda cdr cleartype cli consolekit cracklib crypt css cups cvs cxx dbus device-mapper dia dirac dri dts dv dvd dvdr emacs emboss encode exif faac faad fam ffmpeg fftw firefox flac fontconfig fortran fuse gdbm gdu gif glamor gnome-keyring gnutls googledrive gphoto2 gpm gstreamer gtk hal hdf5 iconv icu id3tag ieee1394 introspection ipod ipv6 ipython jack java java6 joystick jpeg jpeg2k kdrive kerberos kpathsea lame lapack latex lcms ldap libnotify libsamplerate lm_sensors lv2 lzo mad matroska midi mikmod mjpeg mmap mmx mmxext mng mod modules mp3 mp4 mpeg mtp multilib musepack nautilus ncurses nls nptl nsplugin octave ogg ogm openal openexr opengl openmp oss pam pango pch pcre pda pdf plotutils png policykit posix postscript ppds private-headers pulsaudio pulseaudio python qt3support qt4 readline sbcl sdl seccomp session sift slang smp sndfile soundtouch sox speex spell sqlite srt sse sse2 ssl startup-notification subversion svg tbb tcpd theora threads tiff timidity tk truetype udev udisks unicode upower usb v4l2 vaapi vorbis wmf wxwidgets wxwindows x264 xattr xcb xml xmp xulrunner xv xvid zlib" ABI_X86="32 64" 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="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de es it" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="vesa ati radeon fglrx r600" 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"
Comment 1 Gert Wollny 2015-12-12 20:54:31 UTC
I'd like to add that with the new version 15.11 this is no longer a problem.
Comment 2 Andreas Sturmlechner gentoo-dev 2016-11-20 23:08:13 UTC
So, is there any reason to keep 15.9-r1 in tree or shall it be removed to finally fix this gcc-5 blocker?
Comment 3 Gert Wollny 2016-11-21 07:14:47 UTC
I think it can be removed, 15.12 is stable and I have used this compiled against kernel 4.6 for quite some time without problems.
Comment 4 Matt Turner gentoo-dev 2016-11-21 20:05:52 UTC
I've deleted 15.9 in

commit 622d60c35be1492ab158579b084d5deee8afd215
Author: Matt Turner <>
Date:   Mon Nov 21 12:04:37 2016 -0800

    x11-drivers/ati-drivers: Drop old version 15.9.