Open maleadt opened 3 years ago
Figure out which libraries our generated binary uses, and copy those over to the lib folder:
Do you think it makes sense to try to statically link those or is bundling better?
Move MyApp.so from the bin to lib folder, or Julia doesn't seem able to pick it up
That's strange. It should be set here:
and just be the name of the app. From CI, it seems to find it next to the executable.
Do you think it makes sense to try to statically link those or is bundling better?
Since our Yggdrasil-built artifacts are all dynamically linked, we need to bundle those libraries anyway.
I'm trying to run PackageCompiler-generated binaries in a very bare environment -- a Docker image that starts with only
from scratch
-- and I run into a few issues before I could execute the generated app. Documenting those steps here in case we want to add astatic
mode (where additional libraries are bundled):create_app("MyApp", "MyAppCompiled")
lib
folder:MyApp.so
from thebin
tolib
folder, or Julia doesn't seem able to pick it upIn this funky set-up Julia isn't able to spawn binaries (probably because it then doesn't use the dynamic linker -- unsure how that's set up by default, I haven't dug that deep):
For debuging, you can launch
docker
with--env LD_DEBUG=libs
since we're using the dynamic linker here.