Segmentation fault running with Ghdl
See original GitHub issueI’m a newbie with cocotb:
I’m running on Windows 64 with Anaconda Python 3.7 and ghdl.
Following the install instructions I’ve done a
conda install -c msys2 m2-base m2-make
and
pip install cocotb.
(I don’t know if relevant, but the pip install
failed at first complaining the install required MS Visual C++ Build Tools. Once I’d installed these, the pip install succeeded).
I’m now trying to run the basic adder.vhdl example from the cocotb documentation
In a conda shell I’m doing
(py37) C:\Users\DD\Documents\adder\tests>make SIM=ghdl TOPLEVEL_LANG=vhdl
but getting a Segmentation Error :
make results.xml
make[1]: Entering directory '/c/Users/DD/Documents/adder/tests'
\
/c/Users/DD/Documents/fpga-toolchain/bin/ghdl -i --workdir=sim_build --work=work /c/Users/DD/Documents/adder/tests/../hdl/adder.vhdl && \
/c/Users/DD/Documents/fpga-toolchain/bin/ghdl -m --workdir=sim_build -Psim_build --work=work adder MODULE=test_adder TESTCASE= TOPLEVEL=adder TOPLEVEL_LANG=vhdl \
/c/Users/DD/Documents/fpga-toolchain/bin/ghdl -r --workdir=sim_build -Psim_build --work=work adder --vpi=C:/users/dd/anaconda3/envs/py37/lib/site-packages/cocotb/libs/cocotbvpi_ghdl.dll
loading VPI module 'C:/users/dd/anaconda3/envs/py37/lib/site-packages/cocotb/libs/cocotbvpi_ghdl.dll' -.--ns INFO cocotb.gpi ..mbed\gpi_embed.cpp:77 in set_program_name_in_venv Did not detect Python virtual environment. Using system-wide Python interpreter -.--ns INFO cocotb.gpi ..\gpi\GpiCommon.cpp:105 in gpi_print_registered_impl VPI registered VPI module loaded!
/c/users/dd/anaconda3/envs/py37/lib/site-packages/cocotb/share/makefiles/simulators/Makefile.ghdl
make[1]: *** [results.xml] Segmentation fault
make[1]: Leaving directory '/c/Users/DD/Documents/adder/tests'
c:\users\dd\anaconda3\envs\py37\lib\site-packages\cocotb\share\makefiles/Makefile.inc:39: recipe for target 'sim' failed
make: *** [sim] Error 2
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
Just an update: Whilst I haven’t found a solution for ghdl in ‘pure’ Windows, by installing MSYS cocotb and the MSYS Ghdl package from here : https://packages.msys2.org/package/mingw-w64-x86_64-ghdl I am now up and running. So at at least provides a solution for us VHDL/Windows-PC users.
You found a workaround and the original problem is not with us. Reopen if you think your problem isn’t yet addressed.