本帖最后由 中文行吗 于 2022-5-24 18:44 编辑
问题:
在Ubuntu 22.04中用下面的指令运行VCS
- vcs -full64 -Mupdate=0 -cpp g++-4.8 -cc gcc-4.8 -LDFLAGS -Wl,-no-as-needed tb_count.v count.v -R -timescale=1ns/1ns +v2k
复制代码 提示错误
- /usr/bin/ld: /SynopsysSoftware/VCS/vcs-mx/O-2018.09-SP2/linux64/lib/vcs_save_restore_new.o: in function `SNPSee_907e539fb4bc8f7101eac356af4ce4ed':
- ../../OBJ/lib/saverestoreobj/obj-linux64/kernel.o:(.text+0xc41): undefined reference to `pthread_yield'
复制代码 请问各位大佬有什么方法解决嘛?不知道是哪里搞错了,感谢!另外,dve可以打开。
运行环境:
Win10,AMD 5800H,VM 16 虚拟机,Ubuntu 22.04,gcc有11和4.8版本的,VCS 2018.09-SP2
详细信息:
- $ vcs -full64 -Mupdate=0 -cpp g++-4.8 -cc gcc-4.8 -LDFLAGS -Wl,-no-as-needed tb_count.v count.v -R -timescale=1ns/1ns +v2k
- *** Using c compiler gcc-4.8 instead of cc ...
- Chronologic VCS (TM)
- Version O-2018.09-SP2_Full64 -- Sun May 22 12:27:13 2022
- Copyright (c) 1991-2018 by Synopsys Inc.
- ALL RIGHTS RESERVED
- This program is proprietary and confidential information of Synopsys Inc.
- and may be used and disclosed only as authorized in a license agreement
- controlling such use and disclosure.
- Parsing design file 'tb_count.v'
- Parsing design file 'count.v'
- Top Level Modules:
- tb_count
- TimeScale is 1 ns / 1 ps
- Starting vcs inline pass...
- Warning-[MKE_MUDT] Old makefile exists
- Makefile 'csrc/Makefile' exists. Use -Mupdate to force overwrite.
- 1 module and 0 UDP read.
- However, due to incremental compilation, no re-compilation is necessary.
- gcc -w -I/SynopsysSoftware/VCS/vcs-mx/O-2018.09-SP2/include -O -fno-strict-aliasing -c -o amcQwB.o amcQwB.c
- if [ -x ../simv ]; then chmod -x ../simv; fi
- g++-4.8 -o ../simv /SynopsysSoftware/VCS/vcs-mx/O-2018.09-SP2/linux64/lib/vcs_save_restore_new.o -lm -lc -pthread -ldl -Wl,-no-as-needed -Wl,-rpath=/SynopsysSoftware/VCS/vcs-mx/O-2018.09-SP2/linux64/lib -L/SynopsysSoftware/VCS/vcs-mx/O-2018.09-SP2/linux64/lib -Wl,-whole-archive -lvcsucli -Wl,-no-whole-archive objs/amcQw_u1_c.o objs/amcQw_d.o objs/mINIW_d.o amcQwB.o objs/mINIW_u1_c.o SIM_l.o rmapats_mop.o rmapats.o rmar.o rmar_nd.o rmar_llvm_0_1.o rmar_llvm_0_0.o -lzerosoft_rt_stubs -lvirsim -lerrorinf -lsnpsmalloc -lvfs -lvcsnew -lsimprofile -luclinative /SynopsysSoftware/VCS/vcs-mx/O-2018.09-SP2/linux64/lib/vcs_tls.o
- /usr/bin/ld: /SynopsysSoftware/VCS/vcs-mx/O-2018.09-SP2/linux64/lib/vcs_save_restore_new.o: in function `SNPSee_907e539fb4bc8f7101eac356af4ce4ed':
- ../../OBJ/lib/saverestoreobj/obj-linux64/kernel.o:(.text+0xc41): undefined reference to `pthread_yield'
- collect2: error: ld returned 1 exit status
- make: *** [Makefile:99: product_timestamp] Error 1
- Make exited with status 2
- CPU time: .136 seconds to compile + .133 seconds to elab + .159 seconds to link
复制代码
|