Skip to content

Failed to compile #2

@shenwei356

Description

@shenwei356

Hi Massimiliano, I failed to compile moni with the given installation step.

git clone https://github.com/maxrossi91/moni

mkdir build
cd build
cmake ..
make

[ 44%] Built target rlbwt2lcp
[ 44%] Building CXX object _deps/bwt2lcp-build/CMakeFiles/bwt2lcp.dir/bwt2lcp.cpp.o
In file included from /home/shenwei/Downloads/moni/build/_deps/bwt2lcp-src/internal/dna_bwt.hpp:15,
                 from /home/shenwei/Downloads/moni/build/_deps/bwt2lcp-src/internal/lcp.hpp:26,
                 from /home/shenwei/Downloads/moni/build/_deps/bwt2lcp-src/bwt2lcp.cpp:14:
/home/shenwei/Downloads/moni/build/_deps/bwt2lcp-src/internal/include.hpp:15:14: error: ‘uint64_t’ was not declared in this scope
   15 | typedef pair<uint64_t,uint64_t> range_t;
      |              ^~~~~~~~
/home/shenwei/Downloads/moni/build/_deps/bwt2lcp-src/internal/include.hpp:12:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstd
int>’?
   11 | #include <algorithm>
  +++ |+#include <cstdint>
   12 | 
/home/shenwei/Downloads/moni/build/_deps/bwt2lcp-src/internal/include.hpp:15:23: error: ‘uint64_t’ was not declared in this scope
   15 | typedef pair<uint64_t,uint64_t> range_t;
      |                       ^~~~~~~~
/home/shenwei/Downloads/moni/build/_deps/bwt2lcp-src/internal/include.hpp:15:23: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cst
dint>’?
/home/shenwei/Downloads/moni/build/_deps/bwt2lcp-src/internal/include.hpp:15:31: error: template argument 1 is invalid
   15 | typedef pair<uint64_t,uint64_t> range_t;
      |                               ^
/home/shenwei/Downloads/moni/build/_deps/bwt2lcp-src/internal/include.hpp:15:31: error: template argument 2 is invalid
/home/shenwei/Downloads/moni/build/_deps/bwt2lcp-src/internal/include.hpp:32:9: error: ‘uint64_t’ does not name a type
   32 |         uint64_t first_TERM;

Here's some information you might find useful.

$ uname -a
Linux mBio 6.1.55-1-MANJARO #1 SMP PREEMPT_DYNAMIC Sat Sep 23 12:13:56 UTC 2023 x86_64 GNU/Linux

$ cmake --version 
cmake version 3.27.7
$ gcc --version
gcc (GCC) 13.2.1 20230801
$ g++ --version
g++ (GCC) 13.2.1 20230801

Or, can you support installation with conda: https://github.com/bioconda/bioconda-recipes .

Thanks a lot.

Wei

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions