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

[musl] Crash (could not load library "libpcre2-8") when trying to run the Julia binary in the tester_musl64 CI job #42940

Closed
DilumAluthge opened this issue Nov 4, 2021 · 1 comment · Fixed by #42969
Labels
bug Indicates an unexpected problem or unintended behavior compiler:musl Support for musl linked binaries on linux instead of glibc regression Regression in behavior compared to a previous version

Comments

@DilumAluthge
Copy link
Member

DilumAluthge commented Nov 4, 2021

In the tester_musl64 CI job, when trying to run ./julia -e 'using InteractiveUtils; InteractiveUtils.versioninfo()' at the beginning of the job, the following error occurs.

Full log: https://buildkite.com/julialang/julia-master/builds/5491#ee577fe6-6856-4ef3-8e83-2bbd5481cf4c

fatal: error thrown and no exception handler available.
InitError(mod=:Sys, error=ErrorException("could not load library "libpcre2-8"
Error loading shared library libpcre2-8.so: No such file or directory"))
ijl_errorf at /cache/build/amdci5-0/julialang/julia-master/src/rtutils.c:77
ijl_load_dynamic_library at /cache/build/amdci5-0/julialang/julia-master/src/dlload.c:274
jl_get_library_ at /cache/build/amdci5-0/julialang/julia-master/src/runtime_ccall.cpp:48 [inlined]
jl_get_library_ at /cache/build/amdci5-0/julialang/julia-master/src/runtime_ccall.cpp:30
ijl_load_and_lookup at /cache/build/amdci5-0/julialang/julia-master/src/runtime_ccall.cpp:61
jlplt_pcre2_compile_8_32593 at /cache/build/amdci4-2/julialang/julia-master/julia-707c57c490/lib/julia/sys.so (unknown line)
compile at ./pcre.jl:151
compile at ./regex.jl:82
#occursin#452 at ./regex.jl:265 [inlined]
occursin at ./regex.jl:265 [inlined]
isdirpath at ./path.jl:117 [inlined]
normpath at ./path.jl:373
abspath at ./path.jl:430
abspath at ./path.jl:439 [inlined]
__init_build at ./sysinfo.jl:125
__init__ at ./sysinfo.jl:117
jfptr___init___22147 at /cache/build/amdci4-2/julialang/julia-master/julia-707c57c490/lib/julia/sys.so (unknown line)
_jl_invoke at /cache/build/amdci5-0/julialang/julia-master/src/gf.c:2256 [inlined]
ijl_apply_generic at /cache/build/amdci5-0/julialang/julia-master/src/gf.c:2438
jl_apply at /cache/build/amdci5-0/julialang/julia-master/src/julia.h:1773 [inlined]
jl_module_run_initializer at /cache/build/amdci5-0/julialang/julia-master/src/toplevel.c:73
_finish_julia_init at /cache/build/amdci5-0/julialang/julia-master/src/init.c:753
julia_init at /cache/build/amdci5-0/julialang/julia-master/src/init.c:687
jl_repl_entrypoint at /cache/build/amdci5-0/julialang/julia-master/src/jlapi.c:700
main at /cache/build/amdci5-0/julialang/julia-master/cli/loader_exe.c:59
unknown function (ip: 0x7f65dbf64a02)
🚨 Error: The command exited with status 1
@DilumAluthge DilumAluthge added bug Indicates an unexpected problem or unintended behavior compiler:musl Support for musl linked binaries on linux instead of glibc labels Nov 4, 2021
@DilumAluthge DilumAluthge changed the title [musl] Crash when trying to run the Julia binary in the tester_musl64 CI job [musl] Crash (could not load library "libpcre2-8") when trying to run the Julia binary in the tester_musl64 CI job Nov 4, 2021
@ararslan ararslan added the regression Regression in behavior compared to a previous version label Nov 4, 2021
@DilumAluthge
Copy link
Member Author

Introduced by #42919

ararslan added a commit that referenced this issue Nov 6, 2021
The change to RPATH setting for macOS seems to have improved the
situation for users on Monterey, but the other changes in #42919 that
affect other platforms seem to have caused regressions on musl Linux
(#42940) and FreeBSD (#42944). The easiest thing to do here is to keep
the changes from #42919 as they apply to macOS but revert the others.
staticfloat pushed a commit that referenced this issue Nov 6, 2021
* Partially revert #42919

The change to RPATH setting for macOS seems to have improved the
situation for users on Monterey, but the other changes in #42919 that
affect other platforms seem to have caused regressions on musl Linux
(#42940) and FreeBSD (#42944). The easiest thing to do here is to keep
the changes from #42919 as they apply to macOS but revert the others.

* Un-revert the `RPATH_LIB` definition
KristofferC pushed a commit that referenced this issue Nov 7, 2021
* Partially revert #42919

The change to RPATH setting for macOS seems to have improved the
situation for users on Monterey, but the other changes in #42919 that
affect other platforms seem to have caused regressions on musl Linux
(#42940) and FreeBSD (#42944). The easiest thing to do here is to keep
the changes from #42919 as they apply to macOS but revert the others.

* Un-revert the `RPATH_LIB` definition

(cherry picked from commit 653cad3)
LilithHafner pushed a commit to LilithHafner/julia that referenced this issue Feb 22, 2022
* Partially revert JuliaLang#42919

The change to RPATH setting for macOS seems to have improved the
situation for users on Monterey, but the other changes in JuliaLang#42919 that
affect other platforms seem to have caused regressions on musl Linux
(JuliaLang#42940) and FreeBSD (JuliaLang#42944). The easiest thing to do here is to keep
the changes from JuliaLang#42919 as they apply to macOS but revert the others.

* Un-revert the `RPATH_LIB` definition
LilithHafner pushed a commit to LilithHafner/julia that referenced this issue Mar 8, 2022
* Partially revert JuliaLang#42919

The change to RPATH setting for macOS seems to have improved the
situation for users on Monterey, but the other changes in JuliaLang#42919 that
affect other platforms seem to have caused regressions on musl Linux
(JuliaLang#42940) and FreeBSD (JuliaLang#42944). The easiest thing to do here is to keep
the changes from JuliaLang#42919 as they apply to macOS but revert the others.

* Un-revert the `RPATH_LIB` definition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior compiler:musl Support for musl linked binaries on linux instead of glibc regression Regression in behavior compared to a previous version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants