Clang: сбой команды компоновщика с кодом выхода 1 при создании пользовательского ПЗУ для Android - PullRequest
0 голосов
/ 06 июня 2019

Я пытаюсь собрать DirtyUnicorns ROM для моего устройства Android.Я запускаю Ubuntu 18.10 на виртуальной машине.

Когда я запускаю mka bacon -d -j4 (-d для отладки), я получаю следующую ошибку:

FAILED: /home/simon/Dirty/out/soong/.intermediates/frameworks/compile/mclinker/tools/mcld/ld.mc/linux_glibc_x86_64/ld.mc 
prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++  @/home/simon/Dirty/out/soong/.intermediates/frameworks/compile/mclinker/tools/mcld/ld.mc/linux_glibc_x86_64/ld.mc.rsp -Wl,--start-group /home/simon/Dirty/out/soong/.intermediates/frameworks/compile/mclinker/lib/Target/ARM/libmcldARMTarget/linux_glibc_x86_64_static/libmcldARMTarget.a /home/simon/Dirty/out/soong/.intermediates/frameworks/compile/mclinker/lib/Target/ARM/TargetInfo/libmcldARMInfo/linux_glibc_x86_64_static/libmcldARMInfo.a /home/simon/Dirty/out/soong/.intermediates/frameworks/compile/mclinker/lib/Target/AArch64/libmcldAArch64Target/linux_glibc_x86_64_static/libmcldAArch64Target.a /home/simon/Dirty/out/soong/.intermediates/frameworks/compile/mclinker/lib/Target/AArch64/TargetInfo/libmcldAArch64Info/linux_glibc_x86_64_static/libmcldAArch64Info.a /home/simon/Dirty/out/soong/.intermediates/frameworks/compile/mclinker/lib/Target/Mips/libmcldMipsTarget/linux_glibc_x86_64_static/libmcldMipsTarget.a /home/simon/Dirty/out/soong/.intermediates/frameworks/compile/mclinker/lib/Target/Mips/TargetInfo/libmcldMipsInfo/linux_glibc_x86_64_static/libmcldMipsInfo.a /home/simon/Dirty/out/soong/.intermediates/frameworks/compile/mclinker/lib/Target/X86/libmcldX86Target/linux_glibc_x86_64_static/libmcldX86Target.a /home/simon/Dirty/out/soong/.intermediates/frameworks/compile/mclinker/lib/Target/X86/TargetInfo/libmcldX86Info/linux_glibc_x86_64_static/libmcldX86Info.a /home/simon/Dirty/out/soong/.intermediates/frameworks/compile/mclinker/lib/ADT/libmcldADT/linux_glibc_x86_64_static/libmcldADT.a /home/simon/Dirty/out/soong/.intermediates/frameworks/compile/mclinker/lib/Core/libmcldCore/linux_glibc_x86_64_static/libmcldCore.a /home/simon/Dirty/out/soong/.intermediates/frameworks/compile/mclinker/lib/Fragment/libmcldFragment/linux_glibc_x86_64_static/libmcldFragment.a /home/simon/Dirty/out/soong/.intermediates/frameworks/compile/mclinker/lib/LD/libmcldLD/linux_glibc_x86_64_static/libmcldLD.a /home/simon/Dirty/out/soong/.intermediates/frameworks/compile/mclinker/lib/LD/libmcldLDVariant/linux_glibc_x86_64_static/libmcldLDVariant.a /home/simon/Dirty/out/soong/.intermediates/frameworks/compile/mclinker/lib/MC/libmcldMC/linux_glibc_x86_64_static/libmcldMC.a /home/simon/Dirty/out/soong/.intermediates/frameworks/compile/mclinker/lib/Object/libmcldObject/linux_glibc_x86_64_static/libmcldObject.a /home/simon/Dirty/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/linux_glibc_x86_64_static/libmcldScript.a /home/simon/Dirty/out/soong/.intermediates/frameworks/compile/mclinker/lib/Support/libmcldSupport/linux_glibc_x86_64_static/libmcldSupport.a /home/simon/Dirty/out/soong/.intermediates/frameworks/compile/mclinker/lib/Target/libmcldTarget/linux_glibc_x86_64_static/libmcldTarget.a -Wl,--end-group -Wl,--start-group /home/simon/Dirty/out/soong/.intermediates/external/compiler-rt/libcompiler_rt-extras/linux_glibc_x86_64_static/libcompiler_rt-extras.a -Wl,--end-group prebuilts/sdk/tools/linux/lib64/libLLVM_android.so /home/simon/Dirty/out/soong/.intermediates/external/zlib/libz/linux_glibc_x86_64_shared/libz-host.so /home/simon/Dirty/out/soong/.intermediates/external/libcxx/libc++/linux_glibc_x86_64_shared/libc++.so  -o /home/simon/Dirty/out/soong/.intermediates/frameworks/compile/mclinker/tools/mcld/ld.mc/linux_glibc_x86_64/ld.mc -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin  -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--no-undefined-version --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -m64 -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/lib/gcc/x86_64-linux/4.8 -Lprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/lib/gcc/x86_64-linux/4.8 -Lprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/lib64 -lncurses -lgcc_s -ldl -lpthread -lm -lrt -Wl,-rpath,\$ORIGIN/../lib64 -Wl,-rpath,\$ORIGIN/lib64  -pie -nodefaultlibs -lgcc_s -lgcc -lc -lgcc_s -lgcc
external/llvm/host/include/llvm/Config/Targets.def:29: error: undefined reference to 'MCLDInitializeAArch64DiagnosticLineInfo'
frameworks/compile/mclinker/lib/Target/AArch64/AArch64LDBackend.cpp:512: error: undefined reference to 'mcld::AArch64CA53Erratum835769Stub::AArch64CA53Erratum835769Stub()'
frameworks/compile/mclinker/lib/Target/AArch64/AArch64LDBackend.cpp:515: error: undefined reference to 'mcld::AArch64CA53Erratum843419Stub::AArch64CA53Erratum843419Stub()'
frameworks/compile/mclinker/lib/Target/AArch64/AArch64LDBackend.cpp:516: error: undefined reference to 'mcld::AArch64CA53Erratum843419Stub2::AArch64CA53Erratum843419Stub2()'
clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)
[  0% 49/30506] Building Kernel Config
make: Entering directory '/home/simon/Dirty/kernel/samsung/a5y17lte'
make[1]: Entering directory '/home/simon/Dirty/out/target/product/a5y17lte/obj/KERNEL_OBJ'
  GEN     ./Makefile
Kconfig:15:warning: environment variable ANDROID_MAJOR_VERSION undefined
#
# configuration written to .config
#
make[1]: Leaving directory '/home/simon/Dirty/out/target/product/a5y17lte/obj/KERNEL_OBJ'
make: Leaving directory '/home/simon/Dirty/kernel/samsung/a5y17lte'
make: Entering directory '/home/simon/Dirty/kernel/samsung/a5y17lte'
make[1]: Entering directory '/home/simon/Dirty/out/target/product/a5y17lte/obj/KERNEL_OBJ'
  GEN     ./Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
Kconfig:15:warning: environment variable ANDROID_MAJOR_VERSION undefined
make[1]: Leaving directory '/home/simon/Dirty/out/target/product/a5y17lte/obj/KERNEL_OBJ'
make: Leaving directory '/home/simon/Dirty/kernel/samsung/a5y17lte'
ninja: build stopped: subcommand failed.
13:39:28 ninja failed with: exit status 1
Reaping losing child 0x555f806f2e50 PID 7458 
make: *** [build/make/core/main.mk:21: run_soong_ui] Error 1
Removing child 0x555f806f2e50 PID 7458 from chain.

Кто-нибудь знает исправление для этого?Если вам нужна дополнительная информация, просто спросите

Заранее спасибо

...