Closed rik0612c closed 1 year ago
如果不修改任何源码,只能编译 userdebug
(official) 或 eng
类型的版本,很多 patch 都是 user
类型所需的,而另外两种没有这么严格(比如在 user
类型 SELinux 默认必须为强制模式)。而精简不需要的组件、添加附加设置项、补充全字重 NotoCJK 字体、添加 MicroG 支持的修改同样是非必须的。此外,需要删除 BoardConfig.mk 中 Dexpreopt
部分的大多数选项(详见注释),以避免违反原生的构建规则。
综上,如果想保持 LineageOS 原生风格且不编译 user
版本,repo_diff
是完全可选的。之前曾考虑过上 Official 版本,所以不再有必须修改源码的要求了,只是后来因为 SELinux 问题和个人时间而没能如愿。
您好,我尝试使用您的repo构建los18.1,内核编译不过,报错如下,请问是哪里没配置好吗
FAILED: Building Kernel Image (Image.gz-dtb) Outputs: out/target/product/libra/obj/KERNEL_OBJ/arch/arm64/boot/Image.gz-dtb Error: exited with code: 1 Command: /bin/bash -c "(PATH=/home/buillder/los18/out/host/linux-x86/bin:\$PATH PATH=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b1/bin:\$PATH LD_LIBRARY_PATH=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b1/lib64:\$LD_LIBRARY_PATH PATH=/home/buillder/los18/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/home/buillder/los18/prebuilts/tools-lineage/linux-x86/bin:\$PATH LD_LIBRARY_PATH=/home/buillder/los18/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/buillder/los18/prebuilts/tools-lineage/common/perl-base BISON_PKGDATADIR=/home/buillder/los18/prebuilts/build-tools/common/bison /home/buillder/los18/prebuilts/build-tools/linux-x86/bin/make -j16 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTCFLAGS=\"-fuse-ld=lld\" HOSTLDFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld\" HOSTCC=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b/bin/clang HOSTCXX=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b/bin/clang++ LEX=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/flex YACC=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/bison M4=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/m4 -C kernel/xiaomi/libra O=/home/buillder/los18/out/target/product/libra/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/home/buillder/los18/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/home/buillder/los18/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CROSS_COMPILE_COMPAT=\"/home/buillder/los18/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\"/usr/bin/ccache clang\" Image.gz-dtb ) && (if grep -q '^CONFIG_OF=y' out/target/product/libra/obj/KERNEL_OBJ/.config; then echo \"Building DTBs\"; PATH=/home/buillder/los18/out/host/linux-x86/bin:\$PATH PATH=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b1/bin:\$PATH LD_LIBRARY_PATH=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b1/lib64:\$LD_LIBRARY_PATH PATH=/home/buillder/los18/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/home/buillder/los18/prebuilts/tools-lineage/linux-x86/bin:\$PATH LD_LIBRARY_PATH=/home/buillder/los18/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/buillder/los18/prebuilts/tools-lineage/common/perl-base BISON_PKGDATADIR=/home/buillder/los18/prebuilts/build-tools/common/bison /home/buillder/los18/prebuilts/build-tools/linux-x86/bin/make -j16 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTCFLAGS=\"-fuse-ld=lld\" HOSTLDFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld\" HOSTCC=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b/bin/clang HOSTCXX=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b/bin/clang++ LEX=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/flex YACC=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/bison M4=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/m4 -C kernel/xiaomi/libra O=/home/buillder/los18/out/target/product/libra/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/home/buillder/los18/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/home/buillder/los18/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CROSS_COMPILE_COMPAT=\"/home/buillder/los18/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\"/usr/bin/ccache clang\" dtbs; fi ) && (if grep -q '=m' out/target/product/libra/obj/KERNEL_OBJ/.config; then echo \"Building Kernel Modules\"; PATH=/home/buillder/los18/out/host/linux-x86/bin:\$PATH PATH=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b1/bin:\$PATH LD_LIBRARY_PATH=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b1/lib64:\$LD_LIBRARY_PATH PATH=/home/buillder/los18/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/home/buillder/los18/prebuilts/tools-lineage/linux-x86/bin:\$PATH LD_LIBRARY_PATH=/home/buillder/los18/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/buillder/los18/prebuilts/tools-lineage/common/perl-base BISON_PKGDATADIR=/home/buillder/los18/prebuilts/build-tools/common/bison /home/buillder/los18/prebuilts/build-tools/linux-x86/bin/make -j16 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTCFLAGS=\"-fuse-ld=lld\" HOSTLDFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld\" HOSTCC=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b/bin/clang HOSTCXX=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b/bin/clang++ LEX=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/flex YACC=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/bison M4=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/m4 -C kernel/xiaomi/libra O=/home/buillder/los18/out/target/product/libra/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/home/buillder/los18/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/home/buillder/los18/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CROSS_COMPILE_COMPAT=\"/home/buillder/los18/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\"/usr/bin/ccache clang\" modules || exit \"\$?\"; echo \"Installing Kernel Modules\"; PATH=/home/buillder/los18/out/host/linux-x86/bin:\$PATH PATH=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b1/bin:\$PATH LD_LIBRARY_PATH=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b1/lib64:\$LD_LIBRARY_PATH PATH=/home/buillder/los18/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/home/buillder/los18/prebuilts/tools-lineage/linux-x86/bin:\$PATH LD_LIBRARY_PATH=/home/buillder/los18/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/buillder/los18/prebuilts/tools-lineage/common/perl-base BISON_PKGDATADIR=/home/buillder/los18/prebuilts/build-tools/common/bison /home/buillder/los18/prebuilts/build-tools/linux-x86/bin/make -j16 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTCFLAGS=\"-fuse-ld=lld\" HOSTLDFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld\" HOSTCC=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b/bin/clang HOSTCXX=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b/bin/clang++ LEX=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/flex YACC=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/bison M4=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/m4 -C kernel/xiaomi/libra O=/home/buillder/los18/out/target/product/libra/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/home/buillder/los18/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/home/buillder/los18/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CROSS_COMPILE_COMPAT=\"/home/buillder/los18/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\"/usr/bin/ccache clang\" INSTALL_MOD_PATH=/home/buillder/los18/out/target/product/libra/obj/PACKAGING/kernel_modules_intermediates INSTALL_MOD_STRIP=1 modules_install; kernel_release=\$(cat out/target/product/libra/obj/KERNEL_OBJ/include/config/kernel.release) kernel_modules_dir=/home/buillder/los18/out/target/product/libra/obj/PACKAGING/kernel_modules_intermediates/lib/modules/\$kernel_release ; modules=\$(find \$kernel_modules_dir -type f -name '.ko'); ( mkdir -p out/target/product/libra/vendor/lib/modules ) && (cp \$modules out/target/product/libra/vendor/lib/modules/ ) && (rm -rf /home/buillder/los18/out/target/product/libra/obj/PACKAGING/depmod_vendor_intermediates ) && (mkdir -p /home/buillder/los18/out/target/product/libra/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/vendor/lib/modules ) && (cp \$modules /home/buillder/los18/out/target/product/libra/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/vendor/lib/modules ) && (out/host/linux-x86/bin/depmod -b /home/buillder/los18/out/target/product/libra/obj/PACKAGING/depmod_vendor_intermediates 0.0 ) && (sed -e 's/\(.modules.\):/\/\1:/g' -e 's/ \([^ ]modules[^ ]*\)/ \/\1/g' /home/buillder/los18/out/target/product/libra/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/modules.dep > out/target/product/libra/vendor/lib/modules/modules.dep ) && (cp /home/buillder/los18/out/target/product/libra/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/modules.softdep out/target/product/libra/vendor/lib/modules ) && (cp /home/buillder/los18/out/target/product/libra/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/modules.alias out/target/product/libra/vendor/lib/modules ) && (rm -f out/target/product/libra/vendor/lib/modules/modules.load ) && (for MODULE in ; do basename \$MODULE >> out/target/product/libra/vendor/lib/modules/modules.load; done); fi )" Output: make: Entering directory '/home/buillder/los18/kernel/xiaomi/libra' GEN /home/buillder/los18/out/target/product/libra/obj/KERNEL_OBJ/Makefile scripts/kconfig/conf --silentoldconfig Kconfig GEN /home/buillder/los18/out/target/product/libra/obj/KERNEL_OBJ/Makefile WRAP arch/arm64/include/generated/asm/bugs.h WRAP arch/arm64/include/generated/asm/checksum.h WRAP arch/arm64/include/generated/asm/clkdev.h WRAP arch/arm64/include/generated/asm/cputime.h WRAP arch/arm64/include/generated/asm/current.h WRAP arch/arm64/include/generated/asm/delay.h CHK include/generated/uapi/linux/version.h WRAP arch/arm64/include/generated/asm/div64.h WRAP arch/arm64/include/generated/asm/dma.h UPD include/generated/uapi/linux/version.h WRAP arch/arm64/include/generated/asm/early_ioremap.h HOSTCC scripts/basic/fixdep WRAP arch/arm64/include/generated/asm/emergency-restart.h WRAP arch/arm64/include/generated/asm/errno.h WRAP arch/arm64/include/generated/asm/ftrace.h WRAP arch/arm64/include/generated/asm/hw_irq.h WRAP arch/arm64/include/generated/asm/ioctl.h WRAP arch/arm64/include/generated/asm/ioctls.h WRAP arch/arm64/include/generated/asm/ipcbuf.h WRAP arch/arm64/include/generated/asm/irq_regs.h WRAP arch/arm64/include/generated/asm/irq_work.h WRAP arch/arm64/include/generated/asm/kdebug.h WRAP arch/arm64/include/generated/asm/kmap_types.h WRAP arch/arm64/include/generated/asm/kvm_para.h WRAP arch/arm64/include/generated/asm/local.h WRAP arch/arm64/include/generated/asm/local64.h WRAP arch/arm64/include/generated/asm/mcs_spinlock.h WRAP arch/arm64/include/generated/asm/mman.h WRAP arch/arm64/include/generated/asm/msgbuf.h WRAP arch/arm64/include/generated/asm/mutex.h WRAP arch/arm64/include/generated/asm/pci.h WRAP arch/arm64/include/generated/asm/poll.h WRAP arch/arm64/include/generated/asm/resource.h WRAP arch/arm64/include/generated/asm/rwsem.h WRAP arch/arm64/include/generated/asm/scatterlist.h WRAP arch/arm64/include/generated/asm/sections.h WRAP arch/arm64/include/generated/asm/segment.h WRAP arch/arm64/include/generated/asm/sembuf.h WRAP arch/arm64/include/generated/asm/serial.h WRAP arch/arm64/include/generated/asm/shmbuf.h WRAP arch/arm64/include/generated/asm/simd.h WRAP arch/arm64/include/generated/asm/sizes.h WRAP arch/arm64/include/generated/asm/socket.h WRAP arch/arm64/include/generated/asm/sockios.h WRAP arch/arm64/include/generated/asm/swab.h WRAP arch/arm64/include/generated/asm/switch_to.h WRAP arch/arm64/include/generated/asm/termbits.h WRAP arch/arm64/include/generated/asm/termios.h WRAP arch/arm64/include/generated/asm/topology.h WRAP arch/arm64/include/generated/asm/trace_clock.h WRAP arch/arm64/include/generated/asm/types.h WRAP arch/arm64/include/generated/asm/unaligned.h WRAP arch/arm64/include/generated/asm/user.h WRAP arch/arm64/include/generated/asm/vga.h WRAP arch/arm64/include/generated/asm/xor.h WRAP arch/arm64/include/generated/asm/preempt.h WRAP arch/arm64/include/generated/uapi/asm/kvm_para.h HOSTCC scripts/sortextable HOSTCC scripts/dtc/checks.o HOSTCC scripts/dtc/data.o CC scripts/mod/empty.o HOSTCC scripts/mod/mk_elfconfig SHIPPED scripts/dtc/dtc-lexer.lex.c SHIPPED scripts/dtc/dtc-parser.tab.h clang-11: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument] CC scripts/mod/devicetable-offsets.s SHIPPED scripts/dtc/dtc-parser.tab.c clang-11: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument] HOSTCC scripts/selinux/genheaders/genheaders HOSTCC scripts/selinux/mdp/mdp HOSTCC scripts/dtc/dtc.o HOSTCC scripts/dtc/flattree.o HOSTCC scripts/dtc/fstree.o clang-11: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument] HOSTCC scripts/dtc/livetree.o clang-11: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument] HOSTCC scripts/dtc/srcpos.o clang-11: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument] clang-11: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument] [0;1;31merror: [0munknown warning option '-Wno-pointer-to-enum-cast'; did you mean '-Wno-pointer-compare'? [-Werror,-Wunknown-warning-option][0m clang (LLVM option parsing): Unknown command line argument '-polly'. Try: 'clang (LLVM option parsing) --help' clang (LLVM option parsing): Did you mean '--color'? HOSTCC scripts/dtc/treesource.o clang (LLVM option parsing): Unknown command line argument '-polly-ast-use-context'. Try: 'clang (LLVM option parsing) --help' clang (LLVM option parsing): Did you mean '--print-debug-counter'? clang (LLVM option parsing): Unknown command line argument '-polly-detect-keep-going'. Try: 'clang (LLVM option parsing) --help' clang (LLVM option parsing): Did you mean '--msan-keep-going'? clang (LLVM option parsing): Unknown command line argument '-polly-invariant-load-hoisting'. Try: 'clang (LLVM option parsing) --help' clang (LLVM option parsing): Did you mean '--licm-control-flow-hoisting'? clang (LLVM option parsing): Unknown command line argument '-polly-opt-fusion=max'. Try: 'clang (LLVM option parsing) --help' clang (LLVM option parsing): Did you mean '--misched-fusion=max'? HOSTCC scripts/dtc/util.o clang (LLVM option parsing): Unknown command line argument '-polly-run-dce'. Try: 'clang (LLVM option parsing) --help' clang (LLVM option parsing): Did you mean '--unroll-runtime'? clang (LLVM option parsing): Unknown command line argument '-polly-run-inliner'. Try: 'clang (LLVM option parsing) --help' clang (LLVM option parsing): Did you mean '--unroll-remainder'? clang (LLVM option parsing): Unknown command line argument '-polly-vectorizer=stripmine'. Try: 'clang (LLVM option parsing) --help' clang (LLVM option parsing): Did you mean '--slp-vectorize-hor=stripmine'? clang-11: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument] make[3]: [/home/buillder/los18/kernel/xiaomi/libra/scripts/Makefile.build:286: scripts/mod/empty.o] Error 1 make[3]: Waiting for unfinished jobs.... [0;1;31merror: [0munknown warning option '-Wno-pointer-to-enum-cast'; did you mean '-Wno-pointer-compare'? [-Werror,-Wunknown-warning-option][0m clang (LLVM option parsing): Unknown command line argument '-polly'. Try: 'clang (LLVM option parsing) --help' clang (LLVM option parsing): Did you mean '--color'? clang (LLVM option parsing): Unknown command line argument '-polly-ast-use-context'. Try: 'clang (LLVM option parsing) --help' clang (LLVM option parsing): Did you mean '--print-debug-counter'? clang-11: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument] clang (LLVM option parsing): Unknown command line argument '-polly-detect-keep-going'. Try: 'clang (LLVM option parsing) --help' clang (LLVM option parsing): Did you mean '--msan-keep-going'? clang (LLVM option parsing): Unknown command line argument '-polly-invariant-load-hoisting'. Try: 'clang (LLVM option parsing) --help' clang (LLVM option parsing): Did you mean '--licm-control-flow-hoisting'? clang (LLVM option parsing): Unknown command line argument '-polly-opt-fusion=max'. Try: 'clang (LLVM option parsing) --help' clang (LLVM option parsing): Did you mean '--misched-fusion=max'? HOSTCC scripts/dtc/dtc-lexer.lex.o clang (LLVM option parsing): Unknown command line argument '-polly-run-dce'. Try: 'clang (LLVM option parsing) --help' clang (LLVM option parsing): Did you mean '--unroll-runtime'? clang (LLVM option parsing): Unknown command line argument '-polly-run-inliner'. Try: 'clang (LLVM option parsing) --help' clang (LLVM option parsing): Did you mean '--unroll-remainder'? clang (LLVM option parsing): Unknown command line argument '-polly-vectorizer=stripmine'. Try: 'clang (LLVM option parsing) --help' clang (LLVM option parsing): Did you mean '--slp-vectorize-hor=stripmine'? make[3]: [/home/buillder/los18/kernel/xiaomi/libra/scripts/Makefile.build:154: scripts/mod/devicetable-offsets.s] Error 1 clang-11: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument] HOSTCC scripts/dtc/dtc-parser.tab.o make[2]: [/home/buillder/los18/kernel/xiaomi/libra/scripts/Makefile.build:527: scripts/mod] Error 2 make[2]: Waiting for unfinished jobs.... clang-11: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument] clang-11: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument] HOSTLD scripts/dtc/dtc make[1]: [/home/buillder/los18/kernel/xiaomi/libra/Makefile:548: scripts] Error 2 make[1]: Waiting for unfinished jobs.... make: [Makefile:127: sub-make] Error 2 make: Leaving directory '/home/buillder/los18/kernel/xiaomi/libra'
makefile中删除了polly的使用和一些wno警告,又有了其他错误:
FAILED: Building Kernel Image (Image.gz-dtb) Outputs: out/target/product/libra/obj/KERNEL_OBJ/arch/arm64/boot/Image.gz-dtb Error: exited with code: 1 Command: /bin/bash -c "(PATH=/home/buillder/los18/out/host/linux-x86/bin:\$PATH PATH=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b1/bin:\$PATH LD_LIBRARY_PATH=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b1/lib64:\$LD_LIBRARY_PATH PATH=/home/buillder/los18/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/home/buillder/los18/prebuilts/tools-lineage/linux-x86/bin:\$PATH LD_LIBRARY_PATH=/home/buillder/los18/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/buillder/los18/prebuilts/tools-lineage/common/perl-base BISON_PKGDATADIR=/home/buillder/los18/prebuilts/build-tools/common/bison /home/buillder/los18/prebuilts/build-tools/linux-x86/bin/make -j16 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTCFLAGS=\"-fuse-ld=lld\" HOSTLDFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld\" HOSTCC=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b/bin/clang HOSTCXX=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b/bin/clang++ LEX=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/flex YACC=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/bison M4=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/m4 -C kernel/xiaomi/libra O=/home/buillder/los18/out/target/product/libra/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/home/buillder/los18/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/home/buillder/los18/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CROSS_COMPILE_COMPAT=\"/home/buillder/los18/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\"/usr/bin/ccache clang\" Image.gz-dtb ) && (if grep -q '^CONFIG_OF=y' out/target/product/libra/obj/KERNEL_OBJ/.config; then echo \"Building DTBs\"; PATH=/home/buillder/los18/out/host/linux-x86/bin:\$PATH PATH=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b1/bin:\$PATH LD_LIBRARY_PATH=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b1/lib64:\$LD_LIBRARY_PATH PATH=/home/buillder/los18/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/home/buillder/los18/prebuilts/tools-lineage/linux-x86/bin:\$PATH LD_LIBRARY_PATH=/home/buillder/los18/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/buillder/los18/prebuilts/tools-lineage/common/perl-base BISON_PKGDATADIR=/home/buillder/los18/prebuilts/build-tools/common/bison /home/buillder/los18/prebuilts/build-tools/linux-x86/bin/make -j16 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTCFLAGS=\"-fuse-ld=lld\" HOSTLDFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld\" HOSTCC=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b/bin/clang HOSTCXX=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b/bin/clang++ LEX=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/flex YACC=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/bison M4=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/m4 -C kernel/xiaomi/libra O=/home/buillder/los18/out/target/product/libra/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/home/buillder/los18/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/home/buillder/los18/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CROSS_COMPILE_COMPAT=\"/home/buillder/los18/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\"/usr/bin/ccache clang\" dtbs; fi ) && (if grep -q '=m' out/target/product/libra/obj/KERNEL_OBJ/.config; then echo \"Building Kernel Modules\"; PATH=/home/buillder/los18/out/host/linux-x86/bin:\$PATH PATH=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b1/bin:\$PATH LD_LIBRARY_PATH=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b1/lib64:\$LD_LIBRARY_PATH PATH=/home/buillder/los18/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/home/buillder/los18/prebuilts/tools-lineage/linux-x86/bin:\$PATH LD_LIBRARY_PATH=/home/buillder/los18/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/buillder/los18/prebuilts/tools-lineage/common/perl-base BISON_PKGDATADIR=/home/buillder/los18/prebuilts/build-tools/common/bison /home/buillder/los18/prebuilts/build-tools/linux-x86/bin/make -j16 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTCFLAGS=\"-fuse-ld=lld\" HOSTLDFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld\" HOSTCC=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b/bin/clang HOSTCXX=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b/bin/clang++ LEX=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/flex YACC=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/bison M4=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/m4 -C kernel/xiaomi/libra O=/home/buillder/los18/out/target/product/libra/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/home/buillder/los18/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/home/buillder/los18/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CROSS_COMPILE_COMPAT=\"/home/buillder/los18/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\"/usr/bin/ccache clang\" modules || exit \"\$?\"; echo \"Installing Kernel Modules\"; PATH=/home/buillder/los18/out/host/linux-x86/bin:\$PATH PATH=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b1/bin:\$PATH LD_LIBRARY_PATH=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b1/lib64:\$LD_LIBRARY_PATH PATH=/home/buillder/los18/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/home/buillder/los18/prebuilts/tools-lineage/linux-x86/bin:\$PATH LD_LIBRARY_PATH=/home/buillder/los18/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/buillder/los18/prebuilts/tools-lineage/common/perl-base BISON_PKGDATADIR=/home/buillder/los18/prebuilts/build-tools/common/bison /home/buillder/los18/prebuilts/build-tools/linux-x86/bin/make -j16 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTCFLAGS=\"-fuse-ld=lld\" HOSTLDFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64 -fuse-ld=lld\" HOSTCC=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b/bin/clang HOSTCXX=/home/buillder/los18/prebuilts/clang/host/linux-x86/clang-r383902b/bin/clang++ LEX=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/flex YACC=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/bison M4=/home/buillder/los18/prebuilts/build-tools/linux-x86/bin/m4 -C kernel/xiaomi/libra O=/home/buillder/los18/out/target/product/libra/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/home/buillder/los18/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/home/buillder/los18/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CROSS_COMPILE_COMPAT=\"/home/buillder/los18/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\"/usr/bin/ccache clang\" INSTALL_MOD_PATH=/home/buillder/los18/out/target/product/libra/obj/PACKAGING/kernel_modules_intermediates INSTALL_MOD_STRIP=1 modules_install; kernel_release=\$(cat out/target/product/libra/obj/KERNEL_OBJ/include/config/kernel.release) kernel_modules_dir=/home/buillder/los18/out/target/product/libra/obj/PACKAGING/kernel_modules_intermediates/lib/modules/\$kernel_release ; modules=\$(find \$kernel_modules_dir -type f -name '.ko'); ( mkdir -p out/target/product/libra/vendor/lib/modules ) && (cp \$modules out/target/product/libra/vendor/lib/modules/ ) && (rm -rf /home/buillder/los18/out/target/product/libra/obj/PACKAGING/depmod_vendor_intermediates ) && (mkdir -p /home/buillder/los18/out/target/product/libra/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/vendor/lib/modules ) && (cp \$modules /home/buillder/los18/out/target/product/libra/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/vendor/lib/modules ) && (out/host/linux-x86/bin/depmod -b /home/buillder/los18/out/target/product/libra/obj/PACKAGING/depmod_vendor_intermediates 0.0 ) && (sed -e 's/\(.modules.\):/\/\1:/g' -e 's/ \([^ ]modules[^ ]*\)/ \/\1/g' /home/buillder/los18/out/target/product/libra/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/modules.dep > out/target/product/libra/vendor/lib/modules/modules.dep ) && (cp /home/buillder/los18/out/target/product/libra/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/modules.softdep out/target/product/libra/vendor/lib/modules ) && (cp /home/buillder/los18/out/target/product/libra/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/modules.alias out/target/product/libra/vendor/lib/modules ) && (rm -f out/target/product/libra/vendor/lib/modules/modules.load ) && (for MODULE in ; do basename \$MODULE >> out/target/product/libra/vendor/lib/modules/modules.load; done); fi )" Output: make: Entering directory '/home/buillder/los18/kernel/xiaomi/libra' GEN /home/buillder/los18/out/target/product/libra/obj/KERNEL_OBJ/Makefile scripts/kconfig/conf --silentoldconfig Kconfig GEN /home/buillder/los18/out/target/product/libra/obj/KERNEL_OBJ/Makefile CHK include/generated/uapi/linux/version.h CC scripts/mod/empty.o CC scripts/mod/devicetable-offsets.s Using /home/buillder/los18/kernel/xiaomi/libra as source for kernel MKELF scripts/mod/elfconfig.h HOSTCC scripts/mod/modpost.o HOSTCC scripts/mod/sumversion.o clang-11: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument] clang-11: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument] CHK include/generated/utsrelease.h CHK scripts/mod/devicetable-offsets.h UPD scripts/mod/devicetable-offsets.h CC kernel/bounds.s HOSTCC scripts/mod/file2alias.o clang-11: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument] CHK include/generated/bounds.h UPD include/generated/bounds.h CC arch/arm64/kernel/asm-offsets.s HOSTLD scripts/mod/modpost make[2]: Nothing to be done for 'dtbs'. DTC arch/arm64/boot/dts/qcom/../msm8994-v1-sim.dtb DTC arch/arm64/boot/dts/qcom/../msm8994-rumi.dtb DTC arch/arm64/boot/dts/qcom/../msm8994-v1-cdp.dtb DTC arch/arm64/boot/dts/qcom/../msm8994-pmi8994-pm8004-v1-cdp.dtb DTC arch/arm64/boot/dts/qcom/../msm8994-v1-mtp.dtb DTC arch/arm64/boot/dts/qcom/../msm8994-pmi8994-pm8004-v1-mtp.dtb DTC arch/arm64/boot/dts/qcom/../msm8994-v1-liquid.dtb DTC arch/arm64/boot/dts/qcom/../msm8994-v1-fluid.dtb DTC arch/arm64/boot/dts/qcom/../apq8094-v1-cdp.dtb DTC arch/arm64/boot/dts/qcom/../apq8094-v1-mtp.dtb DTC arch/arm64/boot/dts/qcom/../apq8094-v1-liquid.dtb In file included from ../../../../../../kernel/xiaomi/libra/arch/arm64/kernel/asm-offsets.c:21: In file included from ../../../../../../kernel/xiaomi/libra/include/linux/sched.h:19: In file included from ../../../../../../kernel/xiaomi/libra/include/linux/timex.h:65: In file included from ../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/timex.h:19: [1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:34:50: [0m[0;1;31merror: [0m[1mvalue size does not match register size specified by the constraint and modifier [-Werror,-Wasm-operand-widths][0m asm volatile("msr cntp_ctl_el0, %0" : : "r" (val)); [0;1;32m ^ [0m[1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:34:37: [0m[0;1;30mnote: [0muse constraint modifier "w"[0m asm volatile("msr cntp_ctl_el0, %0" : : "r" (val)); [0;1;32m ^~ [0m[0;32m %w0 [0m[1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:37:50: [0m[0;1;31merror: [0m[1mvalue size does not match register size specified by the constraint and modifier [-Werror,-Wasm-operand-widths][0m asm volatile("msr cntp_tval_el0, %0" : : "r" (val)); [0;1;32m ^ [0m[1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:37:37: [0m[0;1;30mnote: [0muse constraint modifier "w"[0m asm volatile("msr cntp_tval_el0, %0" : : "r" (val)); [0;1;32m ^~ [0m[0;32m %w0 [0m[1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:45:50: [0m[0;1;31merror: [0m[1mvalue size does not match register size specified by the constraint and modifier [-Werror,-Wasm-operand-widths][0m asm volatile("msr cntv_ctl_el0, %0" : : "r" (val)); [0;1;32m ^ [0m[1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:45:37: [0m[0;1;30mnote: [0muse constraint modifier "w"[0m asm volatile("msr cntv_ctl_el0, %0" : : "r" (val)); [0;1;32m ^~ [0m[0;32m %w0 [0m[1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:48:50: [0m[0;1;31merror: [0m[1mvalue size does not match register size specified by the constraint and modifier [-Werror,-Wasm-operand-widths][0m asm volatile("msr cntv_tval_el0, %0" : : "r" (val)); [0;1;32m ^ [0m[1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:48:37: [0m[0;1;30mnote: [0muse constraint modifier "w"[0m asm volatile("msr cntv_tval_el0, %0" : : "r" (val)); [0;1;32m ^~ [0m[0;32m %w0 [0m[1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:67:49: [0m[0;1;31merror: [0m[1mvalue size does not match register size specified by the constraint and modifier [-Werror,-Wasm-operand-widths][0m asm volatile("mrs %0, cntp_ctl_el0" : "=r" (val)); [0;1;32m ^ [0m[1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:67:22: [0m[0;1;30mnote: [0muse constraint modifier "w"[0m asm volatile("mrs %0, cntp_ctl_el0" : "=r" (val)); [0;1;32m ^~ [0m[0;32m %w0 [0m[1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:70:49: [0m[0;1;31merror: [0m[1mvalue size does not match register size specified by the constraint and modifier [-Werror,-Wasm-operand-widths][0m asm volatile("mrs %0, cntp_tval_el0" : "=r" (val)); [0;1;32m ^ [0m[1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:70:22: [0m[0;1;30mnote: [0muse constraint modifier "w"[0m asm volatile("mrs %0, cntp_tval_el0" : "=r" (val)); [0;1;32m ^~ [0m[0;32m %w0 [0m[1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:78:49: [0m[0;1;31merror: [0m[1mvalue size does not match register size specified by the constraint and modifier [-Werror,-Wasm-operand-widths][0m asm volatile("mrs %0, cntv_ctl_el0" : "=r" (val)); [0;1;32m ^ [0m[1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:78:22: [0m[0;1;30mnote: [0muse constraint modifier "w"[0m asm volatile("mrs %0, cntv_ctl_el0" : "=r" (val)); [0;1;32m ^~ [0m[0;32m %w0 [0m[1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:81:49: [0m[0;1;31merror: [0m[1mvalue size does not match register size specified by the constraint and modifier [-Werror,-Wasm-operand-widths][0m asm volatile("mrs %0, cntv_tval_el0" : "=r" (val)); [0;1;32m ^ [0m[1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:81:22: [0m[0;1;30mnote: [0muse constraint modifier "w"[0m asm volatile("mrs %0, cntv_tval_el0" : "=r" (val)); [0;1;32m ^~ [0m[0;32m %w0 [0m[1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:96:46: [0m[0;1;31merror: [0m[1mvalue size does not match register size specified by the constraint and modifier [-Werror,-Wasm-operand-widths][0m asm volatile("mrs %0, cntfrq_el0" : "=r" (val)); [0;1;32m ^ [0m[1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:96:20: [0m[0;1;30mnote: [0muse constraint modifier "w"[0m asm volatile("mrs %0, cntfrq_el0" : "=r" (val)); [0;1;32m ^~ [0m[0;32m %w0 [0m[1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:103:45: [0m[0;1;31merror: [0m[1mvalue size does not match register size specified by the constraint and modifier [-Werror,-Wasm-operand-widths][0m asm volatile("mrs %0, cntkctl_el1" : "=r" (cntkctl)); [0;1;32m ^ [0m[1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:103:20: [0m[0;1;30mnote: [0muse constraint modifier "w"[0m asm volatile("mrs %0, cntkctl_el1" : "=r" (cntkctl)); [0;1;32m ^~ [0m[0;32m %w0 [0m[1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:109:46: [0m[0;1;31merror: [0m[1mvalue size does not match register size specified by the constraint and modifier [-Werror,-Wasm-operand-widths][0m asm volatile("msr cntkctl_el1, %0" : : "r" (cntkctl)); [0;1;32m ^ [0m[1m../../../../../../kernel/xiaomi/libra/arch/arm64/include/asm/arch_timer.h:109:33: [0m[0;1;30mnote: [0muse constraint modifier "w"[0m asm volatile("msr cntkctl_el1, %0" : : "r" (cntkctl)); [0;1;32m ^~ [0m[0;32m %w0 [0m11 errors generated. DTC arch/arm64/boot/dts/qcom/../apq8094-v1-fluid.dtb make[2]: [/home/buillder/los18/kernel/xiaomi/libra/./Kbuild:37: arch/arm64/kernel/asm-offsets.s] Error 1 make[1]: [/home/buillder/los18/kernel/xiaomi/libra/Makefile:979: prepare0] Error 2 make[1]: Waiting for unfinished jobs.... DTC arch/arm64/boot/dts/qcom/../apq8094-v1-dragonboard.dtb DTC arch/arm64/boot/dts/qcom/../msm8994-v2-sim.dtb DTC arch/arm64/boot/dts/qcom/../msm8994-v2.0-cdp.dtb DTC arch/arm64/boot/dts/qcom/../msm8994-pmi8994-pm8004-v2.0-cdp.dtb DTC arch/arm64/boot/dts/qcom/../msm8994-v2.0-mtp.dtb DTC arch/arm64/boot/dts/qcom/../msm8994-pmi8994-pm8004-v2.0-mtp.dtb DTC arch/arm64/boot/dts/qcom/../msm8994-v2.0-liquid.dtb DTC arch/arm64/boot/dts/qcom/../msm8994-v2.0-fluid.dtb DTC arch/arm64/boot/dts/qcom/../apq8094-v2.0-cdp.dtb DTC arch/arm64/boot/dts/qcom/../apq8094-v2.0-mtp.dtb DTC arch/arm64/boot/dts/qcom/../apq8094-v2.0-liquid.dtb DTC arch/arm64/boot/dts/qcom/../apq8094-v2.0-fluid.dtb DTC arch/arm64/boot/dts/qcom/../apq8094-v2.0-dragonboard.dtb DTC arch/arm64/boot/dts/qcom/../msm8994-v2.1-mtp.dtb DTC arch/arm64/boot/dts/qcom/../msm8994-v2.1-cdp.dtb DTC arch/arm64/boot/dts/qcom/../msm8994-v2.1-liquid.dtb DTC arch/arm64/boot/dts/qcom/../msm8994-v2.1-fluid.dtb DTC arch/arm64/boot/dts/qcom/../msm8994-pmi8994-pm8004-v2.1-cdp.dtb DTC arch/arm64/boot/dts/qcom/../msm8994-pmi8994-pm8004-v2.1-mtp.dtb DTC arch/arm64/boot/dts/qcom/../apq8094-v2.1-cdp.dtb DTC arch/arm64/boot/dts/qcom/../apq8094-v2.1-mtp.dtb DTC arch/arm64/boot/dts/qcom/../apq8094-v2.1-liquid.dtb DTC arch/arm64/boot/dts/qcom/../apq8094-v2.1-fluid.dtb DTC arch/arm64/boot/dts/qcom/../apq8094-v2.1-dragonboard.dtb DTC arch/arm64/boot/dts/qcom/../msm8992-sim.dtb DTC arch/arm64/boot/dts/qcom/../msm8992-rumi.dtb DTC arch/arm64/boot/dts/qcom/../msm8992-cdp.dtb DTC arch/arm64/boot/dts/qcom/../msm8992-mtp.dtb DTC arch/arm64/boot/dts/qcom/../msm8992-pmi8994-pm8004-cdp.dtb DTC arch/arm64/boot/dts/qcom/../msm8992-pmi8994-pm8004-mtp.dtb DTC arch/arm64/boot/dts/qcom/../x11-msm8992-mtp.dtb DTC arch/arm64/boot/dts/qcom/../a10-msm8992-mtp.dtb make: [Makefile:127: sub-make] Error 2 make: Leaving directory '/home/buillder/los18/kernel/xiaomi/libra'
记得我最后一个版本是用 Lineage-19.1 附带的 clang-12
编译的(Lineage-20 附带的 clang-13
也是可以的,但需要关闭 LTO),并没有遇到这些编译错误。
而 clang-11
不支持 polly 功能,LLVM_IAS 看起来也不能使用,所以除了去掉 polly 相关选项外,或许也要撤销这个提交:fa1f607。这样做会略微损失性能,但仍然比 clang-13
无法使用 LTO 的情况好些。
谢谢作者回复,我将尝试使用a12的clang编译内核。
另外还想问一下,lineage-19.1分支是可以编译并启动的吗?谢谢。
另外还想问一下,lineage-19.1分支是可以编译并启动的吗?谢谢。
仅从这个存储库的角度看,曾经是可以的,但 Lineage-19.1 后来彻底放弃了对 msm-3.10
系列设备的支持,因此不可能在没有 patch 的情况下完成编译并正常启动。
谢谢作者回复,我将尝试使用a12的clang编译内核。
如果用 clang-12
编译,就不用关闭 polly 和调整选项了。可以用多种方法更换编译器,比如直接修改 BoardConfigKernel.mk。
我通过指定clang版本,目前可以成功编译内核。目前正在编译整个系统,是否可以开机还待验证。 https://github.com/BYZYB/android_device_xiaomi_libra/commit/5b46eec4b5b2a66e7daa0a6e2025938332e6f8a4
您好,经过您的指点,现18.1和19.1均可编译。目前有兴趣上20,但内核无法编译通过。请问可以通过即时通讯工具请教问题吗?例如TG,或者其他国内联系方式。谢谢。
您好,经过您的指点,现18.1和19.1均可编译。
恭喜,这种事情是值得祝贺的。
目前有兴趣上20,但内核无法编译通过。请问可以通过即时通讯工具请教问题吗?例如TG,或者其他国内联系方式。谢谢。
其实我的 GitHub 主页有 TG 链接:https://t.me/ZYBYZ ,不过白天工作通常不看,手机也比较少用。
您好,我注意到您小米4c的device中有说明repo_diff中有些改动是必需的。
由于我不想对lineageOS源码进行修改,但还是想使用您的device和kernel构建,所以想请问,如何在不打补丁的情况下进行构建,或者,repodiff中哪些是不必需的更改,可以移除。
谢谢。