I've did emerge xorg-xserver (1.4-r2) with USE-flags "dri nptr xorg", INPUT_DEVICES="edev keyboard mouse", VIDEO_CARDS="fbdev radeon vesa". I've got make error listed below. Preprocessed source is also attached. Reproducible: Didn't try Steps to Reproduce: 1.#USE="dri nptr xorg" INPUT_DEVICES="edev keyboard mouse" VIDEO_CARDS="fbdev radeon vesa" emerge xorg-xserver Actual Results: texcompress_fxt1.c: In function 'fxt1_encode': texcompress_fxt1.c:1376: internal compiler error: in bsi_for_stmt, at tree-cfg.c:2827 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/tmp/portage/x11-base/xorg-server-1.4-r2/temp/ccJrPK7e.out file, please attach this to your bugreport. Expected Results: Successful update. $emerge --info Portage 2.1.3.12 (default-linux/x86/2007.0, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-gentoo-r6 i686) ================================================================= System uname: 2.6.22-gentoo-r6 i686 AMD Athlon(tm) XP 2600+ Timestamp of tree: Sat, 13 Oct 2007 11:00:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.4.4-r4, 2.5.1-r2 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18 sys-devel/gcc-config: 1.4.0-r2 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=athlon-xp -pipe -ftree-loop-linear -frename-registers -fprefetch-loop-arrays -fstack-protector-all -fstack-check -fno-strict-overflow" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O3 -march=athlon-xp -pipe -ftree-loop-linear -frename-registers -fprefetch-loop-arrays -fstack-protector-all -fstack-check -fno-strict-overflow" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.glanet.ru/distfiles http://distfiles.gentoo.org" LINGUAS="ru" MAKEOPTS="-j2" PKGDIR="/usr/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="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow acl alsa apache2 berkdb bitmap-fonts bluetooth clamav cli cracklib crypt cups dri dvar dvd dvdread ffmpeg firefox ftp gdbm gpm gtk2 iconv isdnlog jpeg jpeg2k mad matroska midi mmx mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly ogg openmp pam pcre perl png pppd python qt4 readline reflection session spl sqlite3 sse sse2 ssl svg tcpd teora threads truetype-fonts type1-fonts unicode vorbis win32codecs x86 xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="fbdev ati radeon fglrx vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 133331 [details] Preprocessed source
Remove -fstack-protector-all -fstack-check from your CXXFLAGS.
It is bug of xorg, isn't it?
So, it works without those? Anyway, we don't support stuff like -fstack-protector-all in C[XX]FLAGS. You should use proper hardened profile and hardened compiler instead.
No. It doesn't work. CFLAGS="-O3 -march=athlon-xp -pipe -ftree-loop-linear -frename-registers -fprefetch-loop-arrays -fno-strict-overflow"
Well, then reopen the bug :o)
Also you should try w/ gcc-4.2.2
xorg-xserver was successfully built with gcc 4.2.0 (Gentoo 4.2.0 p1.4) and CFLAGS="-O3 -march=athlon-xp -pipe". It looks like some aggressive optimization is not supported by xorg-xserver. Thanky you, Jakub.
it's still an ICE on valid code that needs to be reported upstream regardless of the unsupported flags you are using
Fixed in gcc-4.3