A critical error occurs where GHDL is unable to locate the standard libraries (std and ieee) after a specific installation sequence involving the OSS-CAD-Suite on Windows 11.
The issue appears to be triggered when:
- OSS-CAD-Suite is installed after GHDL.
- OR when OSS-CAD-Suite is uninstalled and reinstalled while GHDL is already present.
It seems that the internal path resolution for GHDL is being redirected or broken, looking for library files in a directory that does not exist or has been moved during the OSS-CAD-Suite setup.
Note: This issue likely belongs in the main OneWare repository. However, due to time constraints for deeper debugging, I am documenting it here in OneWare.GHDLExtension first to ensure the bug is tracked.
Error Log
[Test]: ghdl -i --workdir=C:\Users\<USER>\workspaces\OneWare\main\Projects\Test\build -PC:\Users\<USER>\workspaces\OneWare\main\Projects\Test\build --std=93 Test.vhd Test_tb.vhd
C:\Users\<USER>\workspaces\OneWare\main\Packages\NativeTools\ghdl\bin\ghdl.exe:warning: ieee library directory 'C:\Users\<USER>\workspaces\OneWare\main\Packages\NativeTools\osscadsuite\oss-cad-suite\lib\ghdl\ieee\v93\' not found
C:\Users\<USER>\workspaces\OneWare\main\Packages\NativeTools\ghdl\bin\ghdl.exe:error: cannot find "std" library
[Test]: ghdl -m --workdir=C:\Users\<USER>\workspaces\OneWare\main\Projects\Test\build -PC:\Users\<USER>\workspaces\OneWare\main\Projects\Test\build --std=93 Test
C:\Users\<USER>\workspaces\OneWare\main\Packages\NativeTools\ghdl\bin\ghdl.exe:warning: ieee library directory 'C:\Users\<USER>\workspaces\OneWare\main\Packages\NativeTools\osscadsuite\oss-cad-suite\lib\ghdl\ieee\v93\' not found
C:\Users\<USER>\workspaces\OneWare\main\Packages\NativeTools\ghdl\bin\ghdl.exe:error: cannot find "std" library
Steps to Reproduce
- Have a working OneWare environment with GHDL installed.
- Install/Reinstall the OSS-CAD-Suite package.
- Attempt to analyze or synthesize a VHDL project (e.g., using --std=93).
- GHDL fails with error: cannot find "std" library.
Observations
The warning shows that GHDL is looking for the IEEE library inside the osscadsuite path:
...\NativeTools\osscadsuite\oss-cad-suite\lib\ghdl\ieee\v93\
It appears there is a conflict between the standalone GHDL pathing and the paths expected by the OSS-CAD-Suite version of the tools, leading to a broken environment if the installation order is not "perfect."
According to the OSS-CAd-Suite website, GHDL is not available for Windows, but only for macOS and Linux. An exception will probably have to be made for Windows.
A critical error occurs where GHDL is unable to locate the standard libraries (std and ieee) after a specific installation sequence involving the OSS-CAD-Suite on Windows 11.
The issue appears to be triggered when:
It seems that the internal path resolution for GHDL is being redirected or broken, looking for library files in a directory that does not exist or has been moved during the OSS-CAD-Suite setup.
Note: This issue likely belongs in the main OneWare repository. However, due to time constraints for deeper debugging, I am documenting it here in OneWare.GHDLExtension first to ensure the bug is tracked.
Error Log
Steps to Reproduce
Observations
The warning shows that GHDL is looking for the IEEE library inside the osscadsuite path:
...\NativeTools\osscadsuite\oss-cad-suite\lib\ghdl\ieee\v93\It appears there is a conflict between the standalone GHDL pathing and the paths expected by the OSS-CAD-Suite version of the tools, leading to a broken environment if the installation order is not "perfect."
According to the OSS-CAd-Suite website, GHDL is not available for Windows, but only for macOS and Linux. An exception will probably have to be made for Windows.