Missing liblto_plugin.so but it's there and in my path

Asked by Richard Copeman

HI,

Downloaded and installed the 4.7.3 tools to my Ubuntu 12.04.1 x64 system.
I am trying to build from within Eclipse Juno. I am using OpenJDK7 instead of the Oracle Java.

I have my path set to include /usr/lib/gcc/arm-none-eabi/4.7.3
In my eclipse settings I've added paths to other include and library files:
/usr/lib/gcc/arm-none-eabi/4.7.3/include
/usr/arm-none-eabi/include
/usr/arm-none-eabi/include/machine/usr/lib/gcc/arm-none-eabi/4.7.3

When I start a build it gets as far as linking and then I get a fatal error

-fuse-linker-plugin but liblto_plugin.so not found

I have two of these on my system:
/usr/lib/gcc/arm-none-eabi/4.7.3/liblto_plugin.so[.0|.0.0.0]
/usr/lib/gcc/x86_64-linux-gnu/4.6/liblto_plugin.so[.0|.0.0.0]

I am puzzled as to why I am getting this error when the library appears to be there and in the right place?

If anyone has any insights or can point me to some further reading, I'd be very grateful.

Thanks,

Richard.

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Solved by:
Joey Ye
Solved:
Last query:
Last reply:
Revision history for this message
Joey Ye (jinyun-ye) said :
#1

Please try to add the path where you installed arm-none-eabi-gcc

Joey
On Jun 24, 2013 11:38 PM, "Richard Copeman" <
<email address hidden>> wrote:

> New question #231285 on GCC ARM Embedded:
> https://answers.launchpad.net/gcc-arm-embedded/+question/231285
>
> HI,
>
> Downloaded and installed the 4.7.3 tools to my Ubuntu 12.04.1 x64 system.
> I am trying to build from within Eclipse Juno. I am using OpenJDK7 instead
> of the Oracle Java.
>
> I have my path set to include /usr/lib/gcc/arm-none-eabi/4.7.3
> In my eclipse settings I've added paths to other include and library files:
> /usr/lib/gcc/arm-none-eabi/4.7.3/include
> /usr/arm-none-eabi/include
> /usr/arm-none-eabi/include/machine/usr/lib/gcc/arm-none-eabi/4.7.3
>
>
> When I start a build it gets as far as linking and then I get a fatal error
>
> -fuse-linker-plugin but liblto_plugin.so not found
>
> I have two of these on my system:
> /usr/lib/gcc/arm-none-eabi/4.7.3/liblto_plugin.so[.0|.0.0.0]
> /usr/lib/gcc/x86_64-linux-gnu/4.6/liblto_plugin.so[.0|.0.0.0]
>
> I am puzzled as to why I am getting this error when the library appears to
> be there and in the right place?
>
> If anyone has any insights or can point me to some further reading, I'd be
> very grateful.
>
> Thanks,
>
> Richard.
>
> --
> You received this question notification because you are an answer
> contact for GCC ARM Embedded.
>

Revision history for this message
Richard Copeman (richard-copeman) said :
#2

HI Joey,

Thanks for the help. However, arm-none-eabi-gcc is in /usr/bin, which is already in my path. I installed using the package from PPA:terry.guo/gcc-arm-embedded and just let it do whatever it needed to.

The correct liblto_plugin.so is in /usr/lib/gcc/arm-none-eabi/4.7.3 which is also in my path.

Thanks,

Richard.

Revision history for this message
Best Joey Ye (jinyun-ye) said :
#3

Richard,

Can you please try to verify if command line tools works correctly?

cd /usr/share/gcc-arm-none-eabi/samples/src
make -B

It uses build projects with LTO. If it work that means your GCC installation is correct.

I don't have Eclipse setup to reproduce your case. Maybe setting
export LD_LIBRARY_PATH=/usr/lib/gcc/arm-none-eabi/4.7.3
will help then.

Thanks,
Joey

Revision history for this message
Richard Copeman (richard-copeman) said :
#4

I managed to solve the problem with the missing liblto_plugin by removing the DEB archive and downloading the .BZ2 file and unpacking and copying that to /opt.
I then had to trawl through eclipse and find all of the tool references and change them to the new locations. I can run the build now without getting that error any more. I have other errors but I'm confident these are my problems, not the toolchain's :-)

Thanks for all your help.

Richard.