D.gnu - liblto_plugin.so not found
- fr (19/19) Mar 12 Hey all,
- Brian Callahan (6/6) Mar 12 You could add -fno-use-linker-plugin as a stop-gap measure, but
- fr (6/9) Mar 13 Thank you Brian, that is helpful. It seems my distribution
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:
```d
import std.stdio;
void main()
{
writeln("Hello World!");
}
```
Mar 12
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
Mar 12
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
Mar 13








fr <fr58426 gmail.com>