synopsys VCS errors recording

1. vcs_save_restore_new.o: relocation R_X86_64_32S [Ubuntu 18.04]

$VCSHOME/linux64/lib/vcs_save_restore_new.o: relocation R_X86_64_32S against undefined symbol `_sigintr' can not be used when making a PIE object; recompile with -fPIC

/usr/bin/ld: final link failed: Nonrepresentable section on output

collect2: error: ld returned 1 exit status

Answer:

 1. install gcc-4.8 : 'sudo apt install gcc-4.8 g++-4.8'
 2. start vcs : vcs -full64 -cpp g++-4.8 -cc gcc-4.8 ...

 So, In makefile: VCS = vcs -full64 -cpp g++-4.8 -cc gcc-4.8 ...

REF: http://bbs.eetop.cn/thread-839371-1-1.html

2. libvcsnew.so: undefined reference to...

cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsCheckCallocFromGroupFunc'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsFinalize'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsSetSmallCaching'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsucli.so: undefined reference to `initNativeUcli'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsGroupSize'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsInitCheck'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsSetLogicValue'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsucli.so: undefined reference to `storeMiscTfCb'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsHighMemory'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsStrdupFunc'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsucli.so: undefined reference to `setIclCmd_ResVars'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsGetValueLocation'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsucli.so: undefined reference to `shutDownNativeUcli'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsCallocFromGroup'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsExecuteNBAs'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsucli.so: undefined reference to `isUcliEngineStarted'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsGetHdlVariableHandleByNameAndId'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsCheckStrdupFunc'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsOnDKIRegistrationFinished'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsFreeFunc'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsNamedPopGroup'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsGroupGetActive'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsInitModule'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `registerOutOfMemHandle'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsRegisterIfcSignal'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsFreeGroup'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsMarkIfcSignalAsDirty'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsNamedPushGroup'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsGetHdlVariableHandleByName'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsCheckFreeFunc'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsSetHook'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsucli.so: undefined reference to `printIclBeginMarker'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsucli.so: undefined reference to `setEnvPair'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsCheckReallocFunc'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsucli.so: undefined reference to `storeSimLogFileHandle'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsucli.so: undefined reference to `waitForUserInput'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsMemGroupEnableLocks'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsInitStrengthTables'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsucli.so: undefined reference to `execMhpiTclCommand'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsMemGroupSetThreadPrivate'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsGetHdlVariableHandleById'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsPosix_MemalignFunc'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `miHeapProf_init'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsCheckCallocFunc'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snps__StrdupFunc'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsCloseDfsInstFile'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsucli.so: undefined reference to `registerPreRestartFunc'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsMallocFunc'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsMallocFromGroup'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsPrintf'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsSetOutOfMemoryRoutine'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsucli.so: undefined reference to `executeTclProc'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsSetNextSimulationTimeIfc'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsGetNextSimulationTimeIfc'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsMemSetLogFileHandle'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `miHeapOn'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsCheckMallocFunc'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsucli.so: undefined reference to `printIclEndMarker'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsEvaluateDeltaCycle'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsReadDfsInstFile'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsucli.so: undefined reference to `vcsRunUcliErrorScript'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsDoStackUnwind'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsucli.so: undefined reference to `execMhpiTclCommandNoPrint'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsAddBorderInstance'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsCallocFunc'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsucli.so: undefined reference to `breakNativeTclLoop'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsSetVcsValue'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsMemManagerIsActive'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsGetHook'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsCheckMallocFromGroupFunc'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsReallocFunc'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsReallocFromGroup'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsGetMemBytes'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsNamedAllocateGroup'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsLowMemory'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsCurrentGroup'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsGetNumUscopes'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `snpsOutOfMem'
/home/SoftwareI/Synopsys/VCS_v2017.03/linux64/lib/libvcsnew.so: undefined reference to `ZsGetDfsInstId'

Answer:

VCS use option: -LDFLAGS -Wl,--no-as-needed

So,  In makefile: VCS = vcs -full64 -cpp g++-4.8 -cc gcc-4.8 -LDFLAGS -Wl,--no-as-needed

REF: https://github.com/freechipsproject/rocket-chip/issues/21

posted @ 2018-11-02 22:59  SunicYosen  阅读(4763)  评论(0编辑  收藏  举报