thoughtworks/hardposit-chisel3

Tests do not build: universal/include/universal/posit/posit.hpp: No such file or directory

Closed this issue · 2 comments

make test-c
sbt "run FMAP16 -td test-FMAP16"
[info] welcome to sbt 1.4.9 (Ubuntu Java 11.0.11)
[info] loading project definition from /devel/HDL/src/hardposit-chisel3/project
[info] loading settings for project hardposit-chisel3 from build.sbt ...
[info] set current project to hardposit (in build file:/devel/HDL/src/hardposit-chisel3/)
[info] running hardposit.EvalTests FMAP16 -td test-FMAP16
[info] [0.001] Elaborating design...
[info] [0.657] Done elaborating.
Total FIRRTL Compile Time: 695.2 ms
[success] Total time: 2 s, completed Oct 5, 2021, 6:38:02 AM
verilator  -cc --prefix dut --Mdir test-FMAP16 -CFLAGS "-std=c++11 -Icsrc/ -include ../csrc/test-FMAP16.h" test-FMAP16/Eval_PositFMAP16.v --exe csrc/test-arithmetic.cpp
cd test-FMAP16 && make -f dut.mk dut
make[1]: Entering directory '/devel/HDL/src/hardposit-chisel3/test-FMAP16'
g++  -I.  -MMD -I/usr/share/verilator/include -I/usr/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-sign-compare -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-shadow     -std=c++11 -Icsrc/ -include ../csrc/test-FMAP16.h   -c -o test-arithmetic.o ../csrc/test-arithmetic.cpp
g++  -I.  -MMD -I/usr/share/verilator/include -I/usr/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-sign-compare -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-shadow     -std=c++11 -Icsrc/ -include ../csrc/test-FMAP16.h   -c -o verilated.o /usr/share/verilator/include/verilated.cpp
/usr/bin/perl /usr/share/verilator/bin/verilator_includer -DVL_INCLUDE_OPT=include dut.cpp > dut__ALLcls.cpp
g++  -I.  -MMD -I/usr/share/verilator/include -I/usr/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-sign-compare -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-shadow     -std=c++11 -Icsrc/ -include ../csrc/test-FMAP16.h   -c -o dut__ALLcls.o dut__ALLcls.cpp
/usr/bin/perl /usr/share/verilator/bin/verilator_includer -DVL_INCLUDE_OPT=include dut__Syms.cpp > dut__ALLsup.cpp
g++  -I.  -MMD -I/usr/share/verilator/include -I/usr/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-sign-compare -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Wno-shadow     -std=c++11 -Icsrc/ -include ../csrc/test-FMAP16.h   -c -o dut__ALLsup.o dut__ALLsup.cpp
ar -cr dut__ALL.a dut__ALLcls.o dut__ALLsup.o
ranlib dut__ALL.a
g++    test-arithmetic.o verilated.o dut__ALL.a    -o dut -lm -lstdc++ 
make[1]: Leaving directory '/devel/HDL/src/hardposit-chisel3/test-FMAP16'
mkdir -p test_generator/build
cd test_generator/build && cmake ..
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jack/HDL/src/hardposit-chisel3/test_generator/build
make -C test_generator/build
make[1]: Entering directory '/devel/HDL/src/hardposit-chisel3/test_generator/build'
make[2]: Entering directory '/devel/HDL/src/hardposit-chisel3/test_generator/build'
make[3]: Entering directory '/devel/HDL/src/hardposit-chisel3/test_generator/build'
make[3]: Leaving directory '/devel/HDL/src/hardposit-chisel3/test_generator/build'
make[3]: Entering directory '/devel/HDL/src/hardposit-chisel3/test_generator/build'
[ 50%] Building CXX object CMakeFiles/PositTestGenerator.dir/PositTestGenerator.cpp.o
/home/jack/HDL/src/hardposit-chisel3/test_generator/PositTestGenerator.cpp:3:10: fatal error: universal/include/universal/posit/posit.hpp: No such file or directory
 #include "universal/include/universal/posit/posit.hpp"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [CMakeFiles/PositTestGenerator.dir/build.make:63: CMakeFiles/PositTestGenerator.dir/PositTestGenerator.cpp.o] Error 1
make[3]: Leaving directory '/devel/HDL/src/hardposit-chisel3/test_generator/build'
make[2]: *** [CMakeFiles/Makefile2:76: CMakeFiles/PositTestGenerator.dir/all] Error 2
make[2]: Leaving directory '/devel/HDL/src/hardposit-chisel3/test_generator/build'
make[1]: *** [Makefile:84: all] Error 2
make[1]: Leaving directory '/devel/HDL/src/hardposit-chisel3/test_generator/build'
make: *** [Makefile:9: test_generator/build/PositTestGenerator] Error 2

The file indeed does not seem to exist.

Ah, I should have read the README. I forgot to:
git submodule update --init --recursive