Model translation from spectreS to spectre

Discussion in 'Cadence' started by tritue, Dec 3, 2003.

  1. tritue

    tritue Guest

    Hi all I try to use the model translation from the toolsbox but I allway has
    a fail message
    When I run the script directly "modelTrans" I got these error
    Can't locate File/Glob.pm in @INC (@INC contains:
    /usr7/cds/5.00.32/red/tools.sun4v/
    perl-5.6.0/lib/5.6.0/sun4-solaris
    /usr7/cds/5.00.32/red/tools.sun4v/perl-5.6.0
    /lib/5.6.0
    /usr7/cds/5.00.32/red/tools.sun4v/perl-5.6.0/lib/site_perl/5.6.0/sun4
    -solaris /usr7/cds/5.00.32/red/tools.sun4v/perl-5.6.0/lib/site_perl/5.6.0
    /usr7/
    cds/5.00.32/red/tools.sun4v/perl-5.6.0/lib/site_perl .) at
    /data/cds5.0/tools/
    dfII/bin/modelTrans.perl line 199.
    BEGIN failed--compilation aborted at
    /data/cds5.0/tools/dfII/bin/modelTrans.perl line 199.

    Did I miss some package or environement variable

    Thank in advance.
     
    tritue, Dec 3, 2003
    #1
  2. tritue

    fogh Guest

    This is definitely a bug in IC5. At first sight, the library path for
    perl 5.6 is defined with "hardwired" path name
    "/usr7/cds/5.00.32/red/tools.sun4v/" instead of something based on cds_root.
    You should report that to your cadence support, and if you are
    impatient, try to patch the perl directory like so:
    find all files under $(cds_root modelTrans) that contain the string
    "/usr7/cds/5.00.32/red/tools.sun4v"
    and replace that string by the right one for your install "$(cds_root
    modelTrans)/tools.sun4v"

    Or you can simply use an older version of IC. modelTrans works OK in
    4.4.5, which uses perl 5.0.

    I wonder if any perl script with library dependency in IC5 works
    properly. <bitter>And I also wonder why softload insists on dumping 1 or
    2 perl installs under every cds product root, while those are not
    configured better than the system-provided perl.</bitter>

    Tritue, thanks for following my advice, and sorry for the bad luck you had.
     
    fogh, Dec 3, 2003
    #2
  3. This is fixed in 5.0.33 (there are no more hotfixes under 5.0.32), so there's no
    point in reporting this one - it was found ourselves and fixed in 5.0.33.

    We ship perl because you can't guarantee that it will be installed by the OS.
    It doesn't come by default with Solaris 7, for example - it does with Solaris 8
    though. On HP it's an option, if I remember rightly.

    And there are multiple perls because some scripts are written for a particular
    perl version - and are not necessarily updated if some other tool suddenly
    requires a later perl version.

    You should be able to hack the modelTrans in your installation. Change the
    last line from:

    $ROOT/tools/perl/bin/perl $ROOT/tools/dfII/bin/modelTrans.perl $*

    to

    setenv PERL_INCLUDE " -I $ROOT/tools/perl/lib"
    $ROOT/tools/perl/bin/perl $PERL_INCLUDE $ROOT/tools/dfII/bin/modelTrans.perl $*

    Regards,

    Andrew.
     
    Andrew Beckett, Dec 3, 2003
    #3
  4. tritue

    tritue Guest

    modelTrans works now, thank you.
    But then I can not use it because our models have parameters. I has to edit
    its by hand.


    $ROOT/tools/dfII/bin/modelTrans.perl $*
     
    tritue, Dec 4, 2003
    #4
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.