Comment 4 for bug 1781054

Revision history for this message
In , v_2e (v2e-gentoo-bugs) wrote :

Created attachment 522474
freehdl-0.0.8-declerative_region.patch

With sci-electronics/freehdl-0.0.8 the freehdl-v2cc command returns Segmentation fault even for the simplest VHDL demo (https://ghdl.readthedocs.io/en/latest/using/QuickStartGuide.html). It also does for any schematic I tried in Qucs.

I did some backtrace and suggest a patch which seems to fix this issue.

As the source file 'v2cc/v2cc-chunk.t' states,

    ;; respect to the entity). Note that the value is set to NULL if
    ;; the object/declaration/expression is not static at all!
    (IIR_DeclarativeRegion static_declarative_region (= "NULL"))

so my patch provides a simple check of the NULL pointer. I am not sure my solution is correct, but at least, it allows me to use freehdl-v2cc.