Author Topic: arm-none-eabi-g++ error fuse-linker-plugin, but liblto_plugin.so not found  (Read 2244 times)

0 Members and 1 Guest are viewing this topic.

Offline renemanTopic starter

  • Contributor
  • Posts: 21
  • Country: 00
I move my embedded toolchain for C++ SAMD21 from Ubuntu 16 to Ubuntu 20.4 and arm-none-eabi-g++ no longer compiles my project. This is the error I get:

arm-none-eabi-g++: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.

Seems like liblto_plugin is either not installed, or installed but not found. What is this library and how could I solve this issue?

My makefile runs this:

Code: [Select]

/home/reneman/toolchain/arm2021/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DSAM21 -Iinclude -I../../../myOS.v11/HardwareSAM21/include -I../../../myOS.v11/ports/include  -c src/Principal.cpp -o obj/sam21/Principal.o

/home/reneman/toolchain/arm2021/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -L../../../myOS.v11/lib/sam21 ../../../myOS.v11/lib/sam21/libRenesys.a -o bin/sam21/myOS.elf obj/sam21/Principal.o  -mcpu=cortex-m0plus -mthumb -specs=nano.specs -specs=nosys.specs -Wl,--gc-sections -Wl,--script=/home/reneman/toolchain/arm2021/linker/samd21j18.ld  -lKernelComunicacion -lEthernet -lPuertos -lSPI -lHALCore -lHAL -lstreaming -lHardwareSAM21 -lCoreSAM21


Thanks,
« Last Edit: September 13, 2021, 10:31:01 am by reneman »
Always Learning
 

Offline bingo600

  • Super Contributor
  • ***
  • Posts: 1989
  • Country: dk
Re: arm-none-eabi-g++ error fuse-linker-plugin, but liblto_plugin.so not found
« Reply #1 on: September 13, 2021, 05:59:46 pm »
If i were you i'd probably grab the install package once again , and do a new install
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads

The 2017-q4 is a bit down on the page

/Bingo
 
The following users thanked this post: reneman

Offline renemanTopic starter

  • Contributor
  • Posts: 21
  • Country: 00
Re: arm-none-eabi-g++ error fuse-linker-plugin, but liblto_plugin.so not found
« Reply #2 on: September 14, 2021, 08:54:41 am »
If i were you i'd probably grab the install package once again , and do a new install
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads

The 2017-q4 is a bit down on the page

/Bingo

This worked like a charm. I had previously copied the same .so file from a previous (4.X) gcc version and it already worked and built just fine, but using 2017-q4, the same toolchain version, seems like a better idea and works equally well. So yeah, just copy the missing file(s) and the build process worked again :)
Always Learning
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf