码迷,mamicode.com
首页 > 其他好文 > 详细

synopsys VCS errors recording

时间:2018-11-03 01:49:29      阅读:641      评论:0      收藏:0      [点我收藏+]

标签:private   cut   span   exe   exit   turned   tps   lcm   comm   

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

synopsys VCS errors recording

标签:private   cut   span   exe   exit   turned   tps   lcm   comm   

原文地址:https://www.cnblogs.com/sunic/p/9899013.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!