[SOLVED] A new build error, building for lilac

I have successfully made /e/OS and LIneage4Microg builds with the latest lilac code, but I am getting an error when making an IodéOS build. It comes at the end of the build when the final zip file is being constructed. The full log file is [here]( log file Murena). The error is

2023-05-27 00:48:11 - common.py - INFO    :   Running: "/home/pete/srv/iodeOS4/out/host/linux-x86/bin/checkvintf --check-compat --dirmap /odm:out/target/product/lilac/obj/PACKAGING/target_files_intermediates/lineage_lilac-target_files-eng.pete/VENDOR/odm --dirmap /product:out/target/product/lilac/obj/PACKAGING/target_files_intermediates/lineage_lilac-target_files-eng.pete/SYSTEM/product --dirmap /system:out/target/product/lilac/obj/PACKAGING/target_files_intermediates/lineage_lilac-target_files-eng.pete/SYSTEM --dirmap /system_ext:out/target/product/lilac/obj/PACKAGING/target_files_intermediates/lineage_lilac-target_files-eng.pete/SYSTEM/system_ext --dirmap /vendor:out/target/product/lilac/obj/PACKAGING/target_files_intermediates/lineage_lilac-target_files-eng.pete/VENDOR --property ro.product.first_api_level=26 --property ro.boot.product.hardware.sku= --property ro.boot.product.vendor.sku="
Traceback (most recent call last):
  File "/home/pete/srv/iodeOS4/out/host/linux-x86/bin/ota_from_target_files/internal/stdlib/runpy.py", line 196, in _run_module_as_main
  File "/home/pete/srv/iodeOS4/out/host/linux-x86/bin/ota_from_target_files/internal/stdlib/runpy.py", line 86, in _run_code
  File "/home/pete/srv/iodeOS4/out/host/linux-x86/bin/ota_from_target_files/__main__.py", line 12, in <module>
  File "/home/pete/srv/iodeOS4/out/host/linux-x86/bin/ota_from_target_files/internal/stdlib/runpy.py", line 196, in _run_module_as_main
  File "/home/pete/srv/iodeOS4/out/host/linux-x86/bin/ota_from_target_files/internal/stdlib/runpy.py", line 86, in _run_code
  File "/home/pete/srv/iodeOS4/out/host/linux-x86/bin/ota_from_target_files/ota_from_target_files.py", line 1656, in <module>
  File "/home/pete/srv/iodeOS4/out/host/linux-x86/bin/ota_from_target_files/ota_from_target_files.py", line 1633, in main
  File "/home/pete/srv/iodeOS4/out/host/linux-x86/bin/ota_from_target_files/non_ab_ota.py", line 619, in GenerateNonAbOtaPackage
  File "/home/pete/srv/iodeOS4/out/host/linux-x86/bin/ota_from_target_files/non_ab_ota.py", line 263, in WriteFullOTAPackage
  File "/home/pete/srv/iodeOS4/out/host/linux-x86/bin/ota_from_target_files/check_target_files_vintf.py", line 252, in CheckVintfIfTrebleEnabled
  File "/home/pete/srv/iodeOS4/out/host/linux-x86/bin/ota_from_target_files/check_target_files_vintf.py", line 220, in CheckVintf
  File "/home/pete/srv/iodeOS4/out/host/linux-x86/bin/ota_from_target_files/check_target_files_vintf.py", line 151, in CheckVintfFromExtractedTargetFiles
common.ExternalError: Failed to run command 'checkvintf --check-compat --dirmap /odm:out/target/product/lilac/obj/PACKAGING/target_files_intermediates/lineage_lilac-target_files-eng.pete/VENDOR/odm --dirmap /product:out/target/product/lilac/obj/PACKAGING/target_files_intermediates/lineage_lilac-target_files-eng.pete/SYSTEM/product --dirmap /system:out/target/product/lilac/obj/PACKAGING/target_files_intermediates/lineage_lilac-target_files-eng.pete/SYSTEM --dirmap /system_ext:out/target/product/lilac/obj/PACKAGING/target_files_intermediates/lineage_lilac-target_files-eng.pete/SYSTEM/system_ext --dirmap /vendor:out/target/product/lilac/obj/PACKAGING/target_files_intermediates/lineage_lilac-target_files-eng.pete/VENDOR --property ro.product.first_api_level=26 --property ro.boot.product.hardware.sku= --property ro.boot.product.vendor.sku=' (exit code 70):

It’s not an error I’ve seen before. The code has some recent changes to the HAL code, to enable smart charging, but everything is OK in the LOS and /e/OS builds.

Any ideas or clues how to fix would be very welcome.

Thanks

(Also posted in the XDA forum thread for the upstream LineageOS build)

Problem found and fixed: see this XDA Forum post