http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48433
Summary: lto1: internal compiler error: in lto_wpa_write_files, at lto/lto.c:1518 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassig...@gcc.gnu.org ReportedBy: vincenzo.innoce...@cern.ch I'm having several shared library links failing with this error when compiling with -flto -fuse-linker-plugin see below. At the moment the librabry giving problems are complex and I've not yet manage to reproduce the error with a simple test-case. Could you suggest anything I can do to provide you with just few (intermidiate?) files to reproduce the problem just at "lto1" level? /usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.6.1/lto1 -quiet -dumpdir tmp/slc5_amd64_gcc451/src/TrackingTools/KalmanUpdators/src/TrackingToolsKalmanUpdators/ -dumpbase libTrackingToolsKalmanUpdators.so.wpa -mavx -mtune=generic -march=x86-64 -auxbase Chi2MeasurementEstimator -Ofast -pedantic -Werror=overflow -Werror=array-bounds -Werror=format-contains-nul -Werror=type-limits -Wall -Wno-non-template-friend -Wno-long-long -Wreturn-type -Wunused -Wparentheses -Wno-deprecated -Werror=return-type -Werror=missing-braces -Werror=unused-value -Werror=address -Werror=format -Werror=sign-compare -Werror=write-strings -ansi -std=c++0x -version -ftree-vectorize -felide-constructors -fmessage-length=0 -ftemplate-depth=300 -fdiagnostics-show-option -fuse-linker-plugin -fPIC -fltrans-output-list=/tmp/innocent/ccMqAikO.ltrans.out -fwpa -fresolution=/tmp/innocent/ccAZ5YzQ.res @/tmp/innocent/ccDIvhdO GNU GIMPLE (GCC) version 4.6.1 20110325 (prerelease) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.6.1 20110325 (prerelease), GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU GIMPLE (GCC) version 4.6.1 20110325 (prerelease) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.6.1 20110325 (prerelease), GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 lto1: internal compiler error: in lto_wpa_write_files, at lto/lto.c:1518