ghdl-yosys-plugin icon indicating copy to clipboard operation
ghdl-yosys-plugin copied to clipboard

mingw-w64-x86_64-yosys package does not contain plugins/ghdl.so file

Open JakubFranek opened this issue 9 months ago • 5 comments

Hello,

I installed mingw-w64-x86_64-yosys package from the mingw-w64-x86_64-eda package group via MSYS2 on my Windows 10 machine as recommended in the readme.

When I try to show a schematic view of a design via TerosHDL, which invokes ghdl-yosys-plugin, I get the following error:

2025-02-16 00:14:00.905 [info] Executing: C:\WINDOWS\system32\cmd.exe  C:\WINDOWS\system32\cmd.exe /d /s /c " D:\Programy\MSYS2\mingw64\bin\yosys.exe -m ghdl -p "ghdl --std=08 -fsynopsys  --work=work "d:\Electronics\FPGA\nexys-a7-lab\source\common\clock_enable_generator.vhd"  --work=work -e clock_enable_generator; hierarchy -top clock_enable_generator; proc; write_json C:\Users\jfran\.teroshdl_oz0Bm; stat""
2025-02-16 00:14:01.599 [info] ERROR: Can't load module `./ghdl': "D:\Programy\MSYS2\mingw64\bin\..\share\yosys\plugins\ghdl.so": Uveden� modul nebyl nalezen.

(The ending of the second error line is in Czech and means "listed module not found").

Indeed I can confirm there is no plugins folder within my MSYS2/mingw64/share/yosys/ folder and no ghdl.so file anywhere within my whole MSYS2 directory.

According to this Reddit discussion, I am not alone in encountering this exact same error. Is it possible that the recommended installation procedure as listed in this repository's readme is out of date or invalid? It seems to me that the recommended pre-built package does not actually contain this plugin after all.

Thank you.

Kind regards Jakub

JakubFranek avatar Feb 15 '25 23:02 JakubFranek

I am not sure what should be fixed. Now yosys supports plugin on Windows, so I will modify the README for that.

But the README simply claims that some projects provide ghdl-yosys-plugin. On mingw, you still have to build it.

tgingold avatar Feb 16 '25 09:02 tgingold

Thanks for the quick response.

The README says:

Some projects provide pre-built packages including GHDL, Yosys and ghdl-yosys-plugin. Unless you have specific requirements (targeting a different arch, OS, build options...), we suggest using one of the following solutions before building ghdl-yosys-plugin from sources.

Maybe I misunderstood the wording (English is not my native language), but I thought that these two sentences say that this plugin in a pre-built state is included within the "following solutions", and that this is the preferred method rather than building the plugin from sources.

If I understand you correctly, you are saying that these "pre-built" packages contain only the plugin sources, but not the pre-built plugin, and the user still has to build the plugin "manually". Is that correct?

JakubFranek avatar Feb 16 '25 11:02 JakubFranek

I agree it is not very well worded. I will improve that.

tgingold avatar Feb 16 '25 16:02 tgingold

Hello i have the Same problem. And added the issue in

https://github.com/msys2/MINGW-packages/issues/23466

std-rubic avatar Feb 21 '25 19:02 std-rubic

.so files are linux files, you mean .dll?

Kreijstal avatar Feb 26 '25 12:02 Kreijstal