yunsur / phicomm-n1

Armian for Phicomm N1
GNU General Public License v2.0
193 stars 75 forks source link

Failed to build in docker environment - ubuntu:hirsute #3

Closed txchen closed 2 years ago

txchen commented 3 years ago

Describe the bug Host machine: x64 debian. Ran the build in docker environment (ubuut:hirsute), and failed.

To Reproduce Steps to reproduce the behavior:

./compile.sh BOARD=arm-64 BRANCH=current RELEASE=buster BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=no COMPRESS_OUTPUTIMAGE=sha,img

Provide logs:

I: Extracting libmount1...
I: Extracting libsmartcols1...
I: Extracting libuuid1...
I: Extracting mount...
I: Extracting util-linux...
I: Extracting liblzma5...
I: Extracting zlib1g...
[ o.k. ] Installing base system [ Stage 2/2 ]
chroot: failed to run command '/bin/bash': Exec format error
[ error ] ERROR in function create_rootfs_cache [ debootstrap.sh:201 ]
[ error ] Debootstrap base system for current arm-64 buster   no second stage failed
[ o.k. ] Process terminated
[ o.k. ] Unmounting [ /root/phicomm-n1/.tmp/rootfs-8bfdd5f9-7432-477a-8c7c-96fc2a7d1ba4/ ]
[ error ] ERROR in function unmount_on_exit [ image-helpers.sh:65 ]
[ error ] debootstrap-ng was interrupted
[ o.k. ] Process terminated
txchen commented 3 years ago

I used a VM and finished the build successfully. Thanks for sharing the repo! For container build, you might want to update the instruction in the README.

yunsur commented 2 years ago

README has been updated