PackageCompiler: could not load symbol "__bid32_from_string"

I’m trying to compile an application with PackageCompiler.create_app. While compiling the nonincremental system image, there’s an error:

⡆ [01m:14s] PackageCompiler: compiling nonincremental system imagecould not load symbol “__bid32_from_string”:
/home/user/.julia/juliaup/julia-1.10.4+0.x64.linux.gnu/bin/julia: undefined symbol: __bid32_from_string
[1] _parse(::Type{DecFP.Dec32}, s::String)
@ DecFP ~/.julia/packages/DecFP/Cud5F/src/DecFP.jl:352
[2] top-level scope
@ ~/.julia/packages/DecFP/Cud5F/src/DecFP.jl:359
[3] include(mod::Module, _path::String)
@ Base ./Base.jl:495
[4] _require(pkg::Base.PkgId, env::String)
@ Base ./loading.jl:2014
[5] __require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base ./loading.jl:1812
[6] #invokelatest#2
@ ./essentials.jl:892 [inlined]
[7] invokelatest
@ ./essentials.jl:889 [inlined]
[8] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base ./loading.jl:1805
[9] macro expansion
@ ./loading.jl:1790 [inlined]
[10] macro expansion
@ ./lock.jl:267 [inlined]
[11] __require(into::Module, mod::Symbol)
@ Base ./loading.jl:1753
[12] #invokelatest#2
@ ./essentials.jl:892 [inlined]
[13] invokelatest
@ ./essentials.jl:889 [inlined]
[14] require(into::Module, mod::Symbol)
@ Base ./loading.jl:1748
— the last 12 lines are repeated 3 more times —
[51] include(mod::Module, _path::String)
@ Base ./Base.jl:495
[52] _require(pkg::Base.PkgId, env::Nothing)
@ Base ./loading.jl:2014
[53] __require_prelocked(uuidkey::Base.PkgId, env::Nothing)
@ Base ./loading.jl:1812
[54] #invokelatest#2
@ ./essentials.jl:892 [inlined]
[55] invokelatest
@ ./essentials.jl:889 [inlined]
[56] _require_prelocked
@ ./loading.jl:1805 [inlined]
[57] _require_prelocked
@ ./loading.jl:1802 [inlined]
[58] macro expansion
@ ./lock.jl:267 [inlined]
[59] require(uuidkey::Base.PkgId)
@ Base ./loading.jl:1797
in expression starting at /home/user/.julia/packages/DecFP/Cud5F/src/DecFP.jl:2
in expression starting at /home/user/.julia/packages/ODBC/9VZTC/src/ODBC.jl:1
in expression starting at /home/user/someproject/code/juliacode/packages/DigitalTwins/src/DigitalTwins.jl:1
in expression starting at /home/user/someproject/juliacode/packages/Schedulers/src/Schedulers.jl:1
in expression starting at /home/user/someproject/juliacode/MainApp/src/MainApp.jl:1
in expression starting at /tmp/jl_GHoNejkJyn:11
:heavy_multiplication_x: [01m:15s] PackageCompiler: compiling nonincremental system image
ERROR: LoadError: failed process: Process(/home/user/.julia/juliaup/julia-1.10.4+0.x64.linux.gnu/bin/julia --color=yes --startup-file=no --pkgimages=no '--cpu-target=generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)' --sysimage=/tmp/jl_ce4vyI/ --project=/home/user/someproject/juliacode/MainApp --output-o=/tmp/jl_o3GXODwxCz.o /tmp/jl_GHoNejkJyn, ProcessExited(1)) [1]

The last part of the error message relates to my code, in a package that reads from a database using ODBC. However, I have the impression that the error is not related to my code, since it compiled fine until at least 2 weeks ago (June 24, 2024).

The first line in the error message states: could not load symbol "__bid32_from_string in package DecFP.jl.

I didn’t find any information on how to deal with this error. I would be grateful for any advice.

As reference for other users who may encounter the same problem: apparently previous compilations have left .julia/compiled in a corrupted state. Reinstalling Julia solved the problem.