A quite complicate bootstrap process is running when compiling Julia.
So, there is quite a bit of functionality missing during the bootstrap.
Apparently one of them is STDOUT, thus the error

> UndefVarError(var=:STDOUT)))

Search the list for some tips and tricks on how to debug Julia itself.
Although, easiest (if possible) is to develop new functionality as a
package and only once it's working add it to base.

On Thu, 2015-03-19 at 19:53, Julia User <[email protected]> wrote:
> I added a print statement to a function in Base.string.jl
>
> something like:
>
> function searchindex(s::ByteString, t::ByteString, i::Integer=1)
>     println("Line 305")
>     if length(t) == 1
>         search(s, t[1], i)
>     else
>         searchindex(s.data, t.data, i)
>     end
> end
>
>
>
> When I recompile julia I get an Error: Is that suppose to happen ?
>
>     CC ui/repl.o
>     LINK usr/bin/julia
>     JULIA usr/lib/julia/sys0.o
> exports.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
> rounding.jl
> float.jl
> complex.jl
> rational.jl
> abstractarray.jl
> subarray.jl
> array.jl
> subarray2.jl
> functors.jl
> bitarray.jl
> intset.jl
> dict.jl
> set.jl
> hashing.jl
> iterator.jl
> simdloop.jl
> reduce.jl
> inference.jl
> osutils.jl
> char.jl
> ascii.jl
> utf8.jl
> utf16.jl
> utf32.jl
> iobuffer.jl
> string.jl
> utf8proc.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
> 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
> serialize.jl
> multi.jl
> managers.jl
> loading.jl
> poll.jl
> mmap.jl
> sharedarray.jl
> datafmt.jl
> deepcopy.jl
> interactiveutil.jl
> replutil.jl
> test.jl
> meta.jl
> i18n.jl
> help.jl
> Terminals.jl
> LineEdit.jl
> REPLCompletions.jl
> REPL.jl
> client.jl
> markdown/Markdown.jl
> docs.jl
> error during bootstrap:
> LoadError(at "sysimg.jl" line 233: LoadError(at "docs.jl" line 213: 
> UndefVarError(var=:STDOUT)))
> jl_throw at /julia_src/usr/bin/../lib/libjulia.so (unknown line)
> unknown function (ip: -296211804)
> unknown function (ip: -296145600)
> unknown function (ip: -296147390)
> unknown function (ip: -296144131)
> jl_load at /julia_src/usr/bin/../lib/libjulia.so (unknown line)
> include at boot.jl:250
> anonymous at sysimg.jl:151
> unknown function (ip: -296209515)
> unknown function (ip: -296215837)
> unknown function (ip: -296145600)
> unknown function (ip: -296147390)
> unknown function (ip: -296144131)
> jl_load at /julia_src/usr/bin/../lib/libjulia.so (unknown line)
> unknown function (ip: 4203722)
> unknown function (ip: 4203045)
> unknown function (ip: 4202790)
> __libc_start_main at /usr/lib/libc.so.6 (unknown line)
> unknown function (ip: 4199657)
> unknown function (ip: 0)
>
> Makefile:168: recipe for target '/julia_src/usr/lib/julia/sys0.o' failed
> make[1]: *** [/julia_src/usr/lib/julia/sys0.o] Error 1
> Makefile:82: recipe for target 'julia-sysimg-release' failed
> make: *** [julia-sysimg-release] Error 2
>
>
>
>
> Thanks

Reply via email to