-
-
Notifications
You must be signed in to change notification settings - Fork 198
Description
https://discourse.julialang.org/t/unable-to-find-compatible-target-in-system-image/52879
The idea here is that I'm trying to build a Julia sysimage in multiple stages so the code I am developing can be quickly deployed to staging / built for release. I have one fairly static stage that contains my dependencies and then have another stage that contains the application that I am developing.
Both stages are built on the same machine in the same multi-stage dockerfile (using DOCKER_BUILDKIT=1)
#23 347.7 [ Info: PackageCompiler: creating system image object file, this might take a while...
#23 347.7 ERROR: Unable to find compatible target in system image.
#23 348.8 ERROR: LoadError: failed process: Process(`/root/julia/bin/julia --color=yes --startup-file=no '--cpu-target=generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)' --sysimage=/root/julia/lib/julia/sys.so --project=/root/myproj.jl/inner.jl --output-o=/tmp/jl_UGJKKB.o -e '...'`, ProcessSignaled(11))
As you can see, it is using the default cpu-target for x86-64, which is appropriate for the VM it is building on. When I force that as was recommended on discourse, I correspondingly get the same result. When I try to force generic,-cx16, I get a different error about my VM not supporting cx16 which is unexpected because I excluded it.
Julia 1.5.3
PackageCompiler 1.2.4
CentOS 7 docker file using devtoolkit-9 to get a modern gcc version.