I’m having issues using PackageCompiler on a Linux on aarch64(nVidia Jetson TX2) machine. Running through the basic example from the documentation causes this error.
I am using PackageCompiler to creating a sysimage for a Raspberry Pi 3 device. Per its documentation, MCU is a BCM 2837, AArch64, ARM Cortex-A53. Sysimage is being created on a much larger Linux instance, but also AArch64.
The following attempts created sysimages that ran smoothly at the larger system, but failed at the raspberry pi:
ERROR: Unable to find compatible target in system image.
For the other cases, error is as follows:
fatal: error thrown and no exception handler available.
InitError(mod=:LLVMExtra_jll, error=ErrorException("Cannot locate artifact 'LLVMExtra' in '/home/ubuntu/.julia/packages/LLVMExtra_jll/Yq3Eb/Artifacts.toml'"))
error at ./error.jl:35
#ensure_artifact_installed#22 at /cache/build/default-armageddon-4/julialang/julia-release-1-dot-8/usr/share/julia/stdlib/v1.8/Pkg/src/Artifacts.jl:405
unknown function (ip: 0xffff946f03a7)
_jl_invoke at /cache/build/default-armageddon-4/julialang/julia-release-1-dot-8/src/gf.c:2377 [inlined]
ijl_apply_generic at /cache/build/default-armageddon-4/julialang/julia-release-1-dot-8/src/gf.c:2559
ensure_artifact_installed##kw at /cache/build/default-armageddon-4/julialang/julia-release-1-dot-8/usr/share/julia/stdlib/v1.8/Pkg/src/Artifacts.jl:397
unknown function (ip: 0xffff946f0127)
_jl_invoke at /cache/build/default-armageddon-4/julialang/julia-release-1-dot-8/src/gf.c:2377 [inlined]
ijl_apply_generic at /cache/build/default-armageddon-4/julialang/julia-release-1-dot-8/src/gf.c:2559
_artifact_str at /cache/build/default-armageddon-4/julialang/julia-release-1-dot-8/usr/share/julia/stdlib/v1.8/Artifacts/src/Artifacts.jl:548
jfptr__artifact_str_64644 at /home/ciro/flux-env/unetfluxarmgen.so (unknown line)
_jl_invoke at /cache/build/default-armageddon-4/julialang/julia-release-1-dot-8/src/gf.c:2377 [inlined]
ijl_apply_generic at /cache/build/default-armageddon-4/julialang/julia-release-1-dot-8/src/gf.c:2559
jl_apply at /cache/build/default-armageddon-4/julialang/julia-release-1-dot-8/src/julia.h:1843 [inlined]
jl_f__call_latest at /cache/build/default-armageddon-4/julialang/julia-release-1-dot-8/src/builtins.c:774
#invokelatest#2 at ./essentials.jl:729 [inlined]
invokelatest at ./essentials.jl:726 [inlined]
macro expansion at /cache/build/default-armageddon-4/julialang/julia-release-1-dot-8/usr/share/julia/stdlib/v1.8/Artifacts/src/Artifacts.jl:690 [inlined]
find_artifact_dir at /home/ubuntu/.julia/packages/JLLWrappers/QpMQW/src/wrapper_generators.jl:13 [inlined]
__init__ at /home/ubuntu/.julia/packages/LLVMExtra_jll/Yq3Eb/src/wrappers/aarch64-linux-gnu-cxx11-llvm_version+13.jl:7
jfptr___init___79790 at /home/ciro/flux-env/unetfluxarmgen.so (unknown line)
_jl_invoke at /cache/build/default-armageddon-4/julialang/julia-release-1-dot-8/src/gf.c:2377 [inlined]
ijl_apply_generic at /cache/build/default-armageddon-4/julialang/julia-release-1-dot-8/src/gf.c:2559
jl_apply at /cache/build/default-armageddon-4/julialang/julia-release-1-dot-8/src/julia.h:1843 [inlined]
jl_module_run_initializer at /cache/build/default-armageddon-4/julialang/julia-release-1-dot-8/src/toplevel.c:75
_finish_julia_init at /cache/build/default-armageddon-4/julialang/julia-release-1-dot-8/src/init.c:765
julia_init at /cache/build/default-armageddon-4/julialang/julia-release-1-dot-8/src/init.c:698
jl_repl_entrypoint at /cache/build/default-armageddon-4/julialang/julia-release-1-dot-8/src/jlapi.c:713
main at julia (unknown line)
unknown function (ip: 0xffffbd3973fb)
__libc_start_main at /lib/aarch64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0x4009ab)
unknown function (ip: 0x4009ab)
Julia’s developers documentation indicates usage of the flag MCPU=armv8-a
that is apparently not accepted by create_sysimage.