Created attachment 767381 [details] emerge --info Julia fails to build since it hangs after displaygin cd /var/tmp/portage/dev-lang/julia-1.7.1-r4/work/julia-1.7.1/base && if ! JULIA_BINDIR=/var/tmp/portage/dev-lang/julia-1.7.1-r4/work/julia-1.7.1/usr/bin \ WINEPATH="/var/tmp/portage/dev-lang/julia-1.7.1-r4/work/julia-1.7.1/usr/bin;$WINEPATH" \ /var/tmp/portage/dev-lang/julia-1.7.1-r4/work/julia-1.7.1/usr/bin/julia -O3 -C "native" --output-o \ /var/tmp/portage/dev-lang/julia-1.7.1-r4/work/julia-1.7.1/usr/lib/julia/sys-o.a.tmp \ --startup-file=no --warn-overwrite=yes --sysimage /var/tmp/portage/dev-lang/julia-1.7.1-r4/work/julia-1.7.1/usr/lib/julia/sys.ji \ /var/tmp/portage/dev-lang/julia-1.7.1-r4/work/julia-1.7.1/contrib/generate_precompile.jl 1; \ then echo '*** This error is usually fixed by running `make clean`. If the error persists, try `make cleanall`. ***'; false; fi Generating REPL precompile statements... 25/36
I just test the ebuild in a testing environment with 64 GB RAM There were plenty warnings and I also saw the "clean message" you described, but it compiled and installed fine. $ julia _ _ _ _(_)_ | Documentation: https://docs.julialang.org (_) | (_) (_) | _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 1.7.1 (2021-12-22) _/ |\__'_|_|_|\__'_| | |__/ | Please add the complete build.log as attachment as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
So far looks like https://bugs.gentoo.org/835499 and https://bugs.gentoo.org/834152#c15
I'm getting this hang for both julia-1.8.5-r2 and julia-1.9.4-r1 with the latter actually exiting rather than hanging (former).
REPL ───────────── 1.661949 seconds SharedArrays ───── 0.062650 seconds TOML ───────────── 0.028609 seconds Test ───────────── 0.146263 seconds LibCURL ────────── 0.157462 seconds Downloads ──────── 0.153421 seconds Pkg ────────────── 2.263574 seconds LazyArtifacts ──── 0.001024 seconds Stdlibs total ──── 15.899072 seconds Sysimage built. Summary: Base ──────── 12.983886 seconds 44.9519% Stdlibs ───── 15.899072 seconds 55.0447% Total ─────── 28.883934 seconds make[1]: Leaving directory '/var/tmp/portage/dev-lang/julia-1.9.4-r1/work/julia-1.9.4' make[1]: Entering directory '/var/tmp/portage/dev-lang/julia-1.9.4-r1/work/julia-1.9.4' Warning: git information unavailable; versioning information limited /var/tmp/portage/dev-lang/julia-1.9.4-r1/work/julia-1.9.4/contrib/normalize_triplet.py:117: SyntaxWarning: invalid escape sequence '\d' version_numbers = list(filter(lambda x: re.match("\d+\.\d+(\.\d+)?", x), sys.argv[2].split())) cd /var/tmp/portage/dev-lang/julia-1.9.4-r1/work/julia-1.9.4/base && if ! JULIA_BINDIR=/var/tmp/portage/dev-lang/julia-1.9.4-r1/work/julia-1.9.4/usr/bin WINEPATH="/var/tmp/portage/dev-lang/julia-1.9.4-r1/work/julia-1.9.4/usr/bin;$WINEPATH" JULIA_NUM_THREADS=1 /var/tmp/portage/dev-lang/julia-1.9.4-r1/work/julia-1.9.4/usr/bin/julia -O3 -C "native" --output-o /var/tmp/portage/dev-lang/julia-1.9.4-r1/work/julia-1.9.4/usr/lib/julia/sys-o.a.tmp --startup-file=no --warn-overwrite=yes --sysimage /var/tmp/portage/dev-lang/julia-1.9.4-r1/work/julia-1.9.4/usr/lib/julia/sys.ji /var/tmp/portage/dev-lang/julia-1.9.4-r1/work/julia-1.9.4/contrib/generate_precompile.jl 1; then echo '*** This error is usually fixed by running `make clean`. If the error persists, try `make cleanall`. ***'; false; fi Generating REPL precompile statements... 27/41ERROR: LoadError: IOError: stream is closed or unusable Stacktrace: [1] check_open @ ./stream.jl:388 [inlined] [2] uv_write_async(s::Base.TTY, p::Ptr{UInt8}, n::UInt64) @ Base ./stream.jl:1074 [3] uv_write(s::Base.TTY, p::Ptr{UInt8}, n::UInt64) @ Base ./stream.jl:1037 [4] unsafe_write(s::Base.TTY, p::Ptr{UInt8}, n::UInt64) @ Base ./stream.jl:1120 [5] write @ ./strings/io.jl:244 [inlined] [6] write @ ./io.jl:676 [inlined] [7] (::Main.anonymous.var"#2#6"{Set{String}, String, Base.DevNull})(precompile_file::String, precompile_file_h::IOStream) @ Main.anonymous /var/tmp/portage/dev-lang/julia-1.9.4-r1/work/julia-1.9.4/contrib/generate_precompile.jl:341 [8] mktemp(fn::Main.anonymous.var"#2#6"{Set{String}, String, Base.DevNull}, parent::String) @ Base.Filesystem ./file.jl:734 [9] mktemp @ ./file.jl:732 [inlined] [10] generate_precompile_statements() @ Main.anonymous /var/tmp/portage/dev-lang/julia-1.9.4-r1/work/julia-1.9.4/contrib/generate_precompile.jl:287 [11] top-level scope @ /var/tmp/portage/dev-lang/julia-1.9.4-r1/work/julia-1.9.4/contrib/generate_precompile.jl:416 [12] eval(m::Module, e::Any) @ Core ./boot.jl:370 [13] top-level scope @ /var/tmp/portage/dev-lang/julia-1.9.4-r1/work/julia-1.9.4/contrib/generate_precompile.jl:10 in expression starting at /var/tmp/portage/dev-lang/julia-1.9.4-r1/work/julia-1.9.4/contrib/generate_precompile.jl:7 *** This error is usually fixed by running `make clean`. If the error persists, try `make cleanall`. *** make[1]: *** [sysimage.mk:89: /var/tmp/portage/dev-lang/julia-1.9.4-r1/work/julia-1.9.4/usr/lib/julia/sys-o.a] Error 1 make[1]: Leaving directory '/var/tmp/portage/dev-lang/julia-1.9.4-r1/work/julia-1.9.4' make: *** [Makefile:90: julia-sysimg-release] Error 2 * ERROR: dev-lang/julia-1.9.4-r1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-lang/julia-1.9.4-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-lang/julia-1.9.4-r1::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-lang/julia-1.9.4-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/julia-1.9.4-r1/temp/environment'. * Working directory: '/var/tmp/portage/dev-lang/julia-1.9.4-r1/work/julia-1.9.4' * S: '/var/tmp/portage/dev-lang/julia-1.9.4-r1/work/julia-1.9.4' >>> Failed to emerge dev-lang/julia-1.9.4-r1, Log file: >>> '/var/tmp/portage/dev-lang/julia-1.9.4-r1/temp/build.log' * Messages for package sci-libs/openblas-0.3.29: * This software has a massive number of options that * are configurable and it is *impossible* for all of * those to fit inside any manageable ebuild. * The Gentoo provided package has enough to build * a fully optimized library for your targeted CPU. * You can set the CPU target using the environment * variable - OPENBLAS_TARGET or it will be detected * automatically from the target toolchain (supports * cross compilation toolchains). * You can control the maximum number of threads * using OPENBLAS_NTHREAD, default=64 and number of * parallel calls to allow before further calls wait * using OPENBLAS_NPARALLEL, default=8. * Messages for package dev-lang/julia-1.9.4-r1: * ERROR: dev-lang/julia-1.9.4-r1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-lang/julia-1.9.4-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-lang/julia-1.9.4-r1::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-lang/julia-1.9.4-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/julia-1.9.4-r1/temp/environment'. * Working directory: '/var/tmp/portage/dev-lang/julia-1.9.4-r1/work/julia-1.9.4' * S: '/var/tmp/portage/dev-lang/julia-1.9.4-r1/work/julia-1.9.4' * GNU info directory index is up-to-date. * After world updates, it is important to remove obsolete packages with * emerge --depclean. Refer to `man emerge` for more information.