Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error make in mac #12

Open
monschine opened this issue Nov 25, 2017 · 2 comments
Open

error make in mac #12

monschine opened this issue Nov 25, 2017 · 2 comments

Comments

@monschine
Copy link

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

@lucasb-eyer
Copy link
Owner

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.

@monschine
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants