hotg-ai / librunecoral

5 stars 5 forks source link

Build failed on Ubuntu 20.04 LTS with docker error #50

Open IntelMin opened 2 years ago

IntelMin commented 2 years ago

Tried to run make librunecoral-linux-aarch64 command to build this project. Got the following error:

docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: 
process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/etc/group" to rootfs at "/etc/group" caused: 
mount through procfd: no such file or directory: unknown.
make: *** [Makefile:61: librunecoral-linux-aarch64] Error 127
saidinesh5 commented 2 years ago

Interesting.. This is the docker command that we use to run the container as the current user - so as to not end up with weird permission issues on the generated binaries. ( https://github.com/hotg-ai/librunecoral/blob/master/Makefile )

DOCKER_RUN := docker run -i --rm -v "`pwd`":"`pwd`" \
           -v $$HOME:$$HOME \
           -v /etc/group:/etc/group:ro \
           -v /etc/passwd:/etc/passwd:ro \
           -v /etc/localtime:/etc/localtime:ro \
           -u `id -u $$USER`:`id -g $$USER` \
           -e HOME=$$HOME \
           -e USER=$$USER \
           -w "`pwd`"

I am surprised why you'd be missing the /etc/group file on your machine. Can you check if you have that file? Or remove the offending line from the makefile?