Here’s the error.
FAILED: out/target/product/r11s/obj/PACKAGING/recovery_intermediates/ramdisk_files-timestamp
/bin/bash -c "(mkdir -p out/target/product/r11s/recovery ) && (mkdir -p out/target/product/r11s/recovery/root/sdcard out/target/product/r11s/recovery/root/tmp ) && (rsync -a --exclude=
sdcard --exclude=/root/sepolicy --exclude=/root/plat_file_contexts --exclude=/root/plat_property_contexts --exclude=/root/system_ext_file_contexts --exclude=/root/system_ext_property_c
ontexts --exclude=/root/vendor_file_contexts --exclude=/root/vendor_property_contexts --exclude=/root/odm_file_contexts --exclude=/root/odm_property_contexts --exclude=/root/product_fi
le_contexts --exclude=/root/product_property_contexts --exclude=cache out/target/product/r11s/root out/target/product/r11s/recovery ) && (ln -sf /system/bin/init out/target/product/r11
s/recovery/root/init ) && (find out/target/product/r11s/recovery/root -maxdepth 1 -name 'init*.rc' -type f -not -name "init.recovery.*.rc" | xargs rm -f ) && (cp out/target/product/r
11s/root/init.recovery.*.rc out/target/product/r11s/recovery/root/ 2> /dev/null || true ) && (mkdir -p out/target/product/r11s/recovery/root/res ) && (rm -rf out/target/product/r11s/re
covery/root/res/* ) && (cp -rf bootable/recovery/res-xxhdpi/* out/target/product/r11s/recovery/root/res ) && (cp -rf out/target/product/r11s/obj/ETC/recovery_text_res_intermediates/ins
talling_text.png out/target/product/r11s/recovery/root/res/images/ && cp -rf out/target/product/r11s/obj/ETC/recovery_text_res_intermediates//installing_security_text.png out/target/p
roduct/r11s/recovery/root/res/images/ && cp -rf out/target/product/r11s/obj/ETC/recovery_text_res_intermediates//erasing_text.png out/target/product/r11s/recovery/root/res/images/ &&
cp -rf out/target/product/r11s/obj/ETC/recovery_text_res_intermediates//error_text.png out/target/product/r11s/recovery/root/res/images/ && cp -rf out/target/product/r11s/obj/ETC/rec
overy_text_res_intermediates//no_command_text.png out/target/product/r11s/recovery/root/res/images/ && cp -rf out/target/product/r11s/obj/ETC/recovery_text_res_intermediates//cancel_w
ipe_data_text.png out/target/product/r11s/recovery/root/res/images/ && cp -rf out/target/product/r11s/obj/ETC/recovery_text_res_intermediates//factory_data_reset_text.png out/target/p
roduct/r11s/recovery/root/res/images/ && cp -rf out/target/product/r11s/obj/ETC/recovery_text_res_intermediates//try_again_text.png out/target/product/r11s/recovery/root/res/images/ &
& cp -rf out/target/product/r11s/obj/ETC/recovery_text_res_intermediates//wipe_data_confirmation_text.png out/target/product/r11s/recovery/root/res/images/ && cp -rf out/target/produ
ct/r11s/obj/ETC/recovery_text_res_intermediates//wipe_data_menu_header_text.png out/target/product/r11s/recovery/root/res/images/ && true ) && (cp -f bootable/recovery/fonts/18x32.png
out/target/product/r11s/recovery/root/res/images/font.png ) && (cp -rf device/samsung/r11s/recovery/root out/target/product/r11s/recovery/ ) && (cp -f device/samsung/r11s/recovery/root
/fstab.s5e9925 out/target/product/r11s/recovery/root/system/etc/recovery.fstab ) && (ln -sf prop.default out/target/product/r11s/recovery/root/default.prop ) && (cd out/target/product/
r11s/recovery/root && touch ramdisk-files.txt && touch ramdisk-files.sha256sum && find . | sed "s/.\///" | sed "/lib\/modules\//d" > ramdisk-files.txt ) && (cd out/target/produc
t/r11s/recovery/root && find -type f | sed "s/.\/ramdisk-files.sha256sum//" | sed "/lib\/modules/d" | sed "/prop.default/d" | xargs sha256sum > ramdisk-files.sha256sum ) && (touch out/target/product/r11s/obj/PACKAGING/recovery_intermediates/ramdisk_files-timestamp )"
could not make way for new symlink: root/vendor
cannot delete non-empty directory: root/vendor
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1338) [sender=3.2.7]
11:06:14 ninja failed with: exit status 1
#### failed to build some targets (22 seconds) ####
I’m trying to build a TWRP for my device, but sadly, it doesn’t work because of rsync wondering about symlinks. I’m using make to build my recovery image. I was expecting for a successful compilation. It resulted in a failure.
Is there something I could do?
New contributor
Aura is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.