Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

LTO with fuse-linker-plugin

Posted on 2010-09-09
4
Medium Priority
?
1,585 Views
Last Modified: 2012-05-10
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
0
Comment
Question by:James_h1023
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 8

Accepted Solution

by:
JIEXA earned 1000 total points
ID: 33635316
Check that the linker (binutils) are of appropriate version and configured/built with appropriate flags. Probably, the plugin for the linker is disabled.
0
 
LVL 4

Author Comment

by:James_h1023
ID: 33635722
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?
0
 
LVL 4

Author Comment

by:James_h1023
ID: 33635736
apologies, the error comes during 'sudo make' ./configure, completes wih no errors
0
 
LVL 4

Author Comment

by:James_h1023
ID: 33644487
Solved it, need the package 'bison' as well!

Many thanks for your help,
James
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question