Debian Patches

Status for yosys-plugin-ghdl/0.0~git20230419.5b64ccf-4

Patch Description Author Forwarded Bugs Origin Last update
0001-Disable-symbiyosys-tests.patch Disable symbiyosys tests Daniel Gröber <dxld@darkboxed.org> not-needed 2023-09-18
0003-Fix-libghdl-lib-search.patch Fix libghdl lib search Daniel Gröber <dxld@darkboxed.org> no 2022-01-08
0020-dyn-extract.patch dyn extract ghdl.cc: handle dyn_extract
.
for ghdl/ghdl#2962
Tristan Gingold <tgingold@free.fr> not-needed 2025-04-06
0030-display-ghdl-version.patch display ghdl version ghdl.cc: display version
Method is present in GHDL 5.0.1, but not 4.1.0.
Tristan Gingold <tgingold@free.fr> not-needed 2025-04-06
1000-logic32-zero.patch Avoid compiler warning by ensuring logic_32 struct is zeroed before use. This got rid of this compiler warning:
yosys-config --exec --cxx -c --cxxflags -o ghdl.o src/ghdl.cc -fPIC -DYOSYS_ENABLE_GHDL -I/usr/lib/ghdl/include -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/scratch/pere/src/fpga/ghdl-yosys-plugin-salsa=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DGHDL_VER_HASH="\"51efc53\""
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
In function ‘logic32_to_state(GhdlSynth::logic_32, unsigned int)’,
inlined from ‘get_src(std::vector<Yosys::RTLIL::Wire*, std::allocator<Yosys::RTLIL::Wire*> >&, GhdlSynth::Net)’ at src/ghdl.cc:290:31:
src/ghdl.cc:108:24: warning: ‘v.va’ may be used uninitialized [-Wmaybe-uninitialized]
108 | switch((((v.va >> i)) & 1) + ((v.zx >> i) & 1)*2)
| ~~~~~~~^~~~~~
src/ghdl.cc: In function ‘get_src(std::vector<Yosys::RTLIL::Wire*, std::allocator<Yosys::RTLIL::Wire*> >&, GhdlSynth::Net)’:
src/ghdl.cc:284:41: note: ‘v.va’ was declared here
284 | struct logic_32 v;
| ^
In function ‘logic32_to_state(GhdlSynth::logic_32, unsigned int)’,
inlined from ‘get_src(std::vector<Yosys::RTLIL::Wire*, std::allocator<Yosys::RTLIL::Wire*> >&, GhdlSynth::Net)’ at src/ghdl.cc:290:31:
src/ghdl.cc:108:45: warning: ‘v.zx’ may be used uninitialized [-Wmaybe-uninitialized]
108 | switch((((v.va >> i)) & 1) + ((v.zx >> i) & 1)*2)
| ~~~~~~^~~~~
src/ghdl.cc: In function ‘get_src(std::vector<Yosys::RTLIL::Wire*, std::allocator<Yosys::RTLIL::Wire*> >&, GhdlSynth::Net)’:
src/ghdl.cc:284:41: note: ‘v.zx’ was declared here
284 | struct logic_32 v;
| ^
yosys-config --build ghdl.so ghdl.o -shared -lghdl-5_0_1
In function ‘logic32_to_state’,
inlined from ‘get_src’ at src/ghdl.cc:290:31:
src/ghdl.cc:108:24: warning: ‘v.va’ may be used uninitialized [-Wmaybe-uninitialized]
108 | switch((((v.va >> i)) & 1) + ((v.zx >> i) & 1)*2)
| ^
src/ghdl.cc: In function ‘get_src’:
src/ghdl.cc:284:41: note: ‘v.va’ was declared here
284 | struct logic_32 v;
| ^
In function ‘logic32_to_state’,
inlined from ‘get_src’ at src/ghdl.cc:290:31:
src/ghdl.cc:108:45: warning: ‘v.zx’ may be used uninitialized [-Wmaybe-uninitialized]
108 | switch((((v.va >> i)) & 1) + ((v.zx >> i) & 1)*2)
| ^
src/ghdl.cc: In function ‘get_src’:
src/ghdl.cc:284:41: note: ‘v.zx’ was declared here
284 | struct logic_32 v;
| ^

===================================================================
Petter Reinholdtsen <pere@hungry.com> no 2026-03-04
1010-display-version-5.0.1.patch Only print version when building with appropriate GHDL version. The ghdlmain__disp_ghdl_version() method showed up between version 4.1.0
and version 5.0.1. Only use if if GHDL version 5.0.1 or newer is used.

===================================================================
Petter Reinholdtsen <pere@debian.org> not-needed 2026-03-04

All known versions for source package 'yosys-plugin-ghdl'

Links