1.重启后lisense问题
【问题原因】
可能是lmgrd服务不正常导致的,这边通过下面几个步骤解决
- 切换到root用户
su root
- 彻底关闭lmgrd服务
lmdown ps -aux | grep lmgrd kill -9 xxxx
- 验证本地lisence
sssverify /usr/lyq/software/Liscen/Synopsys.dat
- 修改.bashrc文件
- 重新source
source .bashrc
- 3-5min后启动lmli
lmli
- 修改.bashrc文件
- 重新source
source .bashrc
- 启动verdi
verdi
2. 运行vcs仿真报错
ld returned 1 exit status
【问题原因】
虚拟机重启导致g++/gcc版本切换到默认版本,通过编译指令或设置默认版本解决
vcs2018需要使用的g++/gcc版本均为4.8.5
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 100 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 100
可参考:https://blog.csdn.net/all_bya/article/details/124567573
3. 未定义系统任务
在使用make进行vsc仿真编译中出现未定义系统任务问题
undefined system task called to $fsdbDumpfile
【问题解决】
需要增加下面的Verdi编译文件:
-P ${VERDI_HOME}/share/PLI/VCS/LINUX64/novas.tab ${VERDI_HOME}/share/PLI/VCS/LINUX64/pli.a
4.未定义参考变量
/usr/bin/ld: *** undefined reference to `vfs_set_dir_map’
/usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsnew.so: undefined reference to `vfs_set_dir_map' /usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsnew.so: undefined reference to `snpsReallocFunc' /usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsnew.so: undefined reference to `snps_mem_get_info' /usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsnew.so: undefined reference to `snpsCheckStrdupFunc' /usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsnew.so: undefined reference to `ZsExecuteNBAs' /usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsnew.so: undefined reference to `vfs_fread' /usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsnew.so: undefined reference to `snpsGetMemBytes' /usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsnew.so: undefined reference to `vfs::getDirMap()' /usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsnew.so: undefined reference to `vfs::fclose(vfs::CFile*)' /usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsnew.so: undefined reference to `vfs_stat' /usr/bin/ld: /usr/lyq/software/vcs2018/vcs/O-2018.09-SP2/linux64/lib/libvcsucli.so: undefined reference to `isUcliEngineStarted' /usr/bin/ld: _csrc0.so: undefined reference to `VCSGlobalData' ....
【问题解决】
在vcs编译中增加
-LDFLAGS -Wl,--no-as-needed
没有回复内容