WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline polikuo

  • Hero Member
  • *****
  • Posts: 666
Wrong path gcc:bfd-plugins
« on: January 19, 2022, 05: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: 809
Re: Wrong path gcc:bfd-plugins
« Reply #1 on: January 19, 2022, 09:13:26 AM »
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: 666
Re: Wrong path gcc:bfd-plugins
« Reply #2 on: January 19, 2022, 09:32:04 AM »
What ? How ?
I have to manually link it there to compile.

Offline Juanito

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

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

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 809
Re: Wrong path gcc:bfd-plugins
« Reply #4 on: January 19, 2022, 01: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.