🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

carry_lookahead_adder_tb cannot simulate

User: "Marco Macedo"
Altair Community Member
Updated by Jocelyn

Hi,

I am trying to simulate the simulation example carry_lookahead_tb using DSIM locally on Ubuntu, but it does not work. The compilation process works, but when I try to run the simulation it always ends with the following error:

Linking image.so...
sh: 1: ld: not found
ds_ld  Metrics DSim version: 20240422.4.0 (b:R #c:0 h:33f2681ede os:ubuntu_22.04)

Not sure what is missing.

Thanks,

Marco

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Shona_altair"
    Altair Employee
    Accepted Answer

    The ld command is not shipped with dsim for the linux installs.  It's part of a linux package called binutils and that needs to be installed on your linux system.

    For linux installs we provide a check_dependencies.sh script in the dsim installation directory.  You can find that in ~/metrics-ca/dsim/<version>. Please run that script.  It will make suggestions about any packages that need installing.  You will need to run these commands with sudo if you are not the root user.

    For example to run the script, open an sh or bash terminal (either in VSCode or outside it) and run

    cd ~/metrics-ca/dsim/<version>
    ./check_dependencies.sh

    It will make  suggestions like the following as needed:

    Please install the missing packages with the following commands.
    You will be required to respond to questions or you can add '-y'
    to the end of each command to answer yes to all questions.
    (Note: these must be run as the root user or prefixed with sudo)
    apt update
    apt install binutils

    Again you'll need sudo or be the root user.  If you are not the root then the you must be a user with sudo permission and then you can run:

    sudo apt update
    sudo apt install binutils