[Android Software/Hacking General [Developers Only]] Slymi4n:
Good day everyone!

Recently I have decided to try to compile PixelExperience myself, but I ran into some problems.

I have downloaded the ROM source according to the wiki (branch is twelve at https://github.com/PixelExperience/manifest). Everything went according to plan until I tried building the source with mka bacon -j8.

Here's the output of the command from above (using -j1 instead of -j8 in the command above gives the same error):

21:21:00 ************************************************************
21:21:00 You are building on a machine with 15.6GB of RAM
21:21:00
21:21:00 The minimum required amount of free memory is around 16GB,
21:21:00 and even with that, some configurations may not work.
21:21:00
21:21:00 If you run into segfaults or other errors, try reducing your
21:21:00 -j value.
21:21:00 ************************************************************
vendor/aosp/config/bootanimation.mk:9: warning: "TARGET_BOOT_ANIMATION_RES is undefined, assuming 1080p"
build/make/core/soong_config.mk:199: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.
build/make/core/soong_config.mk:200: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=12
CUSTOM_VERSION=PixelExperience_raphael-12.1-20220811-1921-UNOFFICIAL
TARGET_PRODUCT=aosp_raphael
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.17.5-xanmod1-x86_64-Gentoo-Linux
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=SQ3A.220705.004
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/xiaomi/raphael device/xiaomi/raphael hardware/xiaomi hardware/qcom-caf/sm8150 vendor/qcom/opensource/commonsys/display vendor/qcom/opensource/commonsys-intf/display vendor/qcom/opensource/display vendor/qcom/opensource/data-ipa-cfg-mgr vendor/qcom/opensource/dataservices vendor/qcom/opensource/commonsys/packages/apps/Bluetooth vendor/qcom/opensource/commonsys/system/bt/conf vendor/qcom/opensource/commonsys/system/bt/main hardware/nxp hardware/qcom-caf/common/fwk-detect
============================================
[100% 1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
cd "$(dirname "out/soong/.bootstrap/bin/soong_build")" && BUILDER="$PWD/$(basename "out/soong/.bootstrap/bin/soong_build")" && cd
/ && env -i "$BUILDER" --top "$TOP" --out "out/soong" -n "out" -d "out/soong/build.ninja.d" -t -l out/.module_paths/Android.bp.list -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used Android.bp
error: frameworks/base/boot/Android.bp:44:1: "platform-bootclasspath" depends on undefined module "WfdCommon"
21:21:50 soong bootstrap failed with: exit status 1

From what I can gather "WfdCommon" is missing or is not registered. After a bit of digging I found out that maybe there should be a file called WfdCommon.jar, so I ran find -name WfdCommon.jar but it didn't find anything.

I want to build for my Xiaomi Mi 9T Pro (codenamed raphael) on Gentoo Linux (x86_64) by the way. I have an Intel Core i5 4590 running on 3.7 Ghz and 16 Gb of DDR3 RAM. Also an additional 149 Gb free space on the source partition (formatted as ext4).

What should I do? Why is it missing? Can I get this file from somewhere else?