• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. Liberate fails due to wrongly generated command

Stats

  • Locked Locked
  • Replies 10
  • Subscribers 126
  • Views 17373
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Liberate fails due to wrongly generated command

marten
marten over 10 years ago

Hi there,


when we start liberate for the characterization of our standardcell lib, the char_library command fails with this error message:

sh: 1: Syntax error: Bad fd number
LIBERATE - SYSTEM ERROR - could not execute command: cd /home/sachatterjee/subvt_28/SUBVT28CORE_test/lib/altos.vnode3.ks.T20150914115612398704S0023683.0; /sct/homes3/cadence/mmsim-13.11hf252/tools/bin/spectre  +lqt 0 /home/sachatterjee/subvt_28/SUBVT28CORE_test/lib/altos.vnode3.ks.T20150914115612398704S0023683.0/sim.sp >& /home/sachatterjee/subvt_28/SUBVT28CORE_test/lib/altos.vnode3.ks.T20150914115612398704S0023683.0/sim.lis


Obviously, the pipe command " >& " is wrong syntax for sh and maybe it is meant to be run in a bash. How can we force liberate to use bash instead of sh?

Cheers,

Marten

  • Cancel
  • marten
    marten over 10 years ago

    We found out, that this issue is related to the ubuntu operating system (we know this is not supported...). If someone else is also facing this problem, reconfigure the system shell:

    sudo dpkg-reconfigure dash

    After choosing "no", /bin/sh should point to bash and liberate should execute as expected.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • jackiexcomp
    jackiexcomp over 9 years ago

    Hi there,

    I have a similar issue:

    LIBERATE - SYSTEM ERROR - could not execute command: cd /dh_eldorado/projects/pacemaker/workspaces/jacqueline.mertes/cliosoft/data/eldorado_lib/el_char/liberate/rundir/altos.serv175.T20160518154102845518S0009680.0; /apps/cadence/MMSIM_14_10_459/tools/bin/spectre  +lqt 0 =log sim.lis  /dh_eldorado/projects/pacemaker/workspaces/jacqueline.mertes/cliosoft/data/eldorado_lib/el_char/liberate/rundir/altos.serv175.T20160518154102845518S0009680.0/sim.sp >& /dev/null
    *Info* Simulation failed to complete. Restart the simulation in 5 seconds on host serv175.
    *Info* Run Spectre : (0) at /dh_eldorado/projects/pacemaker/workspaces/jacqueline.mertes/cliosoft/data/eldorado_lib/el_char/liberate/rundir/altos.serv175.T20160518154102845518S0009680.0
    *Error* (char_library) Failed to run 'cd /dh_eldorado/projects/pacemaker/workspaces/jacqueline.mertes/cliosoft/data/eldorado_lib/el_char/liberate/rundir/altos.serv175.T20160518154102845518S0009680.0; /apps/cadence/MMSIM_14_10_459/tools/bin/spectre  +lqt 0 =log sim.lis  /dh_eldorado/projects/pacemaker/workspaces/jacqueline.mertes/cliosoft/data/eldorado_lib/el_char/liberate/rundir/altos.serv175.T20160518154102845518S0009680.0/sim.sp >& /dev/null' on host serv175.
          * Spectre exit code : 2(stop simulation because of Spectre error condition)

    I'm using a Centos plataform and it's already running in a bash.

    Anyone can help me, please? Any ideas?

    Best,

    Jack

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • marten
    marten over 9 years ago

    So bin/sh is pointing to bash, like this?

    ls -la /bin/sh

    lrwxrwxrwx 1 root root 4 Sep 14  2015 /bin/sh -> bash

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 9 years ago
    Also, what happens if you run "spectre -W" or "spectre -h" - does that fail? If so, what error do you get?
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • jackiexcomp
    jackiexcomp over 9 years ago

    Yes, Marten, I've exactly this:

            ls -la /bin/sh

    lrwxrwxrwx 1 root root 4 Jul 25  2015 /bin/sh -> bash

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • jackiexcomp
    jackiexcomp over 9 years ago

    Hi Andrew,

    I run using "spectre -W" and also using the "spectre -h", with the follow commands:

    set_var extsim_cmd spectre
    set_var extsim_cmd_option -W or set_var extsim_cmd_option -h
    char_library -extsim spectre -ecsm -cells ${cells_list} -thread 1

    But the errors are quite similar:

    - With "spectre -W":

    The first error is:

    *Error** (char_library) :  Cannot find sim.print or sim.measure in dir [/dh_eldorado/projects/pacemaker/workspaces/jacqueline.mertes/cliosoft/data/eldorado_lib/el_char/liberate/rundir/altos.serv175.T20160524163142241290S0002837.0]. This may be caused by simulation error. Check your simulator license and $PATH settings.

    - With "spectre -h":

    The 3 first errors are:

    LIBERATE - SYSTEM ERROR - could not execute command: cd /dh_eldorado/projects/pacemaker/workspaces/jacqueline.mertes/cliosoft/data/eldorado_lib/el_char/liberate/rundir/altos.serv175.T20160524163251419155S0003312.0; /apps/cadence/MMSIM_14_10_459/tools/bin/spectre  -h =log sim.lis  /dh_eldorado/projects/pacemaker/workspaces/jacqueline.mertes/cliosoft/data/eldorado_lib/el_char/liberate/rundir/altos.serv175.T20160524163251419155S0003312.0/sim.sp >& /dev/null
    *Info* Simulation failed to complete. Restart the simulation in 5 seconds on host serv175.
    *Info* Run Spectre : (0) at /dh_eldorado/projects/pacemaker/workspaces/jacqueline.mertes/cliosoft/data/eldorado_lib/el_char/liberate/rundir/altos.serv175.T20160524163251419155S0003312.0
    *Error* (char_library) Failed to run 'cd /dh_eldorado/projects/pacemaker/workspaces/jacqueline.mertes/cliosoft/data/eldorado_lib/el_char/liberate/rundir/altos.serv175.T20160524163251419155S0003312.0; /apps/cadence/MMSIM_14_10_459/tools/bin/spectre  -h =log sim.lis  /dh_eldorado/projects/pacemaker/workspaces/jacqueline.mertes/cliosoft/data/eldorado_lib/el_char/liberate/rundir/altos.serv175.T20160524163251419155S0003312.0/sim.sp >& /dev/null' on host serv175.
          * Spectre exit code : 2(stop simulation because of Spectre error condition)

    And the fourth error is similar to the first error of simulation with "spectre -W":

    *Error** (char_library) :  Cannot find sim.print or sim.measure in dir [/dh_eldorado/projects/pacemaker/workspaces/jacqueline.mertes/cliosoft/data/eldorado_lib/el_char/liberate/rundir/altos.serv175.T20160524163251419155S0003312.0]. This may be caused by simulation error. Check your simulator license and $PATH settings.

    So, I don't know why the Spectre didn't write some files (sim.measure or sim.print) and this error is propagate through all characterization.

    Now, I'm trying others Spectre options as "spectre +diagnose" and "spectre +debug".

    I have using the command - set_var extsim_save_failed "all" - to can figure out what's happening

    But I don't have any idea what's going on with this characterization.

    Do you have any idea?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    That wasn't what I meant - telling Liberate to run spectre -h or spectre -W is never going to work.

    I wanted to know what happens if you run "spectre -h" or "spectre -W" from the terminal (i.e. the same place you run Liberate).

    Note, Liberate is not something I have that much experience with, so you almost certainly would be better off going to customer support, I think (I'm travelling too, so can't spend much time on this either).

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • jackiexcomp
    jackiexcomp over 9 years ago

    Run from my terminal, I was able to open the Spectre tool correctly using both commands.

    Probably I'll looking for the technical support to help me on this.

    Thanks,

    Jack

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Syeda Fayiza
    Syeda Fayiza over 7 years ago in reply to jackiexcomp

    Hi,

    I am also getting the same error(LIBERATE SYSTEM ERROR-could not execute the command...)

    When I ran spectre -W & spectre -h,

    its showing----->/mnt/cad /MMSIM131/tools.lnx86/spectre/bin/32bit/spectre : error while loading shared libraries : libreadline.so.5 : cannot open shared object file : No such file or directory.

    Please help me on this.

    Thanks in advance.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago in reply to Syeda Fayiza

    Not sure the error is exactly the same - in this case it's spectre that is failing due to a missing shared library. I suspect the same thing might happen on that machine if you ran spectre directly.

    It might be that the libreadline.so.5 library is only installed in 64-bit mode, and so you might be able to fix that by doing:

    setenv CDS_AUTO_64BIT ALL

    before running Liberate. It's also possible that checkSysConf from the MMSIM131 stream would pick this up (because libreadline is one of the packages that it checks for in that version; of course, this depends on you running on a supported OS too).

    Finally, on my machine (a RedHat Enterprise 6.5 machine), the 32bit libreadline shared library comes from this RPM:

    compat-readline5-5.2-17.1.el6.i686

    So you may need to get that installed.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information