Below is the result of the running in Julia with error:
julia> build_executable("Zela","Zela.jl","/Dada","native")
running: C:\julia\bin\julia C:\Users\1.julia\v0.4\BuildExecutable\src\build_sysimg.jl C:\julia\bin\libZela native C:\Users\1\AppData\Local\Temp\jul1069.tmp\userimg.jl --force
INFO: Building inference0.o...
C:\julia\bin\julia -C native --output-ji C:\julia\bin\inference0.ji --output-o C:\julia\bin\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...
C:\julia\bin\julia -C native --output-ji C:\julia\bin\inference.ji --output-o C:\julia\bin\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...
C:\julia\bin\julia -C native --output-ji C:\julia\bin\libZela.ji --output-o C:\julia\bin\libZela.o -J C:\julia\bin\inference.ji --startup-file=no sysimg.jl
exports.jl
essentials.jl
docs/bootstrap.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
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
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
markdown/Markdown.jl
docs/Docs.jl
deprecated.jl
require.jl
docs/helpdb.jl
docs/basedocs.jl
C:\julia\share\julia\base\precompile.jl
error during bootstrap:
LoadError(at "sysimg.jl" line 319: LoadError(at "C:\julia\share\julia\base\userimg.jl" line 1: LoadError(at "C:\julia\Zela.jl" line 1: Base.SystemError(prefix="opening file input.txt", errnum=2))))
jl_unprotect_stack at C:\julia\bin\libjulia.dll (unknown line)
jl_throw at C:\julia\bin\libjulia.dll (unknown line)
jl_throw_with_superfluous_argument at C:\julia\bin\libjulia.dll (unknown line)
open at iostream.jl:90
open at iostream.jl:99
jl_apply_generic at C:\julia\bin\libjulia.dll (unknown line)
jl_interpret_toplevel_expr at C:\julia\bin\libjulia.dll (unknown line)
jl_interpret_toplevel_thunk_with at C:\julia\bin\libjulia.dll (unknown line)
jl_interpret_toplevel_thunk_with at C:\julia\bin\libjulia.dll (unknown line)
jl_interpret_toplevel_expr_in at C:\julia\bin\libjulia.dll (unknown line)
jl_toplevel_eval_body at C:\julia\bin\libjulia.dll (unknown line)
jl_eval_with_compiler_p at C:\julia\bin\libjulia.dll (unknown line)
jl_parse_eval_all at C:\julia\bin\libjulia.dll (unknown line)
jlload at C:\julia\bin\libjulia.dll (unknown line)
include at boot.jl:261
jl_apply_generic at C:\julia\bin\libjulia.dll (unknown line)
include_from_node1 at loading.jl:304
jl_apply_generic at C:\julia\bin\libjulia.dll (unknown line)
jl_interpret_toplevel_expr at C:\julia\bin\libjulia.dll (unknown line)
jl_interpret_toplevel_thunk_with at C:\julia\bin\libjulia.dll (unknown line)
jl_eval_with_compiler_p at C:\julia\bin\libjulia.dll (unknown line)
jl_parse_eval_all at C:\julia\bin\libjulia.dll (unknown line)
jlload at C:\julia\bin\libjulia.dll (unknown line)
include at boot.jl:261
jl_apply_generic at C:\julia\bin\libjulia.dll (unknown line)
include_from_node1 at loading.jl:304
jl_apply_generic at C:\julia\bin\libjulia.dll (unknown line)
jl_interpret_toplevel_expr at C:\julia\bin\libjulia.dll (unknown line)
jl_interpret_toplevel_thunk_with at C:\julia\bin\libjulia.dll (unknown line)
jl_interpret_toplevel_expr_in at C:\julia\bin\libjulia.dll (unknown line)
jl_toplevel_eval_body at C:\julia\bin\libjulia.dll (unknown line)
jl_eval_with_compiler_p at C:\julia\bin\libjulia.dll (unknown line)
jl_parse_eval_all at C:\julia\bin\libjulia.dll (unknown line)
jl_load at C:\julia\bin\libjulia.dll (unknown line)
unknown function (ip: 00000000004015BE)
unknown function (ip: 0000000000401AE5)
unknown function (ip: 00000000004028AB)
unknown function (ip: 000000000040140C)
unknown function (ip: 000000000040153B)
BaseThreadInitThunk at C:\WINDOWS\system32\KERNEL32.DLL (unknown line)
RtlUserThreadStart at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
ERROR: LoadError: failed process: Process('C:\julia\bin\julia' -C native --output-ji 'C:\julia\bin\libZela.ji' --output-o 'C:\julia\bin\libZela.o' -J 'C:\julia\bin\inference.ji' --startup-file=no sysimg.jl, ProcessExited(1)) [1]
in run at process.jl:531
while loading C:\Users\1.julia\v0.4\BuildExecutable\src\build_sysimg.jl, in expression starting on line 187
ERROR: failed process: Process('C:\julia\bin\julia' 'C:\Users\1\.julia\v0.4\BuildExecutable\src\build_sysimg.jl' 'C:\julia\bin\libZela' native 'C:\Users\1\AppData\Local\Temp\jul1069.tmp\userimg.jl' --force, ProcessExited(1)) [1]
in run at process.jl:531
Hello, I encountered a issue when trying to build an executable from 'zela.jl'
zela.jl : " f = open("input.txt") lines = readlines(f) print(lines[2]) close(f) "
for a simple input.txt : " 100 11 12 "
Below is the result of the running in Julia with error:
julia> build_executable("Zela","Zela.jl","/Dada","native") running: C:\julia\bin\julia C:\Users\1.julia\v0.4\BuildExecutable\src\build_sysimg.jl C:\julia\bin\libZela native C:\Users\1\AppData\Local\Temp\jul1069.tmp\userimg.jl --force INFO: Building inference0.o... C:\julia\bin\julia -C native --output-ji C:\julia\bin\inference0.ji --output-o C:\julia\bin\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... C:\julia\bin\julia -C native --output-ji C:\julia\bin\inference.ji --output-o C:\julia\bin\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... C:\julia\bin\julia -C native --output-ji C:\julia\bin\libZela.ji --output-o C:\julia\bin\libZela.o -J C:\julia\bin\inference.ji --startup-file=no sysimg.jl exports.jl essentials.jl docs/bootstrap.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 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 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 markdown/Markdown.jl docs/Docs.jl deprecated.jl require.jl docs/helpdb.jl docs/basedocs.jl C:\julia\share\julia\base\precompile.jl error during bootstrap: LoadError(at "sysimg.jl" line 319: LoadError(at "C:\julia\share\julia\base\userimg.jl" line 1: LoadError(at "C:\julia\Zela.jl" line 1: Base.SystemError(prefix="opening file input.txt", errnum=2)))) jl_unprotect_stack at C:\julia\bin\libjulia.dll (unknown line) jl_throw at C:\julia\bin\libjulia.dll (unknown line) jl_throw_with_superfluous_argument at C:\julia\bin\libjulia.dll (unknown line) open at iostream.jl:90 open at iostream.jl:99 jl_apply_generic at C:\julia\bin\libjulia.dll (unknown line) jl_interpret_toplevel_expr at C:\julia\bin\libjulia.dll (unknown line) jl_interpret_toplevel_thunk_with at C:\julia\bin\libjulia.dll (unknown line) jl_interpret_toplevel_thunk_with at C:\julia\bin\libjulia.dll (unknown line) jl_interpret_toplevel_expr_in at C:\julia\bin\libjulia.dll (unknown line) jl_toplevel_eval_body at C:\julia\bin\libjulia.dll (unknown line) jl_eval_with_compiler_p at C:\julia\bin\libjulia.dll (unknown line) jl_parse_eval_all at C:\julia\bin\libjulia.dll (unknown line) jlload at C:\julia\bin\libjulia.dll (unknown line) include at boot.jl:261 jl_apply_generic at C:\julia\bin\libjulia.dll (unknown line) include_from_node1 at loading.jl:304 jl_apply_generic at C:\julia\bin\libjulia.dll (unknown line) jl_interpret_toplevel_expr at C:\julia\bin\libjulia.dll (unknown line) jl_interpret_toplevel_thunk_with at C:\julia\bin\libjulia.dll (unknown line) jl_eval_with_compiler_p at C:\julia\bin\libjulia.dll (unknown line) jl_parse_eval_all at C:\julia\bin\libjulia.dll (unknown line) jlload at C:\julia\bin\libjulia.dll (unknown line) include at boot.jl:261 jl_apply_generic at C:\julia\bin\libjulia.dll (unknown line) include_from_node1 at loading.jl:304 jl_apply_generic at C:\julia\bin\libjulia.dll (unknown line) jl_interpret_toplevel_expr at C:\julia\bin\libjulia.dll (unknown line) jl_interpret_toplevel_thunk_with at C:\julia\bin\libjulia.dll (unknown line) jl_interpret_toplevel_expr_in at C:\julia\bin\libjulia.dll (unknown line) jl_toplevel_eval_body at C:\julia\bin\libjulia.dll (unknown line) jl_eval_with_compiler_p at C:\julia\bin\libjulia.dll (unknown line) jl_parse_eval_all at C:\julia\bin\libjulia.dll (unknown line) jl_load at C:\julia\bin\libjulia.dll (unknown line) unknown function (ip: 00000000004015BE) unknown function (ip: 0000000000401AE5) unknown function (ip: 00000000004028AB) unknown function (ip: 000000000040140C) unknown function (ip: 000000000040153B) BaseThreadInitThunk at C:\WINDOWS\system32\KERNEL32.DLL (unknown line) RtlUserThreadStart at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
ERROR: LoadError: failed process: Process(
'C:\julia\bin\julia' -C native --output-ji 'C:\julia\bin\libZela.ji' --output-o 'C:\julia\bin\libZela.o' -J 'C:\julia\bin\inference.ji' --startup-file=no sysimg.jl
, ProcessExited(1)) [1] in run at process.jl:531 while loading C:\Users\1.julia\v0.4\BuildExecutable\src\build_sysimg.jl, in expression starting on line 187 ERROR: failed process: Process('C:\julia\bin\julia' 'C:\Users\1\.julia\v0.4\BuildExecutable\src\build_sysimg.jl' 'C:\julia\bin\libZela' native 'C:\Users\1\AppData\Local\Temp\jul1069.tmp\userimg.jl' --force
, ProcessExited(1)) [1] in run at process.jl:531