Open darrenleong opened 6 years ago
can you share your full log file
I have the same error in building cmod_top.
Followings are build logs.
make: 디렉터리 '/media/swahn4u/Dev/TOOL/NVDLA/hw/spec/defs' 들어감 /usr/bin/gcc -undef -nostdinc -P -C nv_full.spec -o /media/swahn4u/Dev/TOOL/NVDLA/hw/outdir/nv_full/spec/defs/project.def Makefile:22: recipe for target '/media/swahn4u/Dev/TOOL/NVDLA/hw/outdir/nv_full/spec/defs/project.def' failed make: 디렉터리 '/media/swahn4u/Dev/TOOL/NVDLA/hw/spec/defs' 나감 make: 디렉터리 '/media/swahn4u/Dev/TOOL/NVDLA/hw/spec/manual' 들어감 /usr/bin/java -jar Ordt.jar -parms test.parms -systemverilog /media/swahn4u/Dev/TOOL/NVDLA/hw/outdir/nv_full/spec/manual/sv/ -verilog /media/swahn4u/Dev/TOOL/NVDLA/hw/outdir/nv_full/spec/manual/regs_v.v -uvmregs /media/swahn4u/Dev/TOOL/NVDLA/hw/outdir/nv_full/spec/manual/regs_ral.sv -cppmod /media/swahn4u/Dev/TOOL/NVDLA/hw/outdir/nv_full/spec/manual/cmod -cppdrvmod /media/swahn4u/Dev/TOOL/NVDLA/hw/outdir/nv_full/spec/manual/dmod test.rdl Open Register Design Tool, version=170915.01, input=test.rdl Ordt: reading parameters from test.parms... Ordt: building verilog... Ordt: writing verilog file /media/swahn4u/Dev/TOOL/NVDLA/hw/outdir/nv_full/spec/manual/regs_v.v... Ordt: building systemverilog... Ordt: writing systemverilog file /media/swahn4u/Dev/TOOL/NVDLA/hw/outdir/nv_full/spec/manual/sv/simple1_pio.sv... Ordt: writing systemverilog file /media/swahn4u/Dev/TOOL/NVDLA/hw/outdir/nv_full/spec/manual/sv/simple1_jrdl_logic.sv... Ordt: writing systemverilog file /media/swahn4u/Dev/TOOL/NVDLA/hw/outdir/nv_full/spec/manual/sv/simple1_jrdl_decode.sv... Ordt: building UVM regs... Ordt: writing UVM regs file /media/swahn4u/Dev/TOOL/NVDLA/hw/outdir/nv_full/spec/manual/regs_ral.sv... Ordt: building C++ model... Ordt: writing C++ model file /media/swahn4u/Dev/TOOL/NVDLA/hw/outdir/nv_full/spec/manual/cmod/ordt_pio_common.hpp... Ordt: writing C++ model file /media/swahn4u/Dev/TOOL/NVDLA/hw/outdir/nv_full/spec/manual/cmod/ordt_pio_common.cpp... Ordt: writing C++ model file /media/swahn4u/Dev/TOOL/NVDLA/hw/outdir/nv_full/spec/manual/cmod/ordt_pio.hpp... Ordt: writing C++ model file /media/swahn4u/Dev/TOOL/NVDLA/hw/outdir/nv_full/spec/manual/cmod/ordt_pio.cpp... Ordt: building C++ driver model... INFO : Overlay 0 total processed instances=16, unique instances=16, duplicate instances=0 Ordt: writing C++ driver model file /media/swahn4u/Dev/TOOL/NVDLA/hw/outdir/nv_full/spec/manual/dmod/ordt_pio_common.hpp... Ordt: writing C++ driver model file /media/swahn4u/Dev/TOOL/NVDLA/hw/outdir/nv_full/spec/manual/dmod/ordt_pio_common.cpp... Ordt: writing C++ driver model file /media/swahn4u/Dev/TOOL/NVDLA/hw/outdir/nv_full/spec/manual/dmod/ordt_pio_drv.hpp... Ordt: writing C++ driver model file /media/swahn4u/Dev/TOOL/NVDLA/hw/outdir/nv_full/spec/manual/dmod/ordt_pio_drv.cpp... Ordt complete Tue Jun 05 19:45:07 KST 2018
I have the same issue -- any idea ?
i can now build the cmod_top after changed my VM to ubuntu16.04.4 (using its default cpp/gcc/g++) and manually installed java jdk1.8.
I am running on 18.0.4 and it fails : was that the original ubuntu version you had when failing initially ?
I also had the same issue as @darrenleong on Ubuntu 18.04 and g++/gcc/cpp 7.3.0, Jdk 1.8.0_181.
This is a C++ dependent name issue. To disambiguate it, I made the following fix at cmod/hls/include/ac_fixed.h per C++11 and the build was successful.
--- ac_fixed_orig.h 2018-08-29 14:47:59.977317789 -0700
+++ ac_fixed.h 2018-08-29 14:35:51.514589435 -0700
@@ -407,7 +407,7 @@
#endif
// Explicit conversion functions to ac_int that captures all integer bits (bits are truncated)
- inline ac_int<AC_MAX(I,1),S> to_ac_int() const { return ((ac_fixed<AC_MAX(I,1),AC_MAX(I,1),S>) *this).slc<AC_MAX(I,1)>(0); }
+ inline ac_int<AC_MAX(I,1),S> to_ac_int() const { return ((ac_fixed<AC_MAX(I,1),AC_MAX(I,1),S>) *this).template slc<AC_MAX(I,1)>(0); }
// Explicit conversion functions to C built-in types -------------
inline int to_int() const { return ((I-W) >= 32) ? 0 : (signed int) to_ac_int(); }
every thing is ok for me, ubuntu 14.04, vmware
System Requirements
It is recommended to build the virtual simulator in a system that meets the following requirements:
OS: Ubuntu 14.04
g++ 4.8.4
git > 1.8.2
systemc 2.3.0
cmake > 2.8
libboost > 1.34
python dev
glib2 dev
pixman dev
lua 5.2 dev
swig
libcap dev
libattr1 dev
Hi, just to cross-reference: https://github.com/nvdla/hw/pull/191#issuecomment-411647611. Newer ac_types library seems to fix language issues in newer compilers.
@mmaciag This was helpful. I updated the ac_types in /cmod/hls/include and the compilation went through
@jhwangus Thanks a lot for your reply, saved me a lot of headache.
@darrenleong is this issue resolved? can it be closed?
Hi,
when i try to build cmod_top, i faced the following error:
../cmod/hls/include/ac_fixed.h:410:108: error invalid operands of types '' and 'int' to binary 'operator<'
someone encountered the same problem? i am using gcc version 7.2.0, or i must use 4.9.3 as NVDLA opensource suggested?