|Subject:||Build static binaries of chicken apps in a docker container|
|Date:||Sun, 20 Jun 2021 17:53:15 +0200|
|User-agent:||Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2|
Hi,I wanted to write and compile Chicken apps on my linux laptop and use them on some super computer I have access to.
I naturally chose to compile static app with "csc -static main.scm -o main" which would link my app against a shared glibc version.
While that is what I wanted, I encountered the problem that my Arch based distro has a very recent libc version, hence producing incompatible binary with the CentOS 6 supercomputer (for stability sake those are always running on super old OS).
As a solutions I came up with a simple procedure that build my app inside a Debian Stable based docker container and extract the file.
I figured it may be interesting for other people here so I want to share my script with you: https://github.com/Lattay/chicken-build-static.
Currently is uses my own Chicken docker images (Images: https://hub.docker.com/r/lattay/chicken , Dockerfile: https://github.com/Lattay/chicken_docker ) so it can work on AMD64 or ARMv7 (nice for RPi 2 and 3), but it is very simple and can easily be used for other base images.
If you are interested in this but the script does not does exactly do what you want, feel free to submit an issue, a PR or to send me a mail.
|[Prev in Thread]||Current Thread||[Next in Thread]|