-
Notifications
You must be signed in to change notification settings - Fork 35
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
Code fails to compile on Mac (issue with AVX intrinsics) #471
Comments
this honestly doesn't look like stuff that coffee spits out. Can you paste here the whole compilation line? What if you replace that option with just -O3 ? |
986dce2f61c72a82742bf5109164330b_p7138.txt Compilation line is (so the
The full error message is this:
And the contents of the file
|
This flag fixes the compile errors reported in issue number 471 (#471).
This flag fixes the compile errors reported in issue number 471 (#471).
This flag fixes the compile errors reported in issue number 471 (#471).
This flag fixes the compile errors reported in issue number 471 (#471).
I think this occurs because the linker you use doesn't understand the avx instructions set. Passing |
Thanks! I think there’s something not quite right with my mac, and the compiler toolchain is screwed up (gcc broke when I upgraded to Yosemite a year ago, so this might still be the aftermath...). The error could be related to the issues I’m seeing with building PETSc (still not resolved - I’m in touch with Satish on petsc@maint). We located the error to this line now:
This looks different since it is a compile error, not a linker error. I will try to rebuild my entire homebrew tomorrow, maybe this helps.
|
I suspect it very probably has the same root cause. |
It was my compiler toolchain that was broken. I just upgraded my MacBook to OSX El Capitan, updated XCode and reinstalled all homebrew packages. After this I don't need the "-Wa,-q" flag any more (and PETSc compiles without problem as well). |
The test build on OS X Mavericks failed with errors like "no such instruction: `vmovss LC1(%rip), %xmm2'" which might relate to AVX intrinsics - at least that's what I've found in a similar issue: OP2/PyOP2#471 The suggested fix is to add the compiler flag "-Wa,-q" which this commit tries to do.
The test build on OS X Mavericks failed with errors like "no such instruction: `vmovss LC1(%rip), %xmm2'" which might relate to AVX intrinsics - at least that's what I've found in a similar issue: OP2/PyOP2#471 The suggested fix is to add the compiler flag "-Wa,-q" which this commit tries to do.
Compilation on my MacBook fails with error messages of the type:
This can be fixed by adding the compiler flag
-Wa,-q
, see following patch:I only tested this on my macbook, the used compiler is gcc:
The text was updated successfully, but these errors were encountered: