bwa icon indicating copy to clipboard operation
bwa copied to clipboard

bwa compile failed at utils.c:29:10

Open sagitaninta opened this issue 3 years ago • 1 comments

I am trying to install bwa at a Linux Cluster and the make command fail at this point

gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS  utils.c -o utils.o
utils.c:29:10: fatal error: stdio.h: No such file or directory
 #include <stdio.h>
          ^~~~~~~~~
compilation terminated.
make: *** [Makefile:25: utils.o] Error 1

And when I seek the stdio.h within the bwa folder after git clone, it is absent also. Could you point me to a possible solution?

sagitaninta avatar Feb 10 '21 16:02 sagitaninta

stdio.h is one of fundamental C/C++ header files, usually located at /usr/include/ directory. You either need to instal libc-dev or reinstall gcc compiler.

tomaskopsa avatar Feb 11 '21 02:02 tomaskopsa