Facing build error while building from source

why docker is required to build the binaries of chirpstack

lakshmana@lakshmana-Vostro-3400:~/projects/ao-inc/server_code/chirpstack$ cd chirpstack
lakshmana@lakshmana-Vostro-3400:~/projects/ao-inc/server_code/chirpstack/chirpstack$ make debug-amd64
cross build --target x86_64-unknown-linux-musl
info: downloading component ‘rust-std’ for ‘x86_64-unknown-linux-musl’
info: installing component ‘rust-std’ for ‘x86_64-unknown-linux-musl’
32.2 MiB / 32.2 MiB (100 %) 7.2 MiB/s in 4s ETA: 0s
ERROR: Cannot connect to the Docker daemon at unix:///home/lakshmana/.docker/desktop/docker.sock. Is the docker daemon running?
Error:
0: could not run container
1: when building custom image
2: when building dockerfile
3: docker build --label 'org.cross-rs.for-cross-target=x86_64-unknown-linux-musl' --label 'org.cross-rs.workspace_root=/home/lakshmana/projects/ao-inc/server_code/chirpstack' --tag cross-custom-chirpstack:x86_64-unknown-linux-musl-a81b8 --build-arg 'CROSS_DEB_ARCH=musl-linux-amd64' --build-arg 'CROSS_BASE_IMAGE=ghcr.io/cross-rs/x86_64-unknown-linux-musl:0.2.5' --file cross/Dockerfile.x86_64-unknown-linux-musl /home/lakshmana/projects/ao-inc/server_code/chirpstack failed with exit status: 1
make: *** [Makefile:6: debug-amd64] Error 1
lakshmana@lakshmana-Vostro-3400:~/projects/ao-inc/server_code/chirpstack/chirpstack$ make dist

Keep these in this order, as aarch64 is based on Debian Buster (older),

the others on Bullseye. For some build scripts we want to build against

least recent LIBC.

cross build --target aarch64-unknown-linux-musl --release
info: downloading component ‘rust-std’ for ‘aarch64-unknown-linux-musl’
info: installing component ‘rust-std’ for ‘aarch64-unknown-linux-musl’
22.5 MiB / 22.5 MiB (100 %) 7.4 MiB/s in 3s ETA: 0s
ERROR: Cannot connect to the Docker daemon at unix:///home/lakshmana/.docker/desktop/docker.sock. Is the docker daemon running?
Error:
0: could not run container
1: when building custom image
2: when building dockerfile
3: docker build --label 'org.cross-rs.for-cross-target=aarch64-unknown-linux-musl' --label 'org.cross-rs.workspace_root=/home/lakshmana/projects/ao-inc/server_code/chirpstack' --tag cross-custom-chirpstack:aarch64-unknown-linux-musl-a81b8 --build-arg 'CROSS_DEB_ARCH=musl-linux-arm64' --build-arg 'CROSS_BASE_IMAGE=ghcr.io/cross-rs/aarch64-unknown-linux-musl:0.2.5' --file cross/Dockerfile.aarch64-unknown-linux-musl /home/lakshmana/projects/ao-inc/server_code/chirpstack failed with exit status: 1
make: *** [Makefile:15: dist] Error 1
lakshmana@lakshmana-Vostro-3400:~/projects/ao-inc/server_code/chirpstack/chirpstack$

Please see for build instructions (and why Docker is a requirement):

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.