Closed tseemann closed 4 years ago
This also explains why I have to run make
twice (2 times) to get the binaries created.
I don't understand why you have to run make twice. If you run "make" under the MapCaller folder, it will build all the binaries at the same time. Could you please show me how to fix the problem?
I SOLVED THE PROBLEM.
Your makefile
does not work with make -j 2
because the dependencies are not correct.
main
depends on htslib
so they should not be built in parallel.
Do you have any suggestions how I should modify the makefile to prevent from parallel compiling?
This will allow all the cpus to be used to build MapCaller but ensure that HTSLIB is built before MapCaller tries to use it:
.PHONY: htslib
all: bwt_index MapCaller
MapCaller: htslib
make -C src
mv src/$@ .
bwt_index:
make -C BWT_Index
mv BWT_Index/$@ .
htslib:
make -C src/htslib
Thank you very much! I've updated the makefile.
Because of this error, I think it is linking against my
htslib
I have installed?