ati-drivers 8.40.4 fails to compile with gcc-3.4.6, i'm using hardened profile Reproducible: Always Steps to Reproduce: 1. emerge ati-drivers Actual Results: make -C /usr/src/linux M=/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x modules make[1]: Entering directory `/usr/src/linux-2.6.22-hardened-r3' CC [M] /var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o /var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function `firegl_put_user_ptr': /var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1495: internal compiler error: in int_mode_for_mode, at stor-layout.c:289 Expected Results: compilation withot errors # emerge --info Portage 2.1.3.7 (hardened/amd64, gcc-3.4.6, glibc-2.6.1-r0, 2.6.22-hardened-r3 x86_64) ================================================================= System uname: 2.6.22-hardened-r3 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ Gentoo Base System release 1.12.10 Timestamp of tree: Tue, 28 Aug 2007 16:50:01 +0000 app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.5.1-r2 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.10-r4 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17.50.0.18 sys-devel/gcc-config: 1.4.0-r1 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -march=athlon64 -pipe -fforce-addr" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O3 -march=athlon64 -pipe -fforce-addr" DISTDIR="/var/lib/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetc h" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://distfiles.gentoo.org" LANG="es_ES@euro" LC_ALL="es_ES@euro" LINGUAS="es" MAKEOPTS="-j3" PKGDIR="/var/lib/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/pack ages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage-overlays/ares" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X acl acpi alsa amd64 bash-completion berkdb bluetooth bzip2 cairo cdr cracklib crypt cup s dedicated dga directfb dri dvd dvdr encode exif fbcon ffmpeg firefox gd geoip gif glut gpm gps gtk hardened imagemagick imap ipv6 jpeg jpeg2k justify lm_sensors logrotate mad maildir midi mp3 mpeg m player msn ncurses nls nptl nptlonly nsplugin ogg openal opengl pam pdf pic plotutils png python rea dline skey sockets sox sqlite3 sse sse2 ssl startup-notification svg symlink tetex threads truetype urandom usb v4l videos vim-syntax vorbis xcomposite xface xml xorg xscreensaver xv xvid zlib" ALSA_P CM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lf loat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="e vdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es" USERLAND="GNU" VIDEO_CARDS="fglrx radeon vesa fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAG S, PORTAGE_RSYNC_EXTRA_OPTS
sorry locales again but the error is now displayed in english LANG=C LC_ALL=C emerge --info Portage 2.1.3.7 (hardened/amd64, gcc-3.4.6, glibc-2.6.1-r0, 2.6.22-hardened-r3 x86_64) ================================================================= System uname: 2.6.22-hardened-r3 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ Gentoo Base System release 1.12.10 Timestamp of tree: Tue, 28 Aug 2007 16:50:01 +0000 app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.5.1-r2 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.10-r4 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17.50.0.18 sys-devel/gcc-config: 1.4.0-r1 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -march=athlon64 -pipe -fforce-addr" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O3 -march=athlon64 -pipe -fforce-addr" DISTDIR="/var/lib/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://distfiles.gentoo.org" LANG="C" LC_ALL="C" LINGUAS="es" MAKEOPTS="-j3" PKGDIR="/var/lib/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage-overlays/ares" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X acl acpi alsa amd64 bash-completion berkdb bluetooth bzip2 cairo cdr cracklib crypt cups dedicated dga directfb dri dvd dvdr encode exif fbcon ffmpeg firefox gd geoip gif glut gpm gps gtk hardened imagemagick imap ipv6 jpeg jpeg2k justify lm_sensors logrotate mad maildir midi mp3 mpeg mplayer msn ncurses nls nptl nptlonly nsplugin ogg openal opengl pam pdf pic plotutils png python readline skey sockets sox sqlite3 sse sse2 ssl startup-notification svg symlink tetex threads truetype urandom usb v4l videos vim-syntax vorbis xcomposite xface xml xorg xscreensaver xv xvid zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es" USERLAND="GNU" VIDEO_CARDS="fglrx radeon vesa fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 129494 [details] proprocessed source
*** Bug 190546 has been marked as a duplicate of this bug. ***
Don't use -O3 on hardened.
The same result with : CFLAGS="-O2 -march=athlon64 -pipe -fforce-addr" emerge -av1 ati-drivers
stop using -fforce-addr
CFLAGS="-O2 -march=athlon64 -pipe" emerge -av1 ati-drivers still the same error
i got nothing left then workaround it with like -O0 ... gcc-3.4.x isnt seeing any more fixes
*** Bug 190844 has been marked as a duplicate of this bug. ***
No support for users of a hardened system? 3.4 is the only gcc for us, so it would be nice if either 3.4 is supported or 4.x gets hardened support.
*** Bug 201471 has been marked as a duplicate of this bug. ***