carry_lookahead_adder simulation doesn't run in Linux.

DongHwan Yoon
DongHwan Yoon New Altair Community Member
edited February 18 in Community Q&A

Hi, before asking my question I really thank you for your great software.


I faced a problem when I run simulation that you offer in default.

Here is a error message, and please tell me what causes this and how to solve this problem.




$ dvhcom -lib 'dut' -F 'filelist_VHDL.txt'=N:[LibUpdate] Updated library dut.$ dvlcom '..\testbench\carry_lookahead_adder_directed_tb.sv'=N:[LibUpdate] Updated library work.$ dsim -top work.carry_lookahead_adder_tb -L dut +acc+b -waves waves.mxd=N:[UsageMeter (2024-07-18 20:39:49 +0900)] usage server initial connection=N:[License] Licensed for Metrics Design Automation.=N:[License] New lease granted.Analyzing...Elaborating...  Top-level modules:    $unit    carry_lookahead_adder_tb  Found 6 unique specialization(s) of 6 design element(s).Optimizing...Building models...PLI/VPI access: +b Simulation time precision is 1ns.  [1/11] module $root: 180 functions, 418 basic blocks  [3/11] CU scope $unit: 1 functions, 2 basic blocks  [4/11] module carry_lookahead_adder_tb#(3): 8 functions, 47 basic blocks  [10/11] architecture carry_lookahead_adder(rtl)#(3): 26 functions, 117 basic blocks  [11/11] architecture module_full_adder(rtl): 10 functions, 45 basic blocksLinking image.so...ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.text+0xd7): undefined reference to `dsim_gc_malloc_eq'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.text+0x12a): undefined reference to `dsim_queue_new'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.text+0x1be): undefined reference to `dsim_process_kill'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.text+0x1cc): undefined reference to `dsim_program_cleanup'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.text+0x201): undefined reference to `dsim_process_get_queue'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.text+0x210): undefined reference to `dsim_eq_remove_dynamic'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.text+0x222): undefined reference to `dsim_process_alive'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.text+0x22e): undefined reference to `dsim_process_get_queue'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.text+0x250): undefined reference to `dsim_eq_enqueue_phys_dynamic'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.text+0x263): undefined reference to `dsim_block'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.text+0x298): undefined reference to `dsim_process_suspend'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.text+0x2b8): undefined reference to `dsim_process_resume'ld: dsim_work/obj/HLieee.Bnumeric_std.o:dsir_pp.ll:(.text+0x30): undefined reference to `dsim_vhdl_comp_assign'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x3f0): undefined reference to `stringDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x430): undefined reference to `intDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x470): undefined reference to `intDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x4b0): undefined reference to `stringDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x4f0): undefined reference to `intDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x540): undefined reference to `intDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x590): undefined reference to `intDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x5d0): undefined reference to `bitDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x610): undefined reference to `bitDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x660): undefined reference to `bitDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x710): undefined reference to `intDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x740): undefined reference to `intDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x770): undefined reference to `stringDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x7a0): undefined reference to `intDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x7d0): undefined reference to `intDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x800): undefined reference to `bitDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x840): undefined reference to `bitDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x8d0): undefined reference to `intDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x900): undefined reference to `intDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x930): undefined reference to `stringDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x960): undefined reference to `intDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x990): undefined reference to `intDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0x9e0): undefined reference to `intDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0xa80): undefined reference to `intDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0xab0): undefined reference to `intDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0xae0): undefined reference to `stringDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0xb20): undefined reference to `bitDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0xb60): undefined reference to `bitDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0xbb0): undefined reference to `bitDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0xc50): undefined reference to `intDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0xc80): undefined reference to `intDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0xcb0): undefined reference to `stringDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0xd40): undefined reference to `intDefUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata+0xe28): undefined reference to `opaqueDefUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x168): undefined reference to `uintegerVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x1e8): undefined reference to `uintegerVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x258): undefined reference to `uintegerVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x338): undefined reference to `uintegerVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x3a8): undefined reference to `uintegerVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x488): more undefined references to `uintegerVhdlUOD' followld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x1308): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x13e8): undefined reference to `uintegerVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x14b8): undefined reference to `uintegerVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x1588): undefined reference to `uintegerVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x1660): undefined reference to `uintegerVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x16d0): undefined reference to `uintegerVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x17b0): more undefined references to `uintegerVhdlUOD' followld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x18b8): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x1930): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x19a0): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x1a78): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x1ae8): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x1bc0): more undefined references to `int32VhdlUOD' followld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x3048): undefined reference to `urealVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x30c0): undefined reference to `urealVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x3130): undefined reference to `urealVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x3208): undefined reference to `urealVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x3278): undefined reference to `urealVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x3350): more undefined references to `urealVhdlUOD' followld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x4160): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x4238): undefined reference to `urealVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x4308): undefined reference to `urealVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x43d8): undefined reference to `urealVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x4468): undefined reference to `realVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x44e0): undefined reference to `realVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x4550): undefined reference to `realVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x4628): undefined reference to `realVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x4698): undefined reference to `realVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x4770): more undefined references to `realVhdlUOD' followld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x5580): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x5658): undefined reference to `realVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x5728): undefined reference to `realVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x57f8): undefined reference to `realVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x58c8): undefined reference to `urealVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x5938): undefined reference to `uintegerVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x5a10): undefined reference to `uintegerVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x5a80): undefined reference to `urealVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x5b58): undefined reference to `urealVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x5bc8): undefined reference to `uintegerVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x12538): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x12680): undefined reference to `realVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x12758): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x128a0): undefined reference to `realVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x12a58): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x12ba0): undefined reference to `realVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x14bb0): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x14d00): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x14e50): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x14fa0): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x150f0): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x15240): more undefined references to `int32VhdlUOD' followld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x1b750): undefined reference to `realVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x1c5b0): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x1c768): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x1c840): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x1c8b0): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x1d190): undefined reference to `realVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x1d348): undefined reference to `realVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x1d420): undefined reference to `realVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x1d490): undefined reference to `realVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x1e148): undefined reference to `realVhdlUOD'ld: dsim_work/obj/HLstd.Bstandard.o:HLstd.Bstandard.o:(.rdata+0x1e298): more undefined references to `realVhdlUOD' followld: dsim_work/obj/HLstd.Btextio.o:HLstd.Btextio.o:(.rdata+0xde8): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Btextio.o:HLstd.Btextio.o:(.rdata+0x47d0): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Btextio.o:HLstd.Btextio.o:(.rdata+0x4990): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Btextio.o:HLstd.Btextio.o:(.rdata+0x4ad8): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLstd.Btextio.o:HLstd.Btextio.o:(.rdata+0x4d10): undefined reference to `realVhdlUOD'ld: dsim_work/obj/HLstd.Btextio.o:HLstd.Btextio.o:(.rdata+0x4ed0): undefined reference to `realVhdlUOD'ld: dsim_work/obj/HLstd.Btextio.o:HLstd.Btextio.o:(.rdata+0x5018): undefined reference to `realVhdlUOD'ld: dsim_work/obj/HLieee.Bstd_logic_1164.o:HLieee.Bstd_logic_:(.rdata+0x5b20): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLieee.Bstd_logic_1164.o:HLieee.Bstd_logic_:(.rdata+0x5c70): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLieee.Bstd_logic_1164.o:HLieee.Bstd_logic_:(.rdata+0x5dc0): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/HLieee.Bstd_logic_1164.o:HLieee.Bstd_logic_:(.rdata+0x5f10): undefined reference to `int32VhdlUOD'ld: dsim_work/obj/LBstd.o:dsir_pp.ll:(.rdata$.refptr.NullString[.refptr.NullString]+0x0): undefined reference to `NullString'ld: BFD (GNU Binutils for Ubuntu) 2.38 assertion fail ../../bfd/reloc.c:8580dsim_work/obj/LBstd.o:dsir_pp.ll:(.pdata+0x0): dangerous relocation: Segmentation fault (core dumped)ds_ld  Metrics DSim version: 20240422.6.0 (b:R #c:0 h:14d0e78ed1 os:ubuntu_22.04)



Tagged:

Answers

  • Shaun_Altair
    Shaun_Altair
    Altair Employee

    I'll need more info about your setup to help you resolve this issue:

    1. Did you select the correct OS when you installed DSim?

    2. Are you using a local machine or a VM?

    3. From the DSim Desktop terminal in Visual Studio Code, can you enter the following and post the output?

    dsim -version-verbose

    ld -version

    4. Are you following the article Tutorial: DSim Desktop? If so, what step produces this output?

    5. Are you working from a clean workspace? ie. there was no dsim_work folder before you started to compile.

  • Shaun_Altair
    Shaun_Altair
    Altair Employee

    @DongHwan Yoon Are you still having this issue?

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.