Compiling XBMC on Fedora 11 beta (rawhide)

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
motd2k Offline
Team-XBMC Developer
Posts: 666
Joined: Dec 2008
Reputation: 0
Location: England
Post: #11
im not sure if it will make any difference, but you could also try removing ccache.
find quote
althekiller Offline
Team-XBMC Developer
Posts: 4,703
Joined: May 2004
Reputation: 12
Post: #12
It's a bug in gcc 4.4. The functions need double-cast to work around it, but I'll be damned if I could figure it out debugging via proxy on IRC. I won't be installing 4.4 just to get this straight for the nerd circle jerk distro.
find quote
Haggy Offline
Team-XBMC Forum Moderator - Retired
Posts: 884
Joined: Mar 2009
Reputation: 0
Location: Wild southern Germany
Post: #13
althekiller Wrote:I won't be installing 4.4 just to get this straight for the nerd circle jerk distro.
Call it what you like, in 5 months Ubuntu 9.10 will also ship 4.4 Smile

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
althekiller Offline
Team-XBMC Developer
Posts: 4,703
Joined: May 2004
Reputation: 12
Post: #14
In which case it won't be for "just the nerd circle jerk distro" Smile
find quote
Haggy Offline
Team-XBMC Forum Moderator - Retired
Posts: 884
Joined: Mar 2009
Reputation: 0
Location: Wild southern Germany
Post: #15
Al/motd2k: I'd like to roll this up again. If you could point me to what "double casting a function" exactly means i'm willing to do the dirty work of hacking that file until it compiles with gcc 4.4.

I'm no newbie to programming but my C/C++ skills are simply not that good. From what i understand is, that some of those functions who get exported need an additional tweak. They're all casted to (void*), so what would the second cast be? I read the bugreport about that 4.4 regression and some guys came up with a second cast into the class where the function is defined. What's that in xbmc-source-speak?

Thanks for all you help, i'm really willing to understand more of this...

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
anish Offline
Junior Member
Posts: 2
Joined: May 2009
Reputation: 0
Post: #16
Haggy Wrote:Have you tried xbmc-svn from the AUR? It compiles fine with GCC 4.4 and even 64bit. Have a look at my sig.

tried it with the svn tip right now, same errors. I've had gcc 4.4 ever since it was in testing, and I have managed to compile xbmc with gcc 4.4 before, though it is quite possible that make was picking up stuff from ccache then.
find quote
althekiller Offline
Team-XBMC Developer
Posts: 4,703
Joined: May 2004
Reputation: 12
Post: #17
Just google the error gcc spits you. There are plenty of mailing list posts about it.
find quote
Haggy Offline
Team-XBMC Forum Moderator - Retired
Posts: 884
Joined: Mar 2009
Reputation: 0
Location: Wild southern Germany
Post: #18
anish Wrote:tried it with the svn tip right now, same errors. I've had gcc 4.4 ever since it was in testing, and I have managed to compile xbmc with gcc 4.4 before, though it is quite possible that make was picking up stuff from ccache then.
Yeah exactly the same for me. Sorry for pointing you in the wrong direction. After removing ccache i also hit this issue.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Haggy Offline
Team-XBMC Forum Moderator - Retired
Posts: 884
Joined: Mar 2009
Reputation: 0
Location: Wild southern Germany
Post: #19
althekiller Wrote:Just google the error gcc spits you. There are plenty of mailing list posts about it.

I did, otherwise i wouldn't even know about that double cast thingy. Unfortunately i found no further useful infos, at least none that's xbmc specific. If you say double cast, then what would the second cast be? i doubt it's also (void*)

EDIT: Forget it. I'm seriosly dumb, blind or both. The exact error message lead me to something actually useful - and i'm SURE that was not there yesterday Smile

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2009-05-27 09:35 by Haggy.)
find quote
Haggy Offline
Team-XBMC Forum Moderator - Retired
Posts: 884
Joined: Mar 2009
Reputation: 0
Location: Wild southern Germany
Post: #20
Update: I have managed to come up with a patch which fixes these issues.
It's attached here: http://trac.xbmc.org/ticket/6627

Maybe a dev will approve and commit it to the main branch.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Post Reply