void-linux / void-packages

The Void source packages collection
https://voidlinux.org
Other
2.59k stars 2.16k forks source link

= note: cc: fatal error: '-fuse-linker-plugin', but liblto_plugin.so not found #53069

Open philiprhoades opened 2 hours ago

philiprhoades commented 2 hours ago

Is this a new report?

Yes

System Info

Void 6.8.5-301.fc40.x86_64 x86_64-musl AuthenticAMD notuptodate rF

Package(s) Affected

gcc-13.2.0_2

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

Successfully compilation

Actual behaviour

Doing:

cargo install vdash

I get:

.
.
  = note: cc: fatal error: '-fuse-linker-plugin', but liblto_plugin.so not found
          compilation terminated.

error: could not compile `libc` (build script) due to 1 previous error
error: failed to compile `vdash v0.18.1`, intermediate artifacts can be found at `/tmp/cargo-installFokYy0`.

Steps to reproduce

  1. rustup
  2. cargo install vdash
classabbyamp commented 2 hours ago

is gcc installed?

xlocate liblto_plugin.so
...
gcc-13.2.0_2                           /usr/lib/bfd-plugins/liblto_plugin.so -> /usr/lib/gcc/x86_64-unknown-linux-gnu/13.2/liblto_plugin.so
...
philiprhoades commented 1 hour ago

is gcc installed?

Yep:

SSL_NO_VERIFY_PEER=1 xbps-install gcc
Package `gcc' already installed.

xlocate liblto_plugin.so ... gcc-13.2.0_2 /usr/lib/bfd-plugins/liblto_plugin.so -> /usr/lib/gcc/x86_64-unknown-linux-gnu/13.2/liblto_plugin.so

gcc-13.2.0_2 /usr/lib/bfd-plugins/liblto_plugin.so -> /usr/lib/gcc/x86_64-unknown-linux-gnu/13.2/liblto_plugin.so gcc-13.2.0_2 /usr/lib/gcc/x86_64-unknown-linux-gnu/13.2/liblto_plugin.so