Link to home
Start Free TrialLog in
Avatar of Member_2_2394978
Member_2_2394978Flag for United Kingdom of Great Britain and Northern Ireland

asked on

LTO with fuse-linker-plugin

Hi all*,

Having some problems with the LTO in GCC 4.5. I've two questions, so split them into different questions.

If I try to compile my program with -fuse-linker-plugin I get
'unrecognized option -plugin'

Any suggestions?

I configured GCC with  '--enable-lto --enable-gold'.

Compiling with just -flto works fine.

Many thanks,
James
ASKER CERTIFIED SOLUTION
Avatar of JIEXA
JIEXA
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Member_2_2394978

ASKER

Thanks for a quick reply.

Very likely!

I'm trying to compile binutils
CC=gcc ./configure --enable-gold --enable-plugins
as suggested by the documentation as I have several versions of gcc installed.

However I get

In file included from expression.cc:33:0:
script-c.h:207:7: warning :'yylex' intialised and declared 'extern'
script-c.h:207:7: error: 'YYSTYPE' was not declared in this scope
script-c.h:207:15: error: expected primary-expression before ',' token
script-c.h:207:17: error: expected primary-expression before 'void'
script-c.h:207:30: error: intializer expression list treated as compound expression

I tried to find script-c.h to perhaps correct the problem, however can't anywhere!

Any suggestions?
apologies, the error comes during 'sudo make' ./configure, completes wih no errors
Solved it, need the package 'bison' as well!

Many thanks for your help,
James