Skip to content

UndefVarError: closewrite not defined #969

Closed
@amontoison

Description

@amontoison

I tried to compile a package with BinaryBuilder.jl and I have an error that comes from HTTP.jl.

julia --color=yes build_tarballs.jl "aarch64-apple-darwin","x86_64-apple-darwin","x86_64-linux-gnu" --debug --verbose --deploy="amontoison/METIS4_jll.jl"

[ Info: Building and deploying version 400.0.301+1 to amontoison/METIS4_jll.jl
WARNING: both IOExtras and Base export "closewrite"; uses of it in module StreamRequest must be qualified
WARNING: both IOExtras and Base export "closewrite"; uses of it in module ConnectionPool must be qualified
ERROR: LoadError: type UndefVarError has no field msg
Stacktrace:
 [1] getproperty(x::UndefVarError, f::Symbol)
   @ Base ./Base.jl:38
 [2] github_auth(; allow_anonymous::Bool)
   @ BinaryBuilder.Wizard ~/.julia/packages/BinaryBuilder/0CUml/src/wizard/github.jl:13
 [3] init_jll_package(code_dir::String, deploy_repo::SubString{String})
   @ BinaryBuilder ~/.julia/packages/BinaryBuilder/0CUml/src/AutoBuild.jl:1022
 [4] build_tarballs(ARGS::Any, src_name::Any, src_version::Any, sources::Any, script::Any, platforms::Any, products::Any, dependencies::Any; julia_compat::String, kwargs::Base.Pairs{Symbol, V, Tuple{Vararg{Symbol, N}}, NamedTuple{names, T}} where {V, N, names, T<:Tuple{Vararg{Any, N}}})
   @ BinaryBuilder ~/.julia/packages/BinaryBuilder/0CUml/src/AutoBuild.jl:297
 [5] top-level scope
   @ ~/Bureau/git/Yggdrasil/M/METIS/METIS@4/build_tarballs.jl:70
in expression starting at /home/alexis/Bureau/git/Yggdrasil/M/METIS/METIS@4/build_tarballs.jl:70

caused by: UndefVarError: closewrite not defined
Stacktrace:
  [1] request(::Type{HTTP.StreamRequest.StreamLayer{Union{}}}, io::HTTP.ConnectionPool.Transaction{MbedTLS.SSLContext}, req::HTTP.Messages.Request, body::Vector{UInt8}; reached_redirect_limit::Bool, response_stream::Nothing, iofunction::Nothing, verbose::Int64, kw::Base.Pairs{Symbol, Integer, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:redirect, :status_exception, :idle_timeout), Tuple{Bool, Bool, Int64}}})
    @ HTTP.StreamRequest ~/.julia/packages/HTTP/IAI92/src/StreamRequest.jl:83
  [2] request(::Type{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}, url::HTTP.URIs.URI, req::HTTP.Messages.Request, body::Vector{UInt8}; proxy::Nothing, socket_type::Type, reuse_limit::Int64, kw::Base.Pairs{Symbol, Union{Nothing, Integer}, NTuple{5, Symbol}, NamedTuple{(:iofunction, :reached_redirect_limit, :redirect, :status_exception, :idle_timeout), Tuple{Nothing, Bool, Bool, Bool, Int64}}})
    @ HTTP.ConnectionRequest ~/.julia/packages/HTTP/IAI92/src/ConnectionRequest.jl:96
  [3] (::Base.var"#88#90"{Base.var"#88#89#91"{ExponentialBackOff, HTTP.RetryRequest.var"#2#3"{Bool, HTTP.Messages.Request}, typeof(HTTP.request)}})(::Type, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, Union{Nothing, Integer}, NTuple{5, Symbol}, NamedTuple{(:iofunction, :reached_redirect_limit, :redirect, :status_exception, :idle_timeout), Tuple{Nothing, Bool, Bool, Bool, Int64}}})
    @ Base ./error.jl:296
  [4] #request#1
    @ ~/.julia/packages/HTTP/IAI92/src/RetryRequest.jl:44 [inlined]
  [5] request(::Type{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}}, method::String, url::HTTP.URIs.URI, headers::Vector{Pair{SubString{String}, SubString{String}}}, body::Vector{UInt8}; http_version::VersionNumber, target::String, parent::Nothing, iofunction::Nothing, kw::Base.Pairs{Symbol, Integer, NTuple{4, Symbol}, NamedTuple{(:reached_redirect_limit, :redirect, :status_exception, :idle_timeout), Tuple{Bool, Bool, Bool, Int64}}})
    @ HTTP.MessageRequest ~/.julia/packages/HTTP/IAI92/src/MessageRequest.jl:51
  [6] request(::Type{HTTP.BasicAuthRequest.BasicAuthLayer{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}}}, method::String, url::HTTP.URIs.URI, headers::Vector{Pair{SubString{String}, SubString{String}}}, body::Vector{UInt8}; kw::Base.Pairs{Symbol, Integer, NTuple{4, Symbol}, NamedTuple{(:reached_redirect_limit, :redirect, :status_exception, :idle_timeout), Tuple{Bool, Bool, Bool, Int64}}})
    @ HTTP.BasicAuthRequest ~/.julia/packages/HTTP/IAI92/src/BasicAuthRequest.jl:28
  [7] request(::Type{HTTP.RedirectRequest.RedirectLayer{HTTP.BasicAuthRequest.BasicAuthLayer{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}}}}, method::String, url::HTTP.URIs.URI, headers::Vector{Pair{SubString{String}, SubString{String}}}, body::Vector{UInt8}; redirect_limit::Int64, forwardheaders::Bool, kw::Base.Pairs{Symbol, Integer, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:redirect, :status_exception, :idle_timeout), Tuple{Bool, Bool, Int64}}})
    @ HTTP.RedirectRequest ~/.julia/packages/HTTP/IAI92/src/RedirectRequest.jl:24
  [8] request(method::String, url::HTTP.URIs.URI, h::Dict{String, String}, b::Vector{UInt8}; headers::Dict{String, String}, body::Vector{UInt8}, query::Nothing, kw::Base.Pairs{Symbol, Integer, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:redirect, :status_exception, :idle_timeout), Tuple{Bool, Bool, Int64}}})
    @ HTTP ~/.julia/packages/HTTP/IAI92/src/HTTP.jl:314
  [9] #get#12
    @ ~/.julia/packages/HTTP/IAI92/src/HTTP.jl:391 [inlined]
 [10] github_request(api::GitHub.GitHubWebAPI, request_method::typeof(HTTP.get), endpoint::String; auth::GitHub.OAuth2, handle_error::Bool, headers::Dict{Any, Any}, params::Dict{Any, Any}, allowredirects::Bool)
    @ GitHub ~/.julia/packages/GitHub/ufNHa/src/utils/requests.jl:64
 [11] #gh_get#4
    @ ~/.julia/packages/GitHub/ufNHa/src/utils/requests.jl:72 [inlined]
 [12] #authenticate#28
    @ ~/.julia/packages/GitHub/ufNHa/src/utils/auth.jl:56 [inlined]
 [13] authenticate
    @ ~/.julia/packages/GitHub/ufNHa/src/utils/auth.jl:54 [inlined]
 [14] #authenticate#29
    @ ./none:0 [inlined]
 [15] authenticate
    @ ./none:0 [inlined]
 [16] github_auth(; allow_anonymous::Bool)
    @ BinaryBuilder.Wizard ~/.julia/packages/BinaryBuilder/0CUml/src/wizard/github.jl:11
 [17] init_jll_package(code_dir::String, deploy_repo::SubString{String})
    @ BinaryBuilder ~/.julia/packages/BinaryBuilder/0CUml/src/AutoBuild.jl:1022
 [18] build_tarballs(ARGS::Any, src_name::Any, src_version::Any, sources::Any, script::Any, platforms::Any, products::Any, dependencies::Any; julia_compat::String, kwargs::Base.Pairs{Symbol, V, Tuple{Vararg{Symbol, N}}, NamedTuple{names, T}} where {V, N, names, T<:Tuple{Vararg{Any, N}}})
    @ BinaryBuilder ~/.julia/packages/BinaryBuilder/0CUml/src/AutoBuild.jl:297
 [19] top-level scope
    @ ~/Bureau/git/Yggdrasil/M/METIS/METIS@4/build_tarballs.jl:70

caused by: EOFError: read end of file
Stacktrace:
  [1] read_to_buffer(t::HTTP.ConnectionPool.Transaction{MbedTLS.SSLContext}, sizehint::Int64)
    @ HTTP.ConnectionPool ~/.julia/packages/HTTP/IAI92/src/ConnectionPool.jl:252
  [2] readuntil(t::HTTP.ConnectionPool.Transaction{MbedTLS.SSLContext}, f::Function, sizehint::Int64)
    @ HTTP.ConnectionPool ~/.julia/packages/HTTP/IAI92/src/ConnectionPool.jl:271
  [3] readuntil
    @ ~/.julia/packages/HTTP/IAI92/src/ConnectionPool.jl:269 [inlined]
  [4] readheaders
    @ ~/.julia/packages/HTTP/IAI92/src/Messages.jl:471 [inlined]
  [5] startread(http::HTTP.Streams.Stream{HTTP.Messages.Response, HTTP.ConnectionPool.Transaction{MbedTLS.SSLContext}})
    @ HTTP.Streams ~/.julia/packages/HTTP/IAI92/src/Streams.jl:155
  [6] macro expansion
    @ ~/.julia/packages/HTTP/IAI92/src/StreamRequest.jl:67 [inlined]
  [7] macro expansion
    @ ./task.jl:454 [inlined]
  [8] request(::Type{HTTP.StreamRequest.StreamLayer{Union{}}}, io::HTTP.ConnectionPool.Transaction{MbedTLS.SSLContext}, req::HTTP.Messages.Request, body::Vector{UInt8}; reached_redirect_limit::Bool, response_stream::Nothing, iofunction::Nothing, verbose::Int64, kw::Base.Pairs{Symbol, Integer, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:redirect, :status_exception, :idle_timeout), Tuple{Bool, Bool, Int64}}})
    @ HTTP.StreamRequest ~/.julia/packages/HTTP/IAI92/src/StreamRequest.jl:57
  [9] request(::Type{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}, url::HTTP.URIs.URI, req::HTTP.Messages.Request, body::Vector{UInt8}; proxy::Nothing, socket_type::Type, reuse_limit::Int64, kw::Base.Pairs{Symbol, Union{Nothing, Integer}, NTuple{5, Symbol}, NamedTuple{(:iofunction, :reached_redirect_limit, :redirect, :status_exception, :idle_timeout), Tuple{Nothing, Bool, Bool, Bool, Int64}}})
    @ HTTP.ConnectionRequest ~/.julia/packages/HTTP/IAI92/src/ConnectionRequest.jl:96
 [10] (::Base.var"#88#90"{Base.var"#88#89#91"{ExponentialBackOff, HTTP.RetryRequest.var"#2#3"{Bool, HTTP.Messages.Request}, typeof(HTTP.request)}})(::Type, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, Union{Nothing, Integer}, NTuple{5, Symbol}, NamedTuple{(:iofunction, :reached_redirect_limit, :redirect, :status_exception, :idle_timeout), Tuple{Nothing, Bool, Bool, Bool, Int64}}})
    @ Base ./error.jl:296
 [11] #request#1
    @ ~/.julia/packages/HTTP/IAI92/src/RetryRequest.jl:44 [inlined]
 [12] request(::Type{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}}, method::String, url::HTTP.URIs.URI, headers::Vector{Pair{SubString{String}, SubString{String}}}, body::Vector{UInt8}; http_version::VersionNumber, target::String, parent::Nothing, iofunction::Nothing, kw::Base.Pairs{Symbol, Integer, NTuple{4, Symbol}, NamedTuple{(:reached_redirect_limit, :redirect, :status_exception, :idle_timeout), Tuple{Bool, Bool, Bool, Int64}}})
 [24] init_jll_package(code_dir::String, deploy_repo::SubString{String})
    @ BinaryBuilder ~/.julia/packages/BinaryBuilder/0CUml/src/AutoBuild.jl:1022
 [25] build_tarballs(ARGS::Any, src_name::Any, src_version::Any, sources::Any, script::Any, platforms::Any, products::Any, dependencies::Any; julia_compat::String, kwargs::Base.Pairs{Symbol, V, Tuple{Vararg{Symbol, N}}, NamedTuple{names, T}} where {V, N, names, T<:Tuple{Vararg{Any, N}}})
    @ BinaryBuilder ~/.julia/packages/BinaryBuilder/0CUml/src/AutoBuild.jl:297
 [26] top-level scope
    @ ~/Bureau/git/Yggdrasil/M/METIS/METIS@4/build_tarballs.jl:70
alexis@HP-Spectre:~/Bureau/git/Yggdrasil/M/METIS/METIS@4$ julia

Please specify the following versions when submitting a bug report:

  • Julia 1.8.3
  • HTTP.jl 0.8.19
  • MbedTLS.jl 1.1.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions