I'm trying to build Lineage 15.1 myself and after some fixable errors my build fails with this:
I first thought it was because it tried to use "services_intermediates//profile.prof" so I searched and changed the corresponding makefile rule, but it still fails now.
I'd appreciate your help and if I can run builds on my own would gladly help working on the ROM
Code:
Made recovery image: /home/me/android/system/out/target/product/kminilte/recovery.img
[ 11% 44/376] Dexpreopt Jar: services (/home/me/android/system/out/target/product/kminilte/obj/JAVA_LIBRARIES/services_intermediates/oat/arm/javalib.odex)
FAILED: /home/me/android/system/out/target/product/kminilte/obj/JAVA_LIBRARIES/services_intermediates/oat/arm/javalib.odex
/bin/bash -c "(rm -f /home/me/android/system/out/target/product/kminilte/obj/JAVA_LIBRARIES/services_intermediates/oat/arm/javalib.odex ) && (mkdir -p /home/me/android/system/out/target/product/kminilte/obj/JAVA_LIBRARIES/services_intermediates/oat/arm/ ) && (ANDROID_LOG_TAGS=\"*:e\" /home/me/android/system/out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx512m --class-loader-context=\"&\" --boot-image=/home/me/android/system/out/target/product/kminilte/dex_bootjars/system/framework/boot.art --dex-file=/home/me/android/system/out/target/common/obj/JAVA_LIBRARIES/services_intermediates/javalib.jar --dex-location=/system/framework/services.jar --oat-file=/home/me/android/system/out/target/product/kminilte/obj/JAVA_LIBRARIES/services_intermediates/oat/arm/javalib.odex --android-root=/home/me/android/system/out/target/product/kminilte/system --instruction-set=arm --instruction-set-variant=cortex-a7 --instruction-set-features=default --runtime-arg -Xnorelocate --compile-pic --no-generate-debug-info --generate-build-id --abort-on-hard-verifier-error --force-determinism --no-inline-from=core-oj.jar --compiler-filter=speed --generate-mini-debug-info --app-image-file=/home/me/android/system/out/target/product/kminilte/obj/JAVA_LIBRARIES/services_intermediates/oat/arm/javalib.art --image-format=lz4 --profile-file=/home/me/android/system/out/target/product/kminilte/obj/JAVA_LIBRARIES/services_intermediates/profile.prof )"
dex2oatd E 03-02 11:31:45 23816 23816 dex2oat.cc:2329] Cannot lock profiles: Failed to lock file '/home/me/android/system/out/target/product/kminilte/obj/JAVA_LIBRARIES/services_intermediates/profile.prof': Bad file descriptor
dex2oatd E 03-02 11:31:45 23816 23816 dex2oat.cc:3093] Failed to process profile file
ninja: build stopped: subcommand failed.
11:31:45 ninja failed with: exit status 1
I'd appreciate your help and if I can run builds on my own would gladly help working on the ROM