Home > Community > Forums > Functional Verification > vcs_specman not created

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 vcs_specman not created 

Last post Wed, Nov 21 2012 3:41 AM by mdkaleem. 13 replies.
Started by mdkaleem 06 Nov 2012 10:56 PM. Topic has 13 replies and 2503 views
Page 1 of 1 (14 items)
Sort Posts:
  • Tue, Nov 6 2012 10:56 PM

    • mdkaleem
    • Not Ranked
    • Joined on Thu, Apr 14 2011
    • Bangalore, Karnataka
    • Posts 14
    • Points 265
    vcs_specman not created Reply

    Hi,

    I am trying to create an exe using vcs and specman,

    initially specman and vcs compilation went through fine and when the vcs simulation started i got an error saying as below,please let me know further what to do??

     

    vcs_specman not created
    sn_compile.sh: /apps/cds/incisiv/10.20.122/specman/bin/link_vcs.sh failed

    and this are the warnings i see

    if [ -x ../scr_specman ]; then chmod -x ../scr_specman; fi
    g++  -o ../scr_specman
    /apps/denali/mmav_purespec/3.2.068_64/verilog/denverlib.o -Wl,-E  
    -Wl,-whole-archive    -Wl,-no-whole-archive 
    /apps/cds/incisiv/10.20.122/specman/linux/specman__main_.o 
    _vcsobj_1_1.o  5NrI_d.o 5NrIB_d.o SIM_l.o    rmapats_mop.o
    rmapats.o      /apps/synopsys/vcsmx/2011.03-SP1/amd64/lib/libvirsim.so
    /apps/synopsys/vcsmx/2011.03-SP1/amd64/lib/liberrorinf.so
    /apps/synopsys/vcsmx/2011.03-SP1/amd64/lib/libsnpsmalloc.so
    /apps/novas/debussy/2009.07/share/PLI/vcsd_mixed_latest/LINUX64/pli.a
    -lpthread -ldl
    /apps/cds/incisiv/10.20.122/specman/linux/libctype_compat.a -lm -ldl
    /apps/cds/incisiv/10.20.122/specman/linux/libctype_compat.a
    /apps/cds/incisiv/10.20.122/specman/linux/libctype_compat.a
    /apps/cds/incisiv/10.20.122/specman/linux/libspecman.a
    /apps/cds/incisiv/10.20.122/specman/linux/libvcs_sn_boot.a    
    /apps/synopsys/vcsmx/2011.03-SP1/amd64/lib/libvcsnew.so
    /apps/synopsys/vcsmx/2011.03-SP1/amd64/lib/libuclinative.so        
    /apps/synopsys/vcsmx/2011.03-SP1/amd64/lib/vcs_save_restore_new.o -ldl
    -lm  -lc -lpthread -ldl
    /usr/bin/ld: warning: i386 architecture of input file
    `/apps/cds/incisiv/10.20.122/specman/linux/specman__main_.o' is
    incompatible with i386:x86-64 output
    /usr/bin/ld: warning: i386 architecture of input file `rmapats.o' is
    incompatible with i386:x86-64 output
    /usr/bin/ld: warning: i386 architecture of input file
    `/apps/cds/incisiv/10.20.122/specman/linux/libspecman.a(specman_all_.o)'
    is incompatible with i386:x86-64 output
    /usr/bin/ld: warning: i386 architecture of input file
    `/apps/cds/incisiv/10.20.122/specman/linux/libvcs_sn_boot.a(vcs_sn_boot.o)'
    is incompatible with i386:x86-64 output

    Regards

    kaleem.

     

    • Post Points: 20
  • Tue, Nov 6 2012 11:36 PM

    Re: vcs_specman not created Reply

    You are probably trying to compile a 32 bit application on a 64 bit machine.

    please check the attached solution:

    http://support.cadence.com/wps/mypoc/cos?uri=deeplinkmin:ViewSolution;solutionNumber=11219078

    Good Luck

    Avi  

    • Post Points: 20
  • Mon, Nov 19 2012 10:36 PM

    • mdkaleem
    • Not Ranked
    • Joined on Thu, Apr 14 2011
    • Bangalore, Karnataka
    • Posts 14
    • Points 265
    Re: vcs_specman not created Reply

    Hi

    Avi,I am not able to access the above link.how ever i tried to compile on 32 bit machine but i see that vcs does not support 32-64 bit cross compilation.

     

    Thanks

    kaleem.

    • Post Points: 20
  • Tue, Nov 20 2012 12:21 AM

    Re: vcs_specman not created Reply

    Hi Kaleem

     

    I copy the solution below:

     

    Error Message

    Error message could like one of these:

     

    ld: warning: i386 architecture of input file `/sw/linux/stildpv/lib/libstildpv.a(dpvdone.o)' is incompatible with i386:x86-64 output

    ld: warning: i386 architecture of input file  `/sw/linux/stildpv/lib/libstildpv.a(dpvparopt.o)' is incompatible with i386:x86-64 output

     

    collect2: ld terminated with signal 11 [Segmentation fault], core dumped

    /usr/bin/ld: warning: i386:x86-64 architecture of input file

    `/usr/design/rtl/c_block/c_intf_code.o' is incompatible with i386 output

    Problem

    User wants to compile a 32-bit shared library and executable on a 64-bit machine for use with IES product ( ncsim or specman or etc. ) but gets an error about incompatibility.

    Solution

    When running a 32-bit version of IES on a 64-bit machine, there are a couple of items to be aware of in using the gcc compiler.

     

    1)  there are switches to control the binaray output as 32 bit or 64 bit.     The switches -m32 and -m64 explicitly control the output type and it is recommended they always be used as a mean of self-documentation for the intent of the compile command line.

     

    2) On x86_64 architecutre machines the DEFAULT is to give 64 bit output as if -m64 was present on the command line.  On i386 or i686 machines the DEFAULT is to give 32 bit output as these machiens are incapable of generating 64 bit output at all.

     

    For any C code with IUS or Specman usage:

     

    If the user has their own C code (PLI, VPI, VHP, or /DPI ) to compile and link into the simulation,  they will need to ensure that the object file created is also 32-bit compatible if they want to use the 32 bit IES executables.  

     

    Typically a user will compile their C code on an 64 bit machine just as they would while running on a 32-bit machine.  The user will need to add the "-m32" switch to their gcc compilation in order to produce a 32-bit compatible object file.

     

    UNIX> gcc -m32 <C code> <options>

     

    Then they can load the shared object dynamically  ( if that is the approach they have ) or continue to link a static executable using the 32 bit *.o files they have created with the gcc command.

     

    For Specman sn_compile script:

    there is a setting within the system.specman file which forces the sn_compile.sh script to compile in 32-bit mode using a "-m32" switch.  This will guarantee that the executable or shared object file produced by the sn_compile.sh is 32-bit compatible.

     

    # Force 32-bit Specman on 64-bit Linux machines case `uname -m` in  x86_64)

       SPECMAN_CCOMPILER="gcc -m32";

       SPECMAN_LINKER="gcc -m32";

       SPECMAN_SHLIB_LDFLAGS="${SPECMAN_SHLIB_LDFLAGS} -m elf_i386 -L/usr/lib";

       SPECMAN_LDFLAGS="-Wl,--undefined=__ctype_b

    $SPECMAN_HOME/linux/libctype_compat.a ${SPECMAN_LDFLAGS}"

       ;;

    esac;

     Avi

    • Post Points: 5
  • Tue, Nov 20 2012 12:50 AM

    • mdkaleem
    • Not Ranked
    • Joined on Thu, Apr 14 2011
    • Bangalore, Karnataka
    • Posts 14
    • Points 265
    RE: vcs_specman not created Reply
    Avi,thanks for copying the solution,i checked in my system.specman file and i see that the below code exists but i am not sure whether it is taking these parameters or any default setting parameters .
    kaleem.
    • Post Points: 5
  • Tue, Nov 20 2012 1:30 AM

    • mdkaleem
    • Not Ranked
    • Joined on Thu, Apr 14 2011
    • Bangalore, Karnataka
    • Posts 14
    • Points 265
    Re: RE: vcs_specman not created Reply

    Avi,

    Or do we need to force this parameters separately while sourcing our specman scripts?

    Regards

    kaleem.

    • Post Points: 20
  • Tue, Nov 20 2012 5:06 AM

    Re: RE: vcs_specman not created Reply
    Looking back now at your first response today - Is there a chance you are using 64bit VCS with 32bit Specman?
    • Post Points: 20
  • Tue, Nov 20 2012 5:24 AM

    • mdkaleem
    • Not Ranked
    • Joined on Thu, Apr 14 2011
    • Bangalore, Karnataka
    • Posts 14
    • Points 265
    Re: RE: vcs_specman not created Reply

    Avi,

    i am using both specman and vcs in 64 bit only..

    • Post Points: 20
  • Tue, Nov 20 2012 5:45 AM

    Re: RE: vcs_specman not created Reply
    Well, you are not using Specman 64bit, and that is the source of the problem. you can either setenv SPECMAN_AUTO_64BIT or use the -64 flag when invoking specman or sn_compile.sh To ensure you are actually using the 64bit version (make sure you have it installed beforehand...) Avi
    • Post Points: 20
  • Tue, Nov 20 2012 9:18 AM

    • mdkaleem
    • Not Ranked
    • Joined on Thu, Apr 14 2011
    • Bangalore, Karnataka
    • Posts 14
    • Points 265
    Re: RE: vcs_specman not created Reply

     Hi,

    Avi i did set  SPECMAN_AUTO_64BIT as setenv "SPECMAN_AUTO_64BIT ALL" and when i checked specman

    version using specman -version command , i see that specman(64) in the terminal.I hope this confirms your doubt?,i have also conifrmed

    the same with cadence support team.

    kaleem.

    • Post Points: 20
  • Tue, Nov 20 2012 1:35 PM

    Re: RE: vcs_specman not created Reply

    Hi Kaleem

    In this case it seems like a support issue indeed.

    Please give me the SR number, I'll try to help the person that handles that...

     

    Thanks

    Avi 

    • Post Points: 20
  • Tue, Nov 20 2012 9:02 PM

    • mdkaleem
    • Not Ranked
    • Joined on Thu, Apr 14 2011
    • Bangalore, Karnataka
    • Posts 14
    • Points 265
    Re: RE: vcs_specman not created Reply

    Hi,

    Avi,please find the SR number it is 43148782.

    Thanks

    kaleem.

    • Post Points: 20
  • Wed, Nov 21 2012 2:58 AM

    Re: RE: vcs_specman not created Reply

    Hi Kaleem

    So I understand that the issue was indeed a problem of not using 64 bits version of Specman correctly and was resolved using 

    setenv CDS_AUTO_64BIT ALL

    Avi 

    • Post Points: 5
  • Wed, Nov 21 2012 3:41 AM

    • mdkaleem
    • Not Ranked
    • Joined on Thu, Apr 14 2011
    • Bangalore, Karnataka
    • Posts 14
    • Points 265
    Re: RE: vcs_specman not created Reply

    Yes avi in the new terminal that variable was set to NONE,so i was facing the error..Now iam able to create the exe thanks for your support... :-)

     

     

    Regards

    kaleem.

    • Post Points: 5
Page 1 of 1 (14 items)
Sort Posts:
Started by mdkaleem at 06 Nov 2012 10:56 PM. Topic has 13 replies.