-
Notifications
You must be signed in to change notification settings - Fork 370
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
Default compiler is misidentified on OpenBSD #201
Comments
One possible problem is that using
|
On Mac, BLIS is doing the right thing, because the system compiler is crippled (e.g. has no OpenMP). For OpenBSD, we should prioritize |
Thanks for breaking it down for us, Devin. Also, thanks for your suggestion, Jeff. I've never used OpenBSD, nor do I have access to a system with it installed. Can someone tell me if we can rely on |
Yes, |
Any chance it could be |
Looks like 55ebf24 fixes this on OpenBSD. Thanks! |
@ararslan Yes, I will change it to |
Okay, try 9dbce16. |
Is |
No, |
I haven't tried BLIS on NetBSD or DragonFly, but it may be worthwhile to note that they use GCC as their default compiler; it's only FreeBSD and OpenBSD that use Clang by default at the moment. |
In the
configure
script, having GCC on the user'sPATH
takes precedence over Clang orcc
. This ends up picking up OpenBSD's default GCC 4.2.1 installation, which is too old to build BLIS. GCC is actually no longer the default compiler on OpenBSD;cc
now points toclang
as of OpenBSD 6.2.This poses a subtly different problem on FreeBSD, where Clang is the default compiler as of FreeBSD 11.0 and GCC is no longer installed by default. If someone installs GCC from the Ports Collection then reconfigures BLIS without specifying
CC=
, they will suddenly be using GCC instead of Clang.It seems like the best course of action across all platforms would be to check
cc
first rather than last, and fall back to looking for GCC or Clang if that fails.The text was updated successfully, but these errors were encountered: