-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't compile Julia on Mac OS X 10.7 (Lion) #636
Comments
Seems the build of readline also fails: Target: i686-apple-darwin11 It's 2:30 a.m. and I have been trying since early in the evening to get this thing to build... |
Does this help: http://techdebug.com/blog/2009/01/03/compiling-readline-on-an-osx-105-intel-x86_64/ ? |
Thanks, that fixed the readline problem. For anyone else who has this problem, I went to the external directory and issued this command to rebuild readline: make -B install-readline SHOBJ_LDFLAGS=-dynamiclib Now if I can just get this "Symbol not found" business straightened out. |
That cc1 warning is worrying. What version of gcc and gfortran do you have? |
After upgrading to Lion I installed XCode 4.3.2 and and its Command Line Tools, presuming that this would get me reasonably up-to-date versions of all the developer tools. For gfortran I followed the Julia "Source Download and Compilation" instructions:
I opted for the latter, specifically, http://quatramaran.ens.fr/~coudert/gfortran/gfortran-4.6.2-x86_64-Lion.dmg |
Ok, those versions are all perfectly reasonable. Hmm... |
Here's another datum that might (or might not) be relevant. When I try to run the prebuilt julia binaries for Mac OS X, I get this error:
If I add /usr/local/gfortran/lib to DYLD_LIBRARY_PATH it takes care of that error, but I still get pretty much the same error I'm getting when I build julia myself:
|
One other thing -- I've tried it both with and without using the system BLAS and LAPACK, by uncommenting
in Make.inc. The only difference I've seen is (no suprise) in build time. |
The function http://www.opensource.apple.com/source/gcc/gcc-5666.3/gcc/config/soft-fp/addtf3.c It looks like GCC isn't finding that function for some reason. |
I ran a script to run nm on every *.dylib file under /usr; these are the only ones that mention ___addtf3: /usr/local/gfortran/lib/i386/libgfortran.3.dylib : U ___addtf3 |
FWIW, I recently upgraded from SnowLeopard to Lion, and successfully re-compiled julia and its dependencies using Gfortran from http://quatramaran.ens.fr/~coudert/gfortran/gfortran-4.6.2-x86_64-Lion.dmg
and GCC
|
I found the solution: putting /usr/local/gfortran/lib at the beginning of DYLD_LIBRARY_PATH solved the problem. Previously I had .../gfortran/lib at the end of DYLD_LIBRARY_PATH. |
Ah. That's interesting. I generally don't have DYLD_LIBRARY_PATH set at all. |
Should we put some kind of note about DY/LD_LIBRARY_PATH in the install docs? |
With this version of gfortran, -static-gfortran would solve this problem, but create problems on some older versions of gfortran. Of course that flag does not include libquadmath, so it is only a partial solution, if at all it works. |
I upgraded from 10.5 (Leopard) to 10.6 (Snow Leopard) and then to 10.7.3 (Lion). Then I uninstalled my existing gfortran, downloaded and installed the 64-bit gfortran for Lion (gfortran-4.6.2-x86_64-Lion.dmg), downloaded julia with git, and ran make. The compilation continued for some time (albeit with a lot of warnings) and ultimately failed at this point near the end:
Making install in m4
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1216k 100 1216k 0 0 207k 0 0:00:05 0:00:05 --:--:-- 277k
CC src/jltypes.o
CC src/gf.o
CC src/support/hashing.o
CC src/support/timefuncs.o
CC src/support/dblprint.o
CC src/support/ptrhash.o
CC src/support/operators.o
CC src/support/socket.o
CC src/support/utf8.o
CC src/support/ios.o
CC src/support/dirpath.o
CC src/support/htable.o
CC src/support/bitvector.o
CC src/support/int2str.o
CC src/support/dump.o
CC src/support/libsupportinit.o
CC src/support/arraylist.o
LINK src/support/libsupport.a
CC src/flisp/flisp.o
CC src/flisp/builtins.o
CC src/flisp/string.o
CC src/flisp/equalhash.o
CC src/flisp/table.o
CC src/flisp/iostream.o
CC src/flisp/julia_extensions.o
LINK src/flisp/libflisp.a
CC src/flisp/flmain.o
CC src/flisp/flisp
FLISP src/julia_flisp.boot
FLISP src/julia_flisp.boot.inc
CC src/ast.o
CC src/builtins.o
CC src/module.o
CC src/codegen.o
CC src/interpreter.o
CC src/alloc.o
CC src/dlload.o
CC src/sys.o
CC src/init.o
CC src/task.o
CC src/array.o
CC src/dump.o
CC src/gc.o
LINK src/libjulia-release.a
LINK libjulia-release.dylib
PERL base/pcre_h.jl
cc1: warning: unrecognized gcc debugging option: M
PERL base/errno_h.jl
cc1: warning: unrecognized gcc debugging option: M
cc1: warning: unrecognized gcc debugging option: M
CC ui/repl.o
CC ui/repl-basic.o
LINK uijulia-release-basic
CC ui/repl-readline.o
LINK uijulia-release-readline
LINK ui/webserverjulia-release-webserver
JULIA sys0.ji
dlopen(/Users/kevin/Tmp/julia/lib/libsuitesparse.dylib, 2): Symbol not found: ___addtf3
Referenced from: /usr/local/gfortran/lib/libquadmath.0.dylib
Expected in: /usr/lib/libSystem.B.dylib
in /usr/local/gfortran/lib/libquadmath.0.dylib
make[1]: *** [sys0.ji] Error 1
make: *** [release] Error 2
I can provide the complete make output if desired.
The text was updated successfully, but these errors were encountered: