| 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 packages | Assignee: | 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: | --- | |
(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. 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. |
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