WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Wrong path gcc:bfd-plugins  (Read 1859 times)

Offline polikuo

  • Hero Member
  • *****
  • Posts: 730
Wrong path gcc:bfd-plugins
« on: January 19, 2022, 08:40:18 AM »
PiCore 13.1 aarch64 5.10.77-piCore-v8

Compiling with LTO when I got
Code: [Select]
plugin needed to handle lto object
It appears the liblto_plugin.so is in /usr/lib/bfd-plugins instead of /usr/local/lib/bfd-plugins

I can soft link to bypass, but it should be fixed.
Code: [Select]
$ sudo mkdir /usr/local/lib/bfd-plugins
$ sudo ln -s /tmp/tcloop/gcc/usr/local/libexec/gcc/aarch64-unknown-linux-gnu/10.2.0/liblto_plugin.so.0.0.0 /usr/local/lib/bfd-plugins/liblto_plugin.so

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1244
Re: Wrong path gcc:bfd-plugins
« Reply #1 on: January 19, 2022, 12:13:26 PM »
I haven't used lto at all on aarch64, but Juanito just asked to have it linked this way...

Code: [Select]
ln -sfv /usr/local/libexec/gcc/aarch64-unknown-linux-gnu/10.2.0/liblto_plugin.so /usr/lib/bfd-plugins/


Offline polikuo

  • Hero Member
  • *****
  • Posts: 730
Re: Wrong path gcc:bfd-plugins
« Reply #2 on: January 19, 2022, 12:32:04 PM »
What ? How ?
I have to manually link it there to compile.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: Wrong path gcc:bfd-plugins
« Reply #3 on: January 19, 2022, 12:35:38 PM »
That looks like a typo - sorry.

/usr/local/lib/bfd-plugins/?

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1244
Re: Wrong path gcc:bfd-plugins
« Reply #4 on: January 19, 2022, 04:42:57 PM »
lto is not part of the armhf/aarch64 standard build flags, so I've never really played with it.   But I'll make the updates when I can.