http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59775
Bug ID: 59775 Summary: internal compiler error: Segmentation fault Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: nheghathivhistha at gmail dot com I am trying to build Libreoffice 4.1.4.3 with current trunk. S=/var/tmp/portage/app-office/libreoffice-4.1.4.2/work/libreoffice-4.1.4.2 && O=$S/solver/unxlngx6.pro && W=$S/workdir/unxlngx6.pro && mkdir -p $W/CxxObject/oox/source/core/ $W/Dep/CxxObject/oox/source/core/ && cd /var/tmp/portage/app-office/libreoffice-4.1.4.2/work/libreoffice-4.1.4.2 && x86_64-pc-linux-gnu-g++ -DCPPU_ENV=gcc3 -DLIBO_INTERNAL_ONLY -DLINUX -DNDEBUG -DOPTIMIZE -DOSL_DEBUG_LEVEL=0 -DSOLAR_JAVA -DSUPD=410 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT -DRTL_USING -DOOX_DLLIMPLEMENTATION -DHAVE_GCC_VISIBILITY_FEATURE -fvisibility=hidden -Wall -Wendif-labels -Wextra -Wundef -Wunused-macros -fmessage-length=0 -fno-common -pipe -fvisibility-inlines-hidden -DLIBO_MERGELIBS -fPIC -Wshadow -Woverloaded-virtual -Wnon-virtual-dtor -std=gnu++0x -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -fPIC -O2 -ggdb -pipe -march=native -mtune=native -flto=4 -fuse-linker-plugin -mno-avx -mno-sse4.2 -mno-3dnow -fno-lto -fno-use-linker-plugin -c $S/oox/source/core/fragmenthandler.cxx -o $W/CxxObject/oox/source/core/fragmenthandler.o -I$S/oox/source/core/ -I$S/include -I$O/inc/external -I$O/inc -I/usr/lib64/icedtea7/include -I/usr/lib64/icedtea7/include/linux -I$S/config_host -I$W/CustomTarget/oox/generated -I$S/oox/inc -I$W/UnoApiHeadersTarget/udkapi/normal -I$W/UnoApiHeadersTarget/offapi/normal -I/usr/include [build CXX] oox/source/core/recordparser.cxx /var/tmp/portage/app-office/libreoffice-4.1.4.2/work/libreoffice-4.1.4.2/oox/source/core/filterdetect.cxx: In member function ‘com::sun::star::uno::Reference<com::sun::star::io::XInputStream> oox::core::FilterDetect::extractUnencryptedPackage(comphelper::MediaDescriptor&) const’: /var/tmp/portage/app-office/libreoffice-4.1.4.2/work/libreoffice-4.1.4.2/oox/source/core/filterdetect.cxx:778:1: internal compiler error: Segmentation fault } // namespace oox ^ /var/tmp/portage/app-office/libreoffice-4.1.4.2/work/libreoffice-4.1.4.2/oox/source/core/fragmenthandler2.cxx:200:1: warning: macro "__code_model_small__" is not used [-Wunused-macros] } // namespace oox ^ S=/var/tmp/portage/app-office/libreoffice-4.1.4.2/work/libreoffice-4.1.4.2 && O=$S/solver/unxlngx6.pro && W=$S/workdir/unxlngx6.pro && mkdir -p $W/CxxObject/oox/source/core/ $W/Dep/CxxObject/oox/source/core/ && cd /var/tmp/portage/app-office/libreoffice-4.1.4.2/work/libreoffice-4.1.4.2 && x86_64-pc-linux-gnu-g++ -DCPPU_ENV=gcc3 -DLIBO_INTERNAL_ONLY -DLINUX -DNDEBUG -DOPTIMIZE -DOSL_DEBUG_LEVEL=0 -DSOLAR_JAVA -DSUPD=410 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT -DRTL_USING -DOOX_DLLIMPLEMENTATION -DHAVE_GCC_VISIBILITY_FEATURE -fvisibility=hidden -Wall -Wendif-labels -Wextra -Wundef -Wunused-macros -fmessage-length=0 -fno-common -pipe -fvisibility-inlines-hidden -DLIBO_MERGELIBS -fPIC -Wshadow -Woverloaded-virtual -Wnon-virtual-dtor -std=gnu++0x -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -fPIC -O2 -ggdb -pipe -march=native -mtune=native -flto=4 -fuse-linker-plugin -mno-avx -mno-sse4.2 -mno-3dnow -fno-lto -fno-use-linker-plugin -c $S/oox/source/core/recordparser.cxx -o $W/CxxObject/oox/source/core/recordparser.o -I$S/oox/source/core/ -I$S/include -I$O/inc/external -I$O/inc -I/usr/lib64/icedtea7/include -I/usr/lib64/icedtea7/include/linux -I$S/config_host -I$W/CustomTarget/oox/generated -I$S/oox/inc -I$W/UnoApiHeadersTarget/udkapi/normal -I$W/UnoApiHeadersTarget/offapi/normal -I/usr/include [build CXX] oox/source/core/relations.cxx /var/tmp/portage/app-office/libreoffice-4.1.4.2/work/libreoffice-4.1.4.2/oox/source/core/fragmenthandler.cxx:132:1: warning: macro "__code_model_small__" is not used [-Wunused-macros] } // namespace oox ^ Please submit a full bug report, with preprocessed source if appropriate. See <https://bugs.gentoo.org/> for instructions. I am reducing a testcase but based on that I search for a string "internal compiler error: Segmentation fault" it can reduce it to an invalid case so I am attaching original ii file too.