This document covers the steps to build the musl libC for morello using morello-sdk.
Create the following workspace structure:
docker-compose.yml file and map the morello directory into
musl/ as follows:
# Docker composer file for Morello musl
musl you want to build in
git clone https://git.morello-project.org/morello/musl-libc.git musl
Then, bring up the container (from
Note: It is important to update always to the latest version of the morello-sdk. If you are unsure on which version you are running instead of the command above execute:
$ docker-compose pull
$ docker-compose up -d
musl.env file and map the morello directory into
musl/workspace as follows:
To enter into the container, run the command:
$ docker exec -it -u root musl-morello-sdk /bin/bash
Inside the container, run the commands:
CC=clang ./configure \
Have a lot of fun!
make can be substituted with
make -j<N> where N is the number of cores.
Note (2): Once you started the docker container the files of your project are accessible at
For further information please refer to the Docker documentation.