-
-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Description
The following fatal error occurs during elaboration:
** Fatal: cannot handle value size 0
[0x5659f93abbf5] ../src/diag.c:1053 diag_femit
[0x5659f93abbf5] ../src/diag.c:1078 diag_emit
[0x5659f92be16f] ../src/util.c:610 fatal_trace
[0x5659f92d4431] ../src/jit/jit-irgen.c:1057 irgen_copy_const.isra.0.cold
[0x5659f93ba27e] ../src/jit/jit-irgen.c:1142 irgen_op_const_record.lto_priv.0
[0x5659f93c3010] ../src/jit/jit-irgen.c:3649 irgen_block
[0x5659f93c5004] ../src/jit/jit-irgen.c:4361 jit_irgen
[0x5659f93b7fc0] ../src/jit/jit-core.c:687 jit_unpack_args
[0x5659f93b7fc0] ../src/jit/jit-core.c:728 jit_try_call
[0x5659f933e592] ../src/eval.c:483 eval_instance
[0x5659f933e592] ../src/eval.c:1341 elab_lower.lto_priv.0
[0x5659f933fa25] ../src/elab.c:1452 elab_architecture.lto_priv.0
[0x5659f92dda80] ../src/elab.c:2229 elab
[0x5659f92dda80] ../src/elab.c:511 elaborate
[0x5659f92da119] ../src/nvc.c:2210 process_command
[0x5659f92da81f] ../src/nvc.c:1805 cover_export_cmd
[0x5659f92da81f] ../src/nvc.c:2236 process_command
[0x5659f92d5bc0] ../src/nvc.c:2370 main
nvc 1.16-devel (1.15.0.r5.g231ae7ab) (Using LLVM 18.1.3) [x86_64-pc-linux-gnu]
The issue can be reproduced when analyzing and elaborating a specific VHDL module. This behavior was observed in versions 1.15.0 and master, but works fine using 1.14.2.
Steps to Reproduce:
Clone the repository hdl-modules.
Run the following commands in the project directory:
nvc --work=common -L. -a modules/common/src/types_pkg.vhd
nvc --work=math -L. -a modules/math/src/*.vhd
nvc --work=common -L. -a modules/common/src/width_conversion_pkg.vhd modules/common/src/width_conversion.vhd -e width_conversion -ginput_width=8 -goutput_width=16
Metadata
Metadata
Assignees
Labels
No labels