Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 196264

Summary: compiling libtorrent (including 0.11.8) with gcc 4.2.2 fails (see solution inside)
Product: Gentoo Linux Reporter: Ian Kumlien <ian.kumlien>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.