Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 138958 - gcc crash while compiling media-gfx/inkscape-0.44, presumably because of extreme optimization settings
Summary: gcc crash while compiling media-gfx/inkscape-0.44, presumably because of extr...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-02 23:18 UTC by Alexander Vasilev
Modified: 2006-07-02 23:53 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Vasilev 2006-07-02 23:18:36 UTC
Recently I switched to GCC 4.1.1. And, following the instructions on Gentoo site, I rebuilding whole system via 'emerge -e world' (emerge -e system was done just before and ended without any errors). 

Rebuild process failed while compiling ebuild media-gfx/inkscape-0.44 with the following messages:
------------------ script ----------------------
if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/freetype2  -pthread -DORBIT2=1 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0    -I/usr/include/freetype2   -DPOTRACE=\"potrace\" -pthread -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/atkmm-1.6 -I/usr/include/atk-1.0 -I/usr/include/libxml2 -I/usr/include/gtkspell-2.0   -I../cxxtest    -Wall -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch  -Wno-unused-parameter -O3 -mtune=prescott -march=prescott -fomit-frame-pointer -mfpmath=sse -msse -msse2 -pipe  -funroll-all-loops -ffast-math -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time -MT text-editing.o -MD -MP -MF ".deps/text-editing.Tpo" \
          -c -o text-editing.o `test -f 'text-editing.cpp' || echo './'`text-editing.cpp; \
        then mv -f ".deps/text-editing.Tpo" ".deps/text-editing.Po"; \
        else rm -f ".deps/text-editing.Tpo"; exit 1; \
        fi
text-editing.cpp: In function 
Comment 1 Alexander Vasilev 2006-07-02 23:18:36 UTC
Recently I switched to GCC 4.1.1. And, following the instructions on Gentoo site, I rebuilding whole system via 'emerge -e world' (emerge -e system was done just before and ended without any errors). 

Rebuild process failed while compiling ebuild media-gfx/inkscape-0.44 with the following messages:
------------------ script ----------------------
if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/freetype2  -pthread -DORBIT2=1 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0    -I/usr/include/freetype2   -DPOTRACE=\"potrace\" -pthread -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/atkmm-1.6 -I/usr/include/atk-1.0 -I/usr/include/libxml2 -I/usr/include/gtkspell-2.0   -I../cxxtest    -Wall -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch  -Wno-unused-parameter -O3 -mtune=prescott -march=prescott -fomit-frame-pointer -mfpmath=sse -msse -msse2 -pipe  -funroll-all-loops -ffast-math -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time -MT text-editing.o -MD -MP -MF ".deps/text-editing.Tpo" \
          -c -o text-editing.o `test -f 'text-editing.cpp' || echo './'`text-editing.cpp; \
        then mv -f ".deps/text-editing.Tpo" ".deps/text-editing.Po"; \
        else rm -f ".deps/text-editing.Tpo"; exit 1; \
        fi
text-editing.cpp: In function void sp_te_adjust_linespacing_screen(SPItem*, const Inkscape::Text::Layout::iterator&, const Inkscape::Text::Layout::iterator&, SPDesktop*, gdouble):
text-editing.cpp:1005: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /usr/tmp/portage/inkscape-0.44/temp/cccvdGui.out file, please attach this to your bugreport.
make[2]: *** [text-editing.o] Error 1
make[2]: Leaving directory `/usr/tmp/portage/inkscape-0.44/work/inkscape-0.44/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/tmp/portage/inkscape-0.44/work/inkscape-0.44'
make: *** [all] Error 2

!!! ERROR: media-gfx/inkscape-0.44 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  ebuild.sh, line 1254:   Called gnome2_src_compile
  gnome2.eclass, line 64:   Called die

!!! compile failure
!!! If you need support, post the topmost build error, and the call stack if relevant.
------------------ script ----------------------

Preprocessed source attached.



emerge --info:
Gentoo Base System version 1.12.1
Portage 2.1.1_pre1-r5 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.16-gentoo-r3-sashok i686)
=================================================================
System uname: 2.6.16-gentoo-r3-sashok i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -mtune=prescott -march=prescott -fomit-frame-pointer -mfpmath=sse -msse -msse2 -pipe  -funroll-all-loops -ffast-math -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time"
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/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O3 -mtune=prescott -march=prescott -fomit-frame-pointer -mfpmath=sse -msse -msse2 -pipe  -funroll-all-loops -ffast-math -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO http://mirror.hamakor.org.il/pub/mirrors/gentoo/"
LANG="ru_RU.UTF-8"
LINGUAS="en ru"
PKGDIR="/usr/portage/packages/x86-p4"
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'"
PORTAGE_TMPDIR="/usr/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local /opt/portage/canon /opt/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acl alsa amr apache2 apm arts audacious avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr cjk cli crypt cups curl dbus dri dvd dvdr eds emboss encode esd examples fam ffmpeg flac foomaticdb fortran gdbm gif glitz gnome gnutls gpm gstreamer gtk2 guile hal imlib isdnlog jabber jack jpeg kde kdeenablefinal kdehiddenvisibility ldap leim libg++ libwww mad mikmod mmx mmx2 motif mp3 mpeg ncurses nls nptl offensive ogg opengl oss pam pcre pdflib perl png postgres pppd python qt3 qt4 quicktime readline reflection ruby samba sdl session slang spell spl sse sse2 ssl tcltk tcpd theora tiff truetype truetype-fonts type1-fonts ucs2 udev unicode usb vhosts vorbis win32codecs xine xinerama xml xml2 xmms xorg xv zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux linguas_en linguas_ru userland_GNU video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Alexander Vasilev 2006-07-02 23:30:12 UTC
Couldn't attach prepocessed source (file too long), so it can be found here: http://nix.pp.ru/gcc-inkscape-crash.preprocessed
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-07-02 23:33:26 UTC
Uhm, is it reproducable, i.e. - does it fail again at *exactly* the same place? Also, try with sane C[XX]FLAGS, like "-O3 -march=prescott -fomit-frame-pointer -pipe"
Comment 4 Alexander Vasilev 2006-07-02 23:53:05 UTC
It is reproducable. 3 times in a row.

Rebuild with sane FLAGS will be done after emerge -e world.