Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 583266 (PR68470) - [ICE/4.9] sys-devel/gcc: building www-client/firefox[debug] on musl-x86 fails: ../gfx/2d/DrawTargetTiled.cpp: In member function 'virtual void mozilla::gfx::DrawTargetTiled::PopClip()'
Summary: [ICE/4.9] sys-devel/gcc: building www-client/firefox[debug] on musl-x86 fails...
Status: RESOLVED OBSOLETE
Alias: PR68470
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://gcc.gnu.org/PR68470
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting 531846 559788
  Show dependency tree
 
Reported: 2016-05-17 09:37 UTC by tt_1
Modified: 2018-09-23 18:52 UTC (History)
6 users (show)

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


Attachments
compressed build.log (firefox-46.0-x86-compiler-bug-last-3200-lines.log.gz,58.63 KB, application/octet-stream)
2016-05-17 09:37 UTC, tt_1
Details
full build.log (firefox-46.0-x86-compiler-bug.log.gz,144.11 KB, application/octet-stream)
2016-05-17 09:39 UTC, tt_1
Details
output of emerge --info (recent-emerge.info,4.96 KB, text/plain)
2016-05-17 09:40 UTC, tt_1
Details
preprocessed source (Unified_cpp_gfx_2d0.ii.gz,387.50 KB, application/octet-stream)
2016-05-17 09:48 UTC, tt_1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tt_1 2016-05-17 09:37:26 UTC
Created attachment 434498 [details]
compressed build.log

I am hitting the following error with gcc-4.9.3-r99::musl on x86 with >firefox-45.0 and debug useflag + debug cflags -ggdb 

In file included from /var/tmp/portage/www-client/firefox-46.0/work/firefox-46.0/ff/gfx/2d/Unified_cpp_gfx_2d0.cpp:83:0:
/var/tmp/portage/www-client/firefox-46.0/work/firefox-46.0/gfx/2d/DrawTargetTiled.cpp: In member function 'virtual void mozilla::gfx::DrawTargetTiled::PopClip()':
/var/tmp/portage/www-client/firefox-46.0/work/firefox-46.0/gfx/2d/DrawTargetTiled.cpp:158:1: internal compiler error: Segmentation fault
 DrawTargetTiled::PopClip()
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
/var/tmp/portage/www-client/firefox-46.0/work/firefox-46.0/config/rules.mk:967: recipe for target 'Unified_cpp_gfx_2d0.o' failed
make[4]: *** [Unified_cpp_gfx_2d0.o] Error 1

gcc-4.8.5-r99::musl is not affected 

non debug builds are neither affected 

the relevant part of the build log is attached
Comment 1 tt_1 2016-05-17 09:39:15 UTC
Created attachment 434500 [details]
full build.log

This is the full build.log. It may be a bit more difficult to read due to some encoding errors in the text.
Comment 2 tt_1 2016-05-17 09:40:00 UTC
Created attachment 434504 [details]
output of emerge --info
Comment 3 tt_1 2016-05-17 09:48:42 UTC
Created attachment 434508 [details]
preprocessed source

The error can be reproduced by using 

i686-gentoo-linux-musl-g++ -o Unified_cpp_gfx_2d0.o -c -fPIC  -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wtype-limits -Wunreachable-code -Wcast-align -Wno-invalid-offsetof -march=core2 -O2 -pipe -ggdb -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -pipe  -g -O2 -fno-omit-frame-pointer Unified_cpp_gfx_2d0.ii 

It may also occur on a x86-glibc system, but I don't have one at hand to verify. However, the segault goes away if passing anything smaller than -O2.
Comment 4 tt_1 2016-05-17 09:51:08 UTC
There is already a bug open on upstream bugzilla, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68470 - also it seems to have been fixed on recent trunk https://gcc.gnu.org/viewcvs?rev=231108&root=gcc&view=rev , so is anyone feeling comfortable with backporting it to stable in-tree gcc-4.9.3? Should not be a big deal, the first chunk needs a little adjustment, but I don't know wether it is safe to do so.
Comment 5 chaoscommander 2016-07-14 15:01:14 UTC
Bug still present in/with Firefox 47.0.1 and gcc 4.9.3. on x86_64. Thanks for the remark that this only affects debug builds. This way I can at least get FF to update.
Comment 6 tt_1 2016-08-13 09:19:12 UTC
gcc-4.9.4 is out, but as I am reading through the change log it seems as if both bugs have not made it into this release? And there will be no more releases of 4.9, so one has to upgrade to gcc 5?
Comment 7 tt_1 2016-10-17 08:58:49 UTC
This should be fixed in gcc-4.9.4-r100 in the overlay, for your information only.
Comment 8 Martin Mokrejš 2017-05-17 08:13:59 UTC
I am getting this too with gcc-4.9.4. Please bring the patch into the main portage tree.

/usr/bin/x86_64-pc-linux-gnu-g++ -std=gnu++11 -o Unified_cpp_widget_gtk1.o -c -I/scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/ff/dist/stl_wrappers -I/scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/ff/dist/system_wrappers -include /scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/config/gcc_hidden.h -DDEBUG=1 -DTRACING=1 -DOS_POSIX=1 -DOS_LINUX=1 -DCAIRO_GFX '-DMOZ_APP_NAME="firefox"' -DSTATIC_EXPORTABLE_JS_API -DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -I/scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/widget/gtk -I/scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/ff/widget/gtk -I/scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/ff/ipc/ipdl/_ipdlheaders -I/scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/ipc/chromium/src -I/scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/ipc/glue -I/scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/layout/generic -I/scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/layout/xul -I/scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/other-licenses/atk-1.0 -I/scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/widget -I/scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/widget/x11 -I/scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/ff/dist/include  -I/usr/include/nspr -I/usr/include/nss       -fPIC  -DMOZILLA_CLIENT -include /scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/ff/mozilla-config.h -MD -MP -MF .deps/Unified_cpp_widget_gtk1.o.pp  -Wall -Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -pipe -maes -mpclmul -mpopcnt -mavx -march=native -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions -fno-math-errno -pthread -pipe  -g -O2 -fno-omit-frame-pointer   -I/usr/include/startup-notification-1.0 -I/scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/widget/gtk/compat-gtk3 -pthread -I/usr/include/gtk-3.0/unix-print -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wno-error=shadow  /scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/ff/widget/gtk/Unified_cpp_widget_gtk1.cpp
In file included from /scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/ff/gfx/2d/Unified_cpp_gfx_2d0.cpp:92:0:
/scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/gfx/2d/DrawTargetTiled.cpp: In member function 'virtual void mozilla::gfx::DrawTargetTiled::PopClip()':
/scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/gfx/2d/DrawTargetTiled.cpp:163:1: internal compiler error: Segmentation fault
 DrawTargetTiled::PopClip()
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
make[4]: *** [/scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/config/rules.mk:995: Unified_cpp_gfx_2d0.o] Error 1
make[4]: Leaving directory '/scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/ff/gfx/2d'
make[3]: *** [/scratch/var/tmp/portage/www-client/firefox-53.0/work/firefox-53.0/config/recurse.mk:71: gfx/2d/target] Error 2


# emerge --info '=www-client/firefox-53.0::gentoo'
Portage 2.3.5 (python 2.7.13-final-0, default/linux/amd64/13.0, gcc-4.9.4, glibc-2.24-r1, 4.10.12-default-pciehp x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.10.12-default-pciehp-x86_64-Intel-R-_Core-TM-_i7-2640M_CPU_@_2.80GHz-with-gentoo-2.3
KiB Mem:    16366648 total,   7038088 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 16 May 2017 11:30:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.5::gentoo, 3.5.3::gentoo, 3.6.1::gentoo
dev-util/cmake:           3.8.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.24.2::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.26.1::gentoo, 2.27::gentoo
sys-devel/gcc:            4.3.6-r1::gentoo, 4.4.7::gentoo, 4.6.4::gentoo, 4.7.4::gentoo, 4.8.5::gentoo, 4.9.4::gentoo, 5.3.0::gentoo, 5.4.0-r3::gentoo, 6.2.0-r1::gentoo, 6.3.0::gentoo, 7.1.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r1::gentoo
Repositories:

gentoo
    location: /scratch/usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

science
    location: /scratch/mmokrejs/proj/sci
    masters: gentoo
    priority: 0

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

haskell
    location: /var/lib/layman/haskell
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE IBM-J1.6 skype-eula Nero-EULA-US AdobeFlash-10.3 skype-4.0.0.7-copyright AdobeFlash-11.x OPERA-2014 RAR"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -maes -mpclmul -mpopcnt -mavx -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.2/conf /usr/share/maven-bin-3.3/conf /var/bind /var/lib/hsqldb /var/spool/torque"
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="-O2 -pipe -maes -mpclmul -mpopcnt -mavx -march=native"
DISTDIR="/scratch/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.wheel.sk/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.web4u.cz/ rsync://gentoo.mirror.dkm.cz/gentoo/ ftp://gentoo.mirror.web4u.cz/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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 --exclude=/.git"
PORTAGE_TMPDIR="/scratch/var/tmp"
USE="R X acpi alsa amd64 amr apache apache2 apulse asm avx berkdb bindist bluetooth boost bzip2 cairo cgi cli coin consolekit cracklib crypt cryptlib cryptsetup cups cxx dbus device-mapper dhcp directfb dri drm dvd emboss encode fax fbcon ffmpeg flac fontconfig fortran gbm gcrypt gd gdbm geoip gimp glpk gmp gnutls gpm gtk hal hpijs hwdb iconv id3tag imaging innodb inotify java javafx javascript jce jpeg jpg js jscript keymap ladspa lapack laptop lcms libnotify lm_sensors mad matroska mmx modemmanager modules mpi mpich2 multicore multilib multimedia mysql ncurses networkmanager nfs nls nptl nptlonly nscd ntfs ntfsdecrypt ntfsprogs objc ocr ogg opengl openmp pam parport pcre pdf pdfimport pdl perl php plplot png policykit polkit postproc postscript ppds ppp pppd pptx python qt3support qt4 qt5 readline rendering resolvconf samba scanner sctp seccomp server session sha512 slideshow sna sndfile sqlite sse sse2 sse3 sse4_1 sse4_2 ssh ssh-agent ssl ssse3 startup-notification suexec svg syslog tcl tcpd threads tiff tk truetype udev unicode upower usb v4l v4l2 vim-syntax vnc wavpack wifi x11 xattr xcb xml xorg xrandr xv xvid xvmc zlib" ABI_X86="64 32" 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="alias authz_host auth_basic auth_digest cgi cgid deflate dir env filter include info mem_cache mime mime_magic negotiation remoteip setenvif status userdir vhost_alias rewrite usertrack cache file_cache disk_cache charset_lite log_config log_forensic" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en-US en en-GB cs" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en_GB en cs" OFFICE_IMPLEMENTATION="libreoffice" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby20 ruby21 ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="vesa vmware fbdev intel i915 i965" 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"
USE_PYTHON="2.7"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 Martin Mokrejš 2017-05-17 08:16:07 UTC
I forgot to add that I have USE=debug too.

# emerge -pqv '=www-client/firefox-53.0::gentoo'
[ebuild     U ] www-client/firefox-53.0 [50.1.0] USE="bindist custom-cflags custom-optimization debug gmp-autoupdate jemalloc startup-notification* system-icu system-jpeg system-libvpx system-sqlite wifi -dbus -hardened -hwaccel* -jack (-neon) -nsplugin% -pgo -pulseaudio (-rust) (-selinux) (-system-cairo) -system-harfbuzz -system-libevent {-test} (-gtk2%) (-jit%*) (-skia%*)" L10N="cs en-GB -ach -af -an -ar -as -ast -az -bg -bn-BD -bn-IN -br -bs -ca -cak -cy -da -de -dsb -el -en-ZA -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -id -is -it -ja -ka% -kab% -kk -km -kn -ko -lij -lt -lv -mai -mk -ml -mr -ms -nb -nl -nn -or -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN -zh-TW (-be%)"
Comment 10 Martin Mokrejš 2017-05-17 08:18:04 UTC
And same with seamonkey-2.48_beta1:

/usr/bin/x86_64-pc-linux-gnu-g++ -std=gnu++11 -o Unified_cpp_gfx_2d0.o -c -I/scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/seamonk/dist/stl_wrappers -I/scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/seamonk/dist/system_wrappers -include /scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/mozilla/config/gcc_hidden.h -DDEBUG=1 -DTRACING=1 -DUSE_SSE2 -DOS_POSIX=1 -DOS_LINUX=1 -DUSE_CAIRO -DMOZ2D_HAS_MOZ_CAIRO -DMOZ_ENABLE_FREETYPE -DSTATIC_EXPORTABLE_JS_API -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -I/scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/mozilla/gfx/2d -I/scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/seamonk/gfx/2d -I/scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/seamonk/ipc/ipdl/_ipdlheaders -I/scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/mozilla/ipc/chromium/src -I/scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/mozilla/ipc/glue -I/scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/mozilla/gfx/skia -I/scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/mozilla/gfx/skia/skia/include/config -I/scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/mozilla/gfx/skia/skia/include/core -I/scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/mozilla/gfx/skia/skia/include/gpu -I/scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/mozilla/gfx/skia/skia/include/utils -I/scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/seamonk/dist/include  -I/usr/include/nspr -I/usr/include/nss       -fPIC  -DMOZILLA_CLIENT -include /scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/seamonk/mozilla-config.h -MD -MP -MF .deps/Unified_cpp_gfx_2d0.o.pp  -Wall -Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -pipe -maes -mpclmul -mpopcnt -mavx -march=native -mno-avx -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions -fno-math-errno -pthread -pipe  -g -O2 -fno-omit-frame-pointer   -Wno-error=shadow -I/scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/seamonk/dist/include/cairo -I/usr/include/freetype2 -I/usr/include/freetype2  /scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/seamonk/gfx/2d/Unified_cpp_gfx_2d0.cpp
In file included from /scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/seamonk/gfx/2d/Unified_cpp_gfx_2d0.cpp:92:0:
/scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/mozilla/gfx/2d/DrawTargetTiled.cpp: In member function 'virtual void mozilla::gfx::DrawTargetTiled::PopClip()':
/scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/mozilla/gfx/2d/DrawTargetTiled.cpp:162:1: internal compiler error: Segmentation fault
 DrawTargetTiled::PopClip()
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
make[4]: *** [/scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/mozilla/config/rules.mk:939: Unified_cpp_gfx_2d0.o] Error 1
make[4]: Leaving directory '/scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/seamonk/gfx/2d'
make[3]: *** [/scratch/var/tmp/portage/www-client/seamonkey-2.48_beta1/work/seamonkey-2.48b1/mozilla/config/recurse.mk:71: gfx/2d/target] Error
Comment 11 tt_1 2017-05-20 09:58:32 UTC
Can you please upgrade to recent stable gcc-5.4.0-r3 and, in case this didn't fix the breakage, open a new bug for glibc profiles? This is a musl only bug, and since musl support isn't official before gcc 6.3 the guys @toolchain won't really take this serious. For musl it is fixed in the overlay anyway.
Comment 12 Jory A. Pratt gentoo-dev 2017-08-26 17:55:25 UTC
If you feel I have closed your bug and it is still a current issue, please reopen and update it completely. We will not work bugs that have no ebuild in tree any longer or can not be reproduced with a current system.

Thank You for your support and understanding
The Mozilla Team
Comment 13 tt_1 2017-09-01 18:17:12 UTC
This is a gcc bug. I'll try to find out wether it has been fixed or backported by upstream in more recent versions of gcc.
Comment 14 Martin Mokrejš 2017-09-20 16:35:30 UTC
Obviously also happens with www-client/seamonkey-2.49.3.0_p0:

/usr/bin/x86_64-pc-linux-gnu-g++ -std=gnu++11 -o UnifiedBindings15.o -c -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/seamonk/dist/stl_wrappers -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/seamonk/dist/system_wrappers -include /scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/config/gcc_hidden.h -DDEBUG=1 -DTRACING=1 -DOS_POSIX=1 -DOS_LINUX=1 -DSTATIC_EXPORTABLE_JS_API -DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/dom/bindings -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/seamonk/dom/bindings -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/seamonk/dist/include/mozilla/dom -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/dom/base -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/dom/battery -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/dom/canvas -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/dom/geolocation -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/dom/html -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/dom/indexedDB -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/dom/media/webaudio -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/dom/media/webspeech/recognition -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/dom/svg -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/dom/workers -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/dom/xbl -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/dom/xml -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/dom/xslt/base -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/dom/xslt/xpath -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/dom/xul -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/js/xpconnect/src -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/js/xpconnect/wrappers -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/layout/generic -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/layout/style -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/layout/xul/tree -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/media/mtransport -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/media/webrtc -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/media/webrtc/signaling/src/common/time_profiling -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/media/webrtc/signaling/src/peerconnection -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/seamonk/ipc/ipdl/_ipdlheaders -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/ipc/chromium/src -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/ipc/glue -I/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/seamonk/dist/include  -I/usr/include/nspr -I/usr/include/nss       -fPIC  -DMOZILLA_CLIENT -include /scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/seamonk/mozilla-config.h -MD -MP -MF .deps/UnifiedBindings15.o.pp  -Wall -Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -pipe -mpclmul -mpopcnt -march=native -ftree-vectorize -mno-avx -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions -fno-math-errno -pthread -pipe  -g -O2 -fno-omit-frame-pointer   -Wno-error=shadow  /scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/seamonk/dom/bindings/UnifiedBindings15.cpp
In file included from /scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/seamonk/gfx/2d/Unified_cpp_gfx_2d0.cpp:92:0:
/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/gfx/2d/DrawTargetTiled.cpp: In member function 'virtual void mozilla::gfx::DrawTargetTiled::PopClip()':
/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/gfx/2d/DrawTargetTiled.cpp:162:1: internal compiler error: Segmentation fault
 DrawTargetTiled::PopClip()
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
make[4]: *** [/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/config/rules.mk:953: Unified_cpp_gfx_2d0.o] Error 1
make[4]: Leaving directory '/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/seamonk/gfx/2d'
make[3]: *** [/scratch/var/tmp/portage/www-client/seamonkey-2.49.3.0_p0/work/thunderbird-52.3.0/mozilla/config/recurse.mk:71: gfx/2d/target] Error 2
Comment 15 tt_1 2017-09-20 17:24:08 UTC
Which gcc are you actually using? emerge --info would be great to know
Comment 16 Martin Mokrejš 2017-09-21 10:42:11 UTC
(In reply to tt_1 from comment #15)
> Which gcc are you actually using? emerge --info would be great to know

x86_64-pc-linux-gnu-4.9.4. I know, newer versions exist but the ABI incompatibility at about 5.3.0 is a problem for me. Not all apps can be compiled with that new compiler. I will stay with gcc-4.9.4 for some longer time.
Comment 17 tt_1 2018-09-23 18:51:26 UTC
gcc-4.9 is gone from the musl overlay, closing.