Open evo-eco-gen opened 1 year ago
same problem
jialechen@Jiale-MacBook-Pro [15:26:16] [~/Desktop/Analysis_work/App/pairix] [master *]
-> % make
cd src; make; cd ..
gcc -g -w -O2 -fPIC -o pairix main.o -L. -lpairix -lm -lz
gcc -c -g -w -O2 -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -DBGZF_CACHE pairs_merger.c -o pairs_merger.o
pairs_merger.c:41:15: error: call to undeclared function 'pairs_merger'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
int res = pairs_merger(fn_list, num_fn, NULL);
^
1 error generated.
make[2]: *** [pairs_merger.o] Error 1
make[1]: *** [all-recur] Error 1
Same problem on Mac M1....
make cd src; make; cd .. gcc -c -g -w -O2 -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -DBGZF_CACHE bgzf.c -o bgzf.o gcc -c -g -w -O2 -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -DBGZF_CACHE kstring.c -o kstring.o gcc -c -g -w -O2 -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -DBGZF_CACHE knetfile.c -o knetfile.o gcc -c -g -w -O2 -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -DBGZF_CACHE index.c -o index.o gcc -c -g -w -O2 -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -DBGZF_CACHE bedidx.c -o bedidx.o ar -csru libpairix.a bgzf.o kstring.o knetfile.o index.o bedidx.o gcc -c -g -w -O2 -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -DBGZF_CACHE main.c -o main.o gcc -g -w -O2 -fPIC -o pairix main.o -L. -lpairix -lm -lz gcc -c -g -w -O2 -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -DBGZF_CACHE bgzip.c -o bgzip.o gcc -g -w -O2 -fPIC -o bgzip bgzip.o bgzf.o knetfile.o -lz gcc -c -g -w -O2 -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -DBGZF_CACHE pairs_merger.c -o pairs_merger.o pairs_merger.c:41:15: error: call to undeclared function 'pairs_merger'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] int res = pairs_merger(fn_list, num_fn, NULL); ^ 1 error generated. make[2]: [pairs_merger.o] Error 1 make[1]: [all-recur] Error 1
I am also not able to install on M1. however, I got the slightly different error:
cd src; make; cd ..
gcc -c -g -w -O2 -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -DBGZF_CACHE index.c -o index.o
index.c:1417:24: error: incompatible pointer to integer conversion returning 'ti_iter_t' (aka 'struct __ti_iter_t *') from a function with result type 'int' [-Wint-conversion]
if (name == 0) return ti_iter_first();
^~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [index.o] Error 1
make[1]: *** [all-recur] Error 1```
Any update?
Hi,
I am using Apple silicon (M2). When trying to compile I get the following error:
cd src; make; cd .. gcc -g -w -O2 -fPIC -o pairix main.o -L. -lpairix -lm -lz gcc -c -g -w -O2 -fPIC -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE -DBGZF_CACHE pairs_merger.c -o pairs_merger.o pairs_merger.c:41:15: error: call to undeclared function 'pairs_merger'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] int res = pairs_merger(fn_list, num_fn, NULL); ^ 1 error generated. make[2]: [pairs_merger.o] Error 1 make[1]: [all-recur] Error 1
Does this look familiar at all?