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

Try to fix nghttp2 symbol lookup error #151

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions utils/libtrixi-init-julia
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ echo "Install dependencies for configuration..."
JULIA_DEPOT_PATH="$julia_depot" JULIA_PKG_PRECOMPILE_AUTO=0 \
$julia_exec --project=. \
-e "
using Libdl
dlopen(\"libnghttp2\", RTLD_LAZY|RTLD_DEEPBIND|RTLD_GLOBAL)
using Pkg
Pkg.add([\"Preferences\", \"UUIDs\", \"MPIPreferences\", \"T8code\", \
\"P4est\", \"HDF5\", \"MPI\"])"
Expand Down Expand Up @@ -339,7 +341,11 @@ echo
echo "Install LibTrixi.jl..."
JULIA_DEPOT_PATH="$julia_depot" JULIA_PKG_PRECOMPILE_AUTO=0 \
$julia_exec --project=. \
-e "using Pkg; Pkg.develop(path=\"$libtrixi_jl_path\")"
-e "
using Libdl
dlopen(\"libnghttp2\", RTLD_LAZY|RTLD_DEEPBIND|RTLD_GLOBAL)
using Pkg
Pkg.develop(path=\"$libtrixi_jl_path\")"
[ $? -eq 0 ] || die "could not install LibTrixi.jl"
echo

Expand All @@ -348,6 +354,8 @@ echo "Install Trixi.jl and OrdinaryDiffEq.jl..."
JULIA_DEPOT_PATH="$julia_depot" JULIA_PKG_PRECOMPILE_AUTO=0 \
$julia_exec --project=. \
-e "
using Libdl
dlopen(\"libnghttp2\", RTLD_LAZY|RTLD_DEEPBIND|RTLD_GLOBAL)
using Pkg
Pkg.add([\"Trixi\", \"OrdinaryDiffEq\"])
"
Expand All @@ -359,7 +367,13 @@ if [ $SKIP_PRECOMPILE -ne 1 ]; then
echo "Precompile all packages ..."
JULIA_DEPOT_PATH="$julia_depot" JULIA_PKG_PRECOMPILE_AUTO=0 \
$julia_exec --project=. \
-e "using Pkg; Pkg.precompile(strict=true)"
-e "
using Libdl
dlopen(\"libnghttp2\", RTLD_LAZY|RTLD_DEEPBIND|RTLD_GLOBAL)
using Pkg
Pkg.Artifacts.download_artifact(Base.SHA1(\"88a5cf3dbd12839199aa9d803b9cd91bba4feb8c\"),
\"https://github.com/JuliaBinaryWrappers/MKL_jll.jl/releases/download/MKL-v2024.0.0+0/MKL.v2024.0.0.x86_64-linux-gnu.tar.gz\")
Pkg.precompile(strict=true)"
[ $? -eq 0 ] || die "could not precompile packages"
echo
fi
Expand Down
Loading