This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

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

Hi Experts: I met one complier error as blow. Would you get me some idea? High appreciate!

--------------------------------------------------------
Ubuntu 16 (64 bit)
GNU_INSTALL_ROOT := /usr/local/gcc-arm-none-eabi-4_9-2015q3/bin/
GNU_VERSION := 4.9.3
GNU_PREFIX := arm-none-eabi
make-4.2.tar.gz
--------------------------------------------------------

user@ubuntu:$ make
Linking target: _build/nrf52832_xxaa.out
arm-none-eabi-gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.
/home/user/nRF5_SDK_14/components/toolchain/gcc/Makefile.common:292: recipe for target '_build/nrf52832_xxaa.out' failed
make: *** [_build/nrf52832_xxaa.out] Error 1
Parents
  • Hi expert:

    I try this example. nRF5_SDK_14.0.0_3bcc1f7\examples\peripheral\gpiote

    Thanks!

  • We do not use LTO in any of the Makefiles in the SDK. Either you must have added this to your Makefiles, or it is set somewhere else in your system. You could try with a newer version of GCC which have fixed support for LTO.

Reply
  • We do not use LTO in any of the Makefiles in the SDK. Either you must have added this to your Makefiles, or it is set somewhere else in your system. You could try with a newer version of GCC which have fixed support for LTO.

Children
No Data