dentearl / mafTools

Bioinformatics tools for dealing with Multiple Alignment Format (MAF) files.
Other
104 stars 32 forks source link

Compilation issue with mafExtractor #15

Closed urjaswita closed 7 years ago

urjaswita commented 7 years ago

Hi, I am getting an error while compiling mafExtractor:

$ sudo make all clang -std=c99 -stdlib=libstdc++ -O3 -c -O3 -Wall -Werror --pedantic -funroll-loops -DNDEBUG -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -I ../../sonLib/lib -I ../inc -I ../external src/mafExtractorAPI.c -o src/mafExtractorAPI.o.tmp -lm clang: error: -lm: 'linker' input unused [-Werror,-Wunused-command-line-argument] make: *** [src/mafExtractorAPI.o] Error 1

Rest of the components compiled fine. Could you please help me fix this? Thanks so much. I am on MacOS-X Sierra.

dentearl commented 7 years ago

In mafExtractor/Makefile, change line 25 to be ${cxx} ${cflags} -O3 $< ${API} -o $@.tmp

change line 30 to be ${cxx} ${cflags} -g -O0 $< ${testAPI} -o $@.tmp

change line 34 to be ${cxx} -O3 -c ${cflags} $< -o $@.tmp

I think that should get you there, let me know.