有人在vcs2006下成功编译UVM库吗?
红色部分不知为何是IUS的。 很奇怪。
make TOOL=vcs
gcc -shared -fPIC -DVCS -I /cadtools/synopsys/vcs/Y-2006.06-SP2/include -m32 -o /project/R1.0/UVM/uvm-1.0p1/lib/Linux_x86_64/libuvm_ius.so ./src/dpi/uvm_hdl.c
./src/dpi/uvm_hdl.c:29: error: syntax error before string constant
./src/dpi/uvm_hdl.c:52: warning: initialization makes integer from pointer without a cast
./src/dpi/uvm_hdl.c:52: error: initializer element is not constant
./src/dpi/uvm_hdl.c:52: warning: data definition has no type or storage class
./src/dpi/uvm_hdl.c:53: error: syntax error before "if"
./src/dpi/uvm_hdl.c:56: error: syntax error before '&' token
./src/dpi/uvm_hdl.c:56: error: conflicting types for 'vpi_get_value'
/cadtools/synopsys/vcs/Y-2006.06-SP2/include/vpi_user.h:768: error: previous declaration of 'vpi_get_value' was here
./src/dpi/uvm_hdl.c:56: error: conflicting types for 'vpi_get_value'
/cadtools/synopsys/vcs/Y-2006.06-SP2/include/vpi_user.h:768: error: previous declaration of 'vpi_get_value' was here
./src/dpi/uvm_hdl.c:56: warning: data definition has no type or storage class
./src/dpi/uvm_hdl.c:395: error: syntax error before '}' token
修改bin下uvm_dpi_name文件后仍然报错
gcc -shared -fPIC -DVCS -I /cadtools/synopsys/vcs/Y-2006.06-SP2/include -m32 -o /home/uvm-1.0p1/lib/Linux_x86_64/libuvm_vcs.so ./src/dpi/uvm_hdl.c
./src/dpi/uvm_hdl.c:29: error: syntax error before string constant
./src/dpi/uvm_hdl.c:52: warning: initialization makes integer from pointer without a cast
./src/dpi/uvm_hdl.c:52: error: initializer element is not constant
./src/dpi/uvm_hdl.c:52: warning: data definition has no type or storage class
./src/dpi/uvm_hdl.c:53: error: syntax error before "if"
./src/dpi/uvm_hdl.c:56: error: syntax error before '&' token
./src/dpi/uvm_hdl.c:56: error: conflicting types for 'vpi_get_value'
/cadtools/synopsys/vcs/Y-2006.06-SP2/include/vpi_user.h:768: error: previous declaration of 'vpi_get_value' was here
./src/dpi/uvm_hdl.c:56: error: conflicting types for 'vpi_get_value'
/cadtools/synopsys/vcs/Y-2006.06-SP2/include/vpi_user.h:768: error: previous declaration of 'vpi_get_value' was here
./src/dpi/uvm_hdl.c:56: warning: data definition has no type or storage class
./src/dpi/uvm_hdl.c:395: error: syntax error before '}' token
看不懂