Member_2_2394978
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
apologies, the error comes during 'sudo make' ./configure, completes wih no errors
ASKER
Solved it, need the package 'bison' as well!
Many thanks for your help,
James
Many thanks for your help,
James
ASKER
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?