liblto_plugin.so not found

grace graceava466 at gmail.com
Thu Mar 13 07:21:49 UTC 2025


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.
>
> On my machine, gcc --version prints "gcc (GCC) 14.2.0" and gdc 
> --version prints "gdc (GCC) 14.2.0".
>
> ~Brian


It looks like your **gdc** installation is missing the 
**liblto_plugin.so** file, which is required for the 
**-fuse-linker-plugin** option. First, check if the file exists 
by running `find /usr -name "liblto_plugin.so"`. If it's missing, 
reinstalling or fixing the **binutils** package with `sudo pacman 
-S binutils gcc-libs` might help. If the file exists but isn't 
being detected, try manually specifying the linker path using 
`export LD_LIBRARY_PATH=/path/to/liblto_plugin`. Additionally, 
there could be a version mismatch between **gcc** and **gdc**, so 
reinstalling **gdc** with `sudo pacman -S gdc` might resolve the 
issue. Since you're on an Arch-based system, package dependencies 
can vary, just like how **[subwaymenu](https://subwaymenu.de/)** 
provides specific details on menu items, ensuring everything is 
correctly matched is key. Let me know if you need further 
troubleshooting!


More information about the D.gnu mailing list