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

Julia build error - OS X 10.8.4 #43

Closed
taheris opened this issue Aug 20, 2013 · 2 comments
Closed

Julia build error - OS X 10.8.4 #43

taheris opened this issue Aug 20, 2013 · 2 comments

Comments

@taheris
Copy link

taheris commented Aug 20, 2013

Hello,

I'm having trouble building Julia using:

brew install --HEAD -v julia

The error output is:

    CC ui/repl.o
    CC ui/repl-basic.o
    CC ui/repl-readline.o
    LINK usr/bin/julia-release-basic
    LINK usr/bin/julia-release-readline
/bin/sh: line 1: 36567 Segmentation fault: 11  /private/tmp/julia-f3gn/usr/bin/julia-release-readline -bf sysimg.jl
make[1]: *** [/private/tmp/julia-f3gn/usr/lib/julia/sys0.ji] Error 139
make: *** [release] Error 2
==> Formula
Tap: staticfloat/julia
Path: /usr/local/Library/Taps/staticfloat-julia/julia.rb
==> Configuration
HOMEBREW_VERSION: 0.9.4
HEAD: cb9317eb03f54b1951c5c13d9e6096a36a871fef
CPU: quad-core 64-bit ivybridge
OS X: 10.8.4-x86_64
Xcode: 4.6.3
CLT: 4.6.0.0.1.1365549073
X11: 2.7.4 => /opt/X11
==> ENV
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8
CPPFLAGS: -I/usr/local/opt/suite-sparse-julia/include -I/usr/local/opt/openblas-julia/include -I/usr/local/opt/readline/include -F/usr/local/Frameworks
LDFLAGS: -L/usr/local/opt/suite-sparse-julia/lib -L/usr/local/opt/arpack-julia/lib -L/usr/local/opt/openblas-julia/lib -L/usr/local/opt/readline/lib -L/usr/local/lib -F/usr/local/Frameworks -headerpad_max_install_names
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /usr/local/opt/suite-sparse-julia:/usr/local/opt/arpack-julia:/usr/local/opt/openblas-julia:/usr/local/opt/readline
CMAKE_INCLUDE_PATH: /usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/Headers
CMAKE_FRAMEWORK_PATH: /usr/local/Frameworks
MACOSX_DEPLOYMENT_TARGET: 10.8
PKG_CONFIG_PATH: /usr/local/opt/arpack-julia/lib/pkgconfig:/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/local/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.8:/usr/lib/pkgconfig
OBJC: /usr/bin/clang
PATH: /usr/local/opt/arpack-julia/bin:/usr/local/opt/python/bin:/Users/shaun/bin:/Users/shaun/programs/anaconda/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/texbin:/usr/local/Library/Contributions/cmd:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin
CPATH: /usr/local/include

Error: julia did not build

My Homebrew config is as follows:

shaun@lappy ~ $ brew doctor
Your system is ready to brew.
shaun@lappy ~ $ brew --config
HOMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew
HEAD: cb9317eb03f54b1951c5c13d9e6096a36a871fef
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit ivybridge
OS X: 10.8.4-x86_64
Xcode: 4.6.3
CLT: 4.6.0.0.1.1365549073
LLVM-GCC: build 2336
Clang: 4.2 build 425
X11: 2.7.4 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/local/bin/ruby => /usr/local/Cellar/ruby/2.0.0-p247/bin/ruby

Any help identifying the cause would be appreciated.

@taheris
Copy link
Author

taheris commented Aug 20, 2013

Somewhat unexpected but after restarting my terminal the build now works fine. I can only guess at the cause which was some environment variables left over from my Anaconda installation (which I had removed using 'rm -rf' as brew was complaining about a second LLVM installation).

@taheris taheris closed this as completed Aug 20, 2013
@staticfloat
Copy link
Owner

Great, I'm glad everything resolved itself. That segfault is awfully suspicious, but it may also have been a problem with the Julia build itself, which was updated by the time you retried the installation.

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