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-julia build error on 10.7.5: "Undefined local symbol" #37

Closed
jboynyc opened this issue Aug 7, 2013 · 4 comments
Closed

openblas-julia build error on 10.7.5: "Undefined local symbol" #37

jboynyc opened this issue Aug 7, 2013 · 4 comments

Comments

@jboynyc
Copy link

jboynyc commented Aug 7, 2013

I'm trying to build julia using Homebrew. I ran brew update, downgraded LLVM to 3.2, ran brew upgrade on all outdated packages. Here's what happens:

$ brew install -v --HEAD julia
<snip>
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Downloading http://www.netlib.org/lapack/lapack-3.4.2.tgz
Already downloaded: /Users/jboy/Library/Caches/Homebrew/lapack-3.4.2.tgz
tar xf /Users/jboy/Library/Caches/Homebrew/lapack-3.4.2.tgz
==> Using LAPACK: /Users/jboy/Library/Caches/Homebrew/lapack-3.4.2.tgz
==> make FC=/usr/local/bin/gfortran
make FC=/usr/local/bin/gfortran
cc1: error in backend: Ran out of registers during register allocation!
{standard input}:0:End-of-File not at end of a line
{standard input}:1130:End-of-File not at end of a line
{standard input}:unknown:Partial line at end of file ignored
{standard input}:unknown:Undefined local symbol L_.str
{standard input}:unknown:Undefined local symbol L_.str1
{standard input}:unknown:Undefined local symbol L_.str2
{standard input}:unknown:Undefined local symbol L_.str3
{standard input}:unknown:Undefined local symbol L_.str4
{standard input}:unknown:Undefined local symbol L_.str5
{standard input}:unknown:Undefined local symbol L_.str6
{standard input}:unknown:Undefined local symbol L_.str7
{standard input}:unknown:Undefined local symbol L_.str8
{standard input}:unknown:Undefined local symbol L_.str9
{standard input}:unknown:Undefined local symbol L_.str10
{standard input}:unknown:Undefined local symbol L_.str11
{standard input}:unknown:Undefined local symbol L_.str12
{standard input}:unknown:Undefined local symbol L_.str13
{standard input}:unknown:Undefined local symbol L_.str14
{standard input}:unknown:Undefined local symbol L_.str15
{standard input}:unknown:Undefined local symbol L_.str16
{standard input}:unknown:Undefined local symbol L_.str17
{standard input}:unknown:Undefined local symbol L_.str18
{standard input}:unknown:Undefined local symbol L_.str19
{standard input}:unknown:Undefined local symbol L_.str20
{standard input}:unknown:Undefined local symbol L_.str21
{standard input}:unknown:Undefined local symbol L_.str22
{standard input}:unknown:Undefined local symbol L_.str23
{standard input}:unknown:Undefined local symbol L_.str24
{standard input}:unknown:Undefined local symbol L_.str48
make: *** [getarch] Error 1
Makefile.system:76: Makefile.conf: No such file or directory
Makefile.system:657: Makefile.: No such file or directory
make: *** No rule to make target `Makefile.'.  Stop.
==> Formula
Tap: staticfloat/julia
Path: /usr/local/Library/Taps/staticfloat-julia/openblas-julia.rb
==> Configuration
HOMEBREW_VERSION: 0.9.4
HEAD: dde5d694205fffb74403fce7ace8534bad5d17df
CPU: dual-core 64-bit penryn
OS X: 10.7.5-x86_64
Xcode: 4.6.3
CLT: 1.0.0.9000000000.1.1249367152
GCC-4.2: build 5666
LLVM-GCC: build 2335
Clang: 2.1 build 163
X11: 2.6.5 => /usr/X11
==> ENV
HOMEBREW_CC: llvm-gcc
MAKEFLAGS: -j2
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig
ACLOCAL_PATH: /usr/local/share/aclocal
OBJC: cc
PATH: /usr/local/Library/ENV/4.3:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin

Error: openblas-julia did not build

I went through previous issues posted here and none of them seemed to match this one. I even tried building openblas-julia with the --use-clang flag with no success. Any ideas what the issue may be?

@staticfloat
Copy link
Owner

This is a new one! For the record, you shouldn't need to downgrade to LLVM 3.2, LLVM 3.3 should just work. If there's some documentation somewhere that says otherwise, I need to change it, so let me know.

From my google searching, this looks like a mystery bug in the compiler that pops up every now and then; I've updated OpenBLAS to 0.2.8, which might automagically fix things (brew update and try again to find out). If it doesn't, can you post the output of brew doctor?

@jboynyc
Copy link
Author

jboynyc commented Aug 8, 2013

Regarding LLVM 3.2: I got that from this issue.

Will try building now after running brew update and report back. Thanks for looking into this!

I also noticed that I had failed to install new XCode command-line tools, so that may have been part of the issue.

@jboynyc
Copy link
Author

jboynyc commented Aug 8, 2013

OK, I installed XCode command-line tools, ran brew update, fixed some warnings that brew doctor gave me (mostly about things I had installed using GNU stow), and now it built. Unfortunately that means I don't know what the root cause was. Probably the outdated XCode stuff.

Thanks again!

@staticfloat
Copy link
Owner

I concur. In general, anything that brew doctor complains about (that you didn't purposefully do) should be fixed before we expect everything to work. :)

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

2 participants