Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 452768 (PR48808) - [ICE/4.6] media-libs/x264-0.0.20120707 on armv7a-hardfloat - encoder/ratecontrol.c:1794:1: error: unable to find a register to spill in class 'VFP_LO_REGS'
Summary: [ICE/4.6] media-libs/x264-0.0.20120707 on armv7a-hardfloat - encoder/ratecont...
Status: RESOLVED FIXED
Alias: PR48808
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR48808
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-18 07:36 UTC by jannis
Modified: 2013-01-22 04:43 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,13.36 KB, text/plain)
2013-01-18 07:37 UTC, jannis
Details
emerge --info (einfo,12.76 KB, text/plain)
2013-01-18 07:49 UTC, jannis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jannis 2013-01-18 07:36:00 UTC
I have an arm-based system and I tried an "emerge -e1av world" today that failed on media-libs/x264 with the error to be seen in build.log

Since x264 is not in the stage3-file (why would it?) and I have it installed on that machine, compilation seems to work with gcc:4.5 that was used back then. The upgrade to (~arm) gcc:4.6 was due to https://bugs.gentoo.org/show_bug.cgi?id=451920

I actually don't wanna test with gcc:4.5 since it was removed due to free disk space concerns but I could when asked for.

Any hints on the source of the error or a workaround are appreciated

Reproducible: Always
Comment 1 jannis 2013-01-18 07:37:03 UTC
Created attachment 336008 [details]
build.log
Comment 2 jannis 2013-01-18 07:49:06 UTC
Created attachment 336010 [details]
emerge --info
Comment 3 jannis 2013-01-18 15:58:30 UTC
x264-devs say it's gcc's fault since it's failing in native C code, no asm involved.

gcc devs say it might be related to:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49422
or
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48808
and that I should try out vanilla gcc or a more recent version (than gcc 4.6.3)
Comment 4 jannis 2013-01-18 16:21:32 UTC
I'm just compiling gcc-4.6.3 with the patches from http://gcc.gnu.org/viewcvs?view=revision&revision=174540 mentioned in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48808

I'll know more in about 2hrs
Comment 5 jannis 2013-01-18 19:56:17 UTC
Okay, that took a little longer. I patched the two "reload*.c" files from the links posted, emerged gcc-4.6.3 and x264 compiles fine. I encoded one video file to test the software and the result (encoded file) plays back well.

Compiling with gcc-4.5.4 also compiles and works fine so this seems to be a bug of gcc-4.6.3 on arm (and it should thus not be stabilized there). Maybe I'll test 4.6.1 or 4.6.2 later. Or the toolchain-devs add the patch to the gcc's patchset.
Comment 6 Steev Klimaszewski (RETIRED) gentoo-dev 2013-01-19 00:12:22 UTC
This also occurs when attempting to build icedtea:6 with gcc 4.6.3
Comment 7 Rick Farina (Zero_Chaos) gentoo-dev 2013-01-19 23:38:14 UTC
this doesn't block gcc 4.6 stable request, it's not even keyworded for arm, let alone stable.
Comment 8 Rick Farina (Zero_Chaos) gentoo-dev 2013-01-19 23:42:03 UTC
this also causes failures on icedtea:7, same failures.
Comment 9 Ryan Hill (RETIRED) gentoo-dev 2013-01-20 03:23:15 UTC
thanks for tracking down the PR.  does the patch in the PR also fix the icedtea failure?
Comment 10 Steev Klimaszewski (RETIRED) gentoo-dev 2013-01-20 03:42:01 UTC
Working on figuring that out now Ryan.  Rick says that it doesn't fix it there, I'm doing a fresh chroot now with the patches.
Comment 11 Rick Farina (Zero_Chaos) gentoo-dev 2013-01-20 03:43:48 UTC
(In reply to comment #10)
> Working on figuring that out now Ryan.  Rick says that it doesn't fix it
> there, I'm doing a fresh chroot now with the patches.

My main problem currently is that user_patch doesn't seem to pick up patches named blah.c. I'm rebuilding gcc again, with the patches actually applied this time. Please give me a few and I'll report back.
Comment 12 Rick Farina (Zero_Chaos) gentoo-dev 2013-01-21 17:08:34 UTC
This fixes the ICE for x264, icedtea:6 and icedtea:7.  Sadly icedtea:6 and icedtea:7 still don't actually install, but that is a significantly different issue.

The attached patches should be rolled into our 4.6.3 patchset asap.
Comment 13 Ryan Hill (RETIRED) gentoo-dev 2013-01-21 22:06:06 UTC
Fixed in 4.6.3 p1.11.