Skip to content

Instantly share code, notes, and snippets.

@mr-c
Created January 27, 2020 12:51
Show Gist options
  • Save mr-c/56260264dc01d1d82a7716caa0cc1171 to your computer and use it in GitHub Desktop.
Save mr-c/56260264dc01d1d82a7716caa0cc1171 to your computer and use it in GitHub Desktop.
[2/475] /usr/bin/ccache /usr/lib/ccache/c++ -DSEQAN3_HAS_BZIP2=1 -DSEQAN3_HAS_ZLIB=1 -Ivendor/googletest/googletest/include -I/build/seqan3-3.0.1+ds/test/include -I/build/seqan3-3.0.1+ds/include -isystem /build/seqan3-3.0.1+ds/submodules/sdsl-lite/include -g -O2 -fdebug-prefix-map=/build/seqan3-3.0.1+ds=. -fstack-protector-strong -Wformat -Werror=format-security -fuse-ld=gold -DNDEBUG -O3 -std=c++2a -Wdate-time -D_FORTIFY_SOURCE=2 -pedantic -Wall -Wextra -Werror -fconcepts -pthread -MD -MT alignment/CMakeFiles/aligned_sequence_test.dir/aligned_sequence_test.cpp.o -MF alignment/CMakeFiles/aligned_sequence_test.dir/aligned_sequence_test.cpp.o.d -o alignment/CMakeFiles/aligned_sequence_test.dir/aligned_sequence_test.cpp.o -c /build/seqan3-3.0.1+ds/test/unit/alignment/aligned_sequence_test.cpp
FAILED: alignment/CMakeFiles/aligned_sequence_test.dir/aligned_sequence_test.cpp.o
/usr/bin/ccache /usr/lib/ccache/c++ -DSEQAN3_HAS_BZIP2=1 -DSEQAN3_HAS_ZLIB=1 -Ivendor/googletest/googletest/include -I/build/seqan3-3.0.1+ds/test/include -I/build/seqan3-3.0.1+ds/include -isystem /build/seqan3-3.0.1+ds/submodules/sdsl-lite/include -g -O2 -fdebug-prefix-map=/build/seqan3-3.0.1+ds=. -fstack-protector-strong -Wformat -Werror=format-security -fuse-ld=gold -DNDEBUG -O3 -std=c++2a -Wdate-time -D_FORTIFY_SOURCE=2 -pedantic -Wall -Wextra -Werror -fconcepts -pthread -MD -MT alignment/CMakeFiles/aligned_sequence_test.dir/aligned_sequence_test.cpp.o -MF alignment/CMakeFiles/aligned_sequence_test.dir/aligned_sequence_test.cpp.o.d -o alignment/CMakeFiles/aligned_sequence_test.dir/aligned_sequence_test.cpp.o -c /build/seqan3-3.0.1+ds/test/unit/alignment/aligned_sequence_test.cpp
In file included from /build/seqan3-3.0.1+ds/include/seqan3/alphabet/nucleotide/nucleotide_base.hpp:15,
from /build/seqan3-3.0.1+ds/include/seqan3/alphabet/nucleotide/dna4.hpp:17,
from /build/seqan3-3.0.1+ds/include/seqan3/alphabet/nucleotide/rna4.hpp:17,
from /build/seqan3-3.0.1+ds/test/unit/alignment/aligned_sequence_test.cpp:10:
/build/seqan3-3.0.1+ds/include/seqan3/alphabet/alphabet_base.hpp: In instantiation of ‘class seqan3::alphabet_base<seqan3::cigar, 0, void>’:
/build/seqan3-3.0.1+ds/include/seqan3/alphabet/composite/alphabet_tuple_base.hpp:120:7: required from ‘class seqan3::alphabet_tuple_base<seqan3::cigar, unsigned int, seqan3::cigar_op>’
/build/seqan3-3.0.1+ds/include/seqan3/alphabet/cigar/cigar.hpp:54:22: required from here
/build/seqan3-3.0.1+ds/include/seqan3/alphabet/alphabet_base.hpp:54:24: error: static assertion failed: alphabet size must be >= 1
54 | static_assert(size != 0, "alphabet size must be >= 1"); // == 1 is handled below in separate specialisation
| ~~~~~^~~~
In file included from /build/seqan3-3.0.1+ds/include/seqan3/alphabet/quality/qualified.hpp:15,
from /build/seqan3-3.0.1+ds/test/unit/alignment/aligned_sequence_test.cpp:13:
/build/seqan3-3.0.1+ds/include/seqan3/alphabet/composite/alphabet_tuple_base.hpp: In instantiation of ‘constexpr const std::array<std::array<unsigned int, 0>, 2> seqan3::alphabet_tuple_base<seqan3::cigar, unsigned int, seqan3::cigar_op>::rank_to_component_rank’:
/build/seqan3-3.0.1+ds/include/seqan3/alphabet/composite/alphabet_tuple_base.hpp:663:20: required from ‘constexpr typename seqan3::alphabet_tuple_base<derived_type, component_types>::base_t::rank_type seqan3::alphabet_tuple_base<derived_type, component_types>::to_component_rank() const [with unsigned int index = 0; derived_type = seqan3::cigar; component_types = {unsigned int, seqan3::cigar_op}; typename seqan3::alphabet_tuple_base<derived_type, component_types>::base_t::rank_type = unsigned int]’
/build/seqan3-3.0.1+ds/include/seqan3/alphabet/composite/alphabet_tuple_base.hpp:499:38: required from ‘constexpr auto seqan3::get(const seqan3::alphabet_tuple_base<derived_type, component_types>&) [with unsigned int index = 0; derived_type = seqan3::cigar; component_types = {unsigned int, seqan3::cigar_op}]’
/build/seqan3-3.0.1+ds/include/seqan3/alphabet/cigar/cigar.hpp:107:85: required from here
/build/seqan3-3.0.1+ds/include/seqan3/alphabet/composite/alphabet_tuple_base.hpp:725:51: error: initializer for ‘std::__array_traits<unsigned int, 0>::_Type’ must be brace-enclosed
725 | std::array<size_t, alphabet_size> alph_sizes{ seqan3::alphabet_size<component_types>... };
| ^~~~~~~~~~
/build/seqan3-3.0.1+ds/include/seqan3/alphabet/composite/alphabet_tuple_base.hpp:733:10: error: call to non-‘constexpr’ function ‘seqan3::alphabet_tuple_base<seqan3::cigar, unsigned int, seqan3::cigar_op>::<lambda()>’
718 | [] () constexpr
| ~~~~~~~~~~~~~~~
719 | {
| ~
720 | std::array<std::array<rank_type, alphabet_size < 1024 ? alphabet_size : 0>, // not for big alphs
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
721 | list_traits::size<component_list>> ret{};
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
722 |
|
723 | if constexpr (alphabet_size < 1024)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
724 | {
| ~
725 | std::array<size_t, alphabet_size> alph_sizes{ seqan3::alphabet_size<component_types>... };
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
726 |
|
727 | for (size_t i = 0; i < list_traits::size<component_list>; ++i)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
728 | for (size_t j = 0; j < static_cast<size_t>(alphabet_size); ++j)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
729 | ret[i][j] = (j / cummulative_alph_sizes[i]) % alph_sizes[i];
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
730 | }
| ~
731 |
|
732 | return ret;
| ~~~~~~~~~~~
733 | }()
| ~^~
/build/seqan3-3.0.1+ds/include/seqan3/alphabet/composite/alphabet_tuple_base.hpp:718:9: note: ‘seqan3::alphabet_tuple_base<seqan3::cigar, unsigned int, seqan3::cigar_op>::<lambda()>’ is not usable as a ‘constexpr’ function because:
718 | [] () constexpr
| ^
In file included from /build/seqan3-3.0.1+ds/include/seqan3/alphabet/nucleotide/nucleotide_base.hpp:15,
from /build/seqan3-3.0.1+ds/include/seqan3/alphabet/nucleotide/dna4.hpp:17,
from /build/seqan3-3.0.1+ds/include/seqan3/alphabet/nucleotide/rna4.hpp:17,
from /build/seqan3-3.0.1+ds/test/unit/alignment/aligned_sequence_test.cpp:10:
/build/seqan3-3.0.1+ds/include/seqan3/alphabet/alphabet_base.hpp: In instantiation of ‘class seqan3::alphabet_base<seqan3::alphabet_tuple_base<seqan3::cigar, unsigned int, seqan3::cigar_op>::component_proxy<unsigned int, 0>, 0, char32_t>’:
/build/seqan3-3.0.1+ds/include/seqan3/alphabet/detail/alphabet_proxy.hpp:59:7: required from ‘class seqan3::alphabet_proxy<seqan3::alphabet_tuple_base<seqan3::cigar, unsigned int, seqan3::cigar_op>::component_proxy<unsigned int, 0>, unsigned int>’
/build/seqan3-3.0.1+ds/include/seqan3/alphabet/composite/alphabet_tuple_base.hpp:150:11: required from ‘class seqan3::alphabet_tuple_base<seqan3::cigar, unsigned int, seqan3::cigar_op>::component_proxy<unsigned int, 0>’
/build/seqan3-3.0.1+ds/include/seqan3/alphabet/composite/alphabet_tuple_base.hpp:472:48: required from ‘constexpr auto seqan3::get(seqan3::alphabet_tuple_base<derived_type, component_types>&) [with unsigned int index = 0; derived_type = seqan3::cigar; component_types = {unsigned int, seqan3::cigar_op}]’
/build/seqan3-3.0.1+ds/include/seqan3/alphabet/cigar/cigar.hpp:128:25: required from here
/build/seqan3-3.0.1+ds/include/seqan3/alphabet/alphabet_base.hpp:54:24: error: static assertion failed: alphabet size must be >= 1
54 | static_assert(size != 0, "alphabet size must be >= 1"); // == 1 is handled below in separate specialisation
| ~~~~~^~~~
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment