Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » compile error: liblto_plugin.so not found(CDT compiler error)
compile error: liblto_plugin.so not found [message #1708552] Thu, 17 September 2015 12:22 Go to next message
Berten Vandebroek is currently offline Berten VandebroekFriend
Messages: 4
Registered: September 2015
Junior Member
Hi,

I'm trying to compile my first C/CC++ project in Eclipse and this is the console output:
14:01:40 **** Incremental Build of configuration Release for project test ****
make all 
Starting combiner
"/home/berten/bin/arduino-1.6.5-r5/hardware/tools/avr/bin/avr-gcc" -Os -Wl,--gc-sections -mmcu=atmega328p  -o "/home/berten/Documents/Coding/Eclipse/test/Release/test.elf"    ./test.cpp.o   arduino.ar   "/home/berten/Documents/Coding/Eclipse/test/Release/arduino.ar" "-L/home/berten/Documents/Coding/Eclipse/test/Release" -lm
avr-gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.
make: *** [test.elf] Error 1
makefile:76: recipe for target 'test.elf' failed

14:01:40 Build Finished (took 276ms)


I'm on debian jessie and I am using Eclipse 3.8.1. I haven't the slightest clue what liblto_plugin.so is or where/how to get it.

Similar thread (from 2011)
https://www.eclipse.org/forums/index.php/m/771535/?srch=liblto#msg_771535

Re: compile error: liblto_plugin.so not found [message #1708558 is a reply to message #1708552] Thu, 17 September 2015 12:57 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
You are using avr-gcc and the avr toolchain?

If so, this link (https://github.com/ladislas/Bare-Arduino-Project/issues/7) suggests ensuring you have the following packages installed:
gcc-avr
binutils
avr-libc
avrdude


You may also want to check out : http://avr-eclipse.sourceforge.net/wiki/index.php/The_AVR_GCC_Toolchain

which lists:
gcc-avr
binutils-avr
gdb-avr
avr-libc
avrdude

If you didn't intend to use avr, you should change the tool chain.
You can do this in the project properties ==> C/C++ Build ==> Tool Chain Editor dialog.
Previous Topic:IDE wont start
Next Topic:Using CDT Text editor context
Goto Forum:
  


Current Time: Sat May 04 06:30:20 GMT 2024

Powered by FUDForum. Page generated in 0.03463 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top