Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834152 - dev-lang/julia-1.7.1-r2 fails to compile: IOError: stream is closed or unusable
Summary: dev-lang/julia-1.7.1-r2 fails to compile: IOError: stream is closed or unusable
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-27 08:34 UTC by Agostino Sarubbo
Modified: 2022-03-17 16:24 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,577.50 KB, text/plain)
2022-02-27 08:34 UTC, Agostino Sarubbo
Details
build.log (build.log,541.05 KB, text/x-log)
2022-03-11 11:34 UTC, Christian
Details
emerge --info (emerge.info,20.80 KB, text/plain)
2022-03-11 11:35 UTC, Christian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-02-27 08:34:19 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-lang/julia-1.7.1-r2 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-02-27 08:34:22 UTC
Created attachment 765913 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-02-27 08:34:23 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


Generating REPL precompile statements... 26/36ERROR: LoadError: IOError: stream is closed or unusable
rm: cannot remove '/var/tmp/portage/dev-lang/julia-1.7.1-r2/work/julia-1.7.1/usr/manifest/SuiteSparse': No such file or directory
Comment 3 Christian 2022-03-11 11:34:48 UTC
Created attachment 766765 [details]
build.log

also with glibc
Comment 4 Christian 2022-03-11 11:35:24 UTC
Created attachment 766766 [details]
emerge --info
Comment 5 Maciej Barć gentoo-dev 2022-03-16 22:12:54 UTC
Same?:
https://github.com/JuliaLang/julia/issues/43249
Comment 6 Maciej Barć gentoo-dev 2022-03-16 22:29:00 UTC
Downgraded libgit2 to 1.3.0 and re-emerged Julia, works.
Seems to be locked onto that version.
Comment 7 Larry the Git Cow gentoo-dev 2022-03-17 09:06:39 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dbb267d2261560fd6eadad052b4c7020d28ccb5

commit 0dbb267d2261560fd6eadad052b4c7020d28ccb5
Author:     Maciej Barć <xgqt@gentoo.org>
AuthorDate: 2022-03-17 08:35:57 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2022-03-17 09:06:32 +0000

    dev-lang/julia: fix build with libgit >=1.4.0
    
    Another patch from Arch fixing libgit2 interface
    
    Closes: https://bugs.gentoo.org/834152
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 dev-lang/julia/files/julia-1.6.5-libgit-1.4.patch  | 43 ++++++++++++++++++++++
 .../{julia-1.6.5.ebuild => julia-1.6.5-r1.ebuild}  |  1 +
 ...julia-1.7.1-r2.ebuild => julia-1.7.1-r3.ebuild} |  1 +
 3 files changed, 45 insertions(+)
Comment 8 Christian 2022-03-17 10:20:10 UTC
Doesn't work for me. tried libgit2-1.3.0 and libgit2-1.4.0
Same error as before.
Also, the linked bug is similar but not exactly the same. Don't know if this is relevant, tough, since I don't have a clue about julia
Comment 9 Maciej Barć gentoo-dev 2022-03-17 10:24:20 UTC
> Generating REPL precompile statements... 26/36ERROR: LoadError: IOError: stream is closed or unusable

Christian: does it fail on step 26 for you too?
Comment 10 Christian 2022-03-17 10:28:52 UTC
yes:

Generating REPL precompile statements... 26/36ERROR: LoadError: IOError: stream is closed or unusable
Stacktrace:
 [1] check_open
   @ ./stream.jl:386 [inlined]
 [2] uv_write_async(s::Base.TTY, p::Ptr{UInt8}, n::UInt64)
   @ Base ./stream.jl:1018
 [3] uv_write(s::Base.TTY, p::Ptr{UInt8}, n::UInt64)
   @ Base ./stream.jl:981
 [4] unsafe_write(s::Base.TTY, p::Ptr{UInt8}, n::UInt64)
   @ Base ./stream.jl:1064
 [5] mktemp(fn::Main.anonymous.var"#2#6"{Set{String}, String, Base.DevNull}, parent::String)
   @ Base.Filesystem ./file.jl:722
 [6] eval(m::Module, e::Any)
   @ Core ./boot.jl:373
 [7] top-level scope
   @ /var/tmp/portage/dev-lang/julia-1.7.1-r3/work/julia-1.7.1/contrib/generate_precompile.jl:6
Comment 11 Maciej Barć gentoo-dev 2022-03-17 11:14:25 UTC
Looks like there might be some other library interface that needs patching then...
reopening.
Comment 12 Maciej Barć gentoo-dev 2022-03-17 13:14:28 UTC
Christian: Julia with net-misc/curl on 7.81.0 gives me this here error and on 7.82.0 hangs,
7.79.1 and 7.80.0 work correctly, could you try "=net-misc/curl-7.80.0"?

Referencing: https://bugs.gentoo.org/835499
Comment 13 Christian 2022-03-17 14:30:47 UTC
works with =net-misc/curl-7.80.0
thanks for investigating.

I didn't find a curl related bug upstream, I will create one.
can you add a <net-misc/curl-7.81.0 dependency to the ebuild?
Comment 14 Maciej Barć gentoo-dev 2022-03-17 14:35:28 UTC
> can add a <net-misc/curl-7.81.0 dependency to the ebuild?

Yes, that's what I wanted to do, I wanted to have a confirmation from either You or Ago.
Could you test if it hangs on "=net-misc/curl-7.82.0", then bug reported by Ago would be done too.
Comment 15 Christian 2022-03-17 15:10:00 UTC
yes, with net-misc/curl-7.82.0 it is hanging.
In the log, the last I can see is 
Generating REPL precompile statements... 25/36
which is one step earlier than before, but maybe that's just output buffering (?)
Comment 16 Maciej Barć gentoo-dev 2022-03-17 15:13:01 UTC
> Generating REPL precompile statements... 25/36
> which is one step earlier than before, but maybe that's just output buffering (?)

Possibly. Same for me.
Comment 17 Larry the Git Cow gentoo-dev 2022-03-17 16:18:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da91a1ed1a941d0e6cd8dd12298f31073df0bb87

commit da91a1ed1a941d0e6cd8dd12298f31073df0bb87
Author:     Maciej Barć <xgqt@gentoo.org>
AuthorDate: 2022-03-17 13:39:24 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2022-03-17 15:15:06 +0000

    dev-lang/julia: pin curl <7.81
    
    Closes: https://bugs.gentoo.org/834152
    Closes: https://bugs.gentoo.org/835499
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 dev-lang/julia/{julia-1.6.5-r1.ebuild => julia-1.6.5-r2.ebuild} | 2 +-
 dev-lang/julia/{julia-1.7.1-r3.ebuild => julia-1.7.1-r4.ebuild} | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 18 Christian 2022-03-17 16:24:29 UTC
https://github.com/JuliaLang/julia/issues/44657
for curl issue