'apex image failed to build android rom compiling

I'm trying to build crdroid 10 for my z5p I followed the guide given on GitHub and set my environment

synced the files and after hours of building, I'm facing errors

here is what I have done so far

cd crdroid 
source build/envsetup.sh
lunch (picked 12. lineage_satsuki-eng )
make -j4

problem :

[ 96% 616/639] //art/build/apex:com.android.runtime.release apex (image) [common]
FAILED: out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/com.android.runtime.release.apex.unsigned
Output:
resize2fs 1.44.4 (18-Aug-2018)
ext2fs_check_mount_point: Can't check if filesystem is mounted due to missing mtab file while determining whether /home/luna/crDroid/out/soong/.temp/tmp38zRej/content/apex_payload.img is mounted.
Traceback (most recent call last):
  File "/home/luna/crDroid/out/soong/host/linux-x86/bin/apexer/internal/stdlib/runpy.py", line 174, in _run_module_as_main
  File "/home/luna/crDroid/out/soong/host/linux-x86/bin/apexer/internal/stdlib/runpy.py", line 72, in _run_code
  File "/home/luna/crDroid/out/soong/host/linux-x86/bin/apexer/__main__.py", line 12, in <module>
  File "/home/luna/crDroid/out/soong/host/linux-x86/bin/apexer/internal/stdlib/runpy.py", line 174, in _run_module_as_main
  File "/home/luna/crDroid/out/soong/host/linux-x86/bin/apexer/internal/stdlib/runpy.py", line 72, in _run_code
  File "/home/luna/crDroid/out/soong/host/linux-x86/bin/apexer/apexer.py", line 427, in <module>
  File "/home/luna/crDroid/out/soong/host/linux-x86/bin/apexer/apexer.py", line 420, in main
  File "/home/luna/crDroid/out/soong/host/linux-x86/bin/apexer/apexer.py", line 291, in CreateApex
  File "/home/luna/crDroid/out/soong/host/linux-x86/bin/apexer/apexer.py", line 107, in RunCommand
AssertionError: Failed to execute: out/soong/host/linux-x86/bin/resize2fs -M /home/luna/crDroid/out/soong/.temp/tmp38zRej/content/apex_payload.img


the error.log in out folder : u can see here how to fix this error

system: windows 11 wsl2 kali 12gig ram amd a8-7600 apu



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source