Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ipopt fails tests on 1.5.3 #242

Closed
odow opened this issue Nov 22, 2020 · 9 comments
Closed

Ipopt fails tests on 1.5.3 #242

odow opened this issue Nov 22, 2020 · 9 comments

Comments

@odow
Copy link
Member

odow commented Nov 22, 2020

My local machine (Mac) had 1.5.0 and tests were passing. Then when I ran ] up I got

(base) oscar@Oscars-MBP Ipopt % ~/julia --project=.
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.5.0 (2020-08-01)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(Ipopt) pkg> up
   Updating registry at `~/.julia/registries/General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
ERROR: ArgumentError: Unsupported architecture 'aarch64' for macOS
Stacktrace:
 [1] MacOS at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/BinaryPlatforms.jl:144 [inlined]
 [2] unpack_platform(::Dict{String,Any}, ::String, ::String) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Artifacts.jl:429
 [3] (::Pkg.Artifacts.var"#21#22"{String,String})(::Dict{String,Any}) at ./none:0
 [4] iterate at ./generator.jl:47 [inlined]
 [5] Dict{Pkg.BinaryPlatforms.Platform,Dict{String,Any}}(::Base.Generator{Array{Dict{String,Any},1},Pkg.Artifacts.var"#21#22"{String,String}}) at ./dict.jl:102
 [6] artifact_meta(::String, ::Dict{String,Any}, ::String; platform::Pkg.BinaryPlatforms.Platform) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Artifacts.jl:553
 [7] ensure_all_artifacts_installed(::String; platform::Pkg.BinaryPlatforms.Platform, pkg_uuid::Nothing, include_lazy::Bool, verbose::Bool, quiet_download::Bool) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Artifacts.jl:951
 [8] download_artifacts(::Pkg.Types.Context, ::Array{String,1}; platform::Pkg.BinaryPlatforms.MacOS, verbose::Bool) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:656
 [9] download_artifacts(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; platform::Pkg.BinaryPlatforms.MacOS, verbose::Bool) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:635
 [10] download_artifacts(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:634
 [11] up(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Pkg.Types.UpgradeLevel) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:1218
 [12] up(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; level::Pkg.Types.UpgradeLevel, mode::Pkg.Types.PackageMode, update_registry::Bool, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:246
 [13] up at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:222 [inlined]
 [14] #up#37 at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:67 [inlined]
 [15] up(::Array{Pkg.Types.PackageSpec,1}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:67
 [16] do_cmd!(::Pkg.REPLMode.Command, ::REPL.LineEditREPL) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/REPLMode/REPLMode.jl:404
 [17] do_cmd(::REPL.LineEditREPL, ::String; do_rethrow::Bool) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/REPLMode/REPLMode.jl:382
 [18] do_cmd at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/REPLMode/REPLMode.jl:377 [inlined]
 [19] (::Pkg.REPLMode.var"#24#27"{REPL.LineEditREPL,REPL.LineEdit.Prompt})(::REPL.LineEdit.MIState, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/REPLMode/REPLMode.jl:546
 [20] #invokelatest#1 at ./essentials.jl:710 [inlined]
 [21] invokelatest at ./essentials.jl:709 [inlined]
 [22] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/REPL/src/LineEdit.jl:2355
 [23] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:1143
 [24] (::REPL.var"#38#42"{REPL.LineEditREPL,REPL.REPLBackendRef})() at ./task.jl:356

I updated to 1.5.3, but now the tests fail:
https://github.com/jump-dev/Ipopt.jl/runs/1434251825?check_suite_focus=true#step:6:130

I guess something is wrong with a binary dependency.

@odow
Copy link
Member Author

odow commented Nov 22, 2020

#243 suggests that the issue is with MUMPS.

@dpo
Copy link
Contributor

dpo commented Nov 22, 2020

ERROR: ArgumentError: Unsupported architecture 'aarch64' for macOS

What does that even mean? Maybe @MoseGiordano will know.

@odow
Copy link
Member Author

odow commented Nov 22, 2020

What does that even mean?

No idea. But I'm not the only one: https://discourse.julialang.org/t/error-argumenterror-unsupported-architecture-aarch64-for-macos/49512

I've pinned Ipopt_jll: JuliaPackaging/Yggdrasil#2162

cc @giordano

@dpo
Copy link
Contributor

dpo commented Nov 22, 2020

Strangely, I don't get the BinaryBuilder error on my Mac (macOS 10.15.7, Julia 1.5.3, MUMPS_seq_jll 5.3.5, Ipopt_jll 3.13.2, Ipopt.jl 0.6.3) but I do get unit test failures.

@odow
Copy link
Member Author

odow commented Nov 22, 2020

The binary builder error was only on Julia 1.5.0. On 1.5.3 I get test failures. Pinning MUMPS_seq_jll to 5.2.1 fixes the test failures.

@dpo
Copy link
Contributor

dpo commented Nov 22, 2020

Could be a bug in MUMPS itself.

@dpo
Copy link
Contributor

dpo commented Nov 23, 2020

FWIW after painstakingly forcing Ipopt.jl to link against Homebrew Ipopt on macOS (which has MUMPS 5.3.5), all tests pass. So the issue isn't with MUMPS in itself, but rather with the jlls.

@odow
Copy link
Member Author

odow commented Nov 23, 2020

Interesting.

@giordano has been exceedingly helpful, so for the mean time we are about to have a new version of Ipopt_jll: JuliaRegistries/General#25145

Once that's in, we can take a deeper look at the MUMPS 5.3.5 issue.

@odow
Copy link
Member Author

odow commented Nov 23, 2020

Closing in favor of #246

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants