From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26874 invoked by alias); 13 Feb 2013 22:32:44 -0000 Received: (qmail 26848 invoked by uid 48); 13 Feb 2013 22:32:31 -0000 From: "marxin.liska at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56312] New: Firefox 20.0a1 compilation with enabled LTO fails Date: Wed, 13 Feb 2013 22:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin.liska at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-02/txt/msg01369.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56312 Bug #: 56312 Summary: Firefox 20.0a1 compilation with enabled LTO fails Classification: Unclassified Product: gcc Version: lto Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: marxin.liska@gmail.com Hello, I encountered following error with enabled LTO. error: /usr/bin/python2.7 /home/marxin/Programming/firefox/js/src/config/pythonpath.py -I../config /home/marxin/Programming/firefox/js/src/config/expandlibs_exec.py --depend .deps/js.pp --target js --uselist -- /home/marxin/Programming/gcc-mainline/bin/g++ -o js -pedantic -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Werror=conversion-null -Wno-ctor-dtor-privacy -Wno-overlength-strings -Wno-invalid-offsetof -Wno-variadic-macros -Wcast-align -Wno-long-long -flto -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -pthread -pipe -DNDEBUG -DTRIMMED -g -O2 -fomit-frame-pointer js.o jsoptparse.o jsheaptools.o -lpthread -flto -Wl,--build-id -Wl,-rpath-link,../../../dist/bin -Wl,-rpath-link,/home/marxin/Programming/firefox/obj-x86_64-unknown-linux-gnu/dist/lib -L../../../dist/bin -L../../../dist/lib -L/home/marxin/Programming/firefox/obj-x86_64-unknown-linux-gnu/dist/lib -lnspr4 -lplc4 -lplds4 ../editline/libeditline.a ../libjs_static.a /home/marxin/Programming/firefox/obj-x86_64-unknown-linux-gnu/modules/zlib/src/libmozz.a -Wl,--whole-archive ../../../dist/lib/libmozglue.a ../../../dist/lib/libmemory.a -Wl,--no-whole-archive -rdynamic -ldl `PushActiveVMFrame' referenced in section `.text' of /tmp/ccgCbjBe.ltrans0.ltrans.o: defined in discarded section `.text' of MethodJIT.o (symbol from plugin) `PopActiveVMFrame' referenced in section `.text' of /tmp/ccgCbjBe.ltrans0.ltrans.o: defined in discarded section `.text' of MethodJIT.o (symbol from plugin) `js_InternalThrow' referenced in section `.text' of /tmp/ccgCbjBe.ltrans0.ltrans.o: defined in discarded section `.text' of InvokeHelpers.o (symbol from plugin) `PopActiveVMFrame' referenced in section `.text' of /tmp/ccgCbjBe.ltrans0.ltrans.o: defined in discarded section `.text' of MethodJIT.o (symbol from plugin) `js_InternalInterpret' referenced in section `.text' of /tmp/ccgCbjBe.ltrans0.ltrans.o: defined in discarded section `.text' of InvokeHelpers.o (symbol from plugin) `PopActiveVMFrame' referenced in section `.text' of /tmp/ccgCbjBe.ltrans0.ltrans.o: defined in discarded section `.text' of MethodJIT.o (symbol from plugin) collect2: error: ld returned 1 exit status gcc --version: g++ (GCC) 4.8.0 20130113 (experimental) firefox: changeset: 118351:fc3ed72129d9 .mozconfig: mk_add_options MOZ_MAKE_FLAGS="-j8" ac_add_options --enable-application=browser ac_add_options --enable-optimize=-O2 export CC=/home/marxin/Programming/gcc-mainline/bin/gcc export CXX=/home/marxin/Programming/gcc-mainline/bin/g++ export CFLAGS="-flto" export CXXFLAGS="-flto" export LDFLAGS="-flto" Thank you for your help, Martin