diamond
diamond copied to clipboard
diamond 2.1.1 build failure
👋 trying to build the latest release, but run into some build issue. The error log is as below:
error build log
/tmp/diamond-20230209-59614-1b1rwlw/diamond-2.1.1/src/search/../data/../masking/../util/kmer/kmer.h:68:8: error: no matching function for call to 'power'
mod_(power((uint64_t)reduction_.size(), K - 1))
^~~~~
/tmp/diamond-20230209-59614-1b1rwlw/diamond-2.1.1/src/search/../data/../masking/../util/kmer/../math/integer.h:65:3: note: candidate template ignored: deduced conflicting types for parameter 'I' ('unsigned long long' vs. 'unsigned long')
I power(I x, I p)
^
relates to Homebrew/homebrew-core#122521
It should be fixed in the latest release.
Thanks @bbuchfink, actually on linux I can see some build failures
CMakeFiles/arch_sse4_1.dir/src/dp/swipe/anchored_wrapper.cpp.o CMakeFiles/arch_sse4_1.dir/src/dp/score_profile.cpp.o -o diamond -lz
/usr/bin/ld: CMakeFiles/diamond.dir/src/align/align.cpp.o: warning: relocation against `_ZTVN17ExtensionPipeline5Swipe8PipelineE' in read-only section `.text._ZN17ExtensionPipeline5Swipe8PipelineD2Ev[_ZN17ExtensionPipeline5Swipe8PipelineD5Ev]'
/usr/bin/ld: CMakeFiles/diamond.dir/src/align/align.cpp.o: in function `legacy_pipeline(HitIterator::Hits const&, Search::Config&, Statistics&)':
align.cpp:(.text+0x5f0): undefined reference to `vtable for ExtensionPipeline::Swipe::Pipeline'
/usr/bin/ld: CMakeFiles/diamond.dir/src/align/align.cpp.o: in function `ExtensionPipeline::Swipe::Pipeline::~Pipeline()':
align.cpp:(.text._ZN17ExtensionPipeline5Swipe8PipelineD0Ev[_ZN17ExtensionPipeline5Swipe8PipelineD5Ev]+0x7): undefined reference to `vtable for ExtensionPipeline::Swipe::Pipeline'
/usr/bin/ld: CMakeFiles/diamond.dir/src/align/align.cpp.o: in function `ExtensionPipeline::Swipe::Pipeline::~Pipeline()':
align.cpp:(.text._ZN17ExtensionPipeline5Swipe8PipelineD2Ev[_ZN17ExtensionPipeline5Swipe8PipelineD5Ev]+0x7): undefined reference to `vtable for ExtensionPipeline::Swipe::Pipeline'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
relates to https://github.com/Homebrew/homebrew-core/pull/123766
This should now also be fixed in the latest release.
Thank you! Trying it now.