![]() |
#31 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
![]() |
![]() |
![]() |
#32 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 40393
Join Date: May 2012
Device: Kindle Touch
|
@knc1: I still gets gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
and don't know how to fix it. Is there any arguments to disable it when compiling toolchain? |
![]() |
![]() |
Advert | |
|
![]() |
#33 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Or, maybe just stop telling it to use the linker plug-in if you don't want it? I.E: remove: -fuse-linker-plugin I am probably not your best source of information on this subject. Others here are much more experienced with these "new" tool-chain features than I. Last edited by knc1; 09-25-2012 at 10:22 AM. |
|
![]() |
![]() |
![]() |
#34 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@ppoo: I'm not familiar with sb, but there should be an option somewhere to:
* Enable/Disable LTO support for GCC * Enable/Disable plugins support for binutils Barring that, -fno-lto -fno-use-linker-plugin in the CFLAGS Last edited by NiLuJe; 09-25-2012 at 11:22 AM. |
![]() |
![]() |
![]() |
#35 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Little actual experience, but I seem to recall that in the docs. An since that is a linker option (Link Time Optimization) it may have to go into LDFLAGS (maybe "also" into LDFLAGS). |
|
![]() |
![]() |
Advert | |
|
![]() |
#36 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@knc1: A lot of broken buildsystems actually can't make use of LTO, because, yes, it has to be passed both at compile time & link time. If the buildsystem link through GCC, and passes the CFLAGS along with LDFLAGS, all is good, if not, GCC just spent its time churning out data that'll just end up being discarded
![]() ![]() |
![]() |
![]() |
![]() |
#37 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Ah, so -
So "both" would be the safest course in actual practice, at least until GCC starts throwing "unrecognized option for ..." errors. (OR maybe the message(s) are: "xxx option used but yyy step not being preformed" - one of those "improvements" to GCC option handling recently introduced to drive Makefile authors crazy.) |
![]() |
![]() |
![]() |
#38 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@knc1: The issue with putting it in LDFLAGS is that if one were to pass those to ld directly, not through a compiler driver like gcc, ld/gold would (probably, haven't checked) choke on -flto. And even through a driver, since it's not 'escaped' by -Wl, ld would probably not be a happy camper. And if you put it escaped in LDFLAGS, go back to square 1: ld chokes on it ^^.
Long story short: It's a GCC flag/feature, it goes in CFLAGS. Don't try to use it though any other means ![]() Last edited by NiLuJe; 09-25-2012 at 11:57 AM. |
![]() |
![]() |
![]() |
#39 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 40393
Join Date: May 2012
Device: Kindle Touch
|
I put -fno-lto -fno-use-linker-plugin to host compiler flag and don't choose Enable LTO when compiling TC, and it run well.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compiling for Lubuntu (regarding compiling instructions) | jgratero | Sigil | 5 | 07-15-2012 07:54 PM |
Compiling Calibre on ARM processor | cbalmforth | Calibre | 6 | 01-05-2012 05:16 PM |
error while compiling calibre under fedora... | samy2 | Calibre | 3 | 05-21-2011 01:01 PM |
Web Companion - "Error while copying the prc file to its target folder." | evanj | Workshop | 0 | 11-28-2005 06:10 AM |