nvdla / hw

RTL, Cmodel, and testbench for NVDLA
Other
1.68k stars 561 forks source link

Compilation error while building NVDLA CMOD #298

Open ghost opened 4 years ago

ghost commented 4 years ago

I followed "http://nvdla.org/vp.html" document to get the NVDLA Virtual Platform up and running but encountered a compilation error in section 2.3.4. while executing the command "tools/bin/tmake -build cmod_top".

Using Ubuntu 18.04 LTS, all the required directories for systemC, g++, perl were provided properly in the tree.make file in the previous step in section 2.3.4

Attaching a screenshot of the compilation error below Screenshot from 2019-08-05 17-31-57

sthomdev commented 4 years ago

You're getting this error because your compiler doesn't like that a templated member function is being used without the template keyword.

You can easily fix the error by changing the line to the following: return ((ac_fixed<AC_MAX(I,1),AC_MAX(I,1),S>) *this).template slc<AC_MAX(I,1)>(0);

If you run into any other errors of this kind (you will) you can use the same fix.

ghost commented 4 years ago

That issue would be fixed long time ago if comments in the pull requests were considered. Sadly this repository seems to have 'nobody-cares' status at NVIDIA.

fanqifei commented 4 years ago

Hi @asgarpasha , version 3.9.0 of ac_types is integrated to branch master. @mmaciag found such issue before. see https://github.com/nvdla/hw/pull/191#issuecomment-411647611 . branch nv_small is not updated yet. If you are using branch nv_small, you can perform a cherry-pick.

shazib-summar commented 4 years ago

Hey, @asgarpasha. Which branch are you compiling? Is it master or nvdlav1?