Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary compilation #11816

Closed
akaFalsh opened this issue Jun 23, 2015 · 48 comments
Closed

Binary compilation #11816

akaFalsh opened this issue Jun 23, 2015 · 48 comments

Comments

@akaFalsh
Copy link

I am trying to create julia independent binary. I`ve looked to many closely related issues. I had successfully built a library, but when I try to build executable it fails.
The code is rather simple:

function main()
    println("Hello world!!!")
    println(1 + 1)
end
main()

I use command:

julia julia-master/contrib/build_executable.jl testexec ./test2.jl --force

However I recieve an error:

LoadError(at "sysimg.jl" line 327: LoadError(at "/opt/emgs/projects/tmp/julia/julia-master/base/userimg.jl" line 1: LoadError(at "/opt/emgs/projects/tmp/julia/test2.jl" line 7: UndefVarError(var=:STDOUT))))
rec_backtrace at /opt/emgs/projects/tmp/julia/julia-master/src/task.c:649
jl_throw at /opt/emgs/projects/tmp/julia/julia-master/src/task.c:809
jl_undefined_var_error at /opt/emgs/projects/tmp/julia/julia-master/src/builtins.c:124
main at /opt/emgs/projects/tmp/julia/test2.jl:3
jlcall_main_21949 at  (unknown line)
jl_apply at /opt/emgs/projects/tmp/julia/julia-master/src/gf.c:1650
jl_apply at /opt/emgs/projects/tmp/julia/julia-master/src/interpreter.c:66
eval at /opt/emgs/projects/tmp/julia/julia-master/src/interpreter.c:212
jl_toplevel_eval_flex at /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:517
jl_parse_eval_all at /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:567
jl_load at /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:610
include at boot.jl:254
jl_apply at /opt/emgs/projects/tmp/julia/julia-master/src/gf.c:1625
include_from_node1 at loading.jl:133
jl_apply at /opt/emgs/projects/tmp/julia/julia-master/src/gf.c:1625
jl_apply at /opt/emgs/projects/tmp/julia/julia-master/src/interpreter.c:66
eval at /opt/emgs/projects/tmp/julia/julia-master/src/interpreter.c:212
jl_toplevel_eval_flex at /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:517
jl_parse_eval_all at /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:567
jl_load at /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:610
include at boot.jl:254
jl_apply at /opt/emgs/projects/tmp/julia/julia-master/src/gf.c:1625
include_from_node1 at loading.jl:133
jl_apply at /opt/emgs/projects/tmp/julia/julia-master/src/gf.c:1625
jl_apply at /opt/emgs/projects/tmp/julia/julia-master/src/interpreter.c:66
eval at /opt/emgs/projects/tmp/julia/julia-master/src/interpreter.c:212
eval_body at /opt/emgs/projects/tmp/julia/julia-master/src/interpreter.c:598
jl_toplevel_eval_body at /opt/emgs/projects/tmp/julia/julia-master/src/interpreter.c:529
jl_toplevel_eval_flex at /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:511
jl_parse_eval_all at /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:567
jl_load at /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:610
unknown function (ip: 0x40249c)
unknown function (ip: 0x4029a5)
unknown function (ip: 0x402a5f)
__libc_start_main at /lib64/libc.so.6 (unknown line)
unknown function (ip: 0x401589)

ERROR: LoadError: failed process: Process(`/opt/emgs/projects/tmp/julia/julia-master/usr/bin/julia -C native --build /opt/emgs/projects/tmp/julia/julia-master/usr/lib/libtestexec -J /opt/emgs/projects/tmp/julia/julia-master/usr/lib/inference.ji -f sysimg.jl`, ProcessExited(1)) [1]
 in run at ./process.jl:490
 in anonymous at /opt/emgs/projects/tmp/julia/julia-master/contrib/build_sysimg.jl:66
 in cd at ./file.jl:22
 in build_sysimg at /opt/emgs/projects/tmp/julia/julia-master/contrib/build_sysimg.jl:27
 in include at ./boot.jl:254
 in include_from_node1 at loading.jl:133
 in process_options at ./client.jl:304
 in _start at ./client.jl:404
while loading /opt/emgs/projects/tmp/julia/julia-master/contrib/build_sysimg.jl, in expression starting on line 176

ERROR: LoadError: failed process: Process(`/opt/emgs/projects/tmp/julia/julia-master/usr/bin/julia /opt/emgs/projects/tmp/julia/julia-master/contrib/build_sysimg.jl /opt/emgs/projects/tmp/julia/julia-master/usr/lib/libtestexec native /tmp/tmpyZPKz2/userimg.jl --force`, ProcessExited(1)) [1]
 in run at ./process.jl:490
 in build_executable at /opt/emgs/projects/tmp/julia/julia-master/contrib/build_executable.jl:109
 in build_executable at /opt/emgs/projects/tmp/julia/julia-master/contrib/build_executable.jl:58
 in include at ./boot.jl:254
 in include_from_node1 at loading.jl:133
 in process_options at ./client.jl:304
 in _start at ./client.jl:404
while loading /opt/emgs/projects/tmp/julia/julia-master/contrib/build_executable.jl, in expression starting on line 277
@tkelman
Copy link
Contributor

tkelman commented Jun 23, 2015

What's the output of versioninfo() ? I suspect the main problem here is build_executable.jl is not currently tested or actively kept working, so it's liable to break any time the bootstrapping procedure changes - which it has done several times recently.

@akaFalsh
Copy link
Author

The version info is:

Julia Version 0.4.0-dev
Platform Info:
  System: Linux (x86_64-redhat-linux)
  CPU: Intel(R) Core(TM) i7-4900MQ CPU @ 2.80GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT NO_AFFINITY NEHALEM)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

@akaFalsh
Copy link
Author

I`ve also tried to use:

julia julia-master/contrib/build_sysimg.jl ./hello_world core2 ./test2.jl --force

Still have an error:

error during bootstrap:
LoadError(at "sysimg.jl" line 327: LoadError(at "/opt/emgs/projects/tmp/julia/julia-master/base/userimg.jl" line 6: ErrorException("syntax: incomplete: premature end of input")))
rec_backtrace at /opt/emgs/projects/tmp/julia/julia-master/src/task.c:649
jl_throw at /opt/emgs/projects/tmp/julia/julia-master/src/task.c:809
jl_vexceptionf at /opt/emgs/projects/tmp/julia/julia-master/src/builtins.c:65
jl_errorf at /opt/emgs/projects/tmp/julia/julia-master/src/builtins.c:72
jl_parse_eval_all at /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:577
jl_load at /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:610
include at boot.jl:254
jl_apply at /opt/emgs/projects/tmp/julia/julia-master/src/gf.c:1625
include_from_node1 at loading.jl:133
jl_apply at /opt/emgs/projects/tmp/julia/julia-master/src/gf.c:1625
jl_apply at /opt/emgs/projects/tmp/julia/julia-master/src/interpreter.c:66
eval at /opt/emgs/projects/tmp/julia/julia-master/src/interpreter.c:212
eval_body at /opt/emgs/projects/tmp/julia/julia-master/src/interpreter.c:598
jl_toplevel_eval_body at /opt/emgs/projects/tmp/julia/julia-master/src/interpreter.c:529
jl_toplevel_eval_flex at /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:511
jl_parse_eval_all at /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:567
jl_load at /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:610
unknown function (ip: 0x40249c)
unknown function (ip: 0x4029a5)
unknown function (ip: 0x402a5f)
__libc_start_main at /lib64/libc.so.6 (unknown line)
unknown function (ip: 0x401589)

ERROR: LoadError: failed process: Process(`/opt/emgs/projects/tmp/julia/julia-master/usr/bin/julia -C core2 --build /opt/emgs/projects/tmp/julia/hello_world -J /opt/emgs/projects/tmp/julia/inference.ji -f sysimg.jl`, ProcessExited(1)) [1]
 in run at ./process.jl:490
 in anonymous at /opt/emgs/projects/tmp/julia/julia-master/contrib/build_sysimg.jl:66
 in cd at ./file.jl:22
 in build_sysimg at /opt/emgs/projects/tmp/julia/julia-master/contrib/build_sysimg.jl:27
 in include at ./boot.jl:254
 in include_from_node1 at loading.jl:133
 in process_options at ./client.jl:304
 in _start at ./client.jl:404
while loading /opt/emgs/projects/tmp/julia/julia-master/contrib/build_sysimg.jl, in expression starting on line 176

@tkelman
Copy link
Contributor

tkelman commented Jun 23, 2015

The useful part of versioninfo here is what commit sha are you building from. Did you build from a git clone, or a tarball or some other method of downloading the source?

@akaFalsh
Copy link
Author

I`ve downloaded this - https://github.com/JuliaLang/julia/archive/master.zip and installed by executing make and make install

@tkelman
Copy link
Contributor

tkelman commented Jun 23, 2015

That sort of works now (it formerly didn't), but we have no idea of determining what version of Julia you downloaded, so that's not a good idea. Install git and build from a clone.

@akaFalsh
Copy link
Author

Here is a detailed information:

Julia Version 0.4.0-dev
Platform Info:
  System: Linux (x86_64-redhat-linux)
  CPU: Intel(R) Core(TM) i7-4900MQ CPU @ 2.80GHz
  WORD_SIZE: 64
           "CentOS release 6.6 (Final)"
  uname: Linux 2.6.32-504.8.1.el6.x86_64 #1 SMP Wed Jan 28 21:11:36 UTC 2015 x86_64 x86_64
Memory: 7.685993194580078 GB (1108.3515625 MB free)
Uptime: 4.68269e6 sec
Load Avg:  0.0  0.044921875  0.1513671875
Intel(R) Core(TM) i7-4900MQ CPU @ 2.80GHz:
       speed         user         nice          sys         idle          irq
#1  2678 MHz    3324826 s       2213 s    6763507 s  446553592 s     382888 s
#2  2678 MHz    2116773 s       1160 s    5236274 s  449501454 s     494277 s
#3  2678 MHz    1624348 s       3473 s    4079606 s  455802208 s        513 s
#4  2678 MHz    1378323 s       1481 s    4238814 s  455059073 s     124005 s

  BLAS: libopenblas (USE64BITINT NO_AFFINITY NEHALEM)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

Package Directory: /home/vfalfushinsky/.julia/v0.4
WARNING: Pkg only works with git versions greater than v1.7.3
INFO: Initializing package repository /home/vfalfushinsky/.julia/v0.4
INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl
No packages installed

@tkelman
Copy link
Contributor

tkelman commented Jun 23, 2015

That doesn't tell me what commit you built from, which is the important detail here. You'll also find Compat is broken in confusing ways in a non-git build (#10851), so building master from a tarball is not good.

@akaFalsh
Copy link
Author

I`ve got a clone of https://github.com/JuliaLang/julia. Last commit was 6ceb061.

julia -e '@show VERSION'
VERSION = v"0.4.0-dev+5539"

I`ve build it with make OPENBLAS_TARGET_ARCH=NEHALEM. When I execute:

julia julia/contrib/build_sysimg.jl ./hello_world core2 ./test2.jl --force 

I recieve:

INFO: Building inference0.o...
/tmp/julia/julia/usr/bin/julia -C core2 --build /tmp/julia/inference0 coreimg.jl
Julia and the system image were compiled for different architectures.
Please delete or regenerate sys.{so,dll,dylib}.

ERROR: LoadError: failed process: Process(`/tmp/julia/julia/usr/bin/julia -C core2 --build /opt/emgs/projects/tmp/julia/inference0 coreimg.jl`, ProcessExited(1)) [1]
 in run at ./process.jl:490
 in anonymous at /tmp/julia/julia/contrib/build_sysimg.jl:55
 in cd at ./file.jl:22
 in build_sysimg at /tmp/julia/julia/contrib/build_sysimg.jl:27
 in include at ./boot.jl:254
 in include_from_node1 at loading.jl:133
 in process_options at ./client.jl:305
 in _start at ./client.jl:405
while loading /tmp/julia/julia/contrib/build_sysimg.jl, in expression starting on line 176

@tkelman
Copy link
Contributor

tkelman commented Jun 23, 2015

This was most likely broken by #11640. Can you try checking out some older commits until you find the last version that worked? If the same invocation formerly worked but is now broken, doing git bisect can identify exactly which commit broke it.

@JeffBezanson
Copy link
Member

Maybe also related: #11442

@tkelman
Copy link
Contributor

tkelman commented Jun 23, 2015

Oh yeah, it's been broken for longer then. That code could definitely use a code-owner who pays attention to it and regularly keeps it working - or adds it to the tests if that doesn't take too much run time.

@akaFalsh
Copy link
Author

I`ve reverted to:

commit ee63ec8438b2af30d9ab08b0e5ba08e6e7426328
Author: Darwin Darakananda <[email protected]>
Date:   Wed Apr 29 18:01:31 2015 -0700

But it still fails.

@akaFalsh
Copy link
Author

Still can not compile julia script into binary. It seems it cannot find some base modules. Probably I should add something into PATH? I get this:

error during bootstrap:
LoadError(at "sysimg.jl" line 331: LoadError(at "/opt/emgs/projects/tmp/julia/julia-latest/julia-b90742fcab/share/julia/base/userimg.jl" line 6: ErrorException("syntax: incomplete: premature end of input")))
rec_backtrace at /opt/emgs/projects/tmp/julia/julia-latest/src/task.c:645
jl_throw at /opt/emgs/projects/tmp/julia/julia-latest/src/task.c:805
jl_vexceptionf at /opt/emgs/projects/tmp/julia/julia-latest/src/builtins.c:65
jl_errorf at /opt/emgs/projects/tmp/julia/julia-latest/src/builtins.c:72
jl_parse_eval_all at /opt/emgs/projects/tmp/julia/julia-latest/src/toplevel.c:578
jl_load at /opt/emgs/projects/tmp/julia/julia-latest/src/toplevel.c:611
include at boot.jl:254
jl_apply at /opt/emgs/projects/tmp/julia/julia-latest/src/gf.c:1632
include_from_node1 at loading.jl:133
jl_apply at /opt/emgs/projects/tmp/julia/julia-latest/src/gf.c:1632
jl_apply at /opt/emgs/projects/tmp/julia/julia-latest/src/interpreter.c:66
eval at /opt/emgs/projects/tmp/julia/julia-latest/src/interpreter.c:212
eval_body at /opt/emgs/projects/tmp/julia/julia-latest/src/interpreter.c:598
jl_toplevel_eval_body at /opt/emgs/projects/tmp/julia/julia-latest/src/interpreter.c:529
jl_toplevel_eval_flex at /opt/emgs/projects/tmp/julia/julia-latest/src/toplevel.c:512
jl_parse_eval_all at /opt/emgs/projects/tmp/julia/julia-latest/src/toplevel.c:568
jl_load at /opt/emgs/projects/tmp/julia/julia-latest/src/toplevel.c:611
unknown function (ip: 0x40253e)
unknown function (ip: 0x402a45)
unknown function (ip: 0x402b01)
__libc_start_main at /lib64/libc.so.6 (unknown line)
unknown function (ip: 0x401589)

ERROR: LoadError: failed process: Process(`/opt/emgs/projects/tmp/julia/julia-latest/julia-b90742fcab/bin/julia -C core2 --output-ji /opt/emgs/projects/tmp/julia/hello_world.ji --output-o /opt/emgs/projects/tmp/julia/hello_world.o -J /opt/emgs/projects/tmp/julia/inference.ji -f sysimg.jl`, ProcessExited(1)) [1]
 in run at ./process.jl:490
 in anonymous at /opt/emgs/projects/tmp/julia/julia-latest/julia-b90742fcab/share/julia/build_sysimg.jl:66
 in cd at ./file.jl:22
 in build_sysimg at /opt/emgs/projects/tmp/julia/julia-latest/julia-b90742fcab/share/julia/build_sysimg.jl:27
 in include at ./boot.jl:254
 in include_from_node1 at loading.jl:133
 in process_options at ./client.jl:306
 in _start at ./client.jl:406
while loading /opt/emgs/projects/tmp/julia/julia-latest/julia-b90742fcab/share/julia/build_sysimg.jl, in expression starting on line

@tkelman
Copy link
Contributor

tkelman commented Jul 13, 2015

That's a syntax error in your userimg.jl. What is the content of that file?

@akaFalsh
Copy link
Author

File does not exists. It does not exists anywhere in repository.

@tkelman
Copy link
Contributor

tkelman commented Jul 15, 2015

Did you create one in your local copy? You wouldn't have gotten a syntax error from there if the file didn't exist.

@akaFalsh
Copy link
Author

I have not created this file in my local copy. Should it be created after I`ve made make?

stat /opt/emgs/projects/tmp/julia/julia-latest/julia-b90742fcab/share/julia/base/userimg.jl
stat: cannot stat `/opt/emgs/projects/tmp/julia/julia-latest/julia-b90742fcab/share/julia/base/userimg.jl': No such file or directory

@tkelman
Copy link
Contributor

tkelman commented Jul 15, 2015

What about under /opt/emgs/projects/tmp/julia/julia-latest/base ?

@akaFalsh
Copy link
Author

There is no such file. I`ve tried to find it through all folders in repository, but without any success.

@akaFalsh
Copy link
Author

Even can not find it here https://github.com/JuliaLang/julia/tree/master/base .

@tkelman
Copy link
Contributor

tkelman commented Jul 16, 2015

I'm not talking about the git repository, I'm asking about your local copy. There's no reason you would get this error LoadError(at "sysimg.jl" line 331: LoadError(at "/opt/emgs/projects/tmp/julia/julia-latest/julia-b90742fcab/share/julia/base/userimg.jl" line 6: ErrorException("syntax: incomplete: premature end of input"))) from line 6 if that file didn't exist

@tkelman
Copy link
Contributor

tkelman commented Jul 16, 2015

It looks like that file can potentially be created by the build_sysimg.jl script - can you try updating to latest master and see if there's still an issue, it looks like that file was just modified a few hours ago.

@akaFalsh
Copy link
Author

I`ve updated from master, but the error still appears:

julia ./julia-latest/julia-97f62a9820/share/julia/build_sysimg.jl /opt/emgs/projects/tmp/julia/hello_world core2 ./test2.jl --force
INFO: Building inference0.o...
/opt/emgs/projects/tmp/julia/julia-latest/julia-97f62a9820/bin/julia -C core2 --output-ji /opt/emgs/projects/tmp/julia/inference0.ji --output-o /opt/emgs/projects/tmp/julia/inference0.o coreimg.jl
essentials.jl
reflection.jl
options.jl
promotion.jl
tuple.jl
range.jl
expr.jl
error.jl
bool.jl
number.jl
int.jl
operators.jl
pointer.jl
abstractarray.jl
array.jl
hashing.jl
nofloat_hashing.jl
functors.jl
reduce.jl
intset.jl
dict.jl
iterator.jl
inference.jl
INFO: Building inference.o...
/opt/emgs/projects/tmp/julia/julia-latest/julia-97f62a9820/bin/julia -C core2 --output-ji /opt/emgs/projects/tmp/julia/inference.ji --output-o /opt/emgs/projects/tmp/julia/inference.o coreimg.jl
essentials.jl
reflection.jl
options.jl
promotion.jl
tuple.jl
range.jl
expr.jl
error.jl
bool.jl
number.jl
int.jl
operators.jl
pointer.jl
abstractarray.jl
array.jl
hashing.jl
nofloat_hashing.jl
functors.jl
reduce.jl
intset.jl
dict.jl
iterator.jl
inference.jl
INFO: Building sys.o...
/opt/emgs/projects/tmp/julia/julia-latest/julia-97f62a9820/bin/julia -C core2 --output-ji /opt/emgs/projects/tmp/julia/hello_world.ji --output-o /opt/emgs/projects/tmp/julia/hello_world.o  -J /opt/emgs/projects/tmp/julia/inference.ji -f sysimg.jl
exports.jl
essentials.jl
base.jl
reflection.jl
build_h.jl
version_git.jl
c.jl
options.jl
promotion.jl
tuple.jl
range.jl
expr.jl
error.jl
bool.jl
number.jl
int.jl
operators.jl
pointer.jl
refpointer.jl
functors.jl
abstractarray.jl
subarray.jl
array.jl
docs/bootstrap.jl
hashing.jl
rounding.jl
float.jl
complex.jl
rational.jl
abstractarraymath.jl
arraymath.jl
simdloop.jl
reduce.jl
bitarray.jl
intset.jl
dict.jl
set.jl
iterator.jl
osutils.jl
char.jl
ascii.jl
iobuffer.jl
string.jl
strings/types.jl
strings/basic.jl
strings/search.jl
strings/util.jl
strings/io.jl
unicode.jl
unicode/UnicodeError.jl
unicode/types.jl
unicode/checkstring.jl
unicode/utf8.jl
unicode/utf16.jl
unicode/utf32.jl
unicode/utf8proc.jl
parse.jl
shell.jl
regex.jl
pcre.jl
base64.jl
io.jl
iostream.jl
libc.jl
libdl.jl
env.jl
path.jl
intfuncs.jl
nullable.jl
task.jl
lock.jl
show.jl
stream.jl
uv_constants.jl
socket.jl
stat.jl
fs.jl
process.jl
multimedia.jl
grisu.jl
file.jl
methodshow.jl
floatfuncs.jl
math.jl
float16.jl
cartesian.jl
multidimensional.jl
primes.jl
reducedim.jl
ordering.jl
collections.jl
sort.jl
version.jl
gmp.jl
mpfr.jl
combinatorics.jl
hashing2.jl
dSFMT.jl
random.jl
printf.jl
meta.jl
Enums.jl
serialize.jl
multi.jl
managers.jl
loading.jl
poll.jl
mmap.jl
sharedarray.jl
datafmt.jl
deepcopy.jl
interactiveutil.jl
replutil.jl
test.jl
i18n.jl
help.jl
Terminals.jl
LineEdit.jl
REPLCompletions.jl
REPL.jl
client.jl
markdown/Markdown.jl
docs/Docs.jl
util.jl
linalg.jl
broadcast.jl
statistics.jl
sparse.jl
fftw.jl
dsp.jl
sysinfo.jl
irrationals.jl
quadgk.jl
fastmath.jl
pkg.jl
profile.jl
Dates.jl
deprecated.jl
docs/basedocs.jl
precompile.jl
error during bootstrap:
LoadError(at "sysimg.jl" line 326: LoadError(at "/opt/emgs/projects/tmp/julia/julia-latest/julia-97f62a9820/share/julia/base/userimg.jl" line 6: ErrorException("syntax: incomplete: premature end of input")))
rec_backtrace at /opt/emgs/projects/tmp/julia/julia-latest/src/task.c:645
jl_throw at /opt/emgs/projects/tmp/julia/julia-latest/src/task.c:805
jl_vexceptionf at /opt/emgs/projects/tmp/julia/julia-latest/src/builtins.c:65
jl_errorf at /opt/emgs/projects/tmp/julia/julia-latest/src/builtins.c:72
jl_parse_eval_all at /opt/emgs/projects/tmp/julia/julia-latest/src/toplevel.c:578
jl_load at /opt/emgs/projects/tmp/julia/julia-latest/src/toplevel.c:611
include at boot.jl:254
jl_apply at /opt/emgs/projects/tmp/julia/julia-latest/src/gf.c:1651
include_from_node1 at loading.jl:133
jl_apply at /opt/emgs/projects/tmp/julia/julia-latest/src/gf.c:1651
jl_apply at /opt/emgs/projects/tmp/julia/julia-latest/src/interpreter.c:66
eval at /opt/emgs/projects/tmp/julia/julia-latest/src/interpreter.c:212
eval_body at /opt/emgs/projects/tmp/julia/julia-latest/src/interpreter.c:598
jl_toplevel_eval_body at /opt/emgs/projects/tmp/julia/julia-latest/src/interpreter.c:529
jl_toplevel_eval_flex at /opt/emgs/projects/tmp/julia/julia-latest/src/toplevel.c:512
jl_parse_eval_all at /opt/emgs/projects/tmp/julia/julia-latest/src/toplevel.c:568
jl_load at /opt/emgs/projects/tmp/julia/julia-latest/src/toplevel.c:611
unknown function (ip: 0x40253e)
unknown function (ip: 0x402a45)
unknown function (ip: 0x402b01)
__libc_start_main at /lib64/libc.so.6 (unknown line)
unknown function (ip: 0x401589)

ERROR: LoadError: failed process: Process(`/opt/emgs/projects/tmp/julia/julia-latest/julia-97f62a9820/bin/julia -C core2 --output-ji /opt/emgs/projects/tmp/julia/hello_world.ji --output-o /opt/emgs/projects/tmp/julia/hello_world.o -J /opt/emgs/projects/tmp/julia/inference.ji -f sysimg.jl`, ProcessExited(1)) [1]
 in run at ./process.jl:493
 in anonymous at /opt/emgs/projects/tmp/julia/julia-latest/julia-97f62a9820/share/julia/build_sysimg.jl:66
 in cd at ./file.jl:22
 in build_sysimg at /opt/emgs/projects/tmp/julia/julia-latest/julia-97f62a9820/share/julia/build_sysimg.jl:27
 in include at ./boot.jl:254
 in include_from_node1 at loading.jl:133
 in process_options at ./client.jl:306
 in _start at ./client.jl:406
while loading /opt/emgs/projects/tmp/julia/julia-latest/julia-97f62a9820/share/julia/build_sysimg.jl, in expression starting on line 175

@StefanKarpinski
Copy link
Member

What does running this in a shell output?

cat /opt/emgs/projects/tmp/julia/julia-latest/julia-97f62a9820/share/julia/base/userimg.jl

@akaFalsh
Copy link
Author

cat: /opt/emgs/projects/tmp/julia/julia-latest/julia-97f62a9820/share/julia/base/userimg.jl: No such file or directory

@akaFalsh
Copy link
Author

I am building julia in such a way:

git clone https://github.com/JuliaLang/julia julia-latest
make OPENBLAS_TARGET_ARCH=NEHALEM
make install
export PATH=/opt/emgs/projects/tmp/julia/julia-latest/julia-97f62a9820/bin/:$PATH
export LD_LIBRARY_PATH=/opt/emgs/projects/tmp/julia/julia-latest/julia-97f62a9820/lib/:$LD_LIBRARY_PATH

Then call this command to build script into binary:

julia ./julia-latest/julia-97f62a9820/share/julia/build_sysimg.jl /opt/emgs/projects/tmp/julia/hello_world core2 ./test2.jl --force

@akaFalsh
Copy link
Author

akaFalsh commented Aug 4, 2015

I`ve made some more experiments.

  1. I've used the installation instructions listed here - https://github.com/JuliaLang/julia.
    julia-7709f2e9ab/share/julia/base/userimg.jl file still not found.

  2. I've downloaded this installation - https://julialang.s3.amazonaws.com/bin/linux/x64/0.3/julia-0.3.11-linux-x86_64.tar.gz.
    julia-483dbf5279/share/julia/base/userimg.jl file still not found.

  3. I've tried to use nightly build - https://status.julialang.org/download/linux-x86_64.
    julia-e66175b758/share/julia/base/userimg.jl file still not found.

@StefanKarpinski
Copy link
Member

The file doesn't exist unless you create it. The only mystery is why you're getting an error about it not existing.

@akaFalsh
Copy link
Author

akaFalsh commented Aug 5, 2015

Here is extended output:

/opt/emgs/projects/tmp/julia/julia-e66175b758/bin/julia /opt/emgs/projects/tmp/julia/julia-e66175b758/share/julia/build_executable.jl testexec ./test3.jl --force
running: /opt/emgs/projects/tmp/julia/julia-e66175b758/bin/julia /opt/emgs/projects/tmp/julia/julia-e66175b758/share/julia/build_sysimg.jl /opt/emgs/projects/tmp/julia/julia-e66175b758/lib/julia/libtestexec native /tmp/tmpjjUUzA/userimg.jl --force
INFO: Building inference0.o...
/opt/emgs/projects/tmp/julia/julia-e66175b758/bin/julia -C native --output-ji /opt/emgs/projects/tmp/julia/julia-e66175b758/lib/julia/inference0.ji --output-o /opt/emgs/projects/tmp/julia/julia-e66175b758/lib/julia/inference0.o coreimg.jl
essentials.jl
reflection.jl
options.jl
promotion.jl
tuple.jl
range.jl
expr.jl
error.jl
bool.jl
number.jl
int.jl
operators.jl
pointer.jl
abstractarray.jl
array.jl
hashing.jl
nofloat_hashing.jl
functors.jl
reduce.jl
intset.jl
dict.jl
iterator.jl
inference.jl
INFO: Building inference.o...
/opt/emgs/projects/tmp/julia/julia-e66175b758/bin/julia -C native --output-ji /opt/emgs/projects/tmp/julia/julia-e66175b758/lib/julia/inference.ji --output-o /opt/emgs/projects/tmp/julia/julia-e66175b758/lib/julia/inference.o coreimg.jl
essentials.jl
reflection.jl
options.jl
promotion.jl
tuple.jl
range.jl
expr.jl
error.jl
bool.jl
number.jl
int.jl
operators.jl
pointer.jl
abstractarray.jl
array.jl
hashing.jl
nofloat_hashing.jl
functors.jl
reduce.jl
intset.jl
dict.jl
iterator.jl
inference.jl
INFO: Building sys.o...
/opt/emgs/projects/tmp/julia/julia-e66175b758/bin/julia -C native --output-ji /opt/emgs/projects/tmp/julia/julia-e66175b758/lib/julia/libtestexec.ji --output-o /opt/emgs/projects/tmp/julia/julia-e66175b758/lib/julia/libtestexec.o -J /opt/emgs/projects/tmp/julia/julia-e66175b758/lib/julia/inference.ji --startup-file=no sysimg.jl
exports.jl
essentials.jl
base.jl
reflection.jl
build_h.jl
version_git.jl
c.jl
options.jl
promotion.jl
tuple.jl
range.jl
expr.jl
error.jl
bool.jl
number.jl
int.jl
operators.jl
pointer.jl
refpointer.jl
functors.jl
abstractarray.jl
subarray.jl
array.jl
docs/bootstrap.jl
hashing.jl
rounding.jl
float.jl
complex.jl
rational.jl
abstractarraymath.jl
arraymath.jl
simdloop.jl
reduce.jl
bitarray.jl
intset.jl
dict.jl
set.jl
iterator.jl
osutils.jl
char.jl
ascii.jl
iobuffer.jl
string.jl
strings/types.jl
strings/basic.jl
strings/search.jl
strings/util.jl
strings/io.jl
unicode.jl
unicode/UnicodeError.jl
unicode/types.jl
unicode/checkstring.jl
unicode/utf8.jl
unicode/utf16.jl
unicode/utf32.jl
unicode/utf8proc.jl
parse.jl
shell.jl
regex.jl
pcre.jl
base64.jl
io.jl
iostream.jl
libc.jl
libdl.jl
env.jl
path.jl
intfuncs.jl
nullable.jl
task.jl
lock.jl
show.jl
stream.jl
uv_constants.jl
socket.jl
stat.jl
fs.jl
process.jl
multimedia.jl
grisu.jl
file.jl
methodshow.jl
floatfuncs.jl
math.jl
float16.jl
cartesian.jl
multidimensional.jl
primes.jl
reducedim.jl
ordering.jl
collections.jl
sort.jl
version.jl
gmp.jl
mpfr.jl
combinatorics.jl
hashing2.jl
dSFMT.jl
random.jl
printf.jl
meta.jl
Enums.jl
serialize.jl
channels.jl
multi.jl
managers.jl
loading.jl
poll.jl
mmap.jl
sharedarray.jl
datafmt.jl
deepcopy.jl
interactiveutil.jl
replutil.jl
test.jl
i18n.jl
Terminals.jl
LineEdit.jl
REPLCompletions.jl
REPL.jl
client.jl
markdown/Markdown.jl
docs/Docs.jl
util.jl
linalg.jl
broadcast.jl
statistics.jl
sparse.jl
irrationals.jl
dft.jl
dsp.jl
sysinfo.jl
quadgk.jl
fastmath.jl
pkg.jl
profile.jl
Dates.jl
deprecated.jl
docs/helpdb.jl
docs/basedocs.jl
/opt/emgs/projects/tmp/julia/julia-e66175b758/share/julia/base/precompile.jl
error during bootstrap:
LoadError(at "sysimg.jl" line 321: LoadError(at "/opt/emgs/projects/tmp/julia/julia-e66175b758/share/julia/base/userimg.jl" line 1: LoadError(at "/opt/emgs/projects/tmp/julia/test3.jl" line 1: UndefVarError(var=:STDOUT))))
rec_backtrace at /opt/emgs/projects/tmp/julia/julia-e66175b758/bin/../lib/julia/libjulia.so (unknown line)
jl_throw at /opt/emgs/projects/tmp/julia/julia-e66175b758/bin/../lib/julia/libjulia.so (unknown line)
jl_undefined_var_error at /opt/emgs/projects/tmp/julia/julia-e66175b758/bin/../lib/julia/libjulia.so (unknown line)
println at strings/io.jl:11
jl_apply_generic at /opt/emgs/projects/tmp/julia/julia-e66175b758/bin/../lib/julia/libjulia.so (unknown line)
unknown function (ip: 0x7fceccd3e973)
unknown function (ip: 0x7fceccd3dcf9)
unknown function (ip: 0x7fceccd51b9c)
unknown function (ip: 0x7fceccd527ac)
jl_load at /opt/emgs/projects/tmp/julia/julia-e66175b758/bin/../lib/julia/libjulia.so (unknown line)
include at boot.jl:254
jl_apply_generic at /opt/emgs/projects/tmp/julia/julia-e66175b758/bin/../lib/julia/libjulia.so (unknown line)
include_from_node1 at loading.jl:200
jl_apply_generic at /opt/emgs/projects/tmp/julia/julia-e66175b758/bin/../lib/julia/libjulia.so (unknown line)
unknown function (ip: 0x7fceccd3e973)
unknown function (ip: 0x7fceccd3dcf9)
unknown function (ip: 0x7fceccd51b9c)
unknown function (ip: 0x7fceccd527ac)
jl_load at /opt/emgs/projects/tmp/julia/julia-e66175b758/bin/../lib/julia/libjulia.so (unknown line)
include at boot.jl:254
jl_apply_generic at /opt/emgs/projects/tmp/julia/julia-e66175b758/bin/../lib/julia/libjulia.so (unknown line)
include_from_node1 at loading.jl:200
jl_apply_generic at /opt/emgs/projects/tmp/julia/julia-e66175b758/bin/../lib/julia/libjulia.so (unknown line)
unknown function (ip: 0x7fceccd3e973)
unknown function (ip: 0x7fceccd3dcf9)
unknown function (ip: 0x7fceccd3f12e)
unknown function (ip: 0x7fceccd3f3de)
unknown function (ip: 0x7fceccd51fa7)
unknown function (ip: 0x7fceccd527ac)
jl_load at /opt/emgs/projects/tmp/julia/julia-e66175b758/bin/../lib/julia/libjulia.so (unknown line)
unknown function (ip: 0x401a21)
unknown function (ip: 0x401db0)
unknown function (ip: 0x4017af)
__libc_start_main at /lib64/libc.so.6 (unknown line)
unknown function (ip: 0x4017f5)

ERROR: LoadError: failed process: Process(`/opt/emgs/projects/tmp/julia/julia-e66175b758/bin/julia -C native --output-ji /opt/emgs/projects/tmp/julia/julia-e66175b758/lib/julia/libtestexec.ji --output-o /opt/emgs/projects/tmp/julia/julia-e66175b758/lib/julia/libtestexec.o -J /opt/emgs/projects/tmp/julia/julia-e66175b758/lib/julia/inference.ji --startup-file=no sysimg.jl`, ProcessExited(1)) [1]
 in run at ./process.jl:493
 in anonymous at /opt/emgs/projects/tmp/julia/julia-e66175b758/share/julia/build_sysimg.jl:66
 in cd at ./file.jl:22
 in build_sysimg at /opt/emgs/projects/tmp/julia/julia-e66175b758/share/julia/build_sysimg.jl:27
 in include at ./boot.jl:254
 in include_from_node1 at ./loading.jl:200
 in process_options at ./client.jl:308
 in _start at ./client.jl:411
while loading /opt/emgs/projects/tmp/julia/julia-e66175b758/share/julia/build_sysimg.jl, in expression starting on line 175
ERROR: LoadError: failed process: Process(`/opt/emgs/projects/tmp/julia/julia-e66175b758/bin/julia /opt/emgs/projects/tmp/julia/julia-e66175b758/share/julia/build_sysimg.jl /opt/emgs/projects/tmp/julia/julia-e66175b758/lib/julia/libtestexec native /tmp/tmpjjUUzA/userimg.jl --force`, ProcessExited(1)) [1]
 in run at ./process.jl:493
 in build_executable at /opt/emgs/projects/tmp/julia/julia-e66175b758/share/julia/build_executable.jl:109
 in build_executable at /opt/emgs/projects/tmp/julia/julia-e66175b758/share/julia/build_executable.jl:58
 in include at ./boot.jl:254
 in include_from_node1 at ./loading.jl:200
 in process_options at ./client.jl:308
 in _start at ./client.jl:411
while loading /opt/emgs/projects/tmp/julia/julia-e66175b758/share/julia/build_executable.jl, in expression starting on line 277

@vtjnash
Copy link
Member

vtjnash commented Aug 7, 2015

It looks like you are executing your main function during compilation. However, STDOUT isn't created during compile time, it is created during runtime. if you delete that call, does it work? am i missing something else from this thread?

@akaFalsh
Copy link
Author

Checking out the last version and everything works. Thanks!

@StefanKarpinski
Copy link
Member

Delete the line that calls main() – you are trying to run your program while building it.

@joaquimg
Copy link
Contributor

Is there any way to compile stadalone .exe files in julia version 0.3?

@tkelman
Copy link
Contributor

tkelman commented Aug 22, 2015

If by standalone you mean everything statically linked into a single file, then that might be theoretically possible (though difficult) in 0.4 but not 0.3 since there's still a separate system image there. If you don't mind packaging multiple files together then the process in build_executable.jl is probably the best thing we're going to get on 0.3.

@musm
Copy link
Contributor

musm commented Oct 13, 2015

Is building a binary supposed to work on the master branch? I just tried to build a file called test.jl, in a directory where I cloned git clone git://github.com/JuliaLang/julia.git

function  main()
println("If this works it would be a miracle")
end

to no avail using julia julia/contrib/build_executable.jl testexec ./test.jl --force
FYI

julia> versioninfo()
Julia Version 0.5.0-dev+429
Commit f71e449 (2015-09-29 09:47 UTC)
Platform Info:
  System: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3
$ julia julia/contrib/build_executable.jl testexec ./test.jl --force > log
WARNING: `require` is deprecated, use `using` or `import` instead
 in depwarn at deprecated.jl:73
 [inlined code] from deprecated.jl:694
 in require at no file:0
 in find_system_linker at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:103
 in anonymous at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:29
 in cd at file.jl:32
 in build_sysimg at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:27
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl, in expression starting on line 175
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_linker at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:103
 in anonymous at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:29
 in cd at file.jl:32
 in build_sysimg at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:27
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 201
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_linker at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:103
 in anonymous at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:29
 in cd at file.jl:32
 in build_sysimg at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:27
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 201
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_linker at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:103
 in anonymous at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:29
 in cd at file.jl:32
 in build_sysimg at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:27
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 201
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_linker at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:103
 in anonymous at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:29
 in cd at file.jl:32
 in build_sysimg at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:27
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 204
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_linker at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:103
 in anonymous at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:29
 in cd at file.jl:32
 in build_sysimg at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:27
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 257
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_linker at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:103
 in anonymous at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:29
 in cd at file.jl:32
 in build_sysimg at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:27
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 272
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_linker at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:103
 in anonymous at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:29
 in cd at file.jl:32
 in build_sysimg at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:27
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 287
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_linker at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:103
 in anonymous at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:29
 in cd at file.jl:32
 in build_sysimg at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:27
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 338
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_linker at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:103
 in anonymous at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:29
 in cd at file.jl:32
 in build_sysimg at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:27
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 369
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_linker at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:103
 in anonymous at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:29
 in cd at file.jl:32
 in build_sysimg at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:27
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 369
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_linker at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:103
 in anonymous at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:29
 in cd at file.jl:32
 in build_sysimg at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:27
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 369
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_linker at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:103
 in anonymous at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:29
 in cd at file.jl:32
 in build_sysimg at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_sysimg.jl:27
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 396
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
INFO: Building inference0.o...
INFO: Building inference.o...
INFO: Building sys.o...
INFO: Linking sys.dll
INFO: System image successfully built at C:\Julia\Julia-0.5.0-dev\bin\libtestexec.dll
WARNING: Building sys.dll on Windows against LLVM < 3.5.0 can cause incorrect backtraces! Delete generated sys.dll to avoid these problems
INFO: To run Julia with this image loaded, run: julia -J C:\Julia\Julia-0.5.0-dev\bin\libtestexec.dll
WARNING: `require` is deprecated, use `using` or `import` instead
 in depwarn at deprecated.jl:73
 [inlined code] from deprecated.jl:694
 in require at no file:0
 in find_system_gcc at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:241
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:112
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:58
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl, in expression starting on line 277
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_gcc at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:241
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:112
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:58
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 201
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_gcc at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:241
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:112
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:58
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 201
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_gcc at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:241
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:112
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:58
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 201
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_gcc at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:241
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:112
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:58
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 204
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_gcc at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:241
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:112
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:58
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 257
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_gcc at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:241
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:112
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:58
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 272
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_gcc at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:241
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:112
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:58
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 287
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_gcc at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:241
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:112
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:58
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 338
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Base.String is deprecated, use AbstractString instead.
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_gcc at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:241
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:112
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:58
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 369
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_gcc at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:241
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:112
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:58
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 369
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_gcc at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:241
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:112
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:58
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 369
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
 [inlined code] from deprecated.jl:709
 in require at no file:707
 in find_system_gcc at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:241
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:112
 in build_executable at C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl:58
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in process_options at client.jl:275
 in _start at client.jl:375
while loading C:\Users\mmoh\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 396
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint16 is deprecated, use UInt16 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
C:\Users\mmoh\AppData\Local\Temp\jul80F0.tmp\start_func.c: In function 'main':
C:\Users\mmoh\AppData\Local\Temp\jul80F0.tmp\start_func.c:19:5: error: too few arguments to function 'jl_atexit_hook'
     jl_atexit_hook();
     ^
In file included from C:\Users\mmoh\AppData\Local\Temp\jul80F0.tmp\start_func.c:1:0:
C:\Julia\Julia-0.5.0-dev\include\julia/julia.h:1192:16: note: declared here
 DLLEXPORT void jl_atexit_hook(int status);
                ^
ERROR: LoadError: failed process: Process(setenv(`'C:\Users\mmoh\.julia\v0.5\WinRPM\deps\usr\x86_64-w64-mingw32\sys-root\mingw\bin\gcc.exe' -g -Wl,--no-as-needed -D_WIN32_WINNT=0x0502 '-IC:\Julia\Julia-0.5.0-dev\include\julia' '-IC:\Julia\src' '-IC:\Julia\src/support' '-IC:\Julia\usr/include' '-IC:\Users\mmoh\.julia\v0.5\WinRPM\deps\usr\x86_64-w64-mingw32\sys-root\mingw\include' 'C:\Users\mmoh\AppData\Local\Temp\jul80F0.tmp\start_func.c' -o 'C:\Julia\Julia-0.5.0-dev\bin\testexec.exe' '-Wl,-rpath,C:\Julia\Julia-0.5.0-dev\bin' '-LC:\Julia\Julia-0.5.0-dev\bin' -ljulia -ltestexec`,Union{ASCIIString,UTF8String}["=::=::\\","ALLUSERSPROFILE=C:\\ProgramData","ANSICON=97x1000 (97x50)","ANSICON_DEF=7","APPDATA=C:\\Users\\mmoh\\AppData\\Roaming","CommonProgramFiles=C:\\Program Files\\Common Files","CommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files","CommonProgramW6432=C:\\Program Files\\Common Files","COMPUTERNAME=mmoh-LAPTOP","ComSpec=C:\\WINDOWS\\system32\\cmd.exe","ConEmuANSI=ON","ConEmuAnsiLog=","ConEmuArgs=","ConEmuBackHWND=0x002800D8","ConEmuBaseDir=C:\\Program Files\\ConEmu\\ConEmu","ConEmuBuild=150913","ConEmuConfig=","ConEmuDir=C:\\Program Files\\ConEmu","ConEmuDrawHWND=0x0034061A","ConEmuDrive=C:","ConEmuHooks=Enabled","ConEmuHWND=0x0049068A","ConEmuPID=9772","ConEmuServerPID=6512","ConEmuWorkDir=C:\\Users\\mmoh","ConEmuWorkDrive=C:","DNX_HOME=%USERPROFILE%\\.dnx","FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer","FPS_BROWSER_USER_PROFILE_STRING=Default","FP_NO_HOST_CHECK=NO","GYP_MSVS_VERSION=2015","HOME=C:\\Users\\mmoh","HOMEDRIVE=C:","HOMEPATH=\\Users\\mmoh","LOCALAPPDATA=C:\\Users\\mmoh\\AppData\\Local","LOGONSERVER=\\\\MicrosoftAccount","NUMBER_OF_PROCESSORS=4","OPENBLAS_MAIN_FREE=1","OS=Windows_NT","Path=C:\\Julia\\Julia-0.5.0-dev\\bin;C:\\Julia\\Julia-0.5.0-dev\\bin\\..\\Git\\bin;C:\\Program Files\\ConEmu;C:\\Program Files\\ConEmu\\ConEmu;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C:\\Program Files\\Microsoft SQL Server\\120\\Tools\\Binn\\;C:\\WINDOWS\\system32\\config\\systemprofile\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\CMake\\bin;C:\\Program Files (x86)\\Skype\\Phone\\;C:\\Program Files (x86)\\PharosSystems\\Core;C:\\Program Files\\MATLAB\\R2015b\\runtime\\win64;C:\\Program Files\\MATLAB\\R2015b\\bin;C:\\Program Files\\MATLAB\\R2015b\\polyspace\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files (x86)\\SumatraPDF;C:\\Program Files\\ImageMagick-6.9.1-Q16;C:\\Program Files (x86)\\Bitvise SSH Client;C:\\Program Files (x86)\\Cuminas\\Document Express DjVu Plug-in\\;C:\\Anaconda3;C:\\Anaconda3\\Scripts;C:\\Program Files\\nodejs\\;C:\\texlive\\2015\\bin\\win32;C:\\Julia\\Julia-0.5.0-dev\\bin;C:\\Users\\mmoh\\AppData\\Local\\atom\\bin;C:\\Program Files\\Sublime Text 3;C:\\Program Files (x86)\\Pandoc\\;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Program Files\\Java\\jdk1.8.0_45\\bin;C:\\Users\\mmoh\\.dnx\\bin;C:\\Program Files\\nodejs;C:\\Users\\mmoh\\AppData\\Roaming\\npm;C:\\Hugo\\hugo-0.14;C:\\Program Files\\ZeroMQ 4.0.4\\bin;C:\\Program Files (x86)\\Microsoft VS Code\\bin;C:\\Users\\mmoh\\.julia\\v0.5\\WinRPM\\deps\\usr\\x86_64-w64-mingw32\\sys-root\\mingw\\bin","PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL","PROCESSOR_ARCHITECTURE=AMD64","PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 69 Stepping 1, GenuineIntel","PROCESSOR_LEVEL=6","PROCESSOR_REVISION=4501","ProgramData=C:\\ProgramData","ProgramFiles=C:\\Program Files","ProgramFiles(x86)=C:\\Program Files (x86)","ProgramW6432=C:\\Program Files","PSModulePath=C:\\Users\\mmoh\\Documents\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\PowerShell Community Extensions\\Pscx3\\;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules\\","PUBLIC=C:\\Users\\Public","SESSIONNAME=Console","SSH_AGENT_PID=2328","SSH_AUTH_SOCK=/tmp/ssh-wIcN6jumvUZX/agent.6896","SystemDrive=C:","SystemRoot=C:\\WINDOWS","TEMP=C:\\Users\\mmoh\\AppData\\Local\\Temp","TERM=cygwin","TMP=C:\\Users\\mmoh\\AppData\\Local\\Temp","USERDOMAIN=mmoh-LAPTOP","USERDOMAIN_ROAMINGPROFILE=mmoh-LAPTOP","USERNAME=mmoh","USERPROFILE=C:\\Users\\mmoh","VS140COMNTOOLS=C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\","windir=C:\\WINDOWS"]), ProcessExited(1)) [1]
 in run at process.jl:531
while loading C:\Users\mmoh\julia_test\test_binary\julia\contrib\build_executable.jl, in expression starting on line 277

@tkelman
Copy link
Contributor

tkelman commented Oct 13, 2015

to no avail

And the error message was?

@musm
Copy link
Contributor

musm commented Oct 13, 2015

Ahh sorry I updated the comment.

@tkelman
Copy link
Contributor

tkelman commented Oct 13, 2015

Looks like jl_atexit_hook was changed to take an exit code in 0ab5f86, but none of

contrib/build_executable.jl:224:            jl_atexit_hook();
doc/devdocs/eval.rst:55:#. Just before exiting, :c:func:`main` calls `jl_atexit_hook() <https://github.com/JuliaLang/julia/blob/master/src/init.c>`_.
doc/devdocs/init.rst:238:jl_atexit_hook()
doc/devdocs/init.rst:241::c:func:`main` calls `jl_atexit_hook()
doc/manual/embedding.rst:32:      jl_atexit_hook();
doc/manual/embedding.rst:46:Before the program terminates, it is strongly recommended to call ``jl_atexit_hook``.  The above example program calls this before returning from ``main``.
doc/manual/embedding.rst:76:     jl_atexit_hook();
examples/embedding.c:102:    jl_atexit_hook();

were updated accordingly.

@dhoegh
Copy link
Contributor

dhoegh commented Oct 15, 2015

@akaFalsh I have over the past days moved and updated build_executable to https://github.com/dhoegh/BuildExecutable.jl could you give the package a test. It passes tests on both Ubuntu and Windows.

@musm
Copy link
Contributor

musm commented Oct 15, 2015

@dhoegh Thank you it works on Windows! great package.

Is there a way to only include necessary dlls. Currently it includes all of them resulting in 225MB for a hello world executable. Also load times of executables are rather slow

@dhoegh
Copy link
Contributor

dhoegh commented Oct 15, 2015

You can safely delete libjulia-debug.dll. For maximum portability between multiple computer I would recommend build_executable(exename, script, targetdir, "core2") instead of build_executable(exename, script, targetdir, "native") to support older instruction sets.

BTW I'am merely standing on top of a lot of other peoples great work.

@joaquimg
Copy link
Contributor

I am on Windows, julia 0.4.0, trying to compile the program on test.jl:

function main()
x=1
end

with: build_executable("test", "test.jl", pwd()*"\test_dir", "core2")

it generates all files and returns zero but when I run the .exe I get:

Please submit a bug report with steps to reproduce this fault, and any
error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x0 -- unknown function (ip:
0000000000000000)
unknown function (ip: 0000000000000000)

2015-10-15 16:42 GMT-03:00 Daniel Høegh [email protected]:

You can safely delete libjulia-debug.dll. For maximum portability between
multiple computer I would recommend build_executable(exename, script,
targetdir, "core2") instead of build_executable(exename, script,
targetdir, "native") to support older instruction sets.


Reply to this email directly or view it on GitHub
#11816 (comment).

@dhoegh
Copy link
Contributor

dhoegh commented Oct 16, 2015

Could you try build_executable("test", "test.jl", pwd()*"\\test_dir", "native", force=true).

@joaquimg
Copy link
Contributor

I just tried the new code you suggested, but i still have the exact same problem.

@dhoegh
Copy link
Contributor

dhoegh commented Oct 16, 2015

What is your versioninfo()? Could you try to execute test-debug.exe and see if it returns more information?

@joaquimg
Copy link
Contributor

My version info:

julia> versioninfo()
Julia Version 0.4.0
Commit 0ff703b* (2015-10-08 06:20 UTC)
Platform Info:
  System: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Prescott)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

test-debug.exe gave the exact same output.

@vtjnash
Copy link
Member

vtjnash commented Feb 2, 2016

build_executable has migrated to https://github.com/dhoegh/BuildExecutable.jl

@vtjnash vtjnash closed this as completed Feb 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants