Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401561 - [4.6/ICE] in simplify_gen_subreg_concatn, at lower-subreg.c:489 (x11-libs/qt-webkit-4.8.x)
Summary: [4.6/ICE] in simplify_gen_subreg_concatn, at lower-subreg.c:489 (x11-libs/qt-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR50946
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.6
  Show dependency tree
 
Reported: 2012-01-30 18:33 UTC by Denis I. Polukarov
Modified: 2013-01-15 02:18 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log.xz,26.74 KB, application/x-xz)
2012-01-30 18:35 UTC, Denis I. Polukarov
Details
environment (environment,120.72 KB, text/plain)
2012-01-30 18:37 UTC, Denis I. Polukarov
Details
info (info,4.37 KB, text/plain)
2012-01-30 18:37 UTC, Denis I. Polukarov
Details
pqv (pqv,109 bytes, text/plain)
2012-01-30 18:38 UTC, Denis I. Polukarov
Details
Script*.ii & SerializedScriptValue.ii files (ii.tar.xz,427.70 KB, application/x-xz)
2012-01-31 09:07 UTC, Denis I. Polukarov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis I. Polukarov 2012-01-30 18:33:29 UTC
Fail to emerge =x11-libs/qt-webkit-4.8.0 with: internal compiler error: in simplify_gen_subreg_concatn, at lower-subreg.c:489
Please submit a full bug report

Reproducible: Always

Steps to Reproduce:
1. emerge =x11-libs/qt-webkit-4.8.0
2.
3.
Actual Results:  
Emerge failed.

Expected Results:  
Emerged =x11-libs/qt-webkit-4.8.0 .
Comment 1 Denis I. Polukarov 2012-01-30 18:35:26 UTC
Created attachment 300439 [details]
build.log
Comment 2 Denis I. Polukarov 2012-01-30 18:37:37 UTC
Created attachment 300441 [details]
environment
Comment 3 Denis I. Polukarov 2012-01-30 18:37:59 UTC
Created attachment 300443 [details]
info
Comment 4 Denis I. Polukarov 2012-01-30 18:38:27 UTC
Created attachment 300445 [details]
pqv
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2012-01-31 02:49:08 UTC
Rerun the command with -save-temps and attach the resulting preprocessed source (*.ii).
Comment 6 Denis I. Polukarov 2012-01-31 09:07:19 UTC
Created attachment 300511 [details]
Script*.ii & SerializedScriptValue.ii files

All *.ii files is ~ 650Mb... I can attach another needed files.
Comment 7 Denis I. Polukarov 2012-01-31 12:05:54 UTC
I've found, that it's gcc bug - https://bugs.launchpad.net/gcc-linaro/+bug/795131
Comment 8 Ryan Hill (RETIRED) gentoo-dev 2012-02-01 02:13:26 UTC
Oops, I meant run the g++ command line that caused the error.  In any case SerializedScriptValue.ii is the right one.

I don't see this reported upstream so I guess the Linaro guys never got around to it.
Comment 9 Denis I. Polukarov 2012-02-01 07:55:45 UTC
Workaround for qt-webkit: emerge it by =sys-devel/gcc-4.5.3-r2
Comment 10 Davide Pesavento (RETIRED) gentoo-dev 2012-05-22 22:21:37 UTC
Is this fixed in gcc-4.6.3?
Comment 11 Denis I. Polukarov 2012-05-23 06:01:18 UTC
I had try to build with gcc-4.6.3 from https://bugs.gentoo.org/show_bug.cgi?id=406571 , but got same error last month. Now I'm need to build gcc-4.6.3 from portage tree, and try again.
Comment 12 Denis I. Polukarov 2012-05-24 09:44:21 UTC
Same error through build =x11-libs/qt-webkit-4.8.2 ... build with gcc-4.5.3 - success.
Comment 13 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-06-07 19:04:33 UTC
According to original reporter on gcc bugzie it was fixed by:

http://gcc.gnu.org/viewcvs?view=revision&revision=171520

Changset was not backported to gcc-4.6 branch
Comment 14 Pacho Ramos gentoo-dev 2012-09-23 21:12:21 UTC
Any updates on this? Looks like there is only need of including that patch in our patchset, no?
Comment 15 Richard Yao (RETIRED) gentoo-dev 2012-12-29 05:05:32 UTC
(In reply to comment #14)
> Any updates on this? Looks like there is only need of including that patch
> in our patchset, no?

I encountered this when building KDE for the Raspberry Pi. Applying that patch to our GCC 4.6.3 package results in the following ICE when rebuilding GCC:

/var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/gcc/tree-ssa-sccvn.c: In function 'vn_nary_may_trap':
/var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/gcc/tree-ssa-sccvn.c:3669:1: internal compiler error: in df_bb_refs_record, at df-scan.c:3578
Comment 16 Raymond Jennings 2013-01-07 03:41:15 UTC
That sounds more like a bug than a porting issue...
Comment 17 Raymond Jennings 2013-01-07 03:43:05 UTC
(In reply to comment #16)
> That sounds more like a bug than a porting issue...

a bug in gcc that is
Comment 18 Anthony Basile gentoo-dev 2013-01-08 17:17:48 UTC
(In reply to comment #15)
> (In reply to comment #14)
> > Any updates on this? Looks like there is only need of including that patch
> > in our patchset, no?
> 
> I encountered this when building KDE for the Raspberry Pi. Applying that
> patch to our GCC 4.6.3 package results in the following ICE when rebuilding
> GCC:
> 
> /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/gcc/tree-ssa-sccvn.c: In
> function 'vn_nary_may_trap':
> /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/gcc/tree-ssa-sccvn.c:
> 3669:1: internal compiler error: in df_bb_refs_record, at df-scan.c:3578

ryao, I can try at my end with armv7a.  Just to be clear in reproducing this, you applied the patch from 

    http://gcc.gnu.org/viewcvs?view=revision&revision=171520

to our in tree gcc-4.6.3 and hit that when rebuilding gcc.
Comment 19 Rick Farina (Zero_Chaos) gentoo-dev 2013-01-09 00:55:02 UTC
Atropos-XR ~ # emerge x11-libs/qt-webkit -vat1

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild  N     ] x11-libs/qt-webkit-4.8.4:4  USE="exceptions gstreamer icu jit (-aqua) -debug -pch" 0 kB
[ebuild  N     ]  x11-libs/qt-xmlpatterns-4.8.4:4  USE="(-aqua) -c++0x -debug -pch" 0 kB

Total: 2 packages (2 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] yes
>>> Verifying ebuild manifests
>>> Starting parallel fetch
>>> Emerging (1 of 2) x11-libs/qt-xmlpatterns-4.8.4
>>> Installing (1 of 2) x11-libs/qt-xmlpatterns-4.8.4
>>> Emerging (2 of 2) x11-libs/qt-webkit-4.8.4
>>> Installing (2 of 2) x11-libs/qt-webkit-4.8.4
>>> Jobs: 2 of 2 complete                           Load avg: 2.27, 4.09, 4.70
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.
Atropos-XR ~ # gcc-config -l
 [1] armv7a-hardfloat-linux-gnueabi-4.5.4
 [2] armv7a-hardfloat-linux-gnueabi-4.6.3 *


Successfully builds with current gcc and current portage tree.

We sure this is a bug and not just someone running out of resources or something? Or perhaps it affects <4.8.4?
Comment 20 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2013-01-09 10:43:36 UTC
(In reply to comment #19)
> Successfully builds with current gcc and current portage tree.
> 
> We sure this is a bug and not just someone running out of resources or
> something? Or perhaps it affects <4.8.4?

Try compiling SerializedScriptValue.ii that's attached to this bug. The fact that newer versions of qt-webkit doesn't trigger ICE, doesn't mean that it was fixed in gcc.
Comment 21 Rick Farina (Zero_Chaos) gentoo-dev 2013-01-09 23:54:31 UTC
(In reply to comment #20)
> (In reply to comment #19)
> > Successfully builds with current gcc and current portage tree.
> > 
> > We sure this is a bug and not just someone running out of resources or
> > something? Or perhaps it affects <4.8.4?
> 
> Try compiling SerializedScriptValue.ii that's attached to this bug. The fact
> that newer versions of qt-webkit doesn't trigger ICE, doesn't mean that it
> was fixed in gcc.

um, yeah, but if nothing in the tree triggers this ICE why are we holding stabilization?  Mind you, if I'm the only guy randomly lucky enough to build successfully then we should hold off, but if we start holding off stabilization of gcc because of bugs that are already worked around we will never stabilize gcc...
Comment 22 Rick Farina (Zero_Chaos) gentoo-dev 2013-01-10 00:02:13 UTC
> Try compiling SerializedScriptValue.ii that's attached to this bug. The fact
> that newer versions of qt-webkit doesn't trigger ICE, doesn't mean that it
> was fixed in gcc.

I grabbed the minimal test case on the gcc bug and the ICE is still present, but I cannot trigger it on qt-webkit or anything else I've tested.

Atropos-XR ii # g++ -O2 -mfpu=vfpv3 -mfloat-abi=hard -march=armv7-a -mthumb -fpermissive -w -c webkit_testcase-min.i
webkit_testcase-min.i: In member function 'bool CloneSerializer::serialize(JSValue)':
webkit_testcase-min.i:80:14: internal compiler error: in simplify_gen_subreg_concatn, at lower-subreg.c:489
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
Atropos-XR ii # g++ -O2 -mfpu=vfpv3 -mfloat-abi=hard -march=armv7-a -mthumb -w -c webkit_testcase-min.i
webkit_testcase-min.i: In member function 'void Vector<T, inlineCapacity>::append(const U&) [with U = long long int, T = unsigned char, unsigned int inlineCapacity = 0u]':
webkit_testcase-min.i:40:19:   instantiated from 'void writeLittleEndian(Vector<unsigned char>&, T) [with T = long long int]'
webkit_testcase-min.i:66:50:   instantiated from here
webkit_testcase-min.i:28:22: error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
webkit_testcase-min.i:8:30: error:   initializing argument 2 of 'void* operator new(std::size_t, void*)' [-fpermissive]


On an interesting note, if I remove -fpermissive it doesn't ICE, it just produces an error. Not a toolchain guy so maybe this is worthless information, but I'm sharing it in case it's not worthless.
Comment 23 Ryan Hill (RETIRED) gentoo-dev 2013-01-10 02:06:37 UTC
> um, yeah, but if nothing in the tree triggers this ICE why are we holding
> stabilization?

Because I don't want to have to rush a fix into stable two months down the line when something else in the tree starts triggering it.  Because putting stuff I know is broken into stable makes me sad.  etc.

I see other distros using this patch so I'd like to assume ryao's error is unrelated.
Comment 24 SpanKY gentoo-dev 2013-01-10 05:44:16 UTC
(In reply to comment #23)

every gcc we stabilize has bugs (ices/bad code gen/etc...).  it's purely a trade off scheme.  if there aren't any big blockers in the tree that we know of, then let's move forward.
Comment 25 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2013-01-10 08:59:02 UTC
(In reply to comment #22)
> > Try compiling SerializedScriptValue.ii that's attached to this bug. The fact
> > that newer versions of qt-webkit doesn't trigger ICE, doesn't mean that it
> > was fixed in gcc.
> 
> I grabbed the minimal test case on the gcc bug and the ICE is still present,
> but I cannot trigger it on qt-webkit or anything else I've tested.

Now, if you could rebuild your gcc with patch from c#13 and see if it helps or gives another problem like described in c#14, that'd be much appreciated. Maybe get in touch with blueness, so that both of you don't waste cycles simultaneously...
Comment 26 Rick Farina (Zero_Chaos) gentoo-dev 2013-01-10 17:06:06 UTC
My comment on 19 was misleading, I have more familiarity with the bug now and the reason I can build everything is because of my -mfpu setting:

Atropos-XR ii # g++ -O2 -mfpu=vfpv3 -mfloat-abi=hard -march=armv7-a -mthumb -fpermissive -w -c webkit_testcase-min.i
webkit_testcase-min.i: In member function 'bool CloneSerializer::serialize(JSValue)':
webkit_testcase-min.i:80:14: internal compiler error: in simplify_gen_subreg_concatn, at lower-subreg.c:489
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
Atropos-XR ii # g++ -O2 -mfpu=neon -mfloat-abi=hard -march=armv7-a -mthumb -fpermissive -w -c webkit_testcase-min.i
Atropos-XR ii #

I'm testing the patches from c#13 now

sidenote, <3 neon
Comment 27 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-01-10 17:18:23 UTC
I still run into this problem here. However my gcc-4.6.3 was built on 2012-09-10, so it does not include some patches which were added later. I will rebuild gcc (with and without the patch from comment 13) and see if there is a problem afterwards.
Comment 28 Rick Farina (Zero_Chaos) gentoo-dev 2013-01-10 18:38:31 UTC
(In reply to comment #13)
> According to original reporter on gcc bugzie it was fixed by:
> 
> http://gcc.gnu.org/viewcvs?view=revision&revision=171520
> 
> Changset was not backported to gcc-4.6 branch

this patch resolves the ICE in the simplified test case. it will be several hours for me to test qt-webkit, but looks promising.
Comment 29 Rick Farina (Zero_Chaos) gentoo-dev 2013-01-10 20:35:40 UTC
Two test platforms, same results

build qt-webkit with -mfpu=neon and no patch, pass
build qt-webkit with -mfpu=vfpv3 and patch from c13, pass

generic test case failed before patch, passes after, both on my chromebook a15 and my odroid a9.

Patch is good, please add it and let's get 4.6 stable.
Comment 30 Richard Yao (RETIRED) gentoo-dev 2013-01-10 21:42:07 UTC
(In reply to comment #18)
> (In reply to comment #15)
> > (In reply to comment #14)
> > > Any updates on this? Looks like there is only need of including that patch
> > > in our patchset, no?
> > 
> > I encountered this when building KDE for the Raspberry Pi. Applying that
> > patch to our GCC 4.6.3 package results in the following ICE when rebuilding
> > GCC:
> > 
> > /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/gcc/tree-ssa-sccvn.c: In
> > function 'vn_nary_may_trap':
> > /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/gcc/tree-ssa-sccvn.c:
> > 3669:1: internal compiler error: in df_bb_refs_record, at df-scan.c:3578
> 
> ryao, I can try at my end with armv7a.  Just to be clear in reproducing
> this, you applied the patch from 
> 
>     http://gcc.gnu.org/viewcvs?view=revision&revision=171520
> 
> to our in tree gcc-4.6.3 and hit that when rebuilding gcc.

Yes.
Comment 31 Richard Yao (RETIRED) gentoo-dev 2013-01-11 00:30:41 UTC
I am no longer able to reproduce the ICE that I encountered when building GCC with this patch applied. I have no idea why, but I see no reason to block this patch from being merged into the patchset.
Comment 32 Ryan Hill (RETIRED) gentoo-dev 2013-01-15 02:18:05 UTC
Fixed in 4.6.3 p1.10.