[Xiaomi Mi Note 3 ROMs, Kernels, Recoveries, & Othe] vhyx:
Hello, does anyone successfully build LineageOS from source?

I try to do this with reference to the offical build steps of sagit.

and put jason.xml which from Minote3Dev(github) in "local_manifests" directory, then start compiling rom after synchronization is complete.

However, the compilation failed, and some error logs appeared.

For example:

FAILED: /bin/bash -c "(PWD=/proc/self/cwd /clang -Wno-vectorizer-no-neon -I bionic/libdl -I /scratch/zyx/others/cm_14/out/target/product/jason/obj/SHARED_LIBRARIES/libdl_intermediates -I /scratch/zyx/others/cm_14/out/target/product/jason/gen/SHARED_LIBRARIES/libdl_intermediates -I libnativehelper/include/nativehelper \$(cat /scratch/zyx/others/cm_14/out/target/product/jason/obj/SHARED_LIBRARIES/libdl_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem hardware/ril-caf/include -isystem /scratch/zyx/others/cm_14/out/target/product/jason/obj/include -isystem bionic/libc/arch-arm64/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libm/include -isystem bionic/libm/include/arm64 -c -fno-exceptions -Wno-multichar -fno-strict-aliasing -fstack-protector-strong -ffunction-sections -fdata-sections -funwind-tables -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -Werror=implicit-function-declaration -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -DNDEBUG -O2 -g -Wstrict-aliasing=2 -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -nostdlibinc -target aarch64-linux-android -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -std=gnu99 -Wall -Wextra -Wunused -Werror -fPIC -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD -MF /scratch/zyx/others/cm_14/out/target/product/jason/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.d -o /scratch/zyx/others/cm_14/out/target/product/jason/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.o bionic/libdl/libdl.c ) && (cp /scratch/zyx/others/cm_14/out/target/product/jason/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.d /scratch/zyx/others/cm_14/out/target/product/jason/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.P; sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\\\\$//' -e '/^\$/ d' -e 's/\$/ :/' < /scratch/zyx/others/cm_14/out/target/product/jason/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.d >> /scratch/zyx/others/cm_14/out/target/product/jason/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.P; rm -f /scratch/zyx/others/cm_14/out/target/product/jason/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.d )"
/bin/bash: /clang: No such file or directory

CHK include/config/kernel.release
GEN ./Makefile
CHK include/generated/uapi/linux/version.h
Using /scratch/zyx/others/cm_14/kernel/xiaomi/sdm660 as source for kernel
CHK include/generated/utsrelease.h
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL /scratch/zyx/others/cm_14/kernel/xiaomi/sdm660/scripts/checksyscalls.sh
make[1]: Leaving directory '/scratch/zyx/others/cm_14/out/target/product/jason/obj/KERNEL_OBJ'
make: Leaving directory '/scratch/zyx/others/cm_14/kernel/xiaomi/sdm660'
Building Kernel Modules
make: Entering directory '/scratch/zyx/others/cm_14/kernel/xiaomi/sdm660'
make[1]: Entering directory '/scratch/zyx/others/cm_14/out/target/product/jason/obj/KERNEL_OBJ'
CHK include/config/kernel.release
GEN ./Makefile
CHK include/generated/uapi/linux/version.h
Using /scratch/zyx/others/cm_14/kernel/xiaomi/sdm660 as source for kernel
CHK include/generated/utsrelease.h
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL /scratch/zyx/others/cm_14/kernel/xiaomi/sdm660/scripts/checksyscalls.sh
Building modules, stage 2.
MODPOST 0 modules
make[1]: Leaving directory '/scratch/zyx/others/cm_14/out/target/product/jason/obj/KERNEL_OBJ'
make: Leaving directory '/scratch/zyx/others/cm_14/kernel/xiaomi/sdm660'
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/scratch/zyx/others/cm_14'

^[[0;31m#### make failed to build some targets (13:07 (mm:ss)) ####^[[00m

I just join the forum, so I can't post outside links ....

Thanks everyone.