Thanks Isiah,

I have seen that the errors I got resulted from not running the .bat script 
in julia/bin directory... After locating it there, the --build switch 
worked well.

But I have some more news. The (naive) .bat script I used is below. The 
script shall be located in julia/bin directory for correct working. 
After the script I report about the current status of rebuilding the sys.ji 
image with added modules...

@echo off
REM -- Script SHALL be located in julia /bin dir, near julia.exe
REM -- JULIA_DIR MUST be julia 0.3.0-rc1 base/install dir 
set JULIA_DIR=..

REM -- Define variables for the various files involved
REM -- sys files... original ... and backup copy
set sysjlori=%JULIA_DIR%\lib\julia\sys.ji  
set sysjlcopy=%JULIA_DIR%\lib\julia\sys.bak.ji  
REM -- userimg.jl shouldn't exist in the original distribution! It's created
set userimjl=%JULIA_DIR%\share\julia\base\userimg.jl
REM -- Build batch
set buildBatch=%JULIA_DIR%\bin\prepare-julia-env.bat

REM  -- Only backups the first time it runs so it really preserves...
REM      the original sys.jl from julia's binary distribution
if not exist %sysjlcopy% ( 
copy %sysjlori% %sysjlcopy% 
del %sysjlori%  
)

REM -- Echoes packages to be "compiled" for userimg.jl
REM -- The packages should already have been added to julia's system...
REM     by running 'Pkg.add()' in julia's REPL, e.g. like 
'Pkg.add("Winston")' 

REM  #######  USER DEFINITIONS #######

echo Base.require("Distributions.jl") > %userimjl%
echo Base.require("Optim.jl") >> %userimjl%
echo Base.require("DataFrames.jl") >> %userimjl%
REM echo Base.require("Gadfly.jl") >> %userimjl%
echo Base.require("Winston.jl")  >> %userimjl%

REM  #######  END USER DEFINITIONS #######
 
call %buildBatch%

Notice that I've commented the inclusion of the Gadfly module. This module 
triggered two errors (but didn't stop the process and a sys.ji image was 
created)

......
profile.jl
precompile.jl
LoadError("sysimg.jl",287,LoadError("E:\\math\\Julia-0.3.0-rc1\\share\\julia\\base\\userimg.jl",4,Lo
adError("C:\\Users\\JAugusto\\.julia\\v0.3\\Gadfly\\src\\Gadfly.jl",3,LoadError("C:\\Users\\JAugusto
\\.julia\\v0.3\\Compose\\src\\Compose.jl",45,LoadError("C:\\Users\\JAugusto\\.julia\\v0.3\\Compose\\
src\\table.jl",346,could not spawn `git 
'--work-tree=C:\Users\JAugusto\.julia\v0.3\JuMP' '--git-dir=
C:\Users\JAugusto\.julia\v0.3\JuMP\.git' rev-parse HEAD`: no such file or 
directory (ENOENT))))))
exports.jl
base.jl
........

.............
graphics.jl
profile.jl
precompile.jl
Warning: New definition
    
cat_aes_var!(AbstractArray{T,N},AbstractArray{U<:Union(DataType,Function),N}) 
at C:\Users\JAugus
to\.julia\v0.3\Gadfly\src\aesthetics.jl:262
is ambiguous with:
    
cat_aes_var!(AbstractArray{T<:Union(DataType,Function),N},AbstractArray{U,N}) 
at C:\Users\JAugus
to\.julia\v0.3\Gadfly\src\aesthetics.jl:257.
To fix, define
    
cat_aes_var!(AbstractArray{_<:Union(DataType,Function),N},AbstractArray{_<:Union(DataType,Functi
on),N})
before the new definition.
Warning: New definition
    
cat_aes_var!(AbstractArray{T,N},AbstractArray{U<:Union(DataType,Function),N}) 
at C:\Users\JAugus
to\.julia\v0.3\Gadfly\src\aesthetics.jl:262
is ambiguous with:
    cat_aes_var!(AbstractArray{T,N},AbstractArray{T,N}) at 
C:\Users\JAugusto\.julia\v0.3\Gadfly\src\
aesthetics.jl:249.
To fix, define
    
cat_aes_var!(AbstractArray{T,N},AbstractArray{_<:Union(DataType,Function),N})
before the new definition.

After removing Gadfly the sys.ji image was built without a glitch :-)

But the worst part was yet to come :-(
See what happens when running the new image of julia below...

First time only happens when using Winston (output slightly truncated, but 
errors are similar...)

C:\Users\JAugusto>julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" to list help topics
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.3.0-rc1 (2014-07-14 02:04 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ build
|__/                   |  x86_64-w64-mingw32

julia> using Winston
Please submit a bug report with steps to reproduce this fault, and any 
error messages that follow (i
n their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x6dba0fd7 -- 
jl_profile_is_running at ???:1840910295
jl_profile_is_running at ???:1840910295
jl_profile_is_running at ???:1840909971
jl_profile_is_running at ???:1840909971
.......................
jl_profile_is_running at ???:1840909971
jl_profile_is_running at ???:1840909223
jl_profile_is_running at ???:1840909210
jl_gc_collect at ???:1840912205
jl_gc_new_weakref at ???:1840915381
jl_array_grow_end at ???:1840861344
append! at array.jl:474
??? at ???:12959840
??? at ???:84503184
??? at ???:12960480
??? at ???:84503184
??? at ???:544320768
??? at ???:84503184
jl_match_method at ???:1840590031
??? at ???:544320768
??? at ???:12960144
_methods at reflection.jl:103
Please submit a bug report with steps to reproduce this fault, and any 
error messages that follow (i
n their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x6dba0fd7 -- 
jl_profile_is_running at ???:1840910295
_methods at reflection.jl:103
Please submit a bug report with steps to reproduce this fault, and any 
error messages that follow (i
n their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x6dba0fd7 -- 
jl_profile_is_running at ???:1840910295
_methods at reflection.jl:103
Please submit a bug report with steps to reproduce this fault, and any 
error messages that follow (i
n their entirety). Thanks.


Second time, it happens just after launching the REPL window:

C:\Users\JAugusto>julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" to list help topics
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.3.0-rc1 (2014-07-14 02:04 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ build
|__/                   |  x86_64-w64-mingw32

julia> Please submit a bug report with steps to reproduce this fault, and 
any error messages that f
llow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x6dba0fd7 -- 
jl_profile_is_running at ???:1840910295
jl_profile_is_running at ???:1840910295
jl_profile_is_running at ???:1840909971
jl_profile_is_running at ???:1840909971
jl_profile_is_running at ???:1840909971
.....................
jl_profile_is_running at ???:1840909223
jl_profile_is_running at ???:1840909210
jl_gc_collect at ???:1840912205
allocobj at ???:1840916005
jl_alloc_tuple at ???:1840824419
jlcall__uv_hook_alloc_buf;676 at ???:37702739
??? at ???:540770640
??? at ???:12971248
??? at ???:12970992
jl_trampoline at ???:1840617882
??? at ???:542795656
??? at ???:544546480
utf8proc_NFKC at ???:1844016070
utf8proc_NFKC at ???:1844024345
jl_apply_generic at ???:1840587164
wait_readbyte at stream.jl:308
??? at ???:102591680
??? at ???:542795656
jl_undefined_var_error at ???:1840614687
??? at ???:542795656
??? at ???:102591680
??? at ???:4
??? at ???:12971976
??? at ???:56500160
??? at ???:56500160
??? at ???:106210256
??? at ???:10
??? at ???:105263592
??? at ???:101708464
??? at ???:102591680
??? at ???:542795656
??? at ???:10
??? at ???:12972016
readuntil at stream.jl:715
jl_undefined_var_error at ???:1840614687
??? at ???:542795656
??? at ???:102591680
??? at ???:2
??? at ???:538883888
??? at ???:2
??? at ???:12972072
??? at ???:105263592
??? at ???:2
jl_pgcstack at ???:1854104592
??? at ???:12972176
readuntil at io.jl:153
??? at ???:538883936
ZdlPv at ???:1875744924
readuntil at stream.jl:715
Please submit a bug report with steps to reproduce this fault, and any 
error messages that follow (i
n their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x6dba0fd7 -- 
jl_profile_is_running at ???:1840910295
readuntil at stream.jl:715
jl_undefined_var_error at ???:1840614687
??? at ???:542795656
??? at ???:102591680
??? at ???:2
??? at ???:538883888
??? at ???:2
??? at ???:12972072
??? at ???:105263592
??? at ???:2
jl_pgcstack at ???:1854104592
??? at ???:12972176
readuntil at io.jl:153
??? at ???:538883936
ZdlPv at ???:1875744924
readuntil at io.jl:153
Please submit a bug report with steps to reproduce this fault, and any 
error messages that follow (i
n their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x6dba0fd7 -- 
jl_profile_is_running at ???:1840910295
readuntil at io.jl:153
??? at ???:538883936
ZdlPv at ???:1875744924
readuntil at Terminals.jl:185
??? at ???:55922416
??? at ???:543471360
??? at ???:540764448
??? at ???:12973328
??? at ???:2
??? at ???:12972384
??? at ???:106210256
??? at ???:12973328
??? at ???:12972304
jlcall_readuntil;662 at ???:37697022
??? at ???:2
??? at ???:12973328
??? at ???:2
??? at ???:101708464
??? at ???:12972448
jl_apply_generic at ???:1840587290
??? at ???:12973328
Please submit a bug report with steps to reproduce this fault, and any 
error messages that follow (i
n their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x6dba0fd7 -- 
jl_profile_is_running at ???:1840910295
??? at ???:12973328
??? at ???:2
??? at ???:101708464
??? at ???:12972448
jl_apply_generic at ???:1840587290
Please submit a bug report with steps to reproduce this fault, and any 
error messages that follow (i
n their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x6dba0fd7 -- 
jl_profile_is_running at ???:1840910295
jl_apply_generic at ???:1840587290
Please submit a bug report with steps to reproduce this fault, and any 
error messages that follow (i
n their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x6dba0fd7 -- 
jl_profile_is_running at ???:1840910295
jl_apply_generic at ???:1840587290
Please submit a bug report with steps to reproduce this fault, and any 
error messages that follow (i
n their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x6dba0fd7 -- 
jl_profile_is_running at ???:1840910295
jl_apply_generic at ???:1840587290
Please submit a bug report with steps to reproduce this fault, and any 
error messages that follow (i
n their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x6dba0fd7 -- 
jl_profile_is_running at ???:1840910295
jl_apply_generic at ???:1840587290
Please submit a bug report with steps to reproduce this fault, and any 
error messages that follow (i
n their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x6dba0fd7 -- 
jl_profile_is_running at ???:1840910295
jl_apply_generic at ???:1840587290
Please submit a bug report with steps to reproduce this fault, and any 
error messages that follow (i
n their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x6dba0fd7 -- 
jl_profile_is_running at ???:1840910295
jl_apply_generic at ???:1840587290
Please submit a bug report with steps to reproduce this fault, and any 
error messages that follow (i
n their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x6dba0fd7 -- 
jl_profile_is_running at ???:1840910295
jl_apply_generic at ???:1840587290

So I reverted to the original julia image :-(

Hope the bug reports be helpful. Sorry for being so verbose in the crash 
output. BTW, this was running in a AMD Piledriver architecture (don't know 
if it helps).
Also I don't know if it is a particular module who is triggering the 
errors, or if any of the modules.
I can try to redo the thing only with one module (e.g. DataFrames).

TIA

Jose




Reply via email to