Open KiARC opened 7 months ago
Can podman see common.sh? I think this is a podman issue where it's not applying the correct permissions. This works fine on docker on windows.
I have no idea what common.sh is. It may well be a podman configuration issue, but in that case it would be helpful for there to be documentation explaining what is it and potentially how to fix it. I can't figure out where the Dockerfile is being loaded from so I'm not sure how to troubleshoot it myself.
common.sh is here
if you pass -v
you can see exactly what command is run.
The interesting thing here would be to do, from the docker
folder
podman run -v .:/cross-files --rm -it ubuntu:20.04 ls -la /cross-files
with docker for windows, I get
❯ docker run -v .:/cross-files --rm -it ubuntu:20.04 ls -la /cross-files
total 439
drwxrwxrwx 1 root root 512 Feb 6 09:19 .
drwxr-xr-x 1 root root 4096 Mar 1 23:02 ..
-rwxrwxrwx 1 root root 181 Dec 27 21:45 .dockerignore
-rwxrwxrwx 1 root root 14 Dec 27 21:45 .gitattributes
-rwxrwxrwx 1 root root 2637 Jan 29 08:21 Dockerfile.aarch64-linux-android
-rwxrwxrwx 1 root root 1370 Jan 29 09:21 Dockerfile.aarch64-unknown-freebsd
-rwxrwxrwx 1 root root 1760 Feb 6 09:19 Dockerfile.aarch64-unknown-linux-gnu
-rwxrwxrwx 1 root root 1423 Feb 6 09:19 Dockerfile.aarch64-unknown-linux-gnu.centos
-rwxrwxrwx 1 root root 1513 Feb 6 09:19 Dockerfile.aarch64-unknown-linux-musl
-rwxrwxrwx 1 root root 2681 Jan 29 08:21 Dockerfile.arm-linux-androideabi
-rwxrwxrwx 1 root root 1685 Feb 6 09:19 Dockerfile.arm-unknown-linux-gnueabi
-rwxrwxrwx 1 root root 1788 Feb 6 09:19 Dockerfile.arm-unknown-linux-gnueabihf
-rwxrwxrwx 1 root root 1557 Feb 6 09:19 Dockerfile.arm-unknown-linux-musleabi
-rwxrwxrwx 1 root root 1613 Feb 6 09:19 Dockerfile.arm-unknown-linux-musleabihf
-rwxrwxrwx 1 root root 1748 Feb 6 09:19 Dockerfile.armv5te-unknown-linux-gnueabi
-rwxrwxrwx 1 root root 1696 Feb 6 09:19 Dockerfile.armv5te-unknown-linux-musleabi
-rwxrwxrwx 1 root root 2717 Jan 29 08:21 Dockerfile.armv7-linux-androideabi
-rwxrwxrwx 1 root root 1535 Feb 6 09:19 Dockerfile.armv7-unknown-linux-gnueabi
-rwxrwxrwx 1 root root 1819 Feb 6 09:19 Dockerfile.armv7-unknown-linux-gnueabihf
-rwxrwxrwx 1 root root 1596 Feb 6 09:19 Dockerfile.armv7-unknown-linux-musleabi
-rwxrwxrwx 1 root root 1635 Feb 6 09:19 Dockerfile.armv7-unknown-linux-musleabihf
-rwxrwxrwx 1 root root 674 Jan 29 08:21 Dockerfile.asmjs-unknown-emscripten
-rwxrwxrwx 1 root root 659 Jan 29 08:21 Dockerfile.cross
-rwxrwxrwx 1 root root 1633 Feb 6 09:19 Dockerfile.i586-unknown-linux-gnu
-rwxrwxrwx 1 root root 1372 Feb 6 09:19 Dockerfile.i586-unknown-linux-musl
-rwxrwxrwx 1 root root 3064 Jan 29 08:21 Dockerfile.i686-linux-android
-rwxrwxrwx 1 root root 2187 Feb 6 09:19 Dockerfile.i686-pc-windows-gnu
-rwxrwxrwx 1 root root 1338 Jan 29 09:21 Dockerfile.i686-unknown-freebsd
-rwxrwxrwx 1 root root 1726 Feb 6 09:19 Dockerfile.i686-unknown-linux-gnu
-rwxrwxrwx 1 root root 1369 Feb 6 09:19 Dockerfile.i686-unknown-linux-musl
-rwxrwxrwx 1 root root 1473 Feb 6 09:19 Dockerfile.mips-unknown-linux-gnu
-rwxrwxrwx 1 root root 1627 Feb 6 09:19 Dockerfile.mips-unknown-linux-musl
-rwxrwxrwx 1 root root 1708 Feb 6 09:19 Dockerfile.mips64-unknown-linux-gnuabi64
-rwxrwxrwx 1 root root 2016 Feb 6 09:19 Dockerfile.mips64-unknown-linux-muslabi64
-rwxrwxrwx 1 root root 1840 Feb 6 09:19 Dockerfile.mips64el-unknown-linux-gnuabi64
-rwxrwxrwx 1 root root 2044 Feb 6 09:19 Dockerfile.mips64el-unknown-linux-muslabi64
-rwxrwxrwx 1 root root 1744 Feb 6 09:19 Dockerfile.mipsel-unknown-linux-gnu
-rwxrwxrwx 1 root root 1655 Feb 6 09:19 Dockerfile.mipsel-unknown-linux-musl
-rwxrwxrwx 1 root root 933 Feb 6 09:19 Dockerfile.native
-rwxrwxrwx 1 root root 974 Feb 6 09:19 Dockerfile.native.centos
-rwxrwxrwx 1 root root 1756 Feb 6 09:19 Dockerfile.powerpc-unknown-linux-gnu
-rwxrwxrwx 1 root root 1789 Feb 6 09:19 Dockerfile.powerpc64-unknown-linux-gnu
-rwxrwxrwx 1 root root 1825 Feb 6 09:19 Dockerfile.powerpc64le-unknown-linux-gnu
-rwxrwxrwx 1 root root 1810 Feb 6 09:19 Dockerfile.riscv64gc-unknown-linux-gnu
-rwxrwxrwx 1 root root 1728 Feb 6 09:19 Dockerfile.s390x-unknown-linux-gnu
-rwxrwxrwx 1 root root 1764 Feb 6 09:19 Dockerfile.sparc64-unknown-linux-gnu
-rwxrwxrwx 1 root root 964 Jan 29 08:21 Dockerfile.sparcv9-sun-solaris
-rwxrwxrwx 1 root root 1089 Jan 29 08:21 Dockerfile.thumbv6m-none-eabi
-rwxrwxrwx 1 root root 1095 Jan 29 08:21 Dockerfile.thumbv7em-none-eabi
-rwxrwxrwx 1 root root 1140 Jan 29 08:21 Dockerfile.thumbv7em-none-eabihf
-rwxrwxrwx 1 root root 1088 Jan 29 08:21 Dockerfile.thumbv7m-none-eabi
-rwxrwxrwx 1 root root 3035 Jan 29 08:21 Dockerfile.thumbv7neon-linux-androideabi
-rwxrwxrwx 1 root root 2614 Feb 6 09:19 Dockerfile.thumbv7neon-unknown-linux-gnueabihf
-rwxrwxrwx 1 root root 1185 Jan 29 08:21 Dockerfile.thumbv8m.base-none-eabi
-rwxrwxrwx 1 root root 1185 Jan 29 08:21 Dockerfile.thumbv8m.main-none-eabi
-rwxrwxrwx 1 root root 1228 Jan 29 08:21 Dockerfile.thumbv8m.main-none-eabihf
-rwxrwxrwx 1 root root 673 Jan 29 08:21 Dockerfile.wasm32-unknown-emscripten
-rwxrwxrwx 1 root root 2759 Jan 29 08:21 Dockerfile.x86_64-linux-android
-rwxrwxrwx 1 root root 2228 Feb 6 09:19 Dockerfile.x86_64-pc-windows-gnu
-rwxrwxrwx 1 root root 959 Jan 29 08:21 Dockerfile.x86_64-sun-solaris
-rwxrwxrwx 1 root root 1004 Jan 29 08:21 Dockerfile.x86_64-unknown-dragonfly
-rwxrwxrwx 1 root root 1470 Jan 29 09:21 Dockerfile.x86_64-unknown-freebsd
-rwxrwxrwx 1 root root 1046 Jan 29 08:21 Dockerfile.x86_64-unknown-illumos
-rwxrwxrwx 1 root root 1749 Feb 6 09:19 Dockerfile.x86_64-unknown-linux-gnu
-rwxrwxrwx 1 root root 186 Jan 8 06:39 Dockerfile.x86_64-unknown-linux-gnu.centos
-rwxrwxrwx 1 root root 1371 Feb 6 09:19 Dockerfile.x86_64-unknown-linux-musl
-rwxrwxrwx 1 root root 966 Jan 29 08:21 Dockerfile.x86_64-unknown-netbsd
-rwxrwxrwx 1 root root 601 Jan 29 08:21 Dockerfile.zig
-rwxrwxrwx 1 root root 3682 Dec 27 21:45 aarch64-linux-gnu-glibc.sh
drwxrwxrwx 1 root root 512 Dec 27 21:45 android
-rwxrwxrwx 1 root root 3050 Dec 27 21:45 android-ndk.sh
-rwxrwxrwx 1 root root 1057 Dec 27 21:45 android-runner
-rwxrwxrwx 1 root root 3239 Dec 27 21:45 android-symlink.sh
-rwxrwxrwx 1 root root 24660 Dec 27 21:45 android-system.sh
-rwxrwxrwx 1 root root 1166 Dec 27 21:45 android.cmake
-rwxrwxrwx 1 root root 2931 Dec 27 21:45 base-runner.sh
-rwxrwxrwx 1 root root 499 Dec 27 21:45 cmake.sh
-rwxrwxrwx 1 root root 1063 Dec 27 21:45 common.sh
drwxrwxrwx 1 root root 512 Dec 27 21:45 cross-toolchains
-rwxrwxrwx 1 root root 421 Dec 27 21:45 cross.sh
drwxrwxrwx 1 root root 512 Dec 27 21:45 crosstool-config
-rwxrwxrwx 1 root root 2713 Dec 27 21:45 crosstool-ng.sh
-rwxrwxrwx 1 root root 508 Dec 27 21:45 deny-debian-packages.sh
-rwxrwxrwx 1 root root 3452 Dec 27 21:45 dragonfly.sh
-rwxrwxrwx 1 root root 1178 Dec 27 21:45 dropbear.sh
-rwxrwxrwx 1 root root 739 Dec 27 21:45 emscripten.sh
-rwxrwxrwx 1 root root 431 Jan 29 09:21 freebsd-common.sh
-rwxrwxrwx 1 root root 722 Jan 29 09:21 freebsd-extras.sh
-rwxrwxrwx 1 root root 101 Jan 29 09:21 freebsd-fetch-best-mirror.sh
-rwxrwxrwx 1 root root 357 Dec 27 21:45 freebsd-gcc.sh
-rwxrwxrwx 1 root root 99 Jan 29 09:21 freebsd-install-package.sh
-rwxrwxrwx 1 root root 5041 Jan 29 09:21 freebsd-install.sh
-rwxrwxrwx 1 root root 101 Jan 29 09:21 freebsd-setup-packagesite.sh
-rwxrwxrwx 1 root root 8130 Jan 29 09:21 freebsd.sh
-rwxrwxrwx 1 root root 3915 Dec 27 21:45 illumos.sh
-rwxrwxrwx 1 root root 3583 Dec 27 21:45 lib.sh
-rwxrwxrwx 1 root root 15375 Jan 29 08:21 linux-image.sh
-rwxrwxrwx 1 root root 3880 Feb 6 09:19 linux-runner
-rwxrwxrwx 1 root root 4065 Dec 27 21:45 mingw.sh
-rwxrwxrwx 1 root root 2497 Jan 8 18:49 musl-gcc.sh
-rwxrwxrwx 1 root root 2757 Dec 27 21:45 musl-symlink.sh
-rwxrwxrwx 1 root root 1750 Jan 29 09:21 musl.sh
-rwxrwxrwx 1 root root 235 Dec 27 21:45 native-linux-image.sh
-rwxrwxrwx 1 root root 380 Feb 6 09:19 native-linux-runner
-rwxrwxrwx 1 root root 217 Dec 27 21:45 native-qemu.sh
-rwxrwxrwx 1 root root 3644 Dec 27 21:45 netbsd.sh
-rwxrwxrwx 1 root root 980 Feb 6 09:19 qemu-runner
-rwxrwxrwx 1 root root 5518 Dec 27 21:45 qemu.sh
-rwxrwxrwx 1 root root 3596 Dec 27 21:45 solaris.sh
-rwxrwxrwx 1 root root 2549 Dec 27 21:45 toolchain.cmake
-rwxrwxrwx 1 root root 5327 Dec 27 21:45 validate-android-args.sh
-rwxrwxrwx 1 root root 582 Dec 27 21:45 windows-entry.sh
-rwxrwxrwx 1 root root 1372 Dec 27 21:45 wine.sh
-rwxrwxrwx 1 root root 522 Dec 27 21:45 xargo.sh
-rwxrwxrwx 1 root root 4219 Dec 27 21:45 zig.sh
Thanks for the advice! I'll test that later tonight if I get a chance, and will add what I get to this thread.
Checklist
Describe your issue
Cross cannot build Darwin images due to a permissions error regarding
common.sh
What target(s) are you cross-compiling for?
other (specify in description)
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
cross 0.2.5 (c87a52a 2024-02-20)
Example
(I'm not providing the actual link for obvious reasons, but I don't think the issue is related to that)
Additional information / notes
The error message is: