public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56312] New: Firefox 20.0a1 compilation with enabled LTO fails
@ 2013-02-13 22:32 marxin.liska at gmail dot com
  2013-02-28 18:31 ` [Bug c++/56312] " marxin.liska at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: marxin.liska at gmail dot com @ 2013-02-13 22:32 UTC (permalink / raw)
  To: gcc-bugs


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/56312] Firefox 20.0a1 compilation with enabled LTO fails
  2013-02-13 22:32 [Bug c++/56312] New: Firefox 20.0a1 compilation with enabled LTO fails marxin.liska at gmail dot com
@ 2013-02-28 18:31 ` marxin.liska at gmail dot com
  2013-03-01 16:32 ` hubicka at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: marxin.liska at gmail dot com @ 2013-02-28 18:31 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from Martin Liška <marxin.liska at gmail dot com> 2013-02-28 18:31:05 UTC ---
I patched following two files with __attribute__ ((used)) which helped to go
further, having a new issue:

/home/marxin/Programming/firefox/xpcom/components/nsComponentManager.cpp: In
function ‘_ZN22nsComponentManagerImpl23InitializeStaticModulesEv.part.59’:
/home/marxin/Programming/firefox/xpcom/components/nsComponentManager.cpp:275:0:
internal compiler error: Segmentation fault
 nsComponentManagerImpl::InitializeStaticModules()
 ^
0x85049f crash_signal
    ../../gcc/toplev.c:332
0x6c0475 can_refer_decl_in_current_unit_p
    ../../gcc/gimple-fold.c:70
0x6c218a canonicalize_constructor_val(tree_node*, tree_node*)
    ../../gcc/gimple-fold.c:172
0x6c286c fold_ctor_reference
    ../../gcc/gimple-fold.c:2944
0x6c6882 fold_const_aggregate_ref_1(tree_node*, tree_node* (*)(tree_node*))
    ../../gcc/gimple-fold.c:3069
0x6c754c gimple_fold_stmt_to_constant_1(gimple_statement_d*, tree_node*
(*)(tree_node*))
    ../../gcc/gimple-fold.c:2520
0x992e0d try_to_simplify
    ../../gcc/tree-ssa-sccvn.c:3257
0x992e0d visit_use
    ../../gcc/tree-ssa-sccvn.c:3334
0x996e30 process_scc
    ../../gcc/tree-ssa-sccvn.c:3649
0x996e30 extract_and_process_scc_for_name
    ../../gcc/tree-ssa-sccvn.c:3706
0x996e30 DFS
    ../../gcc/tree-ssa-sccvn.c:3760
0x996e30 run_scc_vn(vn_lookup_kind)
    ../../gcc/tree-ssa-sccvn.c:4006
0x97971c do_pre
    ../../gcc/tree-ssa-pre.c:4700

Thanks


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/56312] Firefox 20.0a1 compilation with enabled LTO fails
  2013-02-13 22:32 [Bug c++/56312] New: Firefox 20.0a1 compilation with enabled LTO fails marxin.liska at gmail dot com
  2013-02-28 18:31 ` [Bug c++/56312] " marxin.liska at gmail dot com
@ 2013-03-01 16:32 ` hubicka at gcc dot gnu.org
  2013-03-02 17:37 ` marxin.liska at gmail dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: hubicka at gcc dot gnu.org @ 2013-03-01 16:32 UTC (permalink / raw)
  To: gcc-bugs


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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2013-03-01
                 CC|                            |hubicka at gcc dot gnu.org
         AssignedTo|unassigned at gcc dot       |hubicka at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #2 from Jan Hubicka <hubicka at gcc dot gnu.org> 2013-03-01 16:31:15 UTC ---
Can you please run it in debugger and let me know where precisely it segfaults
in can_refer_decl_in_current_unit_p?
I will try to update my tree and see if it reproduces.

Honza


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/56312] Firefox 20.0a1 compilation with enabled LTO fails
  2013-02-13 22:32 [Bug c++/56312] New: Firefox 20.0a1 compilation with enabled LTO fails marxin.liska at gmail dot com
  2013-02-28 18:31 ` [Bug c++/56312] " marxin.liska at gmail dot com
  2013-03-01 16:32 ` hubicka at gcc dot gnu.org
@ 2013-03-02 17:37 ` marxin.liska at gmail dot com
  2013-03-02 17:50 ` hubicka at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: marxin.liska at gmail dot com @ 2013-03-02 17:37 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from Martin Liška <marxin.liska at gmail dot com> 2013-03-02 17:37:31 UTC ---
I just run it in debugger giving me exactly the same stack trace, so
can_refer_decl_in_current_unit_p is the place.

Martin


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/56312] Firefox 20.0a1 compilation with enabled LTO fails
  2013-02-13 22:32 [Bug c++/56312] New: Firefox 20.0a1 compilation with enabled LTO fails marxin.liska at gmail dot com
                   ` (2 preceding siblings ...)
  2013-03-02 17:37 ` marxin.liska at gmail dot com
@ 2013-03-02 17:50 ` hubicka at gcc dot gnu.org
  2013-03-12 13:04 ` hubicka at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: hubicka at gcc dot gnu.org @ 2013-03-02 17:50 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> 2013-03-02 17:50:06 UTC ---
I see, it looks like a bug when computing the boundary then; if folding is
possible through the constructor, the symtab node ought to be shipped into the
partition.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/56312] Firefox 20.0a1 compilation with enabled LTO fails
  2013-02-13 22:32 [Bug c++/56312] New: Firefox 20.0a1 compilation with enabled LTO fails marxin.liska at gmail dot com
                   ` (3 preceding siblings ...)
  2013-03-02 17:50 ` hubicka at gcc dot gnu.org
@ 2013-03-12 13:04 ` hubicka at gcc dot gnu.org
  2013-03-12 13:31 ` marxin.liska at gmail dot com
  2013-03-23 23:42 ` marxin.liska at gmail dot com
  6 siblings, 0 replies; 8+ messages in thread
From: hubicka at gcc dot gnu.org @ 2013-03-12 13:04 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> 2013-03-12 13:03:36 UTC ---
Sadly this problem does not reproduce to me (though I use -fno-fat-lto-objects
that makes the build quite a bit faster).  Can you please upload for me the
files produced by --save-temps -fdump-ipa-all and in gdb output the symbol
passed to can_refer_decl_in_current_unit_p?


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/56312] Firefox 20.0a1 compilation with enabled LTO fails
  2013-02-13 22:32 [Bug c++/56312] New: Firefox 20.0a1 compilation with enabled LTO fails marxin.liska at gmail dot com
                   ` (4 preceding siblings ...)
  2013-03-12 13:04 ` hubicka at gcc dot gnu.org
@ 2013-03-12 13:31 ` marxin.liska at gmail dot com
  2013-03-23 23:42 ` marxin.liska at gmail dot com
  6 siblings, 0 replies; 8+ messages in thread
From: marxin.liska at gmail dot com @ 2013-03-12 13:31 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #6 from Martin Liška <marxin.liska at gmail dot com> 2013-03-12 13:31:06 UTC ---
Hello Jan, there's a link to dump:

https://mega.co.nz/#!bBF3kBSI!JPkMhRtHgUAx_lUw-VctVB0llul3BSrad2dpF9_6yJQ
(extracted size is about 16GB)

Could you please paste your .mozconfig file and version of binutils you used
for build?

Thanks


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/56312] Firefox 20.0a1 compilation with enabled LTO fails
  2013-02-13 22:32 [Bug c++/56312] New: Firefox 20.0a1 compilation with enabled LTO fails marxin.liska at gmail dot com
                   ` (5 preceding siblings ...)
  2013-03-12 13:31 ` marxin.liska at gmail dot com
@ 2013-03-23 23:42 ` marxin.liska at gmail dot com
  6 siblings, 0 replies; 8+ messages in thread
From: marxin.liska at gmail dot com @ 2013-03-23 23:42 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #7 from Martin Liška <marxin.liska at gmail dot com> 2013-03-23 23:42:28 UTC ---
The problem was caused by bad usage of gcc-ar and gcc-runlib that were actually
not used.
>From gcc-bugs-return-418242-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 23:43:43 2013
Return-Path: <gcc-bugs-return-418242-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24331 invoked by alias); 23 Mar 2013 23:43:43 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 24300 invoked by uid 48); 23 Mar 2013 23:43:36 -0000
From: "marxin.liska at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/56312] Firefox 20.0a1 compilation with enabled LTO fails
Date: Sat, 23 Mar 2013 23:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Keywords: lto
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin.liska at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields: Status Resolution
Message-ID: <bug-56312-4-QEU6jXmSrS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56312-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56312-4@http.gcc.gnu.org/bugzilla/>
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-SW-Source: 2013-03/txt/msg01683.txt.bz2
Content-length: 475


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

Martin Liška <marxin.liska at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |INVALID

--- Comment #8 from Martin Liška <marxin.liska at gmail dot com> 2013-03-23 23:43:36 UTC ---
Invalid bug.
>From gcc-bugs-return-418243-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 07:06:50 2013
Return-Path: <gcc-bugs-return-418243-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12092 invoked by alias); 24 Mar 2013 07:06:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 12030 invoked by uid 48); 24 Mar 2013 07:06:42 -0000
From: "gcc@Denis-Excoffier.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/56258] Please upgrade doc/*.texi to the latest texinfo package(s)
Date: Sun, 24 Mar 2013 07:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gcc@Denis-Excoffier.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields:
Message-ID: <bug-56258-4-vX53yheL1U@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56258-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56258-4@http.gcc.gnu.org/bugzilla/>
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
Content-Type: text/plain; charset="UTF-8"
MIME-Version: 1.0
X-SW-Source: 2013-03/txt/msg01684.txt.bz2
Content-length: 203


http://gcc.gnu.org/bugzilla/show_bug.cgi?idV258

--- Comment #16 from Denis Excoffier <gcc@Denis-Excoffier.org> 2013-03-24 07:06:40 UTC ---
Bootstrap of gcc-4.7-20130323 works perfectly. Thanks.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-03-23 23:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-13 22:32 [Bug c++/56312] New: Firefox 20.0a1 compilation with enabled LTO fails marxin.liska at gmail dot com
2013-02-28 18:31 ` [Bug c++/56312] " marxin.liska at gmail dot com
2013-03-01 16:32 ` hubicka at gcc dot gnu.org
2013-03-02 17:37 ` marxin.liska at gmail dot com
2013-03-02 17:50 ` hubicka at gcc dot gnu.org
2013-03-12 13:04 ` hubicka at gcc dot gnu.org
2013-03-12 13:31 ` marxin.liska at gmail dot com
2013-03-23 23:42 ` marxin.liska at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).