http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57038



             Bug #: 57038

           Summary: Latest libreoffice compilation fails with enabled LTO

    Classification: Unclassified

           Product: gcc

           Version: 4.9.0

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: c++

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: marxin.li...@gmail.com





Libreoffice git repository commit:

04a54e7180c2cf9f4855211055ecbc6a41deff56 (Apr 17)



Libreoffice comfigure options:

./autogen.sh --with-parallelism=1 --without-junit --enable-mergelibs

--enable-lto



gcc --version:

gcc (GCC) 4.9.0 20130420 (experimental)



failure:

/usr/bin/make -j 1 -rs -f /home/marxin/Programming/libreoffice/Makefile.gbuild

[build LNK] Library/libcomphelpgcc3.so

lto1: internal compiler error: in add_symbol_to_partition_1, at

lto/lto-partition.c:186

0x5180d5 add_symbol_to_partition_1

    ../../gcc/lto/lto-partition.c:185

0x51881a lto_balanced_map()

    ../../gcc/lto/lto-partition.c:532

0x514f3c do_whole_program_analysis

    ../../gcc/lto/lto.c:3245

0x514f3c lto_main()

    ../../gcc/lto/lto.c:3385



Command line:

S=/home/marxin/Programming/libreoffice && O=$S/solver/unxlngx6.pro &&

W=$S/workdir/unxlngx6.pro &&  mkdir -p $W/LinkTarget/Library/ &&

/usr/bin/ccache g++ -shared -Wl,-z,noexecstack -flto -fuse-linker-plugin -O2  

-Wl,-z,origin '-Wl,-rpath,$ORIGIN:$ORIGIN/../ure-link/lib'

-Wl,-rpath-link,$O/lib -Wl,-z,defs  -Wl,-rpath-link,/lib:/usr/lib

-Wl,-z,combreloc -L$O/lib  -Wl,--hash-style=gnu  -Wl,--dynamic-list-cpp-new

-Wl,--dynamic-list-cpp-typeinfo -Wl,-Bsymbolic-functions  -Wl,-O1 -Wl,-S 

$W/CxxObject/comphelper/source/compare/AnyCompareFactory.o

$W/CxxObject/comphelper/source/container/IndexedPropertyValuesContainer.o

$W/CxxObject/comphelper/source/container/NamedPropertyValuesContainer.o

$W/CxxObject/comphelper/source/container/container.o

$W/CxxObject/comphelper/source/container/containermultiplexer.o

$W/CxxObject/comphelper/source/container/embeddedobjectcontainer.o

$W/CxxObject/comphelper/source/container/enumerablemap.o

$W/CxxObject/comphelper/source/container/enumhelper.o

$W/CxxObject/comphelper/source/container/namecontainer.o

$W/CxxObject/comphelper/source/eventattachermgr/eventattachermgr.o

$W/CxxObject/comphelper/source/misc/accessiblecomponenthelper.o

$W/CxxObject/comphelper/source/misc/accessiblecontexthelper.o

$W/CxxObject/comphelper/source/misc/accessibleeventnotifier.o

$W/CxxObject/comphelper/source/misc/accessiblekeybindinghelper.o

$W/CxxObject/comphelper/source/misc/accessibleselectionhelper.o

$W/CxxObject/comphelper/source/misc/accessibletexthelper.o

$W/CxxObject/comphelper/source/misc/accessiblewrapper.o

$W/CxxObject/comphelper/source/misc/accimplaccess.o

$W/CxxObject/comphelper/source/misc/anytostring.o

$W/CxxObject/comphelper/source/misc/asyncnotification.o

$W/CxxObject/comphelper/source/misc/comphelper_module.o

$W/CxxObject/comphelper/source/misc/comphelper_services.o

$W/CxxObject/comphelper/source/misc/componentbase.o

$W/CxxObject/comphelper/source/misc/componentcontext.o

$W/CxxObject/comphelper/source/misc/componentmodule.o

$W/CxxObject/comphelper/source/misc/configuration.o

$W/CxxObject/comphelper/source/misc/configurationhelper.o

$W/CxxObject/comphelper/source/misc/docpasswordhelper.o

$W/CxxObject/comphelper/source/misc/docpasswordrequest.o

$W/CxxObject/comphelper/source/misc/documentinfo.o

$W/CxxObject/comphelper/source/misc/documentiologring.o

$W/CxxObject/comphelper/source/misc/evtlistenerhlp.o

$W/CxxObject/comphelper/source/misc/evtmethodhelper.o

$W/CxxObject/comphelper/source/misc/ihwrapnofilter.o

$W/CxxObject/comphelper/source/misc/instancelocker.o

$W/CxxObject/comphelper/source/misc/interaction.o

$W/CxxObject/comphelper/source/misc/listenernotification.o

$W/CxxObject/comphelper/source/misc/logging.o

$W/CxxObject/comphelper/source/misc/mediadescriptor.o

$W/CxxObject/comphelper/source/misc/mime^Cnfighelper.o

$W/CxxObject/comphelper/source/misc/namedvaluecollection.o

$W/CxxObject/comphelper/source/misc/numberedcollection.o

$W/CxxObject/comphelper/source/misc/numbers.o

$W/CxxObject/comphelper/source/misc/officeresourcebundle.o

$W/CxxObject/comphelper/source/misc/officerestartmanager.o

$W/CxxObject/comphelper/source/misc/proxyaggregation.o

$W/CxxObject/comphelper/source/misc/scopeguard.o

$W/CxxObject/comphelper/source/misc/SelectionMultiplex.o

$W/CxxObject/comphelper/source/misc/sequenceashashmap.o

$W/CxxObject/comphelper/source/misc/sequence.o

$W/CxxObject/comphelper/source/misc/servicedecl.o

$W/CxxObject/comphelper/source/misc/serviceinfohelper.o

$W/CxxObject/comphelper/source/misc/sharedmutex.o

$W/CxxObject/comphelper/source/misc/stillreadwriteinteraction.o

$W/CxxObject/comphelper/source/misc/anycompare.o

$W/CxxObject/comphelper/source/misc/storagehelper.o

$W/CxxObject/comphelper/source/misc/string.o

$W/CxxObject/comphelper/source/misc/synchronousdispatch.o

$W/CxxObject/comphelper/source/misc/syntaxhighlight.o

$W/CxxObject/comphelper/source/misc/types.o

$W/CxxObject/comphelper/source/misc/weak.o

$W/CxxObject/comphelper/source/misc/weakeventlistener.o

$W/CxxObject/comphelper/source/officeinstdir/officeinstallationdirectories.o

$W/CxxObject/comphelper/source/processfactory/processfactory.o

$W/CxxObject/comphelper/source/property/ChainablePropertySet.o

$W/CxxObject/comphelper/source/property/ChainablePropertySetInfo.o

$W/CxxObject/comphelper/source/property/genericpropertyset.o

$W/CxxObject/comphelper/source/property/MasterPropertySet.o

$W/CxxObject/comphelper/source/property/MasterPropertySetInfo.o

$W/CxxObject/comphelper/source/property/opropertybag.o

$W/CxxObject/comphelper/source/property/propagg.o

$W/CxxObject/comphelper/source/property/propertybag.o

$W/CxxObject/comphelper/source/property/propertycontainer.o

$W/CxxObject/comphelper/source/property/propertycontainerhelper.o

$W/CxxObject/comphelper/source/property/property.o

$W/CxxObject/comphelper/source/property/propertysethelper.o

$W/CxxObject/comphelper/source/property/propertysetinfo.o

$W/CxxObject/comphelper/source/property/propertystatecontainer.o

$W/CxxObject/comphelper/source/property/propmultiplex.o

$W/CxxObject/comphelper/source/property/propstate.o

$W/CxxObject/comphelper/source/property/TypeGeneration.o

$W/CxxObject/comphelper/source/streaming/basicio.o

$W/CxxObject/comphelper/source/streaming/memorystream.o

$W/CxxObject/comphelper/source/streaming/oslfile2streamwrap.o

$W/CxxObject/comphelper/source/streaming/seekableinput.o

$W/CxxObject/comphelper/source/streaming/seqinputstreamserv.o

$W/CxxObject/comphelper/source/streaming/seqoutputstreamserv.o

$W/CxxObject/comphelper/source/streaming/seqstream.o

$W/CxxObject/comphelper/source/streaming/streamsection.o

$W/CxxObject/comphelper/source/xml/attributelist.o

$W/CxxObject/comphelper/source/xml/ofopxmlhelper.o

$W/CxxObject/comphelper/source/xml/xmltools.o     -Wl,--start-group 

-Wl,--end-group -Wl,--no-as-needed   -licuuc -luno_cppu -luno_cppuhelpergcc3

-luno_sal -luno_salhelpergcc3 -lucbhelper4gcc3 -li18nlangtaggcc3 -o

$W/LinkTarget/Library/libcomphelpgcc3.so

Reply via email to