Open seryrzu opened 2 years ago
I committed a change that should be fixing the issue with optional
in this branch: https://github.com/ablab/VerityMap/commits/install_bugfix
Not sure what is going on with variadic templates part inside the sketch library. Let me think a bit more about it.
Which exact version of compiler do you use @yangxiaofeill? I see that it seems to be generally g++-9
which suprises me because we have a github action that checks that the tool compiles and it runs on 9.4.0:
See https://github.com/ablab/VerityMap/runs/7239623448?check_suite_focus=true
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
Hey, I ran across almost the same error while building. Your fix branch reduced the error to this
[ 85%] Building CXX object src/projects/veritymap/CMakeFiles/veritymap.dir/veritymap.cpp.o
In file included from /mnt/data/Studium/Forschungspraktikum/code/VerityMap/veritymap/src/tools/sketch/./include/sketch/common.h:58,
from /mnt/data/Studium/Forschungspraktikum/code/VerityMap/veritymap/src/tools/sketch/./include/sketch/update.h:3,
from /mnt/data/Studium/Forschungspraktikum/code/VerityMap/veritymap/src/tools/sketch/./include/sketch/ccm.h:6,
from /mnt/data/Studium/Forschungspraktikum/code/VerityMap/veritymap/src/projects/veritymap/kmer_index/kmer_filter.hpp:9,
from /mnt/data/Studium/Forschungspraktikum/code/VerityMap/veritymap/src/projects/veritymap/kmer_index/approx_kmer_indexer.hpp:12,
from /mnt/data/Studium/Forschungspraktikum/code/VerityMap/veritymap/src/projects/veritymap/kmer_index/target_indexer.hpp:12,
from /mnt/data/Studium/Forschungspraktikum/code/VerityMap/veritymap/src/projects/veritymap/veritymap.hpp:19,
from /mnt/data/Studium/Forschungspraktikum/code/VerityMap/veritymap/src/projects/veritymap/veritymap.cpp:5:
/mnt/data/Studium/Forschungspraktikum/code/VerityMap/veritymap/src/tools/sketch/./include/sketch/./div.h:150:54: error: expected ')' before '&&' token
150 | template<typename...Args>Schismatic<int32_t>(Args &&...args):
| ~ ^~~
| )
/mnt/data/Studium/Forschungspraktikum/code/VerityMap/veritymap/src/tools/sketch/./include/sketch/./div.h:154:54: error: expected ')' before '&&' token
154 | template<typename...Args>Schismatic<int64_t>(Args &&...args):
| ~ ^~~
| )
make[3]: *** [src/projects/veritymap/CMakeFiles/veritymap.dir/build.make:76: src/projects/veritymap/CMakeFiles/veritymap.dir/veritymap.cpp.o] Error 1
make[3]: Leaving directory '/mnt/data/Studium/Forschungspraktikum/code/VerityMap/veritymap/build'
make[2]: *** [CMakeFiles/Makefile2:269: src/projects/veritymap/CMakeFiles/veritymap.dir/all] Error 2
make[2]: Leaving directory '/mnt/data/Studium/Forschungspraktikum/code/VerityMap/veritymap/build'
make[1]: *** [Makefile:91: all] Error 2
make[1]: Leaving directory '/mnt/data/Studium/Forschungspraktikum/code/VerityMap/veritymap/build'
make: *** [Makefile:12: veritymap] Error 2
as 'predicted' by you. I tested it with both gcc/g++ v9.4 and v11.2 using conda. Same error for both versions.
Reported in https://github.com/ablab/VerityMap/issues/1#issuecomment-1176006425 by @yangxiaofeill
Copied below