Cannot compile AHDLCMI module library

Discussion in 'Cadence' started by Teeeravis, Dec 3, 2010.

  1. Teeeravis

    Teeeravis Guest

    Hi all

    I am having a hard time running a simulation that includes a mimcap
    that has an ahdl description.
    I can just replace the cap with one from analog lib but it would be
    nice to run simulations on schematics that are lvs clean.

    I am using mmsim7.2 and running on ubuntu 10 (i know, not supported).
    It cant compile an ahdlcmi module library
    When i check the ahdl.out file, i see it is choking on a -h option.
    Is it choking on the -h option? What library am i missing? I am just
    assuming that i am missing a library.

    it could be any number of things

    has anyone had this problem before?

    it is pretty similar to this issue, but no solution was posted here. I
    tried downloading glibc-dev but apt doesnt recognize it.

    Any help would be greatly appreciated.





    I've attached the spectre simulation output and the ahdlcmi.out

    Error from spectre

    Error found by spectre during AHDL read-in.
    ERROR (VACOMP-1008): Cannot compile ahdlcmi module library. Check
    the log file input.ahdlSimDB/bsource_1.input.ahdlcmi/Linux2.6.32-25-
    generic+gcc/../ahdlcmi.out for details. If the compiler ran out of
    memory, use 'setenv CDS_CMI_COMPLEVEL 0', and try again. If the reason
    for the failure was a syntax error, contact your Cadence Customer
    Support representative with the netlist, log files, behavioral model
    files, and any other information that can help identify the problem.
    Warning from spectre in `mimcap_2p0':`C0', during hierarchy
    flattening.
    WARNING (SFE-30): "/home/tklee/IC/tsmc18rf/tsmc18rf/../models/
    spectre/rf018.scs" 19585: C0.cmim: `temp' is not a valid parameter for
    an instance of `bsource_1'. Ignored.
    WARNING (SFE-30): "/home/tklee/IC/tsmc18rf/tsmc18rf/../models/
    spectre/rf018.scs" 19585: C0.cmim: `tnom' is not a valid parameter for
    an instance of `bsource_1'. Ignored.
    WARNING (SFE-30): "/home/tklee/IC/tsmc18rf/tsmc18rf/../models/
    spectre/rf018.scs" 19585: C0.cmim: `bs_par_0' is not a valid parameter
    for an instance of `bsource_1'. Ignored.
    WARNING (SFE-30): "/home/tklee/IC/tsmc18rf/tsmc18rf/../models/
    spectre/rf018.scs" 19585: C0.cmim: `bs_par_1' is not a valid parameter
    for an instance of `bsource_1'. Ignored.
    WARNING (SFE-30): "/home/tklee/IC/tsmc18rf/tsmc18rf/../models/
    spectre/rf018.scs" 19585: C0.cmim: `bs_par_2' is not a valid parameter
    for an instance of `bsource_1'. Ignored.
    Further occurrences of this warning will be suppressed.





    ahdlcmi.out

    ahdlcmicompile: Compiling ahdlcmi in input.ahdlSimDB/
    bsource_1.input.ahdlcmi/Linux2.6.32-
    25-generic+gcc/ for Linux2.6.32-25-generic+gcc with optimize using gcc
    on Thu Dec 2 22:0
    5:10 PST 2010 [5.0]
    ahdlcmicompile: Generating makefile
    PATH: /home/tklee/cadence/installs/MMSIM72/tools.lnx86/systemc/gcc/
    4.1/install/bin:/home
    /tklee/calibre/ixl_cal_2010.3_37.26/bin:/home/tklee/cadence/installs/
    MMSIM72/tools/bin:/h
    ome/tklee/cadence/installs/IC5141/tools/bin:/home/tklee/cadence/
    installs/IC5141/tools/dfI
    I/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/
    usr/games
    LD_LIBRARY_PATH: /home/tklee/cadence/installs/MMSIM72/tools.lnx86/
    systemc/gcc/4.1/instal
    l/lib:/home/tklee/cadence/installs/MMSIM72/tools/lib:/home/tklee/
    cadence/installs/MMSIM72
    /tools.lnx86/mdl/lib:/home/tklee/cadence/installs/MMSIM72/tools.lnx86/
    mmsim/lib:/home/tkl
    ee/cadence/installs/MMSIM72/tools.lnx86/inca/lib:/home/tklee/cadence/
    installs/MMSIM72/too
    ls.lnx86/spectre/lib:/home/tklee/cadence/installs/MMSIM72/tools.lnx86/
    lib/SuSE:/home/tkle
    e/cadence/installs/IC5141/tools/lib:.:/lib/i686
    /home/tklee/cadence/installs/MMSIM72/tools.lnx86/spectre/ahdlcmi/bin/
    gnumake -j3 -f GNUma
    kefile
    Compiling C file bsource_1_func.c (optimize) with -O0
    /home/tklee/cadence/installs/MMSIM72/tools.lnx86/systemc/gcc/4.1/bin/
    gcc -march=i686 -ff
    ast-math -O0 -DSYSV -DSVR4 -D_REENTRANT -fPIC -DconfigSPECTRE -I. -I/
    home/tklee/cadence
    /installs/MMSIM72/tools.lnx86/spectre/ahdlcmi/include -c
    bsource_1_func.c -o obj/optimize
    /5.0/bsource_1_func.o || rm -f -f obj/optimize/5.0/bsource_1_func.o;
    Compiling C file bsource_1_DcFuncDerLoad.c (optimize)
    /home/tklee/cadence/installs/MMSIM72/tools.lnx86/systemc/gcc/4.1/bin/
    gcc -march=i686 -ff
    ast-math -O3 -DSYSV -DSVR4 -D_REENTRANT -fPIC -DconfigSPECTRE -I. -I/
    home/tklee/cadence
    /installs/MMSIM72/tools.lnx86/spectre/ahdlcmi/include -c
    bsource_1_DcFuncDerLoad.c -o obj/optimize/5.0/
    bsource_1_DcFuncDerLoad.o || rm -f -f obj/optimize/5.0/
    bsource_1_DcFuncDerLoad.o;
    /bin/sh: Illegal option -h
    Compiling C file bsource_1_DcFuncLoad.c (optimize)
    /home/tklee/cadence/installs/MMSIM72/tools.lnx86/systemc/gcc/4.1/bin/
    gcc -march=i686 -ffast-math -O3 -DSYSV -DSVR4 -D_REENTRANT -fPIC -
    DconfigSPECTRE -I. -I/home/tklee/cadence/installs/MMSIM72/tools.lnx86/
    spectre/ahdlcmi/include -c bsource_1_DcFuncLoad.c -o obj/optimize/5.0/
    bsource_1_DcFuncLoad.o || rm -f -f obj/optimize/5.0/
    bsource_1_DcFuncLoad.o;
    Compiling C file bsource_1_TranFuncDerLoad.c (optimize)
    /bin/sh: Illegal option -h
    /home/tklee/cadence/installs/MMSIM72/tools.lnx86/systemc/gcc/4.1/bin/
    gcc -march=i686 -ffast-math -O3 -DSYSV -DSVR4 -D_REENTRANT -fPIC -
    DconfigSPECTRE -I. -I/home/tklee/cadence/installs/MMSIM72/tools.lnx86/
    spectre/ahdlcmi/include -c bsource_1_TranFuncDerLoad.c -o obj/optimize/
    5.0/bsource_1_TranFuncDerLoad.o || rm -f -f obj/optimize/5.0/
    bsource_1_TranFuncDerLoad.o;
    Compiling C file bsource_1_TranFuncLoad.c (optimize)
    /bin/sh: Illegal option -h
    /home/tklee/cadence/installs/MMSIM72/tools.lnx86/systemc/gcc/4.1/bin/
    gcc -march=i686 -ffast-math -O3 -DSYSV -DSVR4 -D_REENTRANT -fPIC -
    DconfigSPECTRE -I. -I/home/tklee/cadence/installs/MMSIM72/tools.lnx86/
    spectre/ahdlcmi/include -c bsource_1_TranFuncLoad.c -o obj/

    .... + a lot more

    gnumake: *** [obj/optimize/5.0/libahdlcmi.so] Error 2
     
    Teeeravis, Dec 3, 2010
    #1
  2. Teeeravis wrote, on 12/03/10 07:51:
    Whilst it's not supported on Ubuntu, I think talking to Cadence Customer Support
    would be wise. Maybe if you tarred up the ahdlcmi directory so that somebody can
    take a look at it, we might be able to find the problem.

    I couldn't see this reported anywhere, but I may not have searched well enough
    for it.

    Best Regards,

    Andrew.
     
    Andrew Beckett, Dec 3, 2010
    #2
  3. Which guess: /bin/sh from Ubuntu don't support the -h option (which isn't
    supported by POSIX sh but is supported by a lot of the variants; the
    underlying Debian has make quite an effort to support any bourne shell as
    /bin/sh and I'd not be surprised that the default one is the more
    restrictive they have). Try at the command line

    /bin/sh -h

    to confirm. Then find a shell which support it by trying:

    /bin/ksh -h
    /bin/zsh -h
    /bin/bash -h

    and finally ask your sysadmin to make /bin/sh it point to it (Debian -- and
    thus Ubuntu -- has a generic alternative mechanism for that, your sysadmin
    should know it).

    Yours,
     
    Jean-Marc Bourguet, Dec 3, 2010
    #3
  4. Teeeravis

    Teeeravis Guest

    Thank you both for the responses.

    /bin/sh -h is not supported default at the shell.
    /bin/bash -h does support this option
    /bin/dash -h is illegal

    it looks like the default option for /bin/sh is the dash shell in
    ubuntu, i see a lot of articles complaining about /bin/sh defaulting
    to dash

    http://brainstorm.ubuntu.com/idea/2225/
    https://bugs.launchpad.net/ubuntu/+bug/313403

    I am the sysadmin for this machine which i great because i can change
    anything but unfortunately I dont know how to do this.
    I can talk to the sysadmin at school to see how to resolve this.

    If I cant get this resolved ill submit it to cust. support.


    if you know how to make /bin/sh default to a bash shell please let me
    know.
     
    Teeeravis, Dec 4, 2010
    #4
  5. sudo dpkg-reconfigure dash

    Yours,
     
    Jean-Marc Bourguet, Dec 4, 2010
    #5
  6. Teeeravis

    Teeeravis Guest

    This fixes it.

    Thanks a bunch Jean-Marc.
    I really appreciate your help

    Travis
     
    Teeeravis, Dec 7, 2010
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.