Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 311595 - sys-devel/gcc-4.4.4-r2: ICE on media-video/mkvtoolnix-3.3.0[-flac] when pre-processor flags are given at command-line
Summary: sys-devel/gcc-4.4.4-r2: ICE on media-video/mkvtoolnix-3.3.0[-flac] when pre-p...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.4
  Show dependency tree
 
Reported: 2010-03-27 10:29 UTC by badboy
Modified: 2011-06-11 23:06 UTC (History)
7 users (show)

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 badboy 2010-03-27 10:29:34 UTC
Fails to compile. Is it because make is executed with STRIP=true?

Reproducible: Always

Steps to Reproduce:
1. emerge =media-video/mkvtoolnix-3.3.0
2.
3.

Actual Results:  
Fails to compile

Expected Results:  
Should compile

Build log:
 * CPV:  media-video/mkvtoolnix-3.3.0
 * REPO: gentoo
 * USE:  bzip2 elibc_glibc kernel_linux qt4 userland_GNU x86
>>> Unpacking source...
>>> Unpacking mkvtoolnix-3.3.0.tar.bz2 to /var/tmp/portage/media-video/mkvtoolnix-3.3.0/work
 * Running eautoreconf in '/var/tmp/portage/media-video/mkvtoolnix-3.3.0/work/mkvtoolnix-3.3.
0' ...
 * Running aclocal ...                                                                           [ ok ]
 * Running autoconf ...                                                                          [ ok ]
 * Running autoheader ...                                                                        [ ok ]
>>> Source unpacked in /var/tmp/portage/media-video/mkvtoolnix-3.3.0/work
>>> Compiling source in /var/tmp/portage/media-video/mkvtoolnix-3.3.0/work/mkvtoolnix-3.3.0 ...
 * econf: updating mkvtoolnix-3.3.0/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating mkvtoolnix-3.3.0/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --
infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-lzo -
-enable-bz2 --disable-wxwidgets --disable-debug --without-flac --enable-qt --with-boost-regex=boost_reg
ex --with-boost-filesystem=boost_filesystem --with-boost-system=boost_system
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking whether i686-pc-linux-gnu-gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for i686-pc-linux-gnu-g++... i686-pc-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether i686-pc-linux-gnu-g++ accepts -g... yes
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib
checking for i686-pc-linux-gnu-strip... i686-pc-linux-gnu-strip
checking for i686-pc-linux-gnu-ar... i686-pc-linux-gnu-ar
checking for i686-pc-linux-gnu-ld... i686-pc-linux-gnu-ld
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for vsscanf... yes
checking gcc version... 4.4.3
checking whether the byte order is big-endian... no
checking if being compiled with mingw32... no
checking for int64_t... yes
checking for uint64_t... yes
checking size of int... 4
checking size of long... 4
checking size of long long... 8
checking for PRId64 and PRIu64... yes
checking for posix_fadvise... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for iconv... yes
checking for iconv declaration... install-shextern size_t iconv (iconv_t cd, char * *inbuf, size_t *inb
ytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo... yes
checking for ogg_sync_init in -logg... yes
checking ogg/ogg.h usability... yes
checking ogg/ogg.h presence... yes
checking for ogg/ogg.h... yes
checking for vorbis_synthesis_init in -lvorbis... yes
checking vorbis/codec.h usability... yes
checking vorbis/codec.h presence... yes
checking for vorbis/codec.h... yes
checking for libEBML headers version >= 0.7.7... yes
checking if linking against libEBML works and if it requires -DEBML_DLL... yes, without -DEBML_DLL
checking for libMatroska headers version >= 0.8.1... yes
checking if linking against libMatroska works and if it requires -DMATROSKA_DLL... yes, without -MATROS
KA_DLL
checking for XML_ParserCreate in -lexpat... yes
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking for zlibVersion in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for BZ2_bzCompress in -lbz2... yes
checking bzlib.h usability... yes
checking bzlib.h presence... yes
checking for bzlib.h... yes
*** Not checking for wxWidgets: disabled by user request
checking for moc-qt4... no
checking for moc... /usr/bin/moc
checking for the Qt version /usr/bin/moc uses... 4.6.2
checking for uic-qt4... no
checking for uic... /usr/bin/uic
checking for the Qt version /usr/bin/uic uses... 4.6.2
checking for Qt 4.0.0 or newer... yes
checking for magic_open in -lmagic... yes
checking magic.h usability... yes
checking magic.h presence... yes
checking for magic.h... yes
checking for boostlib >= 1.34.0... yes
checking whether the Boost::System library is available... yes
checking for exit in -lboost_system... yes
checking whether the Boost::Filesystem library is available... yes
checking for exit in -lboost_filesystem... yes
checking whether the Boost::Regex library is available... yes
checking for main in -lboost_regex... yes
checking which boost/foreach.hpp to use... system
checking for etags... no
checking for xsltproc... /usr/bin/xsltproc
checking whether xsltproc works... no
checking POSIX termios... yes
checking whether termios.h defines TIOCGWINSZ... no
checking whether sys/ioctl.h defines TIOCGWINSZ... yes
checking for po4a... no
checking for po4a-translate... no
checking for gettext... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking the translations to install... 
checking the manpage translation languages to install... ja zh_CN 
checking the mmg guide translation languages to install... en zh_CN 
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating doc/man/Makefile
config.status: creating doc/guide/Makefile
config.status: creating doc/guide/en/Makefile
config.status: creating lib/avilib-0.6.10/Makefile
config.status: creating lib/librmff/Makefile
config.status: creating src/Makefile
config.status: creating src/common/Makefile
config.status: creating src/common/chapters/Makefile
config.status: creating src/common/strings/Makefile
config.status: creating src/common/tags/Makefile
config.status: creating src/common/xml/Makefile
config.status: creating src/input/Makefile
config.status: creating src/output/Makefile
config.status: creating src/mpegparser/Makefile
config.status: creating src/mmg/Makefile
config.status: creating src/mmg/header_editor/Makefile
config.status: creating src/mmg/options/Makefile
config.status: creating src/mmg/tabs/Makefile
config.status: creating src/extract/Makefile
config.status: creating src/merge/Makefile
config.status: creating src/info/Makefile
config.status: creating src/propedit/Makefile
config.status: creating po/Makefile
config.status: creating config.h

The mkvtoolnix configuration is complete.
Optional features that are built: 
   * BZ2 compression
   * GUIs (Qt version)
   * libMagic file type detection
   * translations (gettext)
Optional features that are NOT built: 
   * FLAC audio
   * LZO compression
   * GUIs (wxWidgets version)
make -j3 STRIP=true 
     CXX  src/common/common.h
     UIC  src/info/ui/mainwindow.ui
     MOC  src/info/qt_ui.h
     MOC  src/info/rightclick_tree_widget.h
    GREP  doc/guide/en/mkvmerge-gui.hhc
    GREP  doc/guide/zh_CN/mkvmerge-gui.hhc
     CXX  src/info/qt_ui.moc.cpp
     CXX  src/info/rightclick_tree_widget.moc.cpp
     CXX  src/common/aac.cpp
     CXX  src/common/ac3.cpp
     CXX  src/common/base64.cpp
     CXX  src/common/bitvalue.cpp
     CXX  src/common/checksums.cpp
     CXX  src/common/cli_parser.cpp
     CXX  src/common/command_line.cpp
     CXX  src/common/common.cpp
     CXX  src/common/compression.cpp
     CXX  src/common/debugging.cpp
     CXX  src/common/dirac.cpp
     CXX  src/common/dts.cpp
     CXX  src/common/ebml.cpp
     CXX  src/common/endian.cpp
     CXX  src/common/extern_data.cpp
     CXX  src/common/fs_sys_helpers.cpp
     CXX  src/common/hacks.cpp
     CXX  src/common/id3.cpp
     CXX  src/common/iso639.cpp
     CXX  src/common/kate.cpp
     CXX  src/common/kax_analyzer.cpp
     CXX  src/common/kax_file.cpp
     CXX  src/common/locale.cpp
     CXX  src/common/locale_string.cpp
     CXX  src/common/math.cpp
     CXX  src/common/memory.cpp
     CXX  src/common/mm_io.cpp
     CXX  src/common/mm_multi_file_io.cpp
     CXX  src/common/mp3.cpp
     CXX  src/common/mpeg1_2.cpp
     CXX  src/common/mpeg4_p10.cpp
     CXX  src/common/mpeg4_p2.cpp
     CXX  src/common/output.cpp
     CXX  src/common/property_element.cpp
     CXX  src/common/random.cpp
     CXX  src/common/segmentinfo.cpp
     CXX  src/common/segmentinfo_parser.cpp
     CXX  src/common/segment_tracks.cpp
     CXX  src/common/terminal.cpp
     CXX  src/common/theora.cpp
     CXX  src/common/translation.cpp
     CXX  src/common/truehd.cpp
     CXX  src/common/unique_numbers.cpp
     CXX  src/common/vc1.cpp
     CXX  src/common/version.cpp
     CXX  src/common/vint.cpp
     CXX  src/common/wavpack.cpp
     CXX  src/common/win_itaskbarlist3.cpp
     CXX  src/common/chapters/chapters.cpp
     CXX  src/common/chapters/cue_parser.cpp
     CXX  src/common/chapters/writer.cpp
     CXX  src/common/chapters/xml_parser.cpp
     CXX  src/common/strings/editing.cpp
     CXX  src/common/strings/formatting.cpp
     CXX  src/common/strings/parsing.cpp
     CXX  src/common/strings/utf8.cpp
     CXX  src/common/tags/parser.cpp
     CXX  src/common/tags/tags.cpp
     CXX  src/common/tags/writer.cpp
     CXX  src/common/xml/element_mapping.cpp
     CXX  src/common/xml/element_parser.cpp
     CXX  src/common/xml/element_writer.cpp
     CXX  src/common/xml/xml.cpp
     CXX  src/input/flac_common.cpp
cc1plus: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
make: *** [src/input/flac_common.o] Error 1
make: *** Waiting for unfinished jobs....
 * ERROR: media-video/mkvtoolnix-3.3.0 failed:
 *   make failed
 * 
 * Call stack:
 *     ebuild.sh, line  48:  Called src_compile
 *   environment, line 3832:  Called die
 * The specific snippet of code:
 *       emake STRIP="true" || die "make failed"
 * 
 * If you need support, post the output of 'emerge --info =media-video/mkvtoolnix-3.3.0',
 * the complete build log and the output of 'emerge -pqv =media-video/mkvtoolnix-3.3.0'.
 * The complete build log is located at '/var/tmp/portage/media-video/mkvtoolnix-3.3.0/temp/b
uild.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/mkvtoolnix-3.3.0/t
emp/environment'.
 * S: '/var/tmp/portage/media-video/mkvtoolnix-3.3.0/work/mkvtoolnix-3.3.0'



emerge --info =media-video/mkvtoolnix-3.3.0

Portage 2.2_rc67 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.11-r1, 2.6.33-ck1 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.33-ck1-i686-Intel-R-_Pentium-R-_4_CPU_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 27 Mar 2010 05:45:02 +0000
app-shells/bash:     4.1_p2-r1
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5-r1
dev-util/cmake:      2.8.1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.pw.edu.pl/ http://gentoo.prz.rzeszow.pl http://de-mirror.org/distro/gentoo/"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/roslin /var/lib/layman/x11 /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa bash-completion berkdb bzip2 cli cracklib crypt cups cxx dri dvd dvdr exif ffmpeg fortran gdbm gif gpm iconv ipod ipv6 jpeg kde kms lm_sensors mmx modules mp3 mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl png pppd python qt3support qt4 readline reflection session smp spell spl sse sse2 ssl svg sysfs tcpd threads truetype unicode vim-syntax win32codecs x86 xorg zlib" ALSA_CARDS="snd_hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Hanno Zysik (geki) 2010-03-28 00:36:32 UTC
I am not the only one seeing this, phew.
Comment 2 manwe 2010-03-28 00:43:20 UTC
Same thing, segfault in flac_common.cpp. USE="bzip2 -debug -doc -flac -lzo -qt4 -wxwidgets"

Portage 2.2_rc67 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.33-zen1-nyth-v14 x86_64)
=================================================================
System uname: Linux-2.6.33-zen1-nyth-v14-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 27 Mar 2010 14:30:01 +0000
app-shells/bash:     4.1_p2-r1
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5-r1
dev-python/pycrypto: 2.1.0
dev-util/cmake:      2.8.1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ABI="amd64"
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CC="x86_64-pc-linux-gnu-gcc-4.4.3"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-O2 -pipe -march=native"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"


Comment 3 Aleksandr Zagzin 2010-03-29 12:07:29 UTC
compile Ok with:
USE="flac" emerge mkvtoolnix

equery u mkvtoolnix
 * Searching for mkvtoolnix ...
[ Legend : U - flag is set in make.conf       ]
[        : I - package is installed with flag ]
[ Colors : set, unset                         ]
 * Found these USE flags for media-video/mkvtoolnix-3.3.0:
 U I
 + + bzip2     : Use the bzlib compression library
 - - debug     : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see
                 http://www.gentoo.org/proj/en/qa/backtraces.xml
 - - doc       : Adds extra documentation (API, Javadoc, etc)
 - + flac      : Adds support for FLAC: Free Lossless Audio Codec
 - - lzo       : Enables support for lzo compression
 + + qt4       : Adds support for the Qt GUI/Application Toolkit version 4.x
 - - wxwidgets : Adds support for wxWidgets/wxGTK GUI toolkit
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-03-29 13:28:58 UTC
Fun: if I pre-process the file (-E -o foo.i) it does not seem to crash any more…
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-03-29 13:32:26 UTC
yamato mkvtoolnix-3.3.0 # x86_64-pc-linux-gnu-g++ -O3 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=barcelona -O2 -ftracer -ftree-vectorize -g -ggdb -fvisibility-inlines-hidden -DPACKAGE=\"mkvtoolnix\" -DVERSION=\"3.3.0\" -DMTX_LOCALE_DIR=\"/usr/share/locale\" -DMTX_PKG_DATA_DIR=\"/usr/share/mkvtoolnix\"  -I. -Ilib -Ilib/avilib-0.6.10 -Ilib/utf8-cpp/source -Isrc -MMD -c -o src/input/flac_common.o src/input/flac_common.cppcc1plus: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
yamato mkvtoolnix-3.3.0 # x86_64-pc-linux-gnu-g++ -O3 -march=barcelona -O2 -ftracer -ftree-vectorize -g -ggdb -fvisibility-inlines-hidden -DPACKAGE=\"mkvtoolnix\" -DVERSION=\"3.3.0\" -DMTX_LOCALE_DIR=\"/usr/share/locale\" -DMTX_PKG_DATA_DIR=\"/usr/share/mkvtoolnix\"  -I. -Ilib -Ilib/avilib-0.6.10 -Ilib/utf8-cpp/source -Isrc -MMD -c -o src/input/flac_common.o src/input/flac_common.cpp

what the heck! if I drop the LFS definitions on CPPFLAGS it works _fine_.
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-03-29 13:39:06 UTC
x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=barcelona -O -DPACKAGE=\"mkvtoolnix\" -DVERSION=\"3.3.0\" -DMTX_LOCALE_DIR=\"/usr/share/locale\" -DMTX_PKG_DATA_DIR=\"/usr/share/mkvtoolnix\" -Isrc -c -o src/input/flac_common.o src/input/flac_common.cpp

It seems to be related to the way the preprocessor works, as dropping any more of these flags causes the compiler to proceed (or, in case of -Isrc, to output an error for missing includes — there are still missing includes and it'll fail without them, but it won't report them unless I drop a define, the march or the optimisations.
Comment 7 SpanKY gentoo-dev 2010-06-10 03:31:50 UTC
someone post the exact file as an attachment and the required command line to make gcc ICE
Comment 8 Christian Schmidt 2010-07-18 17:47:08 UTC
Some observations:
- happens with mkvtoolnix up to 4.1.1
- happens on my opteron machines (64bit) with gcc-4.3.4/gcc-4.4.3
- compilation succeeds if #include "common/common_pch.h" is removed/commented out in src/input/flac_common.cpp
- compilation succeeds with -O0 or -Os, not -O1, -O2 or -O3
- compilation succeeds with optimizations if I remove either -mfpmath=sse or -march=athlon64

As a workaround I'd suggest a patch to remove the #include line, however gcc devels should look into why it crashed. It compiled straight on my laptop (Intel based 64bit system), which seems to indicate that reproducing the crash is not as easy. In a chat with beandog he said that enabling qt4 fixes the compile; I did not enable it, however qt is installed on my system.

emerge --info for the failing system:
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.33-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.33-gentoo-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_8354-with-gentoo-1.12.13
Timestamp of tree: Sun, 18 Jul 2010 16:40:01 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=athlon64 -fomit-frame-pointer -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/modules /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -pipe -march=athlon64 -fomit-frame-pointer -mfpmath=sse"
DISTDIR="/usr/rportage/distfiles"
EMERGE_DEFAULT_OPTS="-j4 --load-average=32 --keep-going"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB en_US de"
MAKEOPTS="-j6"
PKGDIR="/usr/rportage/packages/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/berkano /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext a52 aac amd64 berkdb bzip2 crypt dts encode faac faad ffmpeg gdbm gpm hardened httpd ipv6 ithreads jpeg lm_sensors matroska mmx mmx2 mmxext mp3 mpeg multilib ncurses nls no-old-linux ogg pam pic png postproc readline sensord slang sse sse2 ssl stream threads unicode x264 xinetd xorg zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB en_US de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="xgi" 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" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 Søren Færløv 2010-09-10 09:11:02 UTC
This bug is still valid for 4.2.0 on an Atom D510 based system. Furthermore enabling the flac useflag makes the error go away.

Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.34-gentoo-r6-i686-Intel-R-_Atom-TM-_CPU_D510_@_1.66GHz-with-gentoo-1.12.13
Timestamp of tree: Wed, 08 Sep 2010 18:50:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -msse3 -mfpmath=sse -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=core2 -msse3 -mfpmath=sse -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distcc distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.klid.dk/gentoo/               ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo          http://mirror.gentoo.no/                rsync://ftp.df.lth.se/pub/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.se.gentoo.org/gentoo-portage"
USE="acl acpi berkdb bzip2 cli cracklib crypt cups cxx dri dvb faac faad flac gdbm gpm iconv libextractor mmx mmxext modules mp3 mudflap ncurses network nls nptl nptlonly openmp pam pcre perl pppd python qt4 readline reflection session sse sse2 sse3 ssl ssse3 sysfs tcpd theora threads transcode unicode v4l v4l2 vhosts vorbis x264 x86 xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 10 Tim Harder gentoo-dev 2011-05-28 12:48:50 UTC
Closing since the older versions of mkvtoolnix with this issue have been removed from the tree.
Comment 11 SpanKY gentoo-dev 2011-06-11 23:06:10 UTC
the compiler still has a bug in it, but no one has yet to post the .i file for people to test with ...