bcgsc / btllib

Bioinformatics Technology Lab common code library
Other
23 stars 5 forks source link

src/btllib/bloom_filter.cpp:250:10: error: call to constructor of 'NtHash' is ambiguous #117

Open yurivict opened 9 months ago

yurivict commented 9 months ago

Build fails on non-64-bit systems:

/wrkdirs/usr/ports/biology/btllib/work/btllib-1.7.0/src/btllib/bloom_filter.cpp:250:10: error: call to constructor of 'NtHash' is ambiguous
  250 |   NtHash nthash(seq, seq_len, get_hash_num(), get_k());
      |          ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/btllib/nthash_kmer.hpp:248:3: note: candidate constructor
  248 |   NtHash(const char* seq,
      |   ^
../include/btllib/nthash_kmer.hpp:278:3: note: candidate constructor
  278 |   NtHash(const std::string& seq,
      |   ^
/wrkdirs/usr/ports/biology/btllib/work/btllib-1.7.0/src/btllib/bloom_filter.cpp:260:10: error: call to constructor of 'NtHash' is ambiguous
  260 |   NtHash nthash(seq, seq_len, get_hash_num(), get_k());
      |          ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/btllib/nthash_kmer.hpp:248:3: note: candidate constructor
  248 |   NtHash(const char* seq,
      |   ^
../include/btllib/nthash_kmer.hpp:278:3: note: candidate constructor
  278 |   NtHash(const std::string& seq,
      |   ^
/wrkdirs/usr/ports/biology/btllib/work/btllib-1.7.0/src/btllib/bloom_filter.cpp:273:10: error: call to constructor of 'NtHash' is ambiguous
  273 |   NtHash nthash(seq, seq_len, get_hash_num(), get_k());
      |          ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/btllib/nthash_kmer.hpp:248:3: note: candidate constructor
  248 |   NtHash(const char* seq,
      |   ^
../include/btllib/nthash_kmer.hpp:278:3: note: candidate constructor
  278 |   NtHash(const std::string& seq,
      |   ^
3 errors generated.

Version: 1.7.0 clang-16 FreeBSD 14.0