I can reproduce this on both Linux and FreeBSD.
$ (g)make > /tmp/test.log
and got this on stderr:
JULIA usr/lib/julia/sys-o.a
fatal: error thrown and no exception handler available.
ErrorException("Task cannot be serialized")
rec_backtrace at /home/iblis/git/julia/src/stackwalk.c:94
record_backtrace at /home/iblis/git/julia/src/task.c:249
jl_throw at /home/iblis/git/julia/src/task.c:580
jl_error at /home/iblis/git/julia/src/rtutils.c:41
jl_serialize_value_ at /home/iblis/git/julia/src/staticdata.c:295
jl_serialize_value_ at /home/iblis/git/julia/src/staticdata.c:287
jl_serialize_value_ at /home/iblis/git/julia/src/julia.h:911 [inlined]
jl_serialize_module at /home/iblis/git/julia/src/staticdata.c:231 [inlined]
jl_serialize_value_ at /home/iblis/git/julia/src/staticdata.c:292
jl_serialize_value_ at /home/iblis/git/julia/src/staticdata.c:253 [inlined]
jl_serialize_value_ at /home/iblis/git/julia/src/staticdata.c:304
...
This issue make some buildtools unhappy, like poudriere, which serves with the
FreeBSD package binaries.
Thanks for reproducer. This is likely what makes Nanosoldier unhappy as well @ararslan. Will look at it.
Ah, just found the link about Nanosoldier on Slack.
ref https://github.com/JuliaLang/julia/pull/28857#issuecomment-415622883
I assume this occurs because the precompile generator thing relies on output redirection?
The output redirection for the precompilation generation process should be fully isolated from that though. But apparently not. Looking at it now.
Most helpful comment
Thanks for reproducer. This is likely what makes Nanosoldier unhappy as well @ararslan. Will look at it.