libheatmap icon indicating copy to clipboard operation
libheatmap copied to clipboard

error make in mac

Open monschine opened this issue 7 years ago • 2 comments

Hi,

I just try to compile them all by doing make and get this errors

cc -c heatmap.c -O3 -g -DNDEBUG -fopenmp -Wall -Wextra -Wa,-ahl=heatmap.s -fPIC -I. -pedantic -o heatmap.o
clang: error: unsupported argument '-ahl=heatmap.s' to option 'Wa,'
clang: error: unsupported option '-fopenmp'

I actually just want to load a txt file with a set of points like this

-174 -5
-171 -1
-160 -0
-140 -0
-125 1
-129 -7
-139 -4
-135 -1

Thanks in advance

monschine avatar Nov 25 '17 12:11 monschine

Thanks for the report. It seems clang on mac doesn't support these options? For now, you can simply remove these flags from the Makefile and it should work, that means change lines 12 and 13 to read like this:

DEFAULT_FLAGS=-O3 -g -DNDEBUG -Wall -Wextra
DEFAULT_LDFLAGS=

It will not produce .s files, which are just there for performance debugging, and it means it won't use OpenMP, which, so far, was only used for timing in the benchmarks.

If someone knows how to do this cleanly on mac/clang, please let me know or, ideally, open a PR.

lucasb-eyer avatar Nov 25 '17 12:11 lucasb-eyer

Thanks ! Now I can compile it perfectly, and I already generated my first heatmap !!

monschine avatar Nov 25 '17 13:11 monschine