|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
环境:ubuntu 16.04
问题现象:
1. 在terminal中使用source command命令,可以正常运行vcs编译。command文件内容如下
vcs -f filelist.f -timescale=1ns/1ps -full64 +v2k -sverilog -Mupdate +define+DUMP_VPD -debug_all |tee vcs.log
terminal 显示:
g++-4.8 -o ../simv -Wl,-rpath-link=./ -Wl,-rpath='$ORIGIN'/simv.daidir/ -Wl,-rpath=./simv.daidir/ -Wl,-rpath='$ORIGIN'/simv.daidir//scsim.db.dir -Wl,--no-as-needed
2. 使用make命令,vcs报错,makefile内容如下
all: filelist com_fsdb #sim verdi
#---------------------------------------------------------------
filelist:
find ../de ../dv -name "*.v" -o -name "*.sv" > filelist.f
#---------------------------------------------------------------
com_vpd:
vcs -f filelist.f \
-timescale=1ns/1ps \
-full64 +v2k -sverilog -Mupdate +define+DUMP_VPD \
-debug_all \
|tee vcs.log
#---------------------------------------------------------------
com_fsdb:
vcs -f filelist.f \
-timescale=1ns/1ps \
-full64 +v2k -sverilog -Mupdate +define+DUMP_FSDB \
-debug_acc+all -debug_region+cell+encrypt \
|tee vcs.log
#---------------------------------------------------------------
sim:
./simv |tee sim.log
#---------------------------------------------------------------
dve:
dve -vpd vcdplus.vpd -script dve.tcl &
#---------------------------------------------------------------
verdi:
verdi -f filelist.f -ssf tb_top.fsdb -play verdi.tcl &
#---------------------------------------------------------------
clean:
rm -rf csrc DVEfiles novas* *.log simv* *fsdb* ucli.key *.vpd verdiLog
报错内容如下:
g++ -o ../simv -Wl,-rpath-link=./ -Wl,-rpath='$ORIGIN'/simv.daidir/ -Wl,-rpath=./simv.daidir/ -Wl,-rpath='$ORIGIN'/simv.daidir//scsim.db.dir
lto1: fatal error: bytecode stream generated with LTO version 2.2 instead of the expected 4.1
compilation terminated.
lto-wrapper: fatal error: g++ returned 1 exit status
求助各位大佬,请问原因是什么?如何解决
|
|