Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 463742 - media-tv/xbmc-12.1 - Raspberry Pi - MathUtils.h:127:6: error: impossible constraint in 'asm'
Summary: media-tv/xbmc-12.1 - Raspberry Pi - MathUtils.h:127:6: error: impossible cons...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo Xbox project
URL: http://trac.xbmc.org/ticket/14228
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-29 15:11 UTC by Code_Bleu
Modified: 2014-01-02 01:50 UTC (History)
5 users (show)

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


Attachments
Build log output (build.log,81.68 KB, text/plain)
2013-03-29 15:26 UTC, Code_Bleu
Details
emerge info output (info.log,4.30 KB, text/plain)
2013-03-29 15:27 UTC, Code_Bleu
Details
emerge logs (xbmc_build_failed_log.txt,88.51 KB, text/plain)
2013-12-15 06:21 UTC, Code_Bleu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Code_Bleu 2013-03-29 15:11:09 UTC
Im trying to install XBMC 12.1 (and other versions) on my RaspberryPi running Gentoo OS. I have been unsuccessful in every attempt. Im thinking the issue has to do with this:

MathUtils.h:127:6: error: impossible constraint in 'asm'

Please see paste below for more detail of environment and build log

 http://bpaste.net/show/87153/  http://bpaste.net/show/87155/
Comment 1 Code_Bleu 2013-03-29 15:23:42 UTC
Comment from http://trac.xbmc.org/ticket/14228 mentions that "Your configure step is wrong. Look in tools/rpb/depends/xbmc/Makefile how it should be for the RaspberryPI."
Comment 2 Code_Bleu 2013-03-29 15:26:48 UTC
Created attachment 343648 [details]
Build log output
Comment 3 Code_Bleu 2013-03-29 15:27:15 UTC
Created attachment 343650 [details]
emerge info output
Comment 5 Code_Bleu 2013-04-01 14:01:33 UTC
I will try the USE=neon as mentioned below, but please take a look at what vapier on trac.xbmc.org just recently posted:  http://trac.xbmc.org/ticket/14228#comment:5>
Comment 6 Code_Bleu 2013-04-01 23:20:34 UTC
I did an eix-sync and got the new ebuild (1.3).  It shows (-neon).  From what i can tell, the () means its masked in the profile form my arch.  So im not really sure what i should do to enable neon?
Comment 7 SpanKY gentoo-dev 2013-04-01 23:43:13 UTC
(In reply to comment #6)

you have an armv6 which doesn't support neon.  so it should be masked for your platform and you want to build with USE=-neon.
Comment 8 Code_Bleu 2013-04-02 00:15:20 UTC
it is masked by default, so im confused as to why neon is mentioned to fix the issue.  Is there something else i need to be doing?
Comment 9 SpanKY gentoo-dev 2013-04-02 02:00:47 UTC
(In reply to comment #8)

this bug is still open, so clearly it's not marked as FIXED.  USE=neon behavior is related, but obviously isn't the full answer.
Comment 10 Code_Bleu 2013-04-02 23:01:26 UTC
SpanKY: Sorry if i offended you, it was not my intent.  Do you have any other suggestions?
Comment 11 Gerhard Bräunlich 2013-05-24 21:01:34 UTC
Code Bleu: I think you get this sort of errors if you don't configure xbmc with --with-platform=raspberry-pi.
I've submitted a patch for xbmc-12.1.ebuild with raspberry pi support:
https://bugs.gentoo.org/show_bug.cgi?id=471200
xbmc compiles and runs fine on my raspberry pi.
Comment 12 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-08-19 12:06:18 UTC
(In reply to Code_Bleu from comment #10)
> Do you have any other suggestions?

Do the patches from the other bug as mentioned in Comment #11 work for you?
Comment 13 Code_Bleu 2013-12-15 06:21:54 UTC
Created attachment 365378 [details]
emerge logs
Comment 14 Code_Bleu 2013-12-15 06:23:18 UTC
(In reply to Tom Wijsman (TomWij) from comment #12)
> (In reply to Code_Bleu from comment #10)
> > Do you have any other suggestions?
> 
> Do the patches from the other bug as mentioned in Comment #11 work for you?

No, they did not.  I have attached log files.
Comment 15 SpanKY gentoo-dev 2013-12-31 18:55:26 UTC
xbmc doesn't install these headers:
/opt/vc/include/interface/vcos/vcos_types.h:38:33: fatal error: vcos_platform_types.h: No such file or directory

i don't know what does, but looks like something is broken unrelated to xbmc
Comment 16 Code_Bleu 2014-01-02 01:50:12 UTC
(In reply to SpanKY from comment #15)
> xbmc doesn't install these headers:
> /opt/vc/include/interface/vcos/vcos_types.h:38:33: fatal error:
> vcos_platform_types.h: No such file or directory
> 
> i don't know what does, but looks like something is broken unrelated to xbmc

I found the following article which helped be get past the vcos errors.  https://github.com/raspberrypi/firmware/issues/34

Then i had this error:
/opt/vc/include/interface/vmcs_host/vcgencmd.h fatal error: vchost_config.h No such file or directory found.

I then noticed the vcgencmd.h file had an include pointing to the wrong place as well.

I changed this (line 33 of vcgencmd.h):
#include vchost_config.h
to this:
#include linux/vchost_config.h

After that, i was finally able to successfully compile xbmc.

Now im having other issues getting the app to launch with or without framebuffer, but i think its probably safe to say that the patch listed in comment11 and the above have resolved the initial (not being able to compile) issue.