Thread overview
liblto_plugin.so not found
Mar 12
fr
Mar 13
fr
March 12

Hey all,

I have freshly installed gcc (12.1.0) and gdc (8.2.1) on an Raspberry Pi 3B+ running an arch linux derivative.
When trying to compile even very minimal d code with a simple gdc code.d, I get an error:

gdc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found

Adding a -v flag conveys the following used gcc options:

COLLECT_GCC_OPTIONS='-v' '-o' 'a.out' '-shared-libgcc' '-march=armv8-a' '-mlittle-endian' '-mabi=lp64'

Does anyone have an idea how to address this?

P.S.: this is the code that fails to compile:

import std.stdio;

void main()
{
    writeln("Hello World!");

}
March 13

You could add -fno-use-linker-plugin as a stop-gap measure, but it seems like you have an installation issue. You probably want a GDC version that matches your GCC version.

On my machine, gcc --version prints "gcc (GCC) 14.2.0" and gdc --version prints "gdc (GCC) 14.2.0".

~Brian

March 13

On Thursday, 13 March 2025 at 02:12:54 UTC, Brian Callahan wrote:

>

You could add -fno-use-linker-plugin as a stop-gap measure, but it seems like you have an installation issue. You probably want a GDC version that matches your GCC version.

Thank you Brian, that is helpful. It seems my distribution doesn't provide the right package versions on this architecture.

I was able to circumvent by compiling with ldc, so problem at hand solved.

fr