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

v0.6.2 build broken on Mac OS X with USE_SYSTEM_BLAS = 1 #521

Closed
dlfivefifty opened this issue May 9, 2018 · 12 comments
Closed

v0.6.2 build broken on Mac OS X with USE_SYSTEM_BLAS = 1 #521

dlfivefifty opened this issue May 9, 2018 · 12 comments
Labels
building Build system, or building Julia or its dependencies system:mac Affects only macOS

Comments

@dlfivefifty
Copy link
Contributor

I'm getting the errors below on a fresh build with USE_SYSTEM_BLAS = 1. This is on Mac OS X 10.13.4 with XCode 9.3.

[ma-solver-imac:~/Projects/julia6] sheehanolver% cat Make.user 
override USE_SYSTEM_BLAS = 1
override USE_SYSTEM_LAPACK = 0
[ma-solver-imac:~/Projects/julia6] sheehanolver% make
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   465  100   465    0     0    450      0  0:00:01  0:00:01 --:--:--   451
100 24.3M  100 24.3M    0     0  5355k      0  0:00:04  0:00:04 --:--:-- 7060k
patching file SuiteSparse_config/SuiteSparse_config.h
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   449  100   449    0     0    919      0 --:--:-- --:--:-- --:--:--   920
100 6165k  100 6165k    0     0  2564k      0  0:00:02  0:00:02 --:--:-- 3365k
In file included from /Users/sheehanolver/Projects/julia6/deps/gfortblas.c:43:
In file included from /System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.h:20:
/System/Library/Frameworks/Accelerate.framework/Headers/../Frameworks/vecLib.framework/Headers/vecLib.h:1:2: error: 
      "The vecLib framework is deprecated. Please include
      <Accelerate/Accelerate.h> instead of <vecLib/vecLib.h> and link to the
      Accelerate framework instead of the vecLib framework."
#error "The vecLib framework is deprecated. Please include <Accelerate/A...
 ^
/Users/sheehanolver/Projects/julia6/deps/gfortblas.c:47:12: warning: implicit
      declaration of function 'cblas_sasum' is invalid in C99
      [-Wimplicit-function-declaration]
    return cblas_sasum(*N, SX, *INCX);
           ^
/Users/sheehanolver/Projects/julia6/deps/gfortblas.c:50:12: warning: implicit
      declaration of function 'cblas_scasum' is invalid in C99
      [-Wimplicit-function-declaration]
    return cblas_scasum(*N, SX, *INCX);
           ^
/Users/sheehanolver/Projects/julia6/deps/gfortblas.c:53:12: warning: implicit
      declaration of function 'cblas_scnrm2' is invalid in C99
      [-Wimplicit-function-declaration]
    return cblas_scnrm2(*N, X, *INCX);
           ^
/Users/sheehanolver/Projects/julia6/deps/gfortblas.c:56:12: warning: implicit
      declaration of function 'cblas_sdot' is invalid in C99
      [-Wimplicit-function-declaration]
    return cblas_sdot(*N, SX, *INCX, SY, *INCY);
           ^
/Users/sheehanolver/Projects/julia6/deps/gfortblas.c:59:12: warning: implicit
      declaration of function 'cblas_sdsdot' is invalid in C99
      [-Wimplicit-function-declaration]
    return cblas_sdsdot(*N, *SB, SX, *INCX, SY, *INCY);
           ^
/Users/sheehanolver/Projects/julia6/deps/gfortblas.c:62:12: warning: implicit
      declaration of function 'cblas_snrm2' is invalid in C99
      [-Wimplicit-function-declaration]
    return cblas_snrm2(*N, X, *INCX);
           ^
/Users/sheehanolver/Projects/julia6/deps/gfortblas.c:72:5: warning: implicit
      declaration of function 'cblas_cdotc_sub' is invalid in C99
      [-Wimplicit-function-declaration]
    cblas_cdotc_sub(*N, CX, *INCX, CY, *INCY, &dotc);
    ^
/Users/sheehanolver/Projects/julia6/deps/gfortblas.c:77:5: warning: implicit
      declaration of function 'cblas_cdotu_sub' is invalid in C99
      [-Wimplicit-function-declaration]
    cblas_cdotu_sub(*N, CX, *INCX, CY, *INCY, &dotu);
    ^
/Users/sheehanolver/Projects/julia6/deps/gfortblas.c:82:5: warning: implicit
      declaration of function 'cblas_zdotc_sub' is invalid in C99
      [-Wimplicit-function-declaration]
    cblas_zdotc_sub(*N, CX, *INCX, CY, *INCY, &dotc);
    ^
/Users/sheehanolver/Projects/julia6/deps/gfortblas.c:87:5: warning: implicit
      declaration of function 'cblas_zdotu_sub' is invalid in C99
      [-Wimplicit-function-declaration]
    cblas_zdotu_sub(*N, CX, *INCX, CY, *INCY, &dotu);
    ^
/Users/sheehanolver/Projects/julia6/deps/gfortblas.c:115:5: warning: implicit
      declaration of function 'SetBLASParamErrorProc' is invalid in C99
      [-Wimplicit-function-declaration]
    SetBLASParamErrorProc(BLASParamErrorProcNULL);
    ^
11 warnings and 1 error generated.
make[1]: *** [scratch/libgfortblas.dylib] Error 1
make: *** [julia-deps] Error 2
@ViralBShah
Copy link
Member

ViralBShah commented May 9, 2018

I don't think you should use the System BLAS on mac. It is quite old, and getting deprecated and also has a very old lapack, although I see that you are forcing the lapack build.

@ViralBShah
Copy link
Member

Maybe just the header needs to be fixed - looking at the error message. Could you try that?

@ViralBShah ViralBShah added system:mac Affects only macOS building Build system, or building Julia or its dependencies labels May 9, 2018
@dlfivefifty
Copy link
Contributor Author

I use it because OpenBLAS makes eig, nullspace, etc. very slow. Is there a better alternative?

@vchuravy
Copy link
Member

vchuravy commented May 9, 2018

I think some of these issues are fixed in upstream in OpenBLAS, but there hasn't been a release in a while.
Maybe we need to backport OpenMathLib/OpenBLAS#1471

@ViralBShah
Copy link
Member

I and many others have tried reaching out to @xianyi for the last several months, to no avail. Maybe we can work off a fork until the original project has new maintainers.

@ViralBShah
Copy link
Member

There is a release-0.3.0 branch now though: https://github.com/xianyi/OpenBLAS/tree/release-0.3.0, but it is missing some fixes and does seem to have known issues like OpenMathLib/OpenBLAS#1536

@dlfivefifty
Copy link
Contributor Author

I’ve heard people mention MKL before, does that work on Mac OS X?

@dlfivefifty
Copy link
Contributor Author

I realized my system might be in a weird state, so I'm not sure this issue is valid. Shall I close it for now?

@woodwm
Copy link

woodwm commented May 11, 2018

Hello, I sent a email to xianyi and got a response. He said he had provided others the privilege to release versions of OpenBLAS. Not sure whether this helps. @ViralBShah

@ViralBShah
Copy link
Member

That does help. Thank you. Can you mention this on the openblas repo in the 0.3.0 PR?

@ViralBShah
Copy link
Member

I can't reproduce this, even though I have the same MacOS and XCode versions. It is like Accelerate itself is pulling in VecLib, and then complaining. Builds fine for me.

@dlfivefifty
Copy link
Contributor Author

I think we should close this since there were other weird things happening with my system (in particular with brew privileges).

@KristofferC KristofferC transferred this issue from JuliaLang/julia Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
building Build system, or building Julia or its dependencies system:mac Affects only macOS
Projects
None yet
Development

No branches or pull requests

4 participants