I don't think that script has been tested very much yet on OS X. Throwing a bus error is considered a bug -- please file an issue so this doesn't get lost. You might want to update to latest master first to see if any changes have fixed this (I believe there was a PR to update that script recently).
On Mon, Apr 20, 2015 at 3:06 PM, Clemente Cuevas <[email protected]> wrote: > Hello all, > > I'm on OS X using Julia 0.4.0, 14 day old master. > > I'm trying to use > julia/contrib/build_executable.jl > on a simple file: > $ cat test.jl > function main() > println("Hello world") > end > > > > When I run it, the entirety of the step after `INFO: Building sys0.o...` > and before `INFO: Building sys.o` appears to run without any > contraindications. The rest of the response is as follows: > INFO: Building sys.o... > /usr/local/bin/julia -C native --build /usr/local/lib/julia/libtest -J / > usr/local/lib/julia/sys0.ji -f sysimg.jl > ERROR: LoadError: failed process: Process(`/usr/local/bin/julia -C native > --build /usr/local/lib/julia/libtest -J /usr/local/lib/julia/s > ys0.ji -f sysimg.jl`, ProcessSignaled(10)) [0] > in run at /usr/local/lib/julia/sys.dylib > in anonymous at /usr/local/bin/build_sysimg.jl:57 > in cd at ./file.jl:20 > in build_sysimg at /usr/local/bin/build_sysimg.jl:26 > in include at ./boot.jl:250 > in include_from_node1 at loading.jl:129 > in process_options at ./client.jl:305 > in _start at ./client.jl:389 > while loading /usr/local/bin/build_sysimg.jl, in expression starting on > line 167 > > ERROR: LoadError: failed process: Process(`/usr/local/bin/julia > /usr/local/bin/build_sysimg.jl /usr/local/lib/julia/libtest native /var/ > folders/3c/p2v0zdl12zqf4rskpmt46q0c0000gn/T/tmpZrMhFx/userimg.jl --force`, > ProcessExited(1)) [1] > in run at /usr/local/lib/julia/sys.dylib > in build_executable at /usr/local/bin/build_executable.jl:108 > in build_executable at /usr/local/bin/build_executable.jl:57 > in include at ./boot.jl:250 > in include_from_node1 at loading.jl:129 > in process_options at ./client.jl:305 > in _start at ./client.jl:389 > while loading /usr/local/bin/build_executable.jl, in expression starting > on line 275 > > > > If I just run > /usr/local/bin/julia -C native --build /usr/local/lib/julia/libtest -J / > usr/local/lib/julia/sys0.ji -f sysimg.jl > > $ /usr/local/bin/julia -C native --build /usr/local/lib/julia/libtest -J / > usr/local/lib/julia/sys0.ji -f sysimg.jl > Bus error: 10 > > I get a bus error. > Any help would be appreciated and please let me know if there is any other > information that would be helpful! >
