Hi all
I am trying to build an executable using the latest build_executable.jl in
osx yosemite. This is my code:
function main()
println("Hi")
println(1 + 1)
end
The log is given below. Let me know if I missing something. Any help is
appreciated!
Karthikeyans-MacBook-Pro:julia karthikeyan$ ./julia
/Users/karthikeyan/Github/julia/contrib/build_executable.jl testexec
/Users/karthikeyan/Documents/julia/test.jl --force
--- Clipped: please see https://goo.gl/DZ6H9z for full log -----
/Users/karthikeyan/Github/julia/base/precompile.jl
INFO: Linking sys.dylib
Undefined symbols for architecture x86_64:
"___udivti3", referenced from:
_julia_tryparse_internal_5424 in libtestexec.o
_julia_safe_mul_5435 in libtestexec.o
"_fmod", referenced from:
_julia_mod_6420 in libtestexec.o
"_sigsetjmp", referenced from:
_julia_abstract_call_gf_338 in libtestexec.o
_julia_inlineable_527 in libtestexec.o
_julia_abstract_call_gf_762 in libtestexec.o
_julia_anonymous_769 in libtestexec.o
_julia_with_output_limit_3612 in libtestexec.o
_julia_abstract_call_gf_3870 in libtestexec.o
_julia_interpinner_7589 in libtestexec.o
...
ld: symbol(s) not found for inferred architecture x86_64
ERROR: LoadError: failed process: Process(`ld
-L/Users/karthikeyan/Github/julia/usr/lib -dylib -macosx_version_min 10.7
-ljulia -o /Users/karthikeyan/Github/julia/usr/lib/libtestexec.dylib
/Users/karthikeyan/Github/julia/usr/lib/libtestexec.o`, ProcessExited(1))
[1]
in run at ./process.jl:493
in link_sysimg at
/Users/karthikeyan/Github/julia/contrib/build_sysimg.jl:142
in anonymous at /Users/karthikeyan/Github/julia/contrib/build_sysimg.jl:69
in cd at ./file.jl:22
in build_sysimg at
/Users/karthikeyan/Github/julia/contrib/build_sysimg.jl:27
in include at ./boot.jl:259
in include_from_node1 at ./loading.jl:267
in process_options at ./client.jl:308
in _start at ./client.jl:411
while loading /Users/karthikeyan/Github/julia/contrib/build_sysimg.jl, in
expression starting on line 175
ERROR: LoadError: failed process:
Process(`/Users/karthikeyan/Github/julia/usr/bin/julia
/Users/karthikeyan/Github/julia/contrib/build_sysimg.jl
/Users/karthikeyan/Github/julia/usr/lib/libtestexec native
/var/folders/yb/95z9vyrd3rl3r06yvt2t7cym0000gn/T/tmpo86tj7/userimg.jl
--force`, ProcessExited(1)) [1]
in run at ./process.jl:493
in build_executable at
/Users/karthikeyan/Github/julia/contrib/build_executable.jl:109
in build_executable at
/Users/karthikeyan/Github/julia/contrib/build_executable.jl:58
in include at ./boot.jl:259
in include_from_node1 at ./loading.jl:267
in process_options at ./client.jl:308
in _start at ./client.jl:411
while loading /Users/karthikeyan/Github/julia/contrib/build_executable.jl,
in expression starting on line 277