-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
I am getting the following error when I build Nebula i.e. execute make in cpp directory. I am running on my Macbook, so changed g++ to clang++ -Xpreprocessor and also copied stdc++.h to htslib directory
(base) behera@Administrators-MacBook-Pro cpp % make
clang++ -Xpreprocessor -std=c++11 -O3 -funroll-loops -fopenmp -I./htslib -c genotyper.cpp -o genotyper.o
clang++ -Xpreprocessor -std=c++11 -O3 -funroll-loops -fopenmp -I./htslib -c inner.cpp -o inner.o
inner.cpp:178:87: error: non-constant-expression cannot be narrowed from type 'int' to 'uint16_t' (aka 'unsigned short') in initializer list [-Wc++11-narrowing]
Locus locus({track.chrom, track.begin, LOCUS_TYPE_INNER, it->left, it->right, it->gc / 5, true}) ;
^~~~~~~~~~
inner.cpp:178:87: note: insert an explicit cast to silence this issue
Locus locus({track.chrom, track.begin, LOCUS_TYPE_INNER, it->left, it->right, it->gc / 5, true}) ;
^~~~~~~~~~
static_cast<uint16_t>( )
1 error generated.
make: *** [inner.o] Error 1
I also tried on our institute cluster, but I got an error while building the htslib. I installed libz using conda install zlib.
(base) [u236519@sug-login1 htslib]$ make
gcc -g -Wall -O2 -fvisibility=hidden -I. -c -o cram/cram_io.o cram/cram_io.c
cram/cram_io.c:53:10: fatal error: bzlib.h: No such file or directory
#include <bzlib.h>
^~~~~~~~~
compilation terminated.
make: *** [Makefile:162: cram/cram_io.o] Error 1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels