Error building on windows 10
gatlinnewhouse opened this issue · 3 comments
gatlinnewhouse commented
- I am running an official build of TWRP, downloaded from https://twrp.me/Devices/
- I am running the latest version of TWRP
- I have read the FAQ (https://twrp.me/FAQ/)
- I have searched for my issue and it does not already exist
Trying to build TWRP for my device and I cannot mka recovery image
due to an error with rsync chgrp. I think this is due to me trying to build it using Windows Subsystem for Linux on an NTFS partition (but maybe I am wrong).
Here's the error message:
FAILED: /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/ramdisk-recovery.cpio
/bin/bash -c "(mkdir -p /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/recovery ) && (mkdir -p /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/recovery/root/etc /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/recovery/root/sdcard /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/recovery/root/tmp ) && (rsync -a --exclude=etc --exclude=sdcard --exclude=vendor --exclude=/root/sepolicy --exclude=/root/plat_file_contexts --exclude=/root/vendor_file_contexts --exclude=/root/plat_property_contexts --exclude=/root/vendor_property_contexts --exclude=cache /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/root /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/recovery ) && (cp -f /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/system/bin/adbd /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/recovery/root/sbin/adbd ) && (find /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/recovery/root -maxdepth 1 -name 'init*.rc' -type f -not -name \"init.recovery.*.rc\" | xargs rm -f ) && (cp -f bootable/recovery/etc/init.rc /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/recovery/root/ ) && (cp /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/root/init.recovery.*.rc /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/recovery/root/ || true ) && (mkdir -p /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/recovery/root/res ) && (rm -rf /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/recovery/root/res/* ) && (cp -rf bootable/recovery/res-xhdpi/* /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/recovery/root/res ) && (cp -f bootable/recovery/fonts/12x22.png /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/recovery/root/res/images/font.png ) && (cp -rf device/teracube/Teracube_One/recovery/root /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/recovery/ ) && (cp -f device/teracube/Teracube_One/recovery.fstab /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/recovery/root/etc/recovery.fstab ) && (cp /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/obj/PACKAGING/ota_keys_intermediates/keys /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/recovery/root/res/keys ) && (cat /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/root/default.prop > /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/recovery/root/prop.default ) && (cat /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/obj/ETC/system_build_prop_intermediates/build.prop >> /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/recovery/root/prop.default ) && (ln -sf prop.default /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/recovery/root/default.prop ) && (/mnt/m/Documents/GitHub/twrp/out/host/linux-x86/bin/mkbootfs /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/recovery/root > /mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/ramdisk-recovery.cpio )"
rsync: chgrp "/mnt/m/Documents/GitHub/twrp/out/target/product/Teracube_One/recovery/root" failed: Operation not permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]
ninja: build stopped: subcommand failed.
17:11:30 ninja failed with: exit status 1
#### failed to build some targets (07:43 (mm:ss)) ####
If you need more information let me know.
bigbiff commented
Sorry. We don't support wsl officially.
CaptainThrowback commented
I know this isn't officially supported, but I currently build TWRP for all of my maintained devices without an issue in WSL. Just make sure you're using WSL 2. If you're not, that's probably why you're having issues.
gatlinnewhouse commented
Thanks @CaptainThrowback, going to try that since I know I am running WSL 1.
Still getting the error on WSL 2.