Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196264 - compiling libtorrent (including 0.11.8) with gcc 4.2.2 fails (see solution inside)
Summary: compiling libtorrent (including 0.11.8) with gcc 4.2.2 fails (see solution in...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-18 09:13 UTC by Ian Kumlien
Modified: 2007-10-18 12:11 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Kumlien 2007-10-18 09:13:30 UTC
libtorrent fails to compile, the compiler recomends the user to try again with -fPIC. This error is due to gcc 4.2.2's new and inproved inlining herustics which means that it, in this case, inlines more code. But if we inline more code then the jumps gets larger.

(This might be AMD64 specific)

to fix, add:
    filter-flags -fpic
    append-flags -fPIC

In the right section of the ebuild.

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-18 09:18:42 UTC
(In reply to comment #0)
> to fix, add:
>     filter-flags -fpic
>     append-flags -fPIC

That's hardly something to be called fix. Reopen with actual errors and emerge --info please.
Comment 2 Ian Kumlien 2007-10-18 12:11:24 UTC
After i upgraded to 4.2.2 it REFUSED TO BUILD, i *had* to add those two lines. I can't reproduce atm and i don't know why, unless portage does something magical.