Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 346445 - [4.5/graphite] 90_all_gcc-4.5-graphite-ICE.patch causes segfaults
Summary: [4.5/graphite] 90_all_gcc-4.5-graphite-ICE.patch causes segfaults
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 346903 (view as bug list)
Depends on: PR45314
Blocks:
  Show dependency tree
 
Reported: 2010-11-22 16:53 UTC by Maciej Piechotka
Modified: 2010-12-06 08:45 UTC (History)
6 users (show)

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


Attachments
strips graphite cflags in ebuild (cairo-strip-graphite.patch,485 bytes, patch)
2010-11-24 13:21 UTC, saellaven
Details | Diff
90_all_gcc-4.5-graphite-ICE.patch (90_all_gcc-4.5-graphite-ICE.patch,2.10 KB, patch)
2010-11-29 19:32 UTC, Ryan Hill (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Piechotka 2010-11-22 16:53:42 UTC
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -D_REENTRANT -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng14 -I/usr/include/valgrind -Wall -Wextra -Wold-style-definition -Wdeclaration-after-statement -Wmissing-declarations -Werror-implicit-function-declaration -Wnested-externs -Wpointer-arith -Wwrite-strings -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wbad-function-cast -Wvolatile-register-var -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -Wlogical-op -fno-strict-aliasing -fno-common -flto -Wp,-D_FORTIFY_SOURCE=2 -DXCB_GENERIC_ERROR_HAS_MAJOR_MINOR_CODES -I../src/glew -O2 -pipe -ggdb -march=native -msahf -mcx16 -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -floop-interchange -floop-strip-mine -floop-block -finline-limit=1200 -c cairo-scaled-font-subsets.c  -fPIC -DPIC -o .libs/cairo-scaled-font-subsets.o
cairo-cff-subset.c: In function 'cairo_cff_font_write_fdselect':
cairo-cff-subset.c:1407:9: warning: comparison between 'cairo_int_status_t' and 'enum _cairo_status'
cairo-cff-subset.c:1411:9: warning: comparison between 'cairo_int_status_t' and 'enum _cairo_status'
cairo-cff-subset.c:1415:9: warning: comparison between 'cairo_int_status_t' and 'enum _cairo_status'
cairo-cff-subset.c:1419:9: warning: comparison between 'cairo_int_status_t' and 'enum _cairo_status'
cairo-cff-subset.c:1423:9: warning: comparison between 'cairo_int_status_t' and 'enum _cairo_status'
cairo-scaled-font-subsets.c: In function '_cairo_sub_font_map_glyph':
cairo-scaled-font-subsets.c:485:2: warning: comparison between 'cairo_status_t' and 'enum _cairo_int_status'
cairo-scaled-font-subsets.c: In function '_cairo_scaled_font_subsets_map_glyph':
cairo-scaled-font-subsets.c:702:17: warning: comparison between 'cairo_status_t' and 'enum _cairo_int_status'
cairo-scaled-font-subsets.c:717:13: warning: comparison between 'cairo_status_t' and 'enum _cairo_int_status'
cairo-cff-subset.c: In function 'cff_index_write':
cairo-cff-subset.c:316:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.


I am using paludis.


Package Manager Information:
    Package Name              paludis
    Package Version           0.54.8
    Build Date                2010-11-10T15:31:20+0000
    Built with CXX            x86_64-pc-linux-gnu-g++ 4.5.1
    Built with CXXFLAGS        -O2 -pipe -march=native -msahf -mcx16 -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -floop-interchange -floop-strip-mine -floop-block -pedantic
    Built with LDFLAGS        -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,--sort-common


    Package information
        app-admin/eselect-compiler (none)
        app-shells/bash       4.1_p9
        dev-java/java-config  2.1.11-r2
        dev-lang/python       2.6.6-r1 3.1.2-r4
        dev-util/ccache       (none)
        dev-util/cmake        2.8.1-r2
        dev-util/confcache    (none)
        sys-apps/baselayout   2.0.1-r1
        sys-apps/openrc       0.6.5
        sys-apps/sandbox      2.3-r1
        sys-devel/autoconf    2.13 2.68
        sys-devel/automake    1.10.3 1.11.1 1.9.6-r3
        sys-devel/binutils    2.20.1-r1
        sys-devel/gcc         4.4.5 4.5.1-r1
        sys-devel/gcc-config  1.4.1
        sys-devel/libtool     2.2.10
        sys-devel/make        3.82
        virtual/os-headers    2.6.36 (for sys-kernel/linux-headers::installed)


Extra Information for x11-libs/cairo-1.10.0-r3::installed:
        >>> Running ebuild phase killold as portage:portage...
        >>> Starting builtin_killold
        >>> Done builtin_killold
        >>> Completed ebuild phase killold
        >>> Running ebuild phases initmisc infovars info as portage:portage...
        >>> Starting builtin_initmisc
        bunzip2 < /var/db/pkg/x11-libs/cairo-1.10.0-r3/environment.bz2 > /var/tmp/paludis/environment-x11-libs-cairo-1.10.0-r3-3152
        ebuild_scrub_environment /var/tmp/paludis/environment-x11-libs-cairo-1.10.0-r3-3152
        ebuild_safe_source /var/tmp/paludis/environment-x11-libs-cairo-1.10.0-r3-3152
        rm /var/tmp/paludis/environment-x11-libs-cairo-1.10.0-r3-3152
        >>> Done builtin_initmisc
        >>> Starting builtin_infovars
        ACCEPT_KEYWORDS=amd64
        CBUILD=x86_64-pc-linux-gnu
        CFLAGS=-O2 -pipe -ggdb -march=native -msahf -mcx16 -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -floop-interchange -floop-strip-mine -floop-block -finline-limit=1200
        CHOST=x86_64-pc-linux-gnu
        CONFIG_PROTECT=/etc 
        CONFIG_PROTECT_MASK=/etc/env.d /etc/gconf 
        CPPFLAGS=
        CTARGET=
        CXXFLAGS=-O2 -pipe -ggdb -march=native -msahf -mcx16 -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -floop-interchange -floop-strip-mine -floop-block -finline-limit=1200
        DISTDIR=/var/db/pkg/x11-libs/cairo-1.10.0-r3
        FEATURES=
        FFLAGS= -finline-limit=1200
        GENTOO_MIRRORS=
        INSTALL_MASK=
        LANG=
        LC_ALL=C
        LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,--sort-common
        LINGUAS=en en_GB pl
        MAKEOPTS=-j2 V=1
        PORTAGE_COMPRESS=
        PORTAGE_COMPRESS_FLAGS=
        PORTAGE_CONFIGROOT=
        PORTAGE_RSYNC_EXTRA_OPTS=
        PORTAGE_RSYNC_OPTS=
        PORTAGE_TMPDIR=/var/tmp/paludis
        PORTDIR=/var/db/pkg/x11-libs/cairo-1.10.0-r3
        PORTDIR_OVERLAY=
        SYNC=
        USE=X doc opengl svg xcb amd64 alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mmap_emul alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic apache2_modules_authn_alias apache2_modules_authn_anon apache2_modules_authn_dbm apache2_modules_authn_default apache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_default apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_authz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_cache apache2_modules_cgi apache2_modules_cgid apache2_modules_dav apache2_modules_dav_fs apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir apache2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modules_ext_filter apache2_modules_file_cache apache2_modules_filter apache2_modules_headers apache2_modules_include apache2_modules_info apache2_modules_log_config apache2_modules_logio apache2_modules_mem_cache apache2_modules_mime apache2_modules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling apache2_modules_status apache2_modules_unique_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_alias collectd_plugins_df collectd_plugins_interface collectd_plugins_irq collectd_plugins_load collectd_plugins_memory collectd_plugins_rrdtool collectd_plugins_swap collectd_plugins_syslog elibc_glibc gpsd_protocols_aivdm gpsd_protocols_ashtech gpsd_protocols_earthmate gpsd_protocols_evermore gpsd_protocols_fv18 gpsd_protocols_garmin gpsd_protocols_garmintxt gpsd_protocols_gpsclock gpsd_protocols_itrax gpsd_protocols_mtk3301 gpsd_protocols_navcom gpsd_protocols_nmea gpsd_protocols_ntrip gpsd_protocols_oceanserver gpsd_protocols_oldstyle gpsd_protocols_oncore gpsd_protocols_rtcm104v2 gpsd_protocols_rtcm104v3 gpsd_protocols_sirf gpsd_protocols_superstar2 gpsd_protocols_timing gpsd_protocols_tnt gpsd_protocols_tripmate gpsd_protocols_tsip gpsd_protocols_ubx input_devices_evdev input_devices_synaptics kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text linguas_en linguas_en_GB linguas_pl php_targets_php5-2 ruby_targets_jruby ruby_targets_ruby18 userland_GNU video_cards_intel xtables_addons_account xtables_addons_chaos xtables_addons_condition xtables_addons_delude xtables_addons_dhcpmac xtables_addons_fuzzy xtables_addons_geoip xtables_addons_iface xtables_addons_ipmark xtables_addons_ipp2p xtables_addons_ipset xtables_addons_ipv4options xtables_addons_length2 xtables_addons_logmark xtables_addons_lscan xtables_addons_pknock xtables_addons_psd xtables_addons_quota2 xtables_addons_rawnat xtables_addons_steal xtables_addons_sysrq xtables_addons_tarpit xtables_addons_tee amd64 
        >>> Done builtin_infovars
        >>> Starting pkg_info
        >>> Done pkg_info
        >>> Completed ebuild phases initmisc infovars info
        >>> Running ebuild phase tidyup as portage:portage...
        >>> Starting builtin_tidyup
        rm -fr /var/tmp/paludis/x11-libs-cairo-1.10.0-r3-info
        >>> Done builtin_tidyup
        >>> Completed ebuild phase tidyup

Extra Information for x11-libs/cairo-1.10.0-r3:0::gentoo:
        >>> Running ebuild phase killold as portage:portage...
        >>> Starting builtin_killold
        >>> Done builtin_killold
        >>> Completed ebuild phase killold
        >>> Running ebuild phases initmisc infovars as portage:portage...
        >>> Starting builtin_initmisc
        >>> Done builtin_initmisc
        >>> Starting builtin_infovars
        ACCEPT_KEYWORDS=amd64
        CBUILD=x86_64-pc-linux-gnu
        CFLAGS=-O2 -pipe -ggdb -march=native -msahf -mcx16 -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -floop-interchange -floop-strip-mine -floop-block
        CHOST=x86_64-pc-linux-gnu
        CONFIG_PROTECT= 
        CONFIG_PROTECT_MASK= 
        CPPFLAGS=
        CTARGET=
        CXXFLAGS=-O2 -pipe -ggdb -march=native -msahf -mcx16 -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -floop-interchange -floop-strip-mine -floop-block
        DISTDIR=/var/tmp/distfiles
        FEATURES=
        FFLAGS=
        GENTOO_MIRRORS=
        INSTALL_MASK=
        LANG=
        LC_ALL=C
        LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,--sort-common
        LINGUAS=en en_GB pl
        MAKEOPTS=-j2 V=1
        PORTAGE_COMPRESS=
        PORTAGE_COMPRESS_FLAGS=
        PORTAGE_CONFIGROOT=
        PORTAGE_RSYNC_EXTRA_OPTS=
        PORTAGE_RSYNC_OPTS=
        PORTAGE_TMPDIR=/var/tmp/paludis
        PORTDIR=/usr/portage
        PORTDIR_OVERLAY=
        SYNC=
        USE=X doc opengl svg xcb amd64 alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mmap_emul alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic apache2_modules_authn_alias apache2_modules_authn_anon apache2_modules_authn_dbm apache2_modules_authn_default apache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_default apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_authz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_cache apache2_modules_cgi apache2_modules_cgid apache2_modules_dav apache2_modules_dav_fs apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir apache2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modules_ext_filter apache2_modules_file_cache apache2_modules_filter apache2_modules_headers apache2_modules_include apache2_modules_info apache2_modules_log_config apache2_modules_logio apache2_modules_mem_cache apache2_modules_mime apache2_modules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling apache2_modules_status apache2_modules_unique_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_alias collectd_plugins_df collectd_plugins_interface collectd_plugins_irq collectd_plugins_load collectd_plugins_memory collectd_plugins_rrdtool collectd_plugins_swap collectd_plugins_syslog elibc_glibc gpsd_protocols_aivdm gpsd_protocols_ashtech gpsd_protocols_earthmate gpsd_protocols_evermore gpsd_protocols_fv18 gpsd_protocols_garmin gpsd_protocols_garmintxt gpsd_protocols_gpsclock gpsd_protocols_itrax gpsd_protocols_mtk3301 gpsd_protocols_navcom gpsd_protocols_nmea gpsd_protocols_ntrip gpsd_protocols_oceanserver gpsd_protocols_oldstyle gpsd_protocols_oncore gpsd_protocols_rtcm104v2 gpsd_protocols_rtcm104v3 gpsd_protocols_sirf gpsd_protocols_superstar2 gpsd_protocols_timing gpsd_protocols_tnt gpsd_protocols_tripmate gpsd_protocols_tsip gpsd_protocols_ubx input_devices_evdev input_devices_synaptics kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text linguas_en linguas_en_GB linguas_pl php_targets_php5-2 ruby_targets_jruby ruby_targets_ruby18 userland_GNU video_cards_intel xtables_addons_account xtables_addons_chaos xtables_addons_condition xtables_addons_delude xtables_addons_dhcpmac xtables_addons_fuzzy xtables_addons_geoip xtables_addons_iface xtables_addons_ipmark xtables_addons_ipp2p xtables_addons_ipset xtables_addons_ipv4options xtables_addons_length2 xtables_addons_logmark xtables_addons_lscan xtables_addons_pknock xtables_addons_psd xtables_addons_quota2 xtables_addons_rawnat xtables_addons_steal xtables_addons_sysrq xtables_addons_tarpit xtables_addons_tee amd64 
        >>> Done builtin_infovars
        >>> Completed ebuild phases initmisc infovars
        >>> Running ebuild phase tidyup as portage:portage...
        >>> Starting builtin_tidyup
        rm -fr /var/tmp/paludis/x11-libs-cairo-1.10.0-r3-info
        >>> Done builtin_tidyup
        >>> Completed ebuild phase tidyup
Comment 1 Rafał Mużyło 2010-11-22 18:49:09 UTC
The obvious question is: does it work with *sane* CFLAGS ?
Comment 2 Tolga Dalman 2010-11-23 08:42:24 UTC
You are using LTO, so you should disable it. Submit a bug report at gcc@gcc.gnu.org - perhaps it get's fixed with the next compiler release...
Comment 3 Maciej Piechotka 2010-11-23 10:49:40 UTC
(In reply to comment #2)
> You are using LTO, so you should disable it. Submit a bug report at
> gcc@gcc.gnu.org - perhaps it get's fixed with the next compiler release...
> 

I do not (it is enabled for gcc but not in CFLAGS). Please see cave info.

% grep lto /etc/paludis/*
/etc/paludis/use.conf:*/* lame laptop latex ldap lua libffi lto libproxy -libsigsegv libkms libsoup libwnck lvm llvm llvm-gcc lm_sensor lzo lzma 

% sudo cave info x11-libs/cairo | grep lto
        bunzip2 < /var/db/pkg/x11-libs/cairo-1.10.0-r3/environment.bz2 > /var/tmp/paludis/environment-x11-libs-cairo-1.10.0-r3-23731
        ebuild_scrub_environment /var/tmp/paludis/environment-x11-libs-cairo-1.10.0-r3-23731
        ebuild_safe_source /var/tmp/paludis/environment-x11-libs-cairo-1.10.0-r3-23731
        rm /var/tmp/paludis/environment-x11-libs-cairo-1.10.0-r3-23731
        rm -fr /var/tmp/paludis/x11-libs-cairo-1.10.0-r3-info
        rm -fr /var/tmp/paludis/x11-libs-cairo-1.10.0-r3-info
Comment 4 Maciej Piechotka 2010-11-23 11:08:37 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > You are using LTO, so you should disable it.

Hmm. It seems that cairo know better if I want to use lto... I have lto enabled in gcc but I don't have in CFLAGS.
Comment 5 Sergey Ilinykh 2010-11-23 21:53:47 UTC
i don't have lto enabled in gcc, but it anyway segfaults.
so its not the lto problem, rather graphite or some generic.
i'll double check log output tomorrow to be sure its the same problem

btw, i have few more packages wich fail to compile with the same symptopms. pyqt4 for example
Comment 6 Maciej Piechotka 2010-11-23 22:09:34 UTC
(In reply to comment #5)
> i don't have lto enabled in gcc, but it anyway segfaults.
> so its not the lto problem, rather graphite or some generic.
> i'll double check log output tomorrow to be sure its the same problem
> 
> btw, i have few more packages wich fail to compile with the same symptopms.
> pyqt4 for example
> 

The offending flags are from graphite. It seems that any of flags:

-floop-interchange -floop-strip-mine -floop-block

The 'safe' flags are:

CFLAGS="-O2 -pipe -ggdb -march=native -msahf -mcx16 -fgcse-sm -fgcse-las -fgcse-
after-reload -ftracer"
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2010-11-24 00:02:31 UTC
What if you got rid of most of these:
CFLAGS="-O2 -pipe -ggdb -march=native -msahf -mcx16 -fgcse-sm -fgcse-las
-fgcse-after-reload -ftracer -floop-interchange -floop-strip-mine -floop-block
-finline-limit=1200"

Also, attach the entire build log as a file.
Comment 8 Maciej Piechotka 2010-11-24 00:07:42 UTC
(In reply to comment #7)
> What if you got rid of most of these:
> CFLAGS="-O2 -pipe -ggdb -march=native -msahf -mcx16 -fgcse-sm -fgcse-las
> -fgcse-after-reload -ftracer -floop-interchange -floop-strip-mine -floop-block
> -finline-limit=1200"
> 
> Also, attach the entire build log as a file.
> 

Sorry - part of post gone to /dev/null. By "safe" CFLAGS I mean that they are working.

Comment 9 Sergey Ilinykh 2010-11-24 12:32:20 UTC
just checked my logs and now sure its the same as for me.

my flags:
CFLAGS="${CFLAGS} -march=core2 -msse4.1 -ftree-vectorize -fgraphite-identity -floop-interchange -floop-strip-mine -floop-block"

also 3 more packages also fails with compiler segmentation fault:
dev-libs/icu
media-libs/libtheora
dev-python/PyQt4
i didn't check yet if graphite causes this or not.
Comment 10 saellaven 2010-11-24 12:53:19 UTC
AMD64 with gcc-4.5.1-r1 here

package failed compilation with

CFLAGS="-O2 -march=native -mtune=native -pipe -floop-interchange -floop-strip-mine -floop-block -ggdb -fgraphite-identity"

package succeeded with

CFLAGS="-O2 -march=native -mtune=native -pipe"

Comment 11 saellaven 2010-11-24 13:20:11 UTC
quick and dirty fix to get it to compile for now until it is properly fixed

--- cairo-1.8.10.ebuild.orig	2010-11-24 08:18:04.202421076 -0500
+++ cairo-1.8.10.ebuild	2010-11-24 08:15:49.904817505 -0500
@@ -74,6 +74,9 @@
 	# http://bugs.freedesktop.org/show_bug.cgi?id=15463
 	[[ ${CHOST} == *-solaris* ]] && append-flags -D_POSIX_PTHREAD_SEMANTICS
 
+	#filter graphite since it ICEs (bug #346445)
+	filter-flags -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity
+
 	#gets rid of fbmmx.c inlining warnings
 	append-flags -finline-limit=1200


Comment 12 saellaven 2010-11-24 13:21:58 UTC
Created attachment 255325 [details, diff]
strips graphite cflags in ebuild
Comment 13 saellaven 2010-11-25 02:27:28 UTC
submitted a bug to the gcc folks

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46651
Comment 14 Nikolaj Šujskij 2010-11-28 18:28:51 UTC
There were reports about successful build of cairo with GCC 4.5.1 (Graphite-enabled). After upgrading to GCC 4.5.1-r1 this error sprang up. Personally I can't confirm this, I did upgrade straight to 4.5.1-r1, but it'd be nice if someone could test our patchset.

PyQt4 has been built successfully here, but www-client/links fails.
Comment 15 Morozov Alexandr 2010-11-28 18:44:06 UTC
I successfuly build x11-libs/cairo-1.10.0-r3 with sys-devel/gcc-4.5.1 and CFLAGS="-O2 -march=native -pipe -msse4.1 -floop-interchange -floop-strip-mine -floop-block" in October, 13.
Comment 16 saellaven 2010-11-29 08:01:21 UTC
Based on someone post in the gcc bugzilla that suggested it was working as of the 20101104 gcc snapshot, I just did some manual bisecting. There appears to be 3 patches added just before gcc-4.5.1-r1 was unmasked in portage:

20_all_gcc-4.5-fno-strict-overflow.patch
49_all_gcc-4.5-pr46491-kernel-miscompile.patch
90_all_gcc-4.5-graphite-ICE.patch

removal of all 3 resulted in a gcc that would compile cairo without ICE. 

I then dropped just the graphite-ICE patch. Result: successful compile
I then dropped just the pr46491-kernel-miscompile. Result: ICE
I then dropped just the fno-strict-overflow patch. Result: ICE

90_all_gcc-4.5-graphite-ICE.patch points to:
https://bugs.gentoo.org/345861
http://gcc.gnu.org/PR45314

Comment 17 saellaven 2010-11-29 17:52:38 UTC
Over in the gcc bug, I've confirmed that reverting

90_all_gcc-4.5-graphite-ICE.patch / http://gcc.gnu.org/PR45314

in the vanilla gcc snapshot fixes the problem as well.
Comment 18 Ryan Hill (RETIRED) gentoo-dev 2010-11-29 19:32:28 UTC
Created attachment 255867 [details, diff]
90_all_gcc-4.5-graphite-ICE.patch

Thanks for investigating.  Here's the respun patch.
Comment 19 saellaven 2010-11-29 20:16:37 UTC
confirmation here that vanilla gcc snapshot plus HJ Lu's patch from the gcc bug works. I'm assuming that's what the respun patch is.
Comment 20 Ryan Hill (RETIRED) gentoo-dev 2010-11-29 20:33:29 UTC
*** Bug 346903 has been marked as a duplicate of this bug. ***
Comment 21 Ryan Hill (RETIRED) gentoo-dev 2010-11-29 20:39:51 UTC
Released in patchset 1.4.  Wait an hour, sync, and rebuild gcc-4.5.1-r1.
Comment 22 Sergey Ilinykh 2010-11-30 07:58:10 UTC
i can confirm

dev-libs/icu
media-libs/libtheora
x11-libs/cairo

compiled w/o errors.
but PyQt4 still fails. so i'll report this as another graphite-ICE bug =)