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

-q option unsupported, using clang on MacOS #71

Open
MatteoGaetzner opened this issue Apr 30, 2021 · 2 comments
Open

-q option unsupported, using clang on MacOS #71

MatteoGaetzner opened this issue Apr 30, 2021 · 2 comments

Comments

@MatteoGaetzner
Copy link

MatteoGaetzner commented Apr 30, 2021

When running ./Run on macOS an error gets thrown, saying that the -q flag isn't recognised.
MacOS uses clang instead of gcc, I suspect that's the reason why.
Everything runs fine (though of course more verbose) after removing this flag on line 113 in UnixBench/Makefile though.

@gstrauss
Copy link
Collaborator

In Run, this is only applied on Darwin, and was intended for clang.

    #http://stackoverflow.com/questions/9840207/how-to-use-avx-pclmulqdq-on-mac-os-x-lion/19342603#19342603
    CFLAGS += -Wa,-q

Is this still an issue? Are you sure that you're using clang? Or are you using gcc and perhaps this issue should be that -q should not be provided when the compiler is gcc instead of clang?

@mihalis68
Copy link
Contributor

By default, Makefile sets CC=gcc. On my Apple M1 machine, that is also clang (presumably pretending to be gcc?) and I get compilation errors from these flags. If I just change it to do CC=clang it builds without error.

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

3 participants