Hi @Neha_V,
Some build systems expect to run inside a controlled environment like chroot to simulate root privileges. This is especially important when building root filesystems or modifying system level directories, as it helps avoid permission-related issues and ensures the build process behaves as expected.
Try the next command:
sudo LANG=C.UTF-8 chroot /path/to/rootfs qemu-aarch64-static /bin/bash
Best regards,
Chavira