Giter Site home page Giter Site logo

homebrew-julia's Introduction

This tap is not actively maintained

To install Julia through homebrew, use Homebrew cask; brew cask install julia.

To install Julia from source, follow the instructions on the main Julia github repo.

This tap is still published as an example of how to build Julia and various dependencies for the curious and enterprising dev looking to build Julia on Homebrew.

homebrew-julia

A small tap for the Homebrew project to install Julia. Installation instructions:

$ brew update
$ brew tap staticfloat/julia
$ brew install julia

Common Issues

If you are building Julia from source and you see errors about libgfortran.dylib, you most likely need to reinstall the latest gcc, openblas-julia, suite-sparse-julia and arpack-julia:

$ brew update
$ brew rm gcc openblas-julia suite-sparse-julia arpack-julia
$ brew install gcc openblas-julia suite-sparse-julia arpack-julia 

See this thread for technical details as to why gfortran dependencies require this treatment.

Building a bleeding-edge version of Julia

If you wish to test the newest development version of Julia, you can build with the --HEAD option:

$ brew install --HEAD julia

Note that to run the test suite you must also pass the --HEAD option to brew:

$ brew test -v --HEAD julia

Using OpenBLAS HEAD or specifying CPU targets

If you wish to test the newest development version of OpenBLAS with Julia, you can do so by manually unlinking OpenBLAS, and installing the HEAD version of the formula:

$ brew unlink openblas-julia
$ brew install openblas-julia --HEAD

This will install the latest develop branch of OpenBLAS. Julia will happily link against this new version, but unfortunately SuiteSparse will not, so we must recompile SuiteSparse and therefore Julia:

$ brew rm suite-sparse-julia julia
$ brew install julia

When installing OpenBLAS on that shiny new piece of hardware that just came out, note that OpenBLAS may not have the software available to autodetect your processor type. You can manually specify a CPU target architecture by specifying --target when building OpenBLAS. For instance, to specify the Sandybridge archiceture (a good fallback for most modern macs):

$ brew install openblas-julia --target=SANDYBRIDGE

Rebuilding the system image

When building Julia, the file base/userimg.jl, if it exists, will be included in the cached of compiled code. If there are large libraries that you use often, it can be useful to require those in this file, for example:

require("Gtk")
require("DataFrames")
require("JuMP")

By default, the userimg.jl file does not exist, but you can create it yourself and then rebuild the Julia system image. Place a userimg.jl file into /usr/local/Cellar/julia/<julia version>/share/julia/base (Assuming Homebrew has been installed to /usr/local), then run build_sysimg.jl (located in the folder immediatebly above the base directory) to rebuild the system image. The script has many options, to see them all run ./build_sysimg.jl --help, but if you just want to replace the current system image with the new one you're about to build (and most people do just want that) simply run:

$ ./build_sysimg.jl --force

Upgrading Julia

To upgrade Julia, remove and reinstall (Typically you will be doing this when living on the latest development version, so we have included all --HEAD commands here):

$ brew rm julia
$ brew install --HEAD julia

Run tests after upgrading to make sure everything is functioning as expected. Even when Julia is able to build, the tests might still fail due to dependencies.

$ brew test -v --HEAD julia

If compilation of Julia fails, or the tests fail, you may have to remove these dependencies and recompile:

$ brew rm julia arpack-julia suite-sparse-julia openblas-julia
$ brew install -v --HEAD julia && brew test -v --HEAD julia

This procedure is necessary after upgrading gcc, as the location of the gfortran libraries changes.

homebrew-julia's People

Contributors

alshedivat avatar calder avatar chrisseaton avatar dhr avatar dpo avatar ianml avatar jacknagel avatar keno avatar leonardt avatar mlhetland avatar nlhepler avatar quantisan avatar samueljohn avatar staticfloat avatar tchajed avatar tkelman avatar yuyichao avatar zaccranko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebrew-julia's Issues

Compilation error on 2013 MacBook Air

I'm having trouble compiling julia on my 2013 MacBook Air. Works fine on other machines.

Hardware Overview:

Model Name: MacBook Air
Model Identifier:   MacBookAir6,2
Processor Name: Intel Core i7
Processor Speed:    1.7 GHz
Number of Processors:   1
Total Number of Cores:  2
L2 Cache (per Core):    256 KB
L3 Cache:   4 MB
Memory: 8 GB
Boot ROM Version:   MBA61.0099.B00
SMC Version (system):   2.13f5
Serial Number (system): C02KW8HLF6T6
Hardware UUID:  BF45083A-867E-523A-9620-1ADC5BF21B78

Install log:

zach@hermes:~|⇒  brew install --HEAD julia
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Cloning https://github.com/JuliaLang/julia.git
Updating /Library/Caches/Homebrew/julia--git
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file deps/Makefile
Hunk #1 succeeded at 1212 (offset 558 lines).
==> Building with an alternative Fortran compiler
This is unsupported.
Warning: No Fortran optimization information was provided.  You may want to consider
setting FCFLAGS and FFLAGS or pass the `--default-fortran-flags` option to
`brew install` if your compiler is compatible with GCC.

If you like the default optimization level of your compiler, ignore this
warning.
==> Downloading http://double-conversion.googlecode.com/files/double-conversion-
Already downloaded: /Library/Caches/Homebrew/double-conversion-1.1.1.tar.gz
==> Using double-conversion: /Library/Caches/Homebrew/double-conversion-1.1.1.ta
==> Downloading http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/dSFMT-src-2
Already downloaded: /Library/Caches/Homebrew/dSFMT-src-2.2.tar.gz
==> Using DSFMT: /Library/Caches/Homebrew/dSFMT-src-2.2.tar.gz
==> make -C contrib -f repackage_system_suitesparse4.make PREFIX=/usr/local/Cell
==> make release PREFIX=/usr/local/Cellar/julia/HEAD USE_BLAS64=0 FC=/usr/local/
Stack dump:
0.  Running pass 'X86 Machine Code Emitter' on function '@"julia_<<182"'
/bin/sh: line 1: 78844 Illegal instruction: 4  /private/tmp/julia-U5FF/usr/bin/julia-release-readline -bf sysimg.jl
make[1]: *** [/private/tmp/julia-U5FF/usr/lib/julia/sys0.ji] Error 132
make: *** [release] Error 2

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

Any suggestions? If this issue is better suited for the Julia's main repo, please let me know.

Outdated SHA in openblas64-julia.rb

I got this error when trying to install 64 bit julia:

==> Trying a full download

#################################################### 100.0%

Error: SHA1 mismatch
Expected: d012ebc2b8dcd3e95f667dff08318a81479a47c3
Actual: c62ab98dae8ac6d49c367235033180ef72dd7bbd
Archive: /Users/ngcrawford/Library/Caches/Homebrew/openblas64-julia-0.2.8.zip
(To retry an incomplete download, remove the file above.)

Updating the formula to the 'actual' SHA fixed the install error:
https://gist.github.com/ngcrawford/6205554

I think the 32 bit openblas-julia.rb may also need to be updated.

julia build problem

I followed the readme but the compilation stopped with the following error.

==> make release PREFIX=/usr/local/Cellar/julia/HEAD USE_LIB64=1 FC=/usr/local/bin/gfortran USECLANG=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_FFTW=1 USE_SYSTEM_READLINE=1 USE_SYSTEM_GLPK=1 USE_SYSTEM_GMP=1 USE_SYSTEM_LLVM=1 USE_SYSTEM_PCRE=1 USE_SYSTEM_BLAS=1 USE_SYSTEM_LAPACK=1 USE_SYSTEM_SUITESPARSE=1 USE_SYSTEM_ARPACK=1 USE_SYSTEM_NGINX=1
make release PREFIX=/usr/local/Cellar/julia/HEAD USE_LIB64=1 FC=/usr/local/bin/gfortran USECLANG=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_FFTW=1 USE_SYSTEM_READLINE=1 USE_SYSTEM_GLPK=1 USE_SYSTEM_GMP=1 USE_SYSTEM_LLVM=1 USE_SYSTEM_PCRE=1 USE_SYSTEM_BLAS=1 USE_SYSTEM_LAPACK=1 USE_SYSTEM_SUITESPARSE=1 USE_SYSTEM_ARPACK=1 USE_SYSTEM_NGINX=1
Submodule path 'deps/Rmath': checked out '85dee98a799c193bedf6af35c839de08c2d233f6'
Submodule path 'deps/libuv': checked out 'd469f03eda6c95f064be3c25b7a9e9a7547c7617'
Submodule path 'deps/openlibm': checked out '3c8738e6422bcd38320b2eb69fdbde0422fd6372'
gfortran: error: core2: No such file or directory
make[3]: *** [amos/d1mach.f.o] Error 1
make[2]: *** [openlibm/libopenlibm-extras.dylib] Error 2
make[2]: *** Waiting for unfinished jobs....
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 284k 100 284k 0 0 83765 0 0:00:03 0:00:03 --:--:-- 92373
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2
==> Configuration
HOMEBREW_VERSION: 0.9.4
HEAD: e1bf19e
CPU: quad-core 64-bit ivybridge
OS X: 10.8.3-x86_64
Xcode: 4.6.1
CLT: 4.6.0.0.1.1362189000
X11: 2.7.4 => /opt/X11
==> ENV
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
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-sparse64-julia/include -I/usr/local/opt/openblas64-julia/include -I/usr/local/opt/readline/include -F/usr/local/Frameworks -I/opt/X11/include
LDFLAGS: -L/usr/local/opt/suite-sparse64-julia/lib -L/usr/local/opt/arpack64-julia/lib -L/usr/local/opt/openblas64-julia/lib -L/usr/local/opt/readline/lib -L/usr/local/lib -F/usr/local/Frameworks -L/opt/X11/lib -headerpad_max_install_names
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /usr/local/opt/suite-sparse64-julia:/usr/local/opt/arpack64-julia:/usr/local/opt/openblas64-julia:/usr/local/opt/readline:/opt/X11
CMAKE_INCLUDE_PATH: /opt/X11/include
CMAKE_FRAMEWORK_PATH: /usr/local/Frameworks
MACOSX_DEPLOYMENT_TARGET: 10.8
PKG_CONFIG_PATH: /usr/local/opt/arpack64-julia/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/local/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.8:/usr/lib/pkgconfig:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig
ACLOCAL_PATH: /opt/X11/share/aclocal
OBJC: /usr/bin/clang
PATH: /usr/local/opt/arpack64-julia/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/texbin:/usr/local/Library/Contributions/cmd:/opt/X11/bin:/usr/local/bin:/usr/local/bin

Error: julia did not build

SuiteSparse SHA1 mismatch

>>> sudo brew install julia --HEAD
==> Installing julia dependency: suite-sparse-julia
==> Downloading http://www.cise.ufl.edu/research/sparse/SuiteSparse/SuiteSparse-4.2.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/suite-sparse-julia-4.2.1.tar.gz
Error: SHA1 mismatch
Expected: ea6688bd6f6adf81e2e5aacdc71d7dcf9a5d208d
Actual: 2fec3bf93314bd14cbb7470c0a2c294988096ed6
Archive: /Library/Caches/Homebrew/suite-sparse-julia-4.2.1.tar.gz
(To retry an incomplete download, remove the file above.)

julia failed to build on 10.7.5

spfewzee@pouria: ~> brew doctor
Your system is raring to brew.

spfewzee@pouria: ~> brew --config
HOMEBREW_VERSION: 0.9.3
HEAD: 0801a86
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.7.5-x86_64
Xcode: 4.5.2
CLT: 4.5.0.0.1.1249367152
LLVM-GCC: build 2336
Clang: 4.1 build 421
X11: 2.6.4 => /usr/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

spfewzee@pouria: ~> HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install --HEAD julia
==> Cloning https://github.com/JuliaLang/julia.git
git status -s
Updating /Library/Caches/Homebrew/julia--git
git config remote.origin.url https://github.com/JuliaLang/julia.git
git config remote.origin.fetch +refs/heads/master:refs/remotes/origin/master
git fetch origin
git reset --hard origin/HEAD
HEAD is now at 0bd5a93 export GenericString
git checkout-index -a -f --prefix=/private/tmp/julia-C9rL/
git submodule init
Submodule 'deps/libuv' () registered for path 'deps/libuv'
Submodule 'deps/nginx' () registered for path 'deps/nginx'
Submodule 'deps/openlibm' () registered for path 'deps/openlibm'
git submodule update
git submodule --quiet foreach --recursive git checkout-index -a -f "--prefix=/private/tmp/julia-C9rL/$path/"
==> Downloading patches
/usr/bin/curl -f#LA Homebrew 0.9.3 (Ruby 1.8.7-358; Mac OS X 10.7.5) https://raw.github.com/gist/3806089/77b10c7bf7bac9370806cdc7e887435d56b505f6/glpk.h.diff -o 000-homebrew.diff https://raw.github.com/gist/3806093/0f1f38e9f03dcfecd5b01df082ed60ef3f5a6562/deps.Makefile.diff -o 001-homebrew.diff https://raw.github.com/gist/3806092/426a2912a0a0fec764e4048801a9427e615e33d7/make.inc.diff -o 002-homebrew.diff

################################################################## 100.0%
################################################################## 100.0%
################################################################## 100.0%

==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file extras/Makefile
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 8 with fuzz 1.
/usr/bin/patch -f -p1 -i 001-homebrew.diff
patching file deps/Makefile
Hunk #1 succeeded at 1039 (offset 385 lines).
patch unexpectedly ends in middle of line
Hunk #2 succeeded at 1309 with fuzz 1 (offset 457 lines).
/usr/bin/patch -f -p1 -i 002-homebrew.diff
patching file Make.inc
Hunk #1 succeeded at 197 (offset 27 lines).
Hunk #2 succeeded at 210 (offset 27 lines).
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> make -C contrib -f repackage_system_suitesparse4.make PREFIX=/usr/local/Cellar/julia/HEAD FC=/usr/local/bin/gfortran USECLANG=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_FFTW=1 USE_SYSTEM_READLINE=1 USE_SYSTEM_GLPK=1 USE_SYSTEM_GMP=1 USE_SYSTEM_LLVM=1 USE_SYSTEM_PCRE=1 USE_SYSTEM_LIGHTTPD=1 USE_SYSTEM_BLAS=1 USE_SYSTEM_LAPACK=1 USE_SYSTEM_SUITESPARSE=1 USE_SYSTEM_ARPACK=1 USE_SYSTEM_NGINX=1
make -C contrib -f repackage_system_suitesparse4.make PREFIX=/usr/local/Cellar/julia/HEAD FC=/usr/local/bin/gfortran USECLANG=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_FFTW=1 USE_SYSTEM_READLINE=1 USE_SYSTEM_GLPK=1 USE_SYSTEM_GMP=1 USE_SYSTEM_LLVM=1 USE_SYSTEM_PCRE=1 USE_SYSTEM_LIGHTTPD=1 USE_SYSTEM_BLAS=1 USE_SYSTEM_LAPACK=1 USE_SYSTEM_SUITESPARSE=1 USE_SYSTEM_ARPACK=1 USE_SYSTEM_NGINX=1
mkdir -p /private/tmp/julia-C9rL/usr/lib
mkdir -p /private/tmp/julia-C9rL/deps/SuiteSparse-SYSTEM/lib
cd /private/tmp/julia-C9rL/deps/SuiteSparse-SYSTEM/lib &&
rm -f .a &&
cp -f /usr/local/lib/libamd.a /usr/local/lib/libcholmod.a /usr/local/lib/libcolamd.a /usr/local/lib/libspqr.a /usr/local/lib/libsuitesparseconfig.a /usr/local/lib/libumfpack.a /usr/local/lib/libamd.a /usr/local/lib/libcholmod.a /usr/local/lib/libcolamd.a /usr/local/lib/libspqr.a /usr/local/lib/libsuitesparseconfig.a /usr/local/lib/libumfpack.a . &&
clang -mmacosx-version-min=10.6 -shared -Xlinker -all_load libamd.a -o /private/tmp/julia-C9rL/usr/lib/libamd.dylib &&
install_name_tool -id @rpath/libamd.dylib /private/tmp/julia-C9rL/usr/lib/libamd.dylib &&
clang -mmacosx-version-min=10.6 -shared -Xlinker -all_load libcolamd.a -o /private/tmp/julia-C9rL/usr/lib/libcolamd.dylib &&
install_name_tool -id @rpath/libcolamd.dylib /private/tmp/julia-C9rL/usr/lib/libcolamd.dylib &&
clang++ -mmacosx-version-min=10.6 -shared -Xlinker -all_load libsuitesparseconfig.a libcholmod.a -o /private/tmp/julia-C9rL/usr/lib/libcholmod.dylib -L/usr/local/opt/openblas/lib -L/usr/local/opt/readline/lib -L/usr/local/lib -L/usr/X11/lib -L/private/tmp/julia-C9rL/usr/lib -L. -lcolamd -lccolamd -lcamd -lamd -lopenblas &&
install_name_tool -id @rpath/libcholmod.dylib /private/tmp/julia-C9rL/usr/lib/libcholmod.dylib &&
clang++ -mmacosx-version-min=10.6 -shared -Xlinker -all_load libsuitesparseconfig.a libumfpack.a -o /private/tmp/julia-C9rL/usr/lib/libumfpack.dylib -L/usr/local/opt/openblas/lib -L/usr/local/opt/readline/lib -L/usr/local/lib -L/usr/X11/lib -L/private/tmp/julia-C9rL/usr/lib -L. -lcholmod -lcolamd -lcamd -lamd -lopenblas &&
install_name_tool -id @rpath/libumfpack.dylib /private/tmp/julia-C9rL/usr/lib/libumfpack.dylib &&
clang++ -mmacosx-version-min=10.6 -shared -Xlinker -all_load libsuitesparseconfig.a libspqr.a -o /private/tmp/julia-C9rL/usr/lib/libspqr.dylib -L/usr/local/opt/openblas/lib -L/usr/local/opt/readline/lib -L/usr/local/lib -L/usr/X11/lib -L/private/tmp/julia-C9rL/usr/lib -lcholmod -lcolamd -lamd -lopenblas &&
install_name_tool -id @rpath/libspqr.dylib /private/tmp/julia-C9rL/usr/lib/libspqr.dylib
Undefined symbols for architecture x86_64:
"tbb::task_scheduler_init::initialize(int, unsigned long)", referenced from:
void spqr_parallel(long, int, spqr_blob
) in libspqr.a(spqr_parallel.o)
void spqr_parallelstd::complex(long, int, spqr_blobstd::complex) in libspqr.a(spqr_parallel.o)
"tbb::task_scheduler_init::terminate()", referenced from:
void spqr_parallel(long, int, spqr_blob
) in libspqr.a(spqr_parallel.o)
void spqr_parallelstd::complex(long, int, spqr_blobstd::complex) in libspqr.a(spqr_parallel.o)
"tbb::task::note_affinity(unsigned short)", referenced from:
vtable for spqr_zippystd::complex in libspqr.a(spqr_parallel.o)
vtable for spqr_zippy in libspqr.a(spqr_parallel.o)
"tbb::task::spawn_and_wait_for_all(tbb::task_list&)", referenced from:
spqr_zippystd::complex::execute() in libspqr.a(spqr_parallel.o)
spqr_zippy::execute() in libspqr.a(spqr_parallel.o)
"tbb::internal::allocate_root_proxy::allocate(unsigned long)", referenced from:
void spqr_parallel(long, int, spqr_blob
) in libspqr.a(spqr_parallel.o)
void spqr_parallelstd::complex(long, int, spqr_blobstd::complex) in libspqr.a(spqr_parallel.o)
"tbb::internal::allocate_child_proxy::allocate(unsigned long) const", referenced from:
spqr_zippystd::complex::execute() in libspqr.a(spqr_parallel.o)
spqr_zippy::execute() in libspqr.a(spqr_parallel.o)
"typeinfo for tbb::task", referenced from:
typeinfo for spqr_zippystd::complex in libspqr.a(spqr_parallel.o)
typeinfo for spqr_zippy in libspqr.a(spqr_parallel.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *
* [default] Error 1
==> Configuration
HOMEBREW_VERSION: 0.9.3
HEAD: 0801a86
CPU: quad-core 64-bit sandybridge
OS X: 10.7.5-x86_64
Xcode: 4.5.2
CLT: 4.5.0.0.1.1249367152
X11: 2.6.4 => /usr/X11
==> ENV
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7 -I/usr/local/opt/openblas/include -I/usr/local/opt/readline/include -I/usr/X11/include
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7 -I/usr/local/opt/openblas/include -I/usr/local/opt/readline/include -I/usr/X11/include
CPPFLAGS: -I/usr/local/opt/openblas/include -I/usr/local/opt/readline/include -I/usr/X11/include
LDFLAGS: -L/usr/local/opt/openblas/lib -L/usr/local/opt/readline/lib -L/usr/local/lib -L/usr/X11/lib
MAKEFLAGS: -j1
CMAKE_PREFIX_PATH: /usr/local/opt/openblas:/usr/local/opt/readline:/usr/X11
CMAKE_INCLUDE_PATH: /usr/X11/include
MACOSX_DEPLOYMENT_TARGET: 10.7
HOMEBREW_MAKE_JOBS: 1
ACLOCAL_PATH: /usr/X11/share/aclocal
OBJC: /usr/bin/clang
PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin:/usr/local/sbin:/usr/local/Library/Contributions/cmds:/usr/X11/bin:/usr/local/bin:/usr/local/bin

Error: julia did not build

arpack-ng conflicts with homebrew's one

brew link julia
Linking /usr/local/Cellar/julia/HEAD... 
Error: Could not symlink file: /usr/local/Cellar/julia/HEAD/lib/libarpack.dylib
Target /usr/local/lib/libarpack.dylib already exists. You may need to delete it.
To force the link and delete this file, do:
  brew link -f formula_name

To list all files that would be deleted:
  brew link -n formula_name

because

brew info arpack-ng
arpack-ng: stable 3.1.0
http://forge.scilab.org/index.php/p/arpack-ng
Depends on: open-mpi
/usr/local/Cellar/arpack-ng/3.1.0 (10 files, 2.5M) *
https://github.com/staticfloat/homebrew-julia/commits/master/arpack-ng.rb

can't install with brew install --HEAD julia

I get the following errors when trying to install using the command:

$ brew install --HEAD julia
Warning: Your Xcode (4.5) is outdated
Please install Xcode 4.5.2.
==> Installing julia dependency: open-mpi
Error: No available formula for python 

I have python 2.7 installed and when I try to install a python2.6 brew gives a similar response . And I have used brew search python and get the following:python24 python25 python26 python3 python31 python32. But brew will not install any of these. Brew just gives me: No available formula for python

patching failed

I can't seem to install julia using this tap

$ brew install --HEAD julia
==> Cloning https://github.com/JuliaLang/julia.git
Updating /Library/Caches/Homebrew/julia--git
==> Downloading patches
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
patching file extras/Makefile
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 8 with fuzz 1.
patching file deps/Makefile
Hunk #1 FAILED at 654.
patch unexpectedly ends in middle of line
Hunk #2 succeeded at 852 with fuzz 1 (offset 5 lines).
1 out of 2 hunks FAILED -- saving rejects to file deps/Makefile.rej
Error: Failure while executing: /usr/bin/patch -f -p1 -i 001-homebrew.diff

My config.

$ brew --config
HOMEBREW_VERSION: 0.9.3
HEAD: bdaae65b9af7e5a00c106bdbdb07992b5ad343de
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.8.2-x86_64
Xcode: 4.5.2
CLT: 4.5.0.0.1.1249367152
LLVM-GCC: build 2336
Clang: 4.1 build 421
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.3/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

Julia build error - OS X 10.8.4

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.

fftw seems a duplicate for homebrew's fftw

If you have already brew install fftw, then the (sym)linking step of julia fails.

brew link julia
Linking /usr/local/Cellar/julia/HEAD... 
Error: Could not symlink file: /usr/local/Cellar/julia/HEAD/lib/libfftw3.dylib
Target /usr/local/lib/libfftw3.dylib already exists. You may need to delete it.
To force the link and delete this file, do:
  brew link -f formula_name

To list all files that would be deleted:
  brew link -n formula_name

Julia buid error on OS X 10.8.3

Here's the error I receive when running
brew install --HEAD --64-bit julia

==> Cloning https://github.com/JuliaLang/julia.git
Cloning into '/Library/Caches/Homebrew/julia--git'...
remote: Counting objects: 566, done.
remote: Compressing objects: 100% (517/517), done.
remote: Total 566 (delta 18), reused 199 (delta 13)
Receiving objects: 100% (566/566), 1.49 MiB | 870 KiB/s, done.
Resolving deltas: 100% (18/18), done.
Submodule 'deps/Rmath' (git://github.com/JuliaLang/Rmath.git) registered for path 'deps/Rmath'
Submodule 'deps/libuv' (git://github.com/JuliaLang/libuv.git) registered for path 'deps/libuv'
Submodule 'deps/openlibm' (git://github.com/JuliaLang/openlibm.git) registered for path 'deps/openlibm'
Cloning into 'deps/Rmath'...
remote: Counting objects: 291, done.
remote: Compressing objects: 100% (110/110), done.
remote: Total 291 (delta 179), reused 291 (delta 179)
Receiving objects: 100% (291/291), 233.38 KiB, done.
Resolving deltas: 100% (179/179), done.
Submodule path 'deps/Rmath': checked out '85dee98a799c193bedf6af35c839de08c2d233f6'
Cloning into 'deps/libuv'...
remote: Counting objects: 14840, done.
remote: Compressing objects: 100% (3932/3932), done.
remote: Total 14840 (delta 11675), reused 13857 (delta 10855)
Receiving objects: 100% (14840/14840), 3.90 MiB | 2.21 MiB/s, done.
Resolving deltas: 100% (11675/11675), done.
Submodule path 'deps/libuv': checked out 'd469f03eda6c95f064be3c25b7a9e9a7547c7617'
Cloning into 'deps/openlibm'...
remote: Counting objects: 3456, done.
remote: Compressing objects: 100% (1418/1418), done.
remote: Total 3456 (delta 2213), reused 3267 (delta 2026)
Receiving objects: 100% (3456/3456), 3.16 MiB | 2.20 MiB/s, done.
Resolving deltas: 100% (2213/2213), done.
Submodule path 'deps/openlibm': checked out '3c8738e6422bcd38320b2eb69fdbde0422fd6372'
==> Downloading patches
###### ################################################################## 100.0%
###### ################################################################## 100.0%

==> Patching
patching file deps/Makefile
Hunk #1 succeeded at 1038 (offset 384 lines).
patching file Make.inc
Hunk #1 succeeded at 210 (offset 40 lines).
Hunk #2 succeeded at 223 (offset 40 lines).
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Downloading http://double-conversion.googlecode.com/files/double-conversion-1.1.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/double-conversion-1.1.1.tar.gz
==> Using double-conversion: /Library/Caches/Homebrew/double-conversion-1.1.1.tar.gz
==> Downloading http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/dSFMT-src-2.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/dSFMT-src-2.2.tar.gz
==> Using DSFMT: /Library/Caches/Homebrew/dSFMT-src-2.2.tar.gz
==> make -C contrib -f repackage_system_suitesparse4.make PREFIX=/usr/local/homebrew/Cellar/julia/HEAD USE_LIB64=0 FC=/usr/local/homebrew/bin/gfortran USECLANG=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_FFTW=1 USE_
==> make release PREFIX=/usr/local/homebrew/Cellar/julia/HEAD USE_LIB64=0 FC=/usr/local/homebrew/bin/gfortran USECLANG=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_FFTW=1 USE_SYSTEM_READLINE=1 USE_SYSTEM_GLPK=1 USE_S
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  284k  100  284k    0     0  91316      0  0:00:03  0:00:03 --:--:-- 96377
make[1]: **\* [julia-release] Error 2
make: **\* [release] Error 2```

Install fails with undefined symbols apparently from LAPACK

I'm trying to install julia with brew install --HEAD -v julia.

I ran into two related problems:

  1. When installing and failing, the linker warns:
    ld: warning: directory not found for option '-L-lopenblas'
    and then it fails with
Undefined symbols for architecture x86_64:
"_dgemm_", referenced from:
      _cholmod_super_numeric in libcholmod.a(cholmod_super_numeric.o)
      _cholmod_super_lsolve in libcholmod.a(cholmod_super_solve.o)
      _cholmod_super_ltsolve in libcholmod.a(cholmod_super_solve.o)
      _cholmod_l_super_numeric in libcholmod.a(cholmod_l_super_numeric.o)
      _cholmod_l_super_lsolve in libcholmod.a(cholmod_l_super_solve.o)
      _cholmod_l_super_ltsolve in libcholmod.a(cholmod_l_super_solve.o)
  "_dgemv_", referenced from:
      _cholmod_super_lsolve in libcholmod.a(cholmod_super_solve.o)
      _cholmod_super_ltsolve in libcholmod.a(cholmod_super_solve.o)
      _cholmod_l_super_lsolve in libcholmod.a(cholmod_l_super_solve.o)
      _cholmod_l_super_ltsolve in libcholmod.a(cholmod_l_super_solve.o)
  "_dpotrf_", referenced from:
      _cholmod_super_numeric in libcholmod.a(cholmod_super_numeric.o)
      _cholmod_l_super_numeric in libcholmod.a(cholmod_l_super_numeric.o)
  "_dsyrk_", referenced from:
      _cholmod_super_numeric in libcholmod.a(cholmod_super_numeric.o)
      _cholmod_l_super_numeric in libcholmod.a(cholmod_l_super_numeric.o)
  "_dtrsm_", referenced from:
      _cholmod_super_numeric in libcholmod.a(cholmod_super_numeric.o)
      _cholmod_super_lsolve in libcholmod.a(cholmod_super_solve.o)
      _cholmod_super_ltsolve in libcholmod.a(cholmod_super_solve.o)
      _cholmod_l_super_numeric in libcholmod.a(cholmod_l_super_numeric.o)
      _cholmod_l_super_lsolve in libcholmod.a(cholmod_l_super_solve.o)
      _cholmod_l_super_ltsolve in libcholmod.a(cholmod_l_super_solve.o)
  "_dtrsv_", referenced from:
      _cholmod_super_lsolve in libcholmod.a(cholmod_super_solve.o)
      _cholmod_super_ltsolve in libcholmod.a(cholmod_super_solve.o)
      _cholmod_l_super_lsolve in libcholmod.a(cholmod_l_super_solve.o)
      _cholmod_l_super_ltsolve in libcholmod.a(cholmod_l_super_solve.o)
  "_zgemm_", referenced from:
      _cholmod_super_numeric in libcholmod.a(cholmod_super_numeric.o)
      _cholmod_super_lsolve in libcholmod.a(cholmod_super_solve.o)
      _cholmod_super_ltsolve in libcholmod.a(cholmod_super_solve.o)
      _cholmod_l_super_numeric in libcholmod.a(cholmod_l_super_numeric.o)
      _cholmod_l_super_lsolve in libcholmod.a(cholmod_l_super_solve.o)
      _cholmod_l_super_ltsolve in libcholmod.a(cholmod_l_super_solve.o)
  "_zgemv_", referenced from:
      _cholmod_super_lsolve in libcholmod.a(cholmod_super_solve.o)
      _cholmod_super_ltsolve in libcholmod.a(cholmod_super_solve.o)
      _cholmod_l_super_lsolve in libcholmod.a(cholmod_l_super_solve.o)
      _cholmod_l_super_ltsolve in libcholmod.a(cholmod_l_super_solve.o)
  "_zherk_", referenced from:
      _cholmod_super_numeric in libcholmod.a(cholmod_super_numeric.o)
      _cholmod_l_super_numeric in libcholmod.a(cholmod_l_super_numeric.o)
  "_zpotrf_", referenced from:
      _cholmod_super_numeric in libcholmod.a(cholmod_super_numeric.o)
      _cholmod_l_super_numeric in libcholmod.a(cholmod_l_super_numeric.o)
  "_ztrsm_", referenced from:
      _cholmod_super_numeric in libcholmod.a(cholmod_super_numeric.o)
      _cholmod_super_lsolve in libcholmod.a(cholmod_super_solve.o)
      _cholmod_super_ltsolve in libcholmod.a(cholmod_super_solve.o)
      _cholmod_l_super_numeric in libcholmod.a(cholmod_l_super_numeric.o)
      _cholmod_l_super_lsolve in libcholmod.a(cholmod_l_super_solve.o)
      _cholmod_l_super_ltsolve in libcholmod.a(cholmod_l_super_solve.o)
  "_ztrsv_", referenced from:
      _cholmod_super_lsolve in libcholmod.a(cholmod_super_solve.o)
      _cholmod_super_ltsolve in libcholmod.a(cholmod_super_solve.o)
      _cholmod_l_super_lsolve in libcholmod.a(cholmod_l_super_solve.o)
      _cholmod_l_super_ltsolve in libcholmod.a(cholmod_l_super_solve.o)

I found the problem to lie in one of the patches which assumes that the environment variable USRLIB is defined and then defines LIBBLAS as -L$(USRLIB) -lopenblas

Since by default this environment variable is undefined, -L -lopenblas didn't work.

  1. When installing with USRLIB=/usr/local/Cellar/openblas/0.2.4/lib brew install --HEAD -v julia, this time openblas was found but there are still missing symbols:
    Undefined symbols for architecture x86_64: "_dlarf_", referenced from: void spqr_private_apply1<double>(long, long, long, double*, double, double*, double*, cholmod_common_struct*) in libspqr.a(spqr_front.o) "_dlarfb_", referenced from: void spqr_larftb<double>(int, long, long, long, long, long, double*, double*, double*, double*, cholmod_common_struct*) in libspqr.a(spqr_larftb.o) "_dlarfg_", referenced from: double spqr_private_house<double>(long, double*, cholmod_common_struct*) in libspqr.a(spqr_front.o) "_dlarft_", referenced from: void spqr_larftb<double>(int, long, long, long, long, long, double*, double*, double*, double*, cholmod_common_struct*) in libspqr.a(spqr_larftb.o) "_zlarf_", referenced from: void spqr_private_apply1<std::complex<double> >(long, long, long, std::complex<double>*, std::complex<double>, std::complex<double>*, std::complex<double>*, cholmod_common_struct*) in libspqr.a(spqr_front.o) "_zlarfb_", referenced from: void spqr_larftb<std::complex<double> >(int, long, long, long, long, long, std::complex<double>*, std::complex<double>*, std::complex<double>*, std::complex<double>*, cholmod_common_struct*) in libspqr.a(spqr_larftb.o) "_zlarfg_", referenced from: std::complex<double> spqr_private_house<std::complex<double> >(long, std::complex<double>*, cholmod_common_struct*) in libspqr.a(spqr_front.o) "_zlarft_", referenced from: void spqr_larftb<std::complex<double> >(int, long, long, long, long, long, std::complex<double>*, std::complex<double>*, std::complex<double>*, std::complex<double>*, cholmod_common_struct*) in libspqr.a(spqr_larftb.o)
    Googling this symbols makes me think LAPACK should be linked. But I'm stuck here.

I'm running Mountain Lion and the doctor tells me I'm good to go. Any idea on how to fix this?

"Could not tap staticfloat/julia/suite-sparse over mxcl/master/suite-sparse"

$ brew tap staticfloat/julia
Cloning into '/usr/local/Library/Taps/staticfloat-julia'...
remote: Counting objects: 202, done.
remote: Compressing objects: 100% (116/116), done.
remote: Total 202 (delta 115), reused 170 (delta 85)
Receiving objects: 100% (202/202), 30.61 KiB, done.
Resolving deltas: 100% (115/115), done.
Warning: Could not tap staticfloat/julia/suite-sparse over mxcl/master/suite-sparse
Tapped 3 formula

Should I get this warning? Julia appears to install and pass all tests fine.

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

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?

version.jl fatal: No names found, cannot describe anything.

Getting the following messages
version.jl
fatal: No names found, cannot describe anything.
linalg.jl
Warning: replacing module Base
version.jl
fatal: No names found, cannot describe anything.

Similar issue was stated here JuliaLang/julia#2747

Building Julia outside of the homebrew environment does not produce such errors.

Despite the above fatal errors Julia builds but running the test
$brew test -v julia
produces the following output

==> /usr/local/Cellar/julia/HEAD/bin/julia runtests.jl all

/usr/local/Cellar/julia/HEAD/bin/julia runtests.jl all
From worker 4: * numbers
From worker 2: * core
From worker 9: * remote
From worker 5: * strings
From worker 7: * corelib
From worker 8: * hashing
From worker 6: * unicode
From worker 3: * keywordargs
From worker 9: * iostring
From worker 3: * arrayops
From worker 9: * linalg
From worker 6: * blas
From worker 8: * fft
From worker 2: * dsp
From worker 5: * sparse
From worker 6: * bitarray
From worker 7: * random
From worker 7: * math
From worker 8: * functional
From worker 7: * bigint
From worker 5: * sorting
From worker 8: * statistics
From worker 2: * spawn
From worker 7: * parallel
From worker 2: [stdio passthrough ok]
From worker 2: * priorityqueue
From worker 3: * arpack
From worker 2: * bigfloat
From worker 8: * file
From worker 7: * perf
From worker 8: * suitesparse
From worker 4: * version
Warning: Possible conflict in library symbol cholmod_start
Warning: Possible conflict in library symbol cholmod_sort
Warning: Possible conflict in library symbol cholmod_norm_sparse
Warning: Possible conflict in library symbol cholmod_check_sparse
Warning: Possible conflict in library symbol cholmod_sdmult
Warning: Possible conflict in library symbol cholmod_analyze
Warning: Possible conflict in library symbol cholmod_factorize
From worker 8: exception on 8: ERROR: type c_CholmodFactor has no field Perm
From worker 8: in CholmodFactor at linalg/cholmod.jl:243
From worker 8: in cholfact at linalg/cholmod.jl:646
From worker 8: in cholfact at linalg/cholmod.jl:880
From worker 8: in runtests at /usr/local/Cellar/julia/HEAD/share/julia/test/testdefs.jl:5
From worker 8: in anonymous at multi.jl:416
From worker 8: at suitesparse.jl:121
ERROR: type c_CholmodFactor has no field Perm
at suitesparse.jl:121
at /usr/local/Cellar/julia/HEAD/share/julia/test/runtests.jl:18
Error: julia: failed

64-bit compilation error

Scratch that!

fatal: unable to connect to github.com:
github.com[0: 192.30.252.129]: errno=Connection refused

Unable to fetch in submodule path 'deps/Rmath'

Appears to be an attempt at connecting to a git repo using git:// ...
This will fail because my corporate internet blocks git ports ...

Run this in your home directory to get around (and solve all your git:// blocking woes):

git config --global url."https://".insteadOf git://

Julia failed to build on 10.8.3

Here is the output:

[notas (master)]$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install --HEAD julia 2>&1
==> Cloning https://github.com/JuliaLang/julia.git
git --git-dir /Library/Caches/Homebrew/julia--git/.git status -s
Updating /Library/Caches/Homebrew/julia--git
git config remote.origin.url https://github.com/JuliaLang/julia.git
git config remote.origin.fetch +refs/heads/master:refs/remotes/origin/master
git fetch origin
git checkout -f master
Already on 'master'
git reset --hard origin/HEAD
HEAD is now at e2cc467 Print eltype of sparse matrices when showing them.
git reset --hard origin/HEAD
HEAD is now at e2cc467 Print eltype of sparse matrices when showing them.
git checkout-index -a -f --prefix=/private/tmp/julia-hX5k/
==> Downloading patches
/usr/bin/curl -f#LA Homebrew 0.9.4 (Ruby 1.8.7-358; Mac OS X 10.8.3) https://gist.github.com/staticfloat/3806093/raw/cb34c7262b9130f0e9e07641a66fccaa0d08b5d2/deps.Makefile.diff -o 000-homebrew.diff https://raw.github.com/gist/3806092/426a2912a0a0fec764e4048801a9427e615e33d7/make.inc.diff -o 001-homebrew.diff

################################################################## 100,0%
################################################################## 100,0%

==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file deps/Makefile
Hunk #1 succeeded at 1089 (offset 435 lines).
/usr/bin/patch -f -p1 -i 001-homebrew.diff
patching file Make.inc
Hunk #1 succeeded at 224 (offset 54 lines).
Hunk #2 succeeded at 237 (offset 54 lines).
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Downloading http://double-conversion.googlecode.com/files/double-conversion-1.1.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/double-conversion-1.1.1.tar.gz
tar xf /Library/Caches/Homebrew/double-conversion-1.1.1.tar.gz
==> Using double-conversion: /Library/Caches/Homebrew/double-conversion-1.1.1.tar.gz
==> Downloading http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/dSFMT-src-2.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/dSFMT-src-2.2.tar.gz
tar xf /Library/Caches/Homebrew/dSFMT-src-2.2.tar.gz
==> Using DSFMT: /Library/Caches/Homebrew/dSFMT-src-2.2.tar.gz
==> make -C contrib -f repackage_system_suitesparse4.make PREFIX=/usr/local/Cellar/julia/HEAD USE_LIB64=0 FC=/usr/local/bin/gfortran USECLANG=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_FFTW=1 USE_SYSTEM_READLINE=1 USE_SYSTEM_GLPK=1 USE_SYSTEM_GMP=1 USE_SYSTEM_LLVM=1 USE_SYSTEM_PCRE=1 USE_SYSTEM_BLAS=1 USE_SYSTEM_LAPACK=1 USE_SYSTEM_SUITESPARSE=1 USE_SYSTEM_ARPACK=1 USE_SYSTEM_MPFR=1
make -C contrib -f repackage_system_suitesparse4.make PREFIX=/usr/local/Cellar/julia/HEAD USE_LIB64=0 FC=/usr/local/bin/gfortran USECLANG=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_FFTW=1 USE_SYSTEM_READLINE=1 USE_SYSTEM_GLPK=1 USE_SYSTEM_GMP=1 USE_SYSTEM_LLVM=1 USE_SYSTEM_PCRE=1 USE_SYSTEM_BLAS=1 USE_SYSTEM_LAPACK=1 USE_SYSTEM_SUITESPARSE=1 USE_SYSTEM_ARPACK=1 USE_SYSTEM_MPFR=1
mkdir -p /private/tmp/julia-hX5k/usr/lib
mkdir -p /private/tmp/julia-hX5k/deps/SuiteSparse-SYSTEM/lib
cd /private/tmp/julia-hX5k/deps/SuiteSparse-SYSTEM/lib &&
rm -f .a &&
cp -f /usr/local/lib/libamd.a /usr/local/lib/libcholmod.a /usr/local/lib/libcolamd.a /usr/local/lib/libspqr.a /usr/local/lib/libsuitesparseconfig.a /usr/local/lib/libumfpack.a /usr/local/opt/suite-sparse-julia/lib/libamd.a /usr/local/opt/suite-sparse-julia/lib/libcholmod.a /usr/local/opt/suite-sparse-julia/lib/libcolamd.a /usr/local/opt/suite-sparse-julia/lib/libspqr.a /usr/local/opt/suite-sparse-julia/lib/libsuitesparseconfig.a /usr/local/opt/suite-sparse-julia/lib/libumfpack.a /usr/local/lib/libamd.a /usr/local/lib/libcholmod.a /usr/local/lib/libcolamd.a /usr/local/lib/libspqr.a /usr/local/lib/libsuitesparseconfig.a /usr/local/lib/libumfpack.a . &&
clang -mmacosx-version-min=10.6 -shared -Xlinker -all_load libamd.a -o /private/tmp/julia-hX5k/usr/lib/libamd.dylib &&
install_name_tool -id @rpath/libamd.dylib /private/tmp/julia-hX5k/usr/lib/libamd.dylib &&
clang -mmacosx-version-min=10.6 -shared -Xlinker -all_load libcolamd.a -o /private/tmp/julia-hX5k/usr/lib/libcolamd.dylib &&
install_name_tool -id @rpath/libcolamd.dylib /private/tmp/julia-hX5k/usr/lib/libcolamd.dylib &&
clang++ -mmacosx-version-min=10.6 -shared -Xlinker -all_load libsuitesparseconfig.a libcholmod.a -o /private/tmp/julia-hX5k/usr/lib/libcholmod.dylib -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 -L/private/tmp/julia-hX5k/usr/lib -L. -lcolamd -lccolamd -lcamd -lamd -lopenblas &&
install_name_tool -id @rpath/libcholmod.dylib /private/tmp/julia-hX5k/usr/lib/libcholmod.dylib &&
clang++ -mmacosx-version-min=10.6 -shared -Xlinker -all_load libsuitesparseconfig.a libumfpack.a -o /private/tmp/julia-hX5k/usr/lib/libumfpack.dylib -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 -L/private/tmp/julia-hX5k/usr/lib -L. -lcholmod -lcolamd -lcamd -lamd -lopenblas &&
install_name_tool -id @rpath/libumfpack.dylib /private/tmp/julia-hX5k/usr/lib/libumfpack.dylib &&
clang++ -mmacosx-version-min=10.6 -shared -Xlinker -all_load libsuitesparseconfig.a libspqr.a -o /private/tmp/julia-hX5k/usr/lib/libspqr.dylib -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 -L/private/tmp/julia-hX5k/usr/lib -lcholmod -lcolamd -lamd -lopenblas &&
install_name_tool -id @rpath/libspqr.dylib /private/tmp/julia-hX5k/usr/lib/libspqr.dylib
Undefined symbols for architecture x86_64:
"tbb::task_scheduler_init::initialize(int, unsigned long)", referenced from:
void spqr_parallel(long, int, spqr_blob
) in libspqr.a(spqr_parallel.o)
void spqr_parallelstd::complex(long, int, spqr_blobstd::complex) in libspqr.a(spqr_parallel.o)
"tbb::task_scheduler_init::terminate()", referenced from:
void spqr_parallel(long, int, spqr_blob
) in libspqr.a(spqr_parallel.o)
void spqr_parallelstd::complex(long, int, spqr_blobstd::complex) in libspqr.a(spqr_parallel.o)
"tbb::task::note_affinity(unsigned short)", referenced from:
vtable for spqr_zippystd::complex in libspqr.a(spqr_parallel.o)
vtable for spqr_zippy in libspqr.a(spqr_parallel.o)
"tbb::task::spawn_and_wait_for_all(tbb::task_list&)", referenced from:
spqr_zippystd::complex::execute() in libspqr.a(spqr_parallel.o)
spqr_zippy::execute() in libspqr.a(spqr_parallel.o)
"tbb::internal::allocate_root_proxy::allocate(unsigned long)", referenced from:
void spqr_parallel(long, int, spqr_blob
) in libspqr.a(spqr_parallel.o)
void spqr_parallelstd::complex(long, int, spqr_blobstd::complex) in libspqr.a(spqr_parallel.o)
"tbb::internal::allocate_child_proxy::allocate(unsigned long) const", referenced from:
spqr_zippystd::complex::execute() in libspqr.a(spqr_parallel.o)
spqr_zippy::execute() in libspqr.a(spqr_parallel.o)
"typeinfo for tbb::task", referenced from:
typeinfo for spqr_zippystd::complex in libspqr.a(spqr_parallel.o)
typeinfo for spqr_zippy in libspqr.a(spqr_parallel.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *
* [default] Error 1
==> Configuration
HOMEBREW_VERSION: 0.9.4
HEAD: 34f6f50
CPU: quad-core 64-bit ivybridge
OS X: 10.8.3-x86_64
Xcode: 4.6.2
CLT: 4.6.0.0.1.1358221012
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: -j1
CMAKE_PREFIX_PATH: /usr/local/opt/suite-sparse-julia:/usr/local/opt/arpack-julia:/usr/local/opt/openblas-julia:/usr/local/opt/readline
CMAKE_FRAMEWORK_PATH: /usr/local/Frameworks
MACOSX_DEPLOYMENT_TARGET: 10.8
PKG_CONFIG_PATH: /usr/local/opt/arpack-julia/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/local/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.8:/usr/lib/pkgconfig
HOMEBREW_MAKE_JOBS: 1
OBJC: /usr/bin/clang
PATH: /usr/local/opt/arpack-julia/bin:/Users/urielsandoval/Library/Python/impressive:/Users/urielsandoval/bin:/Users/urielsandoval/Library/Python/nbconvert:/usr/local/share/python:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/texbin:/usr/local/Library/Contributions/cmd:/usr/local/bin:/usr/local/bin

Error: julia did not build

Problems installing on 10.9

On my shiny new mac runnnig 10.9, I get the following error with installing julia. Any clues?

brew install --HEAD julia
==> Installing dependencies for julia: openblas-julia, arpack-julia, suit
==> Installing julia dependency: openblas-julia
==> Downloading http://github.com/xianyi/OpenBLAS/archive/v0.2.8.tar.gz
Already downloaded: /Library/Caches/Homebrew/openblas-julia-0.2.8.tar.gz
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> make FC=/usr/local/bin/gfortran
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [getarch_2nd] Error 1
Makefile:129: *** OpenBLAS: Detecting CPU failed. Please set TARGET explicitly, e.g. make TARGET=your_cpu_target. Please read README for the detail.. Stop.

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
If reporting this issue please do so at (not mxcl/homebrew):
https://github.com/staticfloat/homebrew-julia/issues

lighttpd, fftw, arpack-ng cannot be linked. Homebrew has it already.

Looks like lighttpd is built by julia, right? It's a dupe to homebrew's and that can make the brew link to fail. See below:

Linking /usr/local/Cellar/julia/HEAD... 
Error: Could not symlink file: /usr/local/Cellar/julia/HEAD/sbin/lighttpd
Target /usr/local/sbin/lighttpd already exists. You may need to delete it.
To force the link and delete this file, do:
  brew link -f formula_name

To list all files that would be deleted:
  brew link -n formula_name

Julia buid error on OS X 10.8.4

I'm building using brew install --HEAD --64-bit -v julia

Here's the error output:

fatal: No names found, cannot describe anything.
Warning: git failed in version.jl
  failed process: Process(it describe --tags --dirty --long --abbrev=10ProcessExited(128)) [128]
constants.jl
LoadError("sysimg.jl",204,LoadError("constants.jl",52,ErrorException("error compiling big: error compiling convert: error compiling BigFloat: could not load module libmpfr: dlopen(libmpfr.dylib, 1):
*** This error is usually fixed by running 'make clean'. If the error persists, try 'make cleanall'. *** 
    JULIA usr/lib/julia/sys.ji
version.jl
fatal: No names found, cannot describe anything.
Warning: git failed in version.jl
  failed process: Process(it describe --tags --dirty --long --abbrev=10ProcessExited(128)) [128]
constants.jl
LoadError("sysimg.jl",204,LoadError("constants.jl",52,ErrorException("error compiling big: error compiling convert: error compiling BigFloat: could not load module libmpfr: dlopen(libmpfr.dylib, 1):
*** This error is usually fixed by running 'make clean'. If the error persists, try 'make cleanall'. *** 
cp -a /private/tmp/julia-sCKF/usr/bin /usr/local/homebrew/Cellar/julia/HEAD
cd /usr/local/homebrew/Cellar/julia/HEAD/bin && ln -sf julia-release-readline julia
for suffix in julia-release julia-debug ; do \
                cp -a /private/tmp/julia-sCKF/usr/lib/lib${suffix}*.dylib* /usr/local/homebrew/Cellar/julia/HEAD/lib/julia ; \ 
        done
for suffix in amd arpack camd ccolamd cholmod colamd fftw3 fftw3f fftw3_threads fftw3f_threads gmp grisu openlibm openlibm-extras pcre random Rmath spqr suitesparse_wrapper umfpack z openblas mpfr ;
                cp -a /private/tmp/julia-sCKF/usr/lib/lib${suffix}*.dylib* /usr/local/homebrew/Cellar/julia/HEAD/lib/julia ; \ 
        done
cp: /private/tmp/julia-sCKF/usr/lib/libarpack*.dylib*: No such file or directory
cp: /private/tmp/julia-sCKF/usr/lib/libcamd*.dylib*: No such file or directory
cp: /private/tmp/julia-sCKF/usr/lib/libccolamd*.dylib*: No such file or directory
cp: /private/tmp/julia-sCKF/usr/lib/libfftw3*.dylib*: No such file or directory
cp: /private/tmp/julia-sCKF/usr/lib/libfftw3f*.dylib*: No such file or directory
cp: /private/tmp/julia-sCKF/usr/lib/libfftw3_threads*.dylib*: No such file or directory
cp: /private/tmp/julia-sCKF/usr/lib/libfftw3f_threads*.dylib*: No such file or directory
cp: /private/tmp/julia-sCKF/usr/lib/libgmp*.dylib*: No such file or directory
cp: /private/tmp/julia-sCKF/usr/lib/libpcre*.dylib*: No such file or directory
cp: /private/tmp/julia-sCKF/usr/lib/libz*.dylib*: No such file or directory
cp: /private/tmp/julia-sCKF/usr/lib/libopenblas*.dylib*: No such file or directory
cp: /private/tmp/julia-sCKF/usr/lib/libmpfr*.dylib*: No such file or directory
make: [install] Error 1 (ignored)
cp -a /private/tmp/julia-sCKF/usr/lib/libuv.a /usr/local/homebrew/Cellar/julia/HEAD/lib/julia
cp -a /private/tmp/julia-sCKF/usr/include/uv* /usr/local/homebrew/Cellar/julia/HEAD/include/julia
cp -a src/julia.h src/support/*.h /usr/local/homebrew/Cellar/julia/HEAD/include/julia
# Copy system image
cp /private/tmp/julia-sCKF/usr/lib/julia/sys.ji /usr/local/homebrew/Cellar/julia/HEAD/lib/julia
cp: /private/tmp/julia-sCKF/usr/lib/julia/sys.ji: No such file or directory
make: *** [install] Error 1

julia compiled but won't run

$ brew test -v julia
Testing julia
==> /usr/local/Cellar/julia/HEAD/bin/julia runtests.jl all
/usr/local/Cellar/julia/HEAD/bin/julia runtests.jl all
error during init:
could not show value of type LoadError
Error: julia: failed

And if I just try to run julia from cmd.

$ julia
error during init:
could not show value of type LoadError
$ pwd
/usr/local/Cellar/julia/HEAD/bin
$ ./julia
error during init:
could not show value of type LoadError

Here's the output for the install

$ brew install --HEAD julia
==> Cloning https://github.com/JuliaLang/julia.git
Updating /Library/Caches/Homebrew/julia--git
==> Downloading patches
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
patching file extras/Makefile
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 8 with fuzz 1.
patching file deps/Makefile
patch unexpectedly ends in middle of line
Hunk #2 succeeded at 852 with fuzz 1.
patching file Make.inc
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> make -C contrib -f repackage_system_suitesparse4.make PREFIX=/usr/local/Cellar/julia/HEAD FC=/usr/local/bin/gfortran
==> make PREFIX=/usr/local/Cellar/julia/HEAD FC=/usr/local/bin/gfortran USECLANG=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_FFTW=1 U
==> make install-tk-wrapper PREFIX=/usr/local/Cellar/julia/HEAD FC=/usr/local/bin/gfortran USECLANG=1 USE_SYSTEM_ZLIB=1 
==> install_name_tool -add_rpath /usr/local/lib usr/bin/julia-release-basic
==> install_name_tool -add_rpath /usr/local/lib usr/bin/julia-release-readline
==> install_name_tool -add_rpath /usr/local/lib usr/bin/julia-release-webserver
==> install_name_tool -add_rpath /usr/local/Cellar/openblas/HEAD/lib usr/bin/julia-release-basic
==> install_name_tool -add_rpath /usr/local/Cellar/openblas/HEAD/lib usr/bin/julia-release-readline
==> install_name_tool -add_rpath /usr/local/Cellar/openblas/HEAD/lib usr/bin/julia-release-webserver
==> install_name_tool -add_rpath /usr/X11/lib usr/bin/julia-release-basic
==> install_name_tool -add_rpath /usr/X11/lib usr/bin/julia-release-readline
==> install_name_tool -add_rpath /usr/X11/lib usr/bin/julia-release-webserver
==> make PREFIX=/usr/local/Cellar/julia/HEAD FC=/usr/local/bin/gfortran USECLANG=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_FFTW=1 U
==> Caveats
Documentation and Examples have been installed into:
/usr/local/Cellar/julia/HEAD/share/julia

Test suite has been installed into:
/usr/local/Cellar/julia/HEAD/lib/julia/test

Run the command `brew test -v julia` to run all tests.
==> Summary
/usr/local/Cellar/julia/HEAD: 414 files, 57M, built in 2.5 minutes

could not load module libumfpack

version.jl
fatal: No names found, cannot describe anything.
linalg.jl
LoadError("sysimg.jl",162,LoadError("linalg.jl",173,LoadError("linalg/umfpack.jl",36,ErrorException("error compiling anonymous: could not load module libumfpack: dlopen(libumfpack.dylib, 1): image not found"))))
*** This error is usually fixed by running 'make clean'. If the error persists, try 'make cleanall'. ***
JULIA usr/lib/julia/sys.ji
version.jl
fatal: No names found, cannot describe anything.
linalg.jl
LoadError("sysimg.jl",162,LoadError("linalg.jl",173,LoadError("linalg/umfpack.jl",36,ErrorException("error compiling anonymous: could not load module libumfpack: dlopen(libumfpack.dylib, 1): image not found"))))
*** This error is usually fixed by running 'make clean'. If the error persists, try 'make cleanall'. ***

OpenBLAS/LAPACKE build fails on Haswell

I incurred in a slightly contorted series of problems installing Julia on a Haswell machine running Mavericks. There seemed to be no difference between 64-bit and 32-bit mode. (This also affects builds straight from JuliaLang/julia. I opened the issue here because I was able to find a simple workaround that works well with brew.)

Here is what happens when I try to use the Julia tap. With a straight brew install julia, the build fails because the linked version of OpenBLAS can't detect the CPU. (See OpenBLAS #332.)

make: *** [getarch_2nd] Error 1
Makefile:127: *** OpenBLAS: Detecting CPU failed.

Fair enough. Since Haswell detection and optimization are included in OpenBLAS develop, I can brew install openblas-julia --HEAD before Julia and other dependencies. Alternatively, I can just work around the detection by passing the --target flag without pulling develop. Unfortunately both these builds fail as as I hit the rather quirky OpenBLAS #334, a problem with the lapacke makefile.

make[3]: *** [../../../libopenblas_haswellp-r0.2.9.rc1.a] Error 1
make[2]: *** [lapacke] Error 2
make[1]: *** [lapackelib] Error 2
make: *** [netlib] Error 2

The solution I have found so far is to add this patch to the openblas-julia formulae. The patch can only be applied to the lapacke makefile as of OpenMathLib/OpenBLAS@d518681 (currently in develop but not master), so it is still necessary to install openblas manually rather than letting the Julia formula resolve it as a dependency.

A fork including these changes can be found at ndr-qef/homebrew-julia. On my machine, and with the caveats mentioned above, Julia builds and the tests pass.

You might want to push a fix that includes the makefile patch when OpenBLAS is compiled from head, but the result would be brittle: builds will fail if the makefile is changed in the develop branch. If the problem is uncommon enough, the risk is to break more installs than we fix.

The alternative would be to simply let those who have this issue temporarily tap the fork and wait for the fix to be applied upstream.

Fail to compile julia on 10.8.3 with a error related with install_name_tool

I failed to compile julia on 10.8.3, it shows a error related with install_name_tool:

    brew install --HEAD julia
    ==> Cloning https://github.com/JuliaLang/julia.git
    Cloning into '/Library/Caches/Homebrew/julia--git'...
    remote: Counting objects: 579, done.
    remote: Compressing objects: 100% (525/525), done.
    remote: Total 579 (delta 23), reused 219 (delta 18)
    Receiving objects: 100% (579/579), 1.59 MiB | 666 KiB/s, done.
    Resolving deltas: 100% (23/23), done.
    Submodule 'deps/Rmath' (git://github.com/JuliaLang/Rmath.git) registered for path        'deps/Rmath'
    Submodule 'deps/libuv' (git://github.com/JuliaLang/libuv.git) registered for path 'deps/libuv'
    Submodule 'deps/openlibm' (git://github.com/JuliaLang/openlibm.git) registered for path 'deps/openlibm'
    Cloning into 'deps/Rmath'...
    remote: Counting objects: 291, done.
    remote: Compressing objects: 100% (110/110), done.
    remote: Total 291 (delta 179), reused 291 (delta 179)
    Receiving objects: 100% (291/291), 233.38 KiB | 148 KiB/s, done.
    Resolving deltas: 100% (179/179), done.
    Submodule path 'deps/Rmath': checked out '85dee98a799c193bedf6af35c839de08c2d233f6'
    Cloning into 'deps/libuv'...
    remote: Counting objects: 14840, done.
    remote: Compressing objects: 100% (3940/3940), done.
    remote: Total 14840 (delta 11675), reused 13851 (delta 10847)
    Receiving objects: 100% (14840/14840), 3.90 MiB | 803 KiB/s, done.
    Resolving deltas: 100% (11675/11675), done.
    Submodule path 'deps/libuv': checked out 'd469f03eda6c95f064be3c25b7a9e9a7547c7617'
    Cloning into 'deps/openlibm'...
    remote: Counting objects: 3456, done.
    remote: Compressing objects: 100% (1418/1418), done.
    remote: Total 3456 (delta 2213), reused 3267 (delta 2026)
    Receiving objects: 100% (3456/3456), 3.16 MiB | 331 KiB/s, done.
    Resolving deltas: 100% (2213/2213), done.
    Submodule path 'deps/openlibm': checked out'3c8738e6422bcd38320b2eb69fdbde0422fd6372'
    ==> Downloading patches
    ########################################################################                 100.0%
    ########################################################################         100.0%
    ==> Patching
    patching file deps/Makefile
    Hunk #1 succeeded at 1045 (offset 391 lines).
    patching file Make.inc
    Hunk #1 succeeded at 211 (offset 41 lines).
    Hunk #2 succeeded at 224 (offset 41 lines).
    ==> Using Homebrew-provided fortran compiler.
    This may be changed by setting the FC environment variable.
    ==> Downloading http://double-conversion.googlecode.com/files/double-conversion-1.1.1.tar.gz
    Already downloaded: /Library/Caches/Homebrew/double-conversion-1.1.1.tar.gz
    ==> Using double-conversion: /Library/Caches/Homebrew/double-conversion-1.1.1.tar.gz
    ==> Downloading http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/dSFMT-src-2.2.tar.gz
    Already downloaded: /Library/Caches/Homebrew/dSFMT-src-2.2.tar.gz
    ==> Using DSFMT: /Library/Caches/Homebrew/dSFMT-src-2.2.tar.gz
    ==> make -C contrib -f repackage_system_suitesparse4.make         PREFIX=/usr/local/Cellar/julia/HEAD
    ==> make release PREFIX=/usr/local/Cellar/julia/HEAD USE_LIB64=0         FC=/usr/local/bin/gfortran US
    ==> make PREFIX=/usr/local/Cellar/julia/HEAD USE_LIB64=0 FC=/usr/local/bin/gfortran USECLANG=1
    ==> install_name_tool -add_rpath /usr/local/opt/arpack-julia/lib /usr/local/Cellar/julia/HEAD/
    ==> install_name_tool -add_rpath /usr/local/opt/arpack-julia/lib /usr/local/Cellar/julia/HEAD/
    ==> install_name_tool -add_rpath /usr/local/opt/arpack-julia/lib /usr/local/Cellar/julia/HEAD/
    install_name_tool: can't open file: /usr/local/Cellar/julia/HEAD/bin/julia-release-webserver (No such file or directory)
    READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

And brew doctor:

    brew doctor                                                                               
    Your system is raring to brew.

problem installing Julia64 on 10.7.5 -- patches fail

I get the following error:

==> Cloning https://github.com/JuliaLang/julia.git
git --git-dir /Library/Caches/Homebrew/julia--git/.git status -s
Updating /Library/Caches/Homebrew/julia--git
git config remote.origin.url https://github.com/JuliaLang/julia.git
git config remote.origin.fetch +refs/heads/master:refs/remotes/origin/master
git fetch origin
git checkout -f master
Already on 'master'
git reset --hard origin/HEAD
HEAD is now at b9ccdb2 Merge pull request #3460 from JuliaLang/db/sparsecholfact
git reset --hard origin/HEAD
HEAD is now at b9ccdb2 Merge pull request #3460 from JuliaLang/db/sparsecholfact
git checkout-index -a -f --prefix=/private/tmp/julia-mgVa/
==> Downloading patches
/usr/bin/curl -f#LA Homebrew 0.9.4 (Ruby 1.8.7-358; Mac OS X 10.7.5) https://gist.github.com/staticfloat/3806093/raw/cb34c7262b9130f0e9e07641a66fccaa0d08b5d2/deps.Makefile.diff -o 000-homebrew.diff https://raw.github.com/gist/3806092/426a2912a0a0fec764e4048801a9427e615e33d7/make.inc.diff -o 001-homebrew.diff

################################################################## 100.0%
################################################################## 100.0%

==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file deps/Makefile
Hunk #1 succeeded at 1100 (offset 446 lines).
/usr/bin/patch -f -p1 -i 001-homebrew.diff
patching file Make.inc
Hunk #1 FAILED at 170.
Hunk #2 FAILED at 183.
2 out of 2 hunks FAILED -- saving rejects to file Make.inc.rej
Error: Failure while executing: /usr/bin/patch -f -p1 -i 001-homebrew.diff

julia.rb: Undefined method "+" in ruby script.

With the latest changes in homebrew (superenv), the ENV['CPPFLAGS'] are now nil.
(UPDATE: unless you specify --env=std.)

Error: undefined method `+' for nil:NilClass
Please report this bug:
    https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist
/homebrew/Library/Formula/julia.rb:44:in `install'
/homebrew/Library/Homebrew/build.rb:143:in `install'
/homebrew/Library/Homebrew/formula.rb:221:in `brew'
/homebrew/Library/Homebrew/formula.rb:532:in `stage'
/homebrew/Library/Homebrew/extend/fileutils.rb:21:in `mktemp'
/homebrew/Library/Homebrew/formula.rb:528:in `stage'
/homebrew/Library/Homebrew/formula.rb:216:in `brew'
/homebrew/Library/Homebrew/build.rb:123:in `install'
/homebrew/Library/Homebrew/build.rb:42:in `main'
/homebrew/Library/Homebrew/build.rb:12
/homebrew/Library/Formula/julia.rb:101
brew install julia --HEAD -v --default-fortran-flags  2337,63s user 508,29s system 336% cpu 14:05,70 total

Perhaps, now with superenv, we can remove the CFLAGS/CPPFLAGS hack?

Sometimes upgrading needing to remove all dependencies

Perhaps this is because I haven't upgraded julia for a while, but when I upgraded it by brew rm then brew install --HEAD, it installs fine but brew test -v julia fails. Then I removed everything brew rm julia arpack-julia suite-sparse-julia, reinstalled, and then test passes. Is this a bug or should it just be in the readme as part of upgrade instruction?

Julia fails to build because of absence of julia-release-webserver in recent versions of julia

Running the formula with the debug key I get
install_name_tool: can't open file: /usr/local/Cellar/julia/HEAD/bin/julia-release-webserver (No such file or directory)
/usr/local/Library/Homebrew/formula.rb:606:in `system'
BuildError: Failed executing: install_name_tool -add_rpath /usr/local/opt/arpack-julia/lib /usr/local/Cellar/julia/HEAD/bin/julia-release-webserver

BuildError: Failed executing: install_name_tool -add_rpath /usr/local/opt/suite-sparse-julia/lib /usr/local/Cellar/julia/HEAD/bin/julia-release-webserver

BuildError: Failed executing: install_name_tool -add_rpath /usr/local/opt/openblas-julia/lib /usr/local/Cellar/julia/HEAD/bin/julia-release-webserver

BuildError: Failed executing: install_name_tool -add_rpath /usr/local/lib /usr/local/Cellar/julia/HEAD/bin/julia-release-webserver

BuildError: Failed executing: install_name_tool -add_rpath /usr/X11/lib /usr/local/Cellar/julia/HEAD/bin/julia-release-webserver

The problem is easy to fix by commenting out line 189

system "install_name_tool", "-add_rpath", rpath, "#{bin}/julia-#{target}-webserver"

There is no julia-release-webserver in recent versions of julia.

Julia crash on load(“RDatasets”) with "Invalid constantexpr cast!" linking or compilation error?

brew tap staticfloat/julia
brew install --HEAD julia

edited sparse-suite by copy paste from tap as tapping failed
brew edit suite-sparse

then:
brew install suite-sparse
brew install --HEAD julia
brew test -v julia
julia
_ _ ()_ | A fresh approach to technical computing
() | () () | Documentation: http://docs.julialang.org
_ _ | | __ _ | Type “help()” to list help topics
| | | | | | |/ ` | |
| | |
| | | | (
| | | Version 0.0.0+103529310.r2458.dirty
/ |_|||__’| | Commit 2458fa9da4 (2012-12-03 09:47:36)*
|__/ |

julia> load(“RDatasets”)

Warning: redefinition of constant NARule ignored.
Assertion failed: (CastInst::castIsValid(opc, C, Ty) && “Invalid constantexpr cast!”), function getCast, file Constants.cpp, line 1366.
Illegal instruction: 4

I was wondering if it's linking error?
what can I do to clean it?

julia not there anymore?

Hi, I got:

brew install --HEAD julia && brew test -v julia
Error: No available formula for julia
Searching taps...
Error: GitHub API rate limit exceeded for 24.67.110.6. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
You may want to create an API token: https://github.com/settings/applications
and then set HOMEBREW_GITHUB_API_TOKEN.

The second error just came in addition, I don't know what either means.

Cheers,

Heinz.

llvm: library not found for -lLLVMHexagonCodeGen

i get the following output on 10.7:

==> Installing julia
==> Cloning https://github.com/JuliaLang/julia.git
Cloning into '/Users/nbecker/Library/Caches/Homebrew/julia--git'...
remote: Counting objects: 611, done.
remote: Compressing objects: 100% (554/554), done.
remote: Total 611 (delta 24), reused 237 (delta 18)
Receiving objects: 100% (611/611), 1.76 MiB | 978 KiB/s, done.
Resolving deltas: 100% (24/24), done.
Submodule 'deps/Rmath' (git://github.com/JuliaLang/Rmath.git) registered for path 'deps/Rmath'
Submodule 'deps/libuv' (git://github.com/JuliaLang/libuv.git) registered for path 'deps/libuv'
Submodule 'deps/nginx' (git://github.com/git-mirror/nginx) registered for path 'deps/nginx'
Submodule 'deps/openlibm' (git://github.com/JuliaLang/openlibm.git) registered for path 'deps/openlibm'
Cloning into 'deps/Rmath'...
remote: Counting objects: 291, done.
remote: Compressing objects: 100% (162/162), done.
remote: Total 291 (delta 179), reused 235 (delta 127)
Receiving objects: 100% (291/291), 233.38 KiB | 247 KiB/s, done.
Resolving deltas: 100% (179/179), done.
Submodule path 'deps/Rmath': checked out '85dee98a799c193bedf6af35c839de08c2d233f6'
Cloning into 'deps/libuv'...
remote: Counting objects: 13714, done.
remote: Compressing objects: 100% (3601/3601), done.
remote: Total 13714 (delta 10760), reused 12837 (delta 10060)
Receiving objects: 100% (13714/13714), 3.69 MiB | 930 KiB/s, done.
Resolving deltas: 100% (10760/10760), done.
Submodule path 'deps/libuv': checked out '3c6bef3aa86c8c5bf380bd6cf5b6a45688a102e6'
Cloning into 'deps/nginx'...
remote: Counting objects: 42121, done.
remote: Compressing objects: 100% (9309/9309), done.
remote: Total 42121 (delta 32315), reused 41952 (delta 32157)
Receiving objects: 100% (42121/42121), 6.52 MiB | 1.14 MiB/s, done.
Resolving deltas: 100% (32315/32315), done.
Submodule path 'deps/nginx': checked out 'e0235968fc75df45482929b0312dfd7a0b199520'
Cloning into 'deps/openlibm'...
remote: Counting objects: 3438, done.
remote: Compressing objects: 100% (1402/1402), done.
remote: Total 3438 (delta 2198), reused 3262 (delta 2024)
Receiving objects: 100% (3438/3438), 3.16 MiB | 1.02 MiB/s, done.
Resolving deltas: 100% (2198/2198), done.
Submodule path 'deps/openlibm': checked out '50ce8eff11bcd6f14783483bfa90d5d81481e12d'
==> Downloading patches
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
patching file deps/Makefile
Hunk #1 succeeded at 1043 (offset 389 lines).
patching file Make.inc
Hunk #1 succeeded at 206 (offset 36 lines).
Hunk #2 succeeded at 219 (offset 36 lines).
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Downloading http://double-conversion.googlecode.com/files/double-conversion-
######################################################################## 100.0%
==> Using double-conversion: /Users/nbecker/Library/Caches/Homebrew/double-conve
==> Downloading http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/dSFMT-src-2
######################################################################## 100.0%
==> Using DSFMT: /Users/nbecker/Library/Caches/Homebrew/dSFMT-src-2.2.tar.gz
==> make -C contrib -f repackage_system_suitesparse4.make PREFIX=/usr/local/Cell
==> make release PREFIX=/usr/local/Cellar/julia/HEAD USE_LIB64=0 FC=/usr/local/b
ld: library not found for -lLLVMHexagonCodeGen
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/private/tmp/julia-5wHQ/usr/lib/libjulia-release.dylib] Error 1
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2

calling brew install --HEAD julia once more then fails with

==> Cloning https://github.com/JuliaLang/julia.git
Updating /Users/nbecker/Library/Caches/Homebrew/julia--git
fatal: Could not chdir to '../../../../../../../../../../private/tmp/julia-5wHQ/deps/Rmath': No such file or directory
Unable to find current revision in submodule path 'deps/Rmath'
Error: Failure while executing: git submodule update --init

Build error on OX 10.9

I'm running brew reinstall --64bit -v julia and receive the following error:

dyld: Library not loaded: /usr/local/homebrew/homebrew/opt/readline/lib/libreadline.6.2.dylib
Referenced from: /private/tmp/julia-M0N2/usr/bin/julia-readline
Reason: image not found
/bin/sh: line 1: 68667 Trace/BPT trap: 5       /private/tmp/julia-M0N2/usr/bin/julia-readline -bf sysimg.jl
make[1]: *** [/private/tmp/julia-M0N2/usr/lib/julia/sys0.ji] Error 133 
make: *** [release] Error 2
Error: Failed executing: make release PREFIX=/usr/local/homebrew/Cellar/julia/0.2.0 USE_BLAS64=1 FC=/usr/local/homebrew/bin/gfortran USECLANG=1 LIBBLAS=-lopenblas LIBBLASNAME=libopenblas LIBLAPACK=-lo
ln -s ../Cellar/julia/HEAD/bin/julia-release-readline julia-release-readline
ln -s ../Cellar/julia/HEAD/bin/julia-release-basic julia-release-basic
ln -s ../Cellar/julia/HEAD/bin/julia-debug-readline julia-debug-readline
ln -s ../Cellar/julia/HEAD/bin/julia-debug-basic julia-debug-basic
ln -s ../Cellar/julia/HEAD/bin/julia julia
ln -s ../Cellar/julia/HEAD/include/julia julia
ln -s ../Cellar/julia/HEAD/share/julia julia
ln -s ../Cellar/julia/HEAD/lib/julia julia
ln -s ../../Cellar/julia/HEAD julia
ln -s ../Cellar/julia/HEAD julia
Error: Reinstall failed.

Caching git submodules

@samueljohn, I'm pinging you on this to get your input. I'm going through and cleaning up this formula, and I thought it would be neat to do the same trick with the submodules Julia uses (libuv, nginx, etc....) as you did with the downloaded copy of LAPACK in OpenBLAS; I want to make mini-formulae out of them and have Homebrew control the downloading of them rather than Julia, so that we don't have to re-download the entire git repo every time we update.

Do you know if this is possible/easy? If so, could you point me toward how to actually do it? Thanks! I'll incorporate it into this refresh of the formula, which should also address #15, allow us to build both 32-bit and 64-bit versions of Julia, and all her dependencies, and be able to choose Accelerate-backed Julia or OpenBLAS-backed Julia!

Error: julia: failed

It looks like I installed Julia correctly with brew install --HEAD -v julia (output here). However, when I try to run the tests I get the following simple error message:

~  brew test -v julia
Testing julia
Error: julia: failed

Among others, brew doctor gives the following (I think irrelevant?) message:

Warning: Some keg-only formula are linked into the Cellar.
Linking a keg-only formula, such as gettext, into the cellar with
`brew link <formula>` will cause other formulae to detect them during
the `./configure` step. This may cause problems when compiling those
other formulae.

Binaries provided by keg-only formulae may override system binaries
with other strange results.

You may wish to `brew unlink` these brews:

    llvm
    libxml2

Latest Julia HEAD fails to brew on OSX 10.6.8

Julia fails to brew on OSX 10.6.8:

~ $ uname -a
Darwin VB-MACPRO 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386

~ $ brew update
Already up-to-date.

~ $ brew doctor
Your system is ready to brew.

~ $ brew install --HEAD julia
==> Installing julia dependency: arpack-julia
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Downloading http://forge.scilab.org/index.php/p/arpack-ng/downloads/get/arpack-ng-3.1.3.tar.gz
Already downloaded: /Users/vb/Library/Caches/Homebrew/arpack-julia-3.1.3.tar.gz
==> Building with an alternative Fortran compiler
This is unsupported.
Warning: No Fortran optimization information was provided. You may want to consider
setting FCFLAGS and FFLAGS or pass the --default-fortran-flags option to
brew install if your compiler is compatible with GCC.

If you like the default optimization level of your compiler, ignore this
warning.
==> ./configure --prefix=/usr/local/Cellar/arpack-julia/3.1.3 --enable-shared --with-blas=openblas --with-lapack=openbla
==> make install
libtool: link: /usr/local/bin/gfortran -dynamiclib -o .libs/libarpack.2.dylib -Wl,-force_load,./SRC/.libs/libarpacksrc.a -Wl,-force_load,./UTIL/.libs/libarpackutil.a -lopenblas -install_name /usr/local/Cellar/arpack-julia/3.1.3/lib/libarpack.2.dylib -compatibility_version 3 -current_version 3.0 -Wl,-single_module
ld: library not found for -lopenblas
collect2: ld returned 1 exit status
make[1]: *** [libarpack.la] Error 1
make: *** [install-recursive] Error 1

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

linker command failed when installing with gfortran 4.2

$ brew install --HEAD julia
==> Cloning https://github.com/JuliaLang/julia.git
Updating /Library/Caches/Homebrew/julia--git
==> Downloading patches
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
patching file extras/Makefile
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 8 with fuzz 1.
patching file deps/Makefile
patch unexpectedly ends in middle of line
Hunk #2 succeeded at 852 with fuzz 1.
patching file Make.inc
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> make -C contrib -f repackage_system_suitesparse4.make PREFIX=/usr/local/Cellar/julia/HEAD FC=/usr/local/bin/gfortran
      typeinfo for spqr_zippy<std::complex<double> > in libspqr.a(spqr_parallel.o)
      typeinfo for spqr_zippy<double> in libspqr.a(spqr_parallel.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [default] Error 1

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

Another active Homebrew process is already using openblas.

Homebrew/legacy-homebrew#17730
From there (there's more useful info from the homebrew devs)
I get:

Error: Operation already in progress for openblas
Another active Homebrew process is already using openblas.
Please wait for it to finish or terminate it to continue.

But there is no active homebrew process. OSX 10.8.2, Ruby 1.8.7. I have brew rm'd and reinstalled blas, any ideas?

brew doctor only notifies me of a libwfdb which I have installed (I have mv'd it elsewhere, no help).

flisp error

Any ideas?

>>> sudo brew install julia --HEAD
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Cloning https://github.com/JuliaLang/julia.git
Updating /Library/Caches/Homebrew/julia--git
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file deps/Makefile
Hunk #1 succeeded at 1186 (offset 532 lines).
==> Building with an alternative Fortran compiler
This is unsupported.
Warning: No Fortran optimization information was provided.  You may want to consider
setting FCFLAGS and FFLAGS or pass the `--default-fortran-flags` option to
`brew install` if your compiler is compatible with GCC.

If you like the default optimization level of your compiler, ignore this
warning.
==> Downloading http://double-conversion.googlecode.com/files/double-conversion-1.1.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/double-conversion-1.1.1.tar.gz
==> Using double-conversion: /Library/Caches/Homebrew/double-conversion-1.1.1.tar.gz
==> Downloading http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/dSFMT-src-2.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/dSFMT-src-2.2.tar.gz
==> Using DSFMT: /Library/Caches/Homebrew/dSFMT-src-2.2.tar.gz
==> make -C contrib -f repackage_system_suitesparse4.make PREFIX=/usr/local/Cellar/julia/HEAD USE_BL
==> make release PREFIX=/usr/local/Cellar/julia/HEAD USE_BLAS64=0 FC=/usr/local/bin/gfortran USECLAN
    CC src/flisp/flmain.o
    LINK src/flisp/libflisp.a
    CC src/flisp/flisp
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2

And again with --default-fortran-flags as the warning suggests:

>>>> sudo brew install julia --HEAD --default-fortran-flags
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Cloning https://github.com/JuliaLang/julia.git
Updating /Library/Caches/Homebrew/julia--git
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file deps/Makefile
Hunk #1 succeeded at 1186 (offset 532 lines).
==> Building with an alternative Fortran compiler
This is unsupported.
==> Downloading http://double-conversion.googlecode.com/files/double-conversion-1.1.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/double-conversion-1.1.1.tar.gz
==> Using double-conversion: /Library/Caches/Homebrew/double-conversion-1.1.1.tar.gz
==> Downloading http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/dSFMT-src-2.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/dSFMT-src-2.2.tar.gz
==> Using DSFMT: /Library/Caches/Homebrew/dSFMT-src-2.2.tar.gz
==> make -C contrib -f repackage_system_suitesparse4.make PREFIX=/usr/local/Cellar/julia/HEAD USE_BL
==> make release PREFIX=/usr/local/Cellar/julia/HEAD USE_BLAS64=0 FC=/usr/local/bin/gfortran USECLAN
    CC src/flisp/flmain.o
    LINK src/flisp/libflisp.a
    CC src/flisp/flisp
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2

clang installation error on 10.9.1

I am having problems installing Julia on 10.9.1 (Mavericks). I don't know whether this is to do with changes in Mavericks to clang, but the install is failing with.

clang: error: linker command failed with exit code 1 (use -v to see invocation)

More detailed output is provided here. Let me know if there is any other diagnostic information that would be useful.

library not found for -lLLVMSystemZCodeGen

$ brew install --HEAD julia
Warning: A newer Command Line Tools release is available
You should install the latest version from:
https://developer.apple.com/downloads
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Cloning https://github.com/JuliaLang/julia.git
Updating /Library/Caches/Homebrew/julia--git
==> Downloading patches

################################################################## 100,0%

==> Patching
patching file deps/Makefile
Hunk #1 succeeded at 1234 (offset 580 lines).
==> Building with an alternative Fortran compiler
This is unsupported.
==> Downloading http://double-conversion.googlecode.com/files/double-conversion-1.1.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/double-conversion-1.1.1.tar.gz
==> Using double-conversion: /Library/Caches/Homebrew/double-conversion-1.1.1.tar.gz
==> Downloading http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/dSFMT-src-2.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/dSFMT-src-2.2.tar.gz
==> Using DSFMT: /Library/Caches/Homebrew/dSFMT-src-2.2.tar.gz
==> make -C contrib -f repackage_system_suitesparse4.make PREFIX=/usr/local/Cellar/julia/HEAD USE_BLAS64=0 FC=/usr/local/bin/gfortran USECLANG=1 LIBBLAS=-lopen
==> make release PREFIX=/usr/local/Cellar/julia/HEAD USE_BLAS64=0 FC=/usr/local/bin/gfortran USECLANG=1 LIBBLAS=-lopenblas LIBBLASNAME=libopenblas LIBLAPACK=-l
ld: library not found for -lLLVMSystemZCodeGen
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/private/tmp/julia-mTPs/usr/lib/libjulia.dylib] Error 1
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2

Unable to install after gfortran update

Hello,

The gfortran package in homebrew is dead atm. But I installed it manually.

I wanted to update my 64bit version of Julia, but after removing all the dependencies, my tests still fail. I'm curious what could cause this?

I'm running 10.8 and v. 4.8 of gfortran

Could not tap staticfloat/julia/suite-sparse

Hi SF,

I got the following error. I hope it's helpful to report it here.

Has the julia/suite-sparse repo moved?

$ brew install gfortran
Error: gfortran-4.2.4-5666.3 already installed

$ brew tap staticfloat/julia
Cloning into '/usr/local/Library/Taps/staticfloat-julia'...
remote: Counting objects: 122, done.
remote: Compressing objects: 100% (90/90), done.
remote: Total 122 (delta 64), reused 89 (delta 31)
Receiving objects: 100% (122/122), 19.34 KiB, done.
Resolving deltas: 100% (64/64), done.
Warning: Could not tap staticfloat/julia/suite-sparse over mxcl/master/suite-sparse
Tapped 3 formula

$ brew tap homebrew/dupes
Cloning into '/usr/local/Library/Taps/homebrew-dupes'...
remote: Counting objects: 569, done.
remote: Compressing objects: 100% (231/231), done.
remote: Total 569 (delta 357), reused 546 (delta 338)
Receiving objects: 100% (569/569), 82.43 KiB, done.
Resolving deltas: 100% (357/357), done.
Tapped 36 formula

$ brew install --HEAD julia
Error: undefined method `env' for Julia:Class
Please report this bug:
    https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist
/usr/local/Library/Formula/julia.rb:31
/usr/local/Library/Homebrew/formula.rb:393:in `require'
/usr/local/Library/Homebrew/formula.rb:393:in `factory'
/usr/local/Library/Homebrew/extend/ARGV.rb:20:in `formulae'
/usr/local/Library/Homebrew/extend/ARGV.rb:20:in `map'
/usr/local/Library/Homebrew/extend/ARGV.rb:20:in `formulae'
/usr/local/Library/Homebrew/cmd/install.rb:21:in `install'
/usr/local/bin/brew:80:in `send'
/usr/local/bin/brew:80

Problems with gfortran-4.2

it wouldn't compile under gfortran 4.2. so that installing a newer gfortran instruction is now mandatory. should this be made into a 1-step process? i.e.

brew tap staticfloat/julia
brew install --HEAD julia

would also install homebrew/dupes/gcc --enable-fortran

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.