Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 09-25-2012, 08:40 AM   #31
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by ppoo View Post
How to disable LTO ?
LTO is implemented as a (the only at the moment) "Plug-in"
So: -f <whatever gcc help tells you is disable-plug-ins is>
OR,
The links to the gcc on-line manual set is indexed in the "Tools" prefix index if your 'gcc help' isn't helpful enough.
knc1 is offline   Reply With Quote
Old 09-25-2012, 09:22 AM   #32
ppoo
Connoisseur
ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.
 
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?
ppoo is offline   Reply With Quote
Advert
Old 09-25-2012, 09:28 AM   #33
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by ppoo View Post
@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?
There probably is, but why not: -fno-use-linker-plugin when you don't want it?

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.
knc1 is offline   Reply With Quote
Old 09-25-2012, 11:18 AM   #34
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012492
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.
NiLuJe is offline   Reply With Quote
Old 09-25-2012, 11:26 AM   #35
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by NiLuJe View Post
@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
I am pretty sure that you can define in the sb2 instance things like "instance flags" for those options that will always be part of each use.

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).
knc1 is offline   Reply With Quote
Advert
Old 09-25-2012, 11:30 AM   #36
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012492
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 . But it's still a GCC option, not a binutils one, so it's rightful place is still in CFLAGS, not LDFLAGS .
NiLuJe is offline   Reply With Quote
Old 09-25-2012, 11:36 AM   #37
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
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.)
knc1 is offline   Reply With Quote
Old 09-25-2012, 11:50 AM   #38
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012492
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 . The buildsystem just has to be 'smart' enough to link through the gcc linker driver, and to honor the *FLAGS properly.

Last edited by NiLuJe; 09-25-2012 at 11:57 AM.
NiLuJe is offline   Reply With Quote
Old 09-26-2012, 12:40 AM   #39
ppoo
Connoisseur
ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.
 
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.
ppoo is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 12:26 AM.


MobileRead.com is a privately owned, operated and funded community.