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

OpenBLAS build failure #13836

Closed
ViralBShah opened this issue Oct 31, 2015 · 6 comments
Closed

OpenBLAS build failure #13836

ViralBShah opened this issue Oct 31, 2015 · 6 comments
Labels
building Build system, or building Julia or its dependencies system:mac Affects only macOS

Comments

@ViralBShah
Copy link
Member

I just updated to OS X 10.11.1 (El Capitan), and the latest XCode. I can't get openblas to build. I am building a fresh checkout of the julia source tree and this is where it fails:

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C build/openblas/ CC=clang -stdlib=libc++ -mmacosx-version-min=10.7 -m64 FC=gfortran -mmacosx-version-min=10.7 -m64 RANLIB=ranlib FFLAGS= -O2 -fPIC TARGET= BINARY=64 USE_THREAD=1 GEMM_MULTITHREADING_THRESHOLD=50 NUM_THREADS=16 NO_AFFINITY=1 DYNAMIC_ARCH=1 INTERFACE64=1 SYMBOLSUFFIX=64_ LIBPREFIX=libopenblas64_ OBJCONV=/Users/viral/julia/deps/build/objconv/objconv
ldld::  librarylibrary  notnot  foundfound  forfor  --lcrt1.10.6.olcrt1.10.6.o
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
make[3]: *** [sblat1] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [dblat1] Error 1
ld: library not found for -lcrt1.10.6.o
collect2: error: ld returned 1 exit status
make[3]: *** [cblat1] Error 1
ld: library not found for -lcrt1.10.6.o
collect2: error: ld returned 1 exit status
make[3]: *** [zblat1] Error 1
make[2]: *** [tests] Error 2
*** Clean the OpenBLAS build with 'make -C deps clean-openblas'. Rebuild with 'make OPENBLAS_USE_THREAD=0 if OpenBLAS had trouble linking libpthread.so, and with 'make OPENBLAS_TARGET_ARCH=NEHALEM' if there were errors building SandyBridge support. Both these options can also be used simultaneously. ***
make[1]: *** [build/openblas/libopenblas64_.dylib] Error 1
make: *** [julia-deps] Error 2
viral-2 01:30:17 (master) ~/julia$ clang --version
Apple LLVM version 7.0.0 (clang-700.1.76)
Target: x86_64-apple-darwin15.0.0
Thread model: posix
@ViralBShah ViralBShah added building Build system, or building Julia or its dependencies system:mac Affects only macOS labels Oct 31, 2015
@tkelman
Copy link
Contributor

tkelman commented Oct 31, 2015

Have you run xcode-select --install since upgrading?

@ViralBShah
Copy link
Member Author

I wonder how it got this far. Doing that now.

@ViralBShah
Copy link
Member Author

xcode-select --install goes through a bunch of stuff and finally fails with Network Error.

@dnadlinger
Copy link
Member

I had the same issue, but solved it by cleaning everything and reinstalling gcc from brew (for gfortran, as apparently early builds were buggy).

@stevengj
Copy link
Member

I had this problem, but brew upgrade combined with xcode-select --install fixed it for me. I'm still using the Apple (clang) gcc.

@ViralBShah
Copy link
Member Author

Seems like Apple fixed whatever issue it had with the download and the build is fine after that.

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