[Android] doors666:
This is my first rom compilation. Device is moto sanders, lineage-15.1 and I am using device tree from validius build. I am getting this error while compiling -

[ 74% 12136/16357] target Strip (mini debug info): android.hardware.gnss@1.0-impl (/run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/SHARED_LIBRARIES/android.hardware.gnss@1.0-impl_intermediates/android.hardware.gnss@1.0-impl.so)

[ 74% 12137/16357] target SharedLib: android.hardware.health@1.0-impl (/run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/SHARED_LIBRARIES/android.hardware.health@1.0-impl_intermediates/LINKED/android.hardware.health@1.0-impl.so)

FAILED: /run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/SHARED_LIBRARIES/android.hardware.health@1.0-impl_intermediates/LINKED/android.hardware.health@1.0-impl.so

/bin/bash -c "/bin/ccache prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -nostdlib -Wl,-soname,android.hardware.health@1.0-impl.so -Wl,--gc-sections -shared /run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/lib/crtbegin_so.o /run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/SHARED_LIBRARIES/android.hardware.health@1.0-impl_intermediates/Health.o -Wl,--whole-archive -Wl,--no-whole-archive /run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/STATIC_LIBRARIES/android.hardware.health@1.0-convert_intermediates/android.hardware.health@1.0-convert.a /run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/STATIC_LIBRARIES/libhealthd.lineage_intermediates/libhealthd.lineage.a /run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/libcompiler_rt-extras.a /run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/STATIC_LIBRARIES/libatomic_intermediates/libatomic.a /run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/STATIC_LIBRARIES/libgcc_intermediates/libgcc.a -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,-maarch64linux -Wl,--hash-style=gnu -Wl,--fix-cortex-a53-843419 -fuse-ld=gold -Wl,--icf=safe -Wl,--no-undefined-version -target aarch64-linux-android -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -Wl,--no-undefined /run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/lib/libcutils.so /run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/lib/libhidlbase.so /run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/lib/libhidltransport.so /run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/lib/liblog.so /run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/lib/libutils.so /run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/lib/android.hardware.health@1.0.so /run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/lib/libc++.so /run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/lib/libc.so /run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/lib/libm.so /run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/lib/libdl.so -o /run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/SHARED_LIBRARIES/android.hardware.health@1.0-impl_intermediates/LINKED/android.hardware.health@1.0-impl.so /run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/lib/crtend_so.o"

vendor/lineage/charger/healthd_board_lineage.cpp:296: error: undefined reference to 'res_create_multi_display_surface(char const*, int*, int*, GRSurface***)'

vendor/lineage/charger/healthd_board_lineage.cpp:77: error: undefined reference to 'gr_get_width(GRSurface*)'

vendor/lineage/charger/healthd_board_lineage.cpp:78: error: undefined reference to 'gr_get_height(GRSurface*)'

vendor/lineage/charger/healthd_board_lineage.cpp:79: error: undefined reference to 'gr_fb_width()'

vendor/lineage/charger/healthd_board_lineage.cpp:80: error: undefined reference to 'gr_fb_height()'

vendor/lineage/charger/healthd_board_lineage.cpp:82: error: undefined reference to 'gr_blit(GRSurface*, int, int, int, int, int, int)'

vendor/lineage/charger/healthd_board_lineage.cpp:94: error: undefined reference to 'gr_font_size(GRFont const*, int*, int*)'

vendor/lineage/charger/healthd_board_lineage.cpp:95: error: undefined reference to 'gr_measure(GRFont const*, char const*)'

vendor/lineage/charger/healthd_board_lineage.cpp:96: error: undefined reference to 'gr_get_height(GRSurface*)'

vendor/lineage/charger/healthd_board_lineage.cpp:97: error: undefined reference to 'gr_fb_width()'

vendor/lineage/charger/healthd_board_lineage.cpp:98: error: undefined reference to 'gr_fb_height()'

vendor/lineage/charger/healthd_board_lineage.cpp:100: error: undefined reference to 'gr_color(unsigned char, unsigned char, unsigned char, unsigned char)'

vendor/lineage/charger/healthd_board_lineage.cpp:101: error: undefined reference to 'gr_text(GRFont const*, int, int, char const*, bool)'

vendor/lineage/charger/healthd_board_lineage.cpp:410: error: undefined reference to 'gr_init_font(char const*, GRFont**)'

vendor/lineage/charger/healthd_board_lineage.cpp:415: error: undefined reference to 'gr_sys_font()'

clang.real: error: linker command failed with exit code 1 (use -v to see invocation)

[ 74% 12138/16357] target SharedLib: libgps.utils (/run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/SHARED_LIBRARIES/libgps.utils_intermediates/LINKED/libgps.utils.so)

[ 74% 12139/16357] target Strip (mini debug info): wpa_supplicant (/run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/EXECUTABLES/wpa_supplicant_intermediates/wpa_supplicant)

[ 74% 12140/16357] target SharedLib: libpac (/run/media/me/Code/Code/myAndroid/V0.1/lineage-15.1/out/target/product/sanders/obj/SHARED_LIBRARIES/libpac_intermediates/LINKED/libpac.so)

ninja: build stopped: subcommand failed.

16:01:10 ninja failed with: exit status 1

#### failed to build some targets (03:54:46 (hh:mm:ss)) ####

I looked around, the function res_create_multi_display_surface is defined in bootable/recovery/minui/resources.cpp. Its defined in bootable/recovery/minui/include/minui/minui.h. Function signature also matches. At link time, its probably not able to find the library that contains the function. Can someone please help.