Hey everyone. I decided to see if I could fix the bug I found, but as I build Lakka, it is giving me the following error in the log file:
e[1;33mBUILDe[0m llvm e[1;37m(host)e[0m
e[1;35mTOOLCHAINe[0m cmake
Executing (host): cmake -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_TOOLCHAIN_FILE=/home/fox/dev/Lakka-LibreELEC/build.Lakka-Generic.x86_64/toolchain/etc/cmake-x86_64-linux-gnu.conf -DCMAKE_INSTALL_PREFIX=/home/fox/dev/Lakka-LibreELEC/build.Lakka-Generic.x86_64/toolchain -DCMAKE_BUILD_TYPE=Release -DLLVM_INCLUDE_TOOLS=ON -DLLVM_BUILD_TOOLS=OFF -DLLVM_BUILD_UTILS=OFF -DLLVM_BUILD_EXAMPLES=OFF -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_BUILD_TESTS=OFF -DLLVM_INCLUDE_TESTS=OFF -DLLVM_BUILD_BENCHMARKS=OFF -DLLVM_INCLUDE_BENCHMARKS=OFF -DLLVM_BUILD_DOCS=OFF -DLLVM_INCLUDE_DOCS=OFF -DLLVM_ENABLE_DOXYGEN=OFF -DLLVM_ENABLE_SPHINX=OFF -DLLVM_ENABLE_OCAMLDOC=OFF -DLLVM_ENABLE_BINDINGS=OFF -DLLVM_ENABLE_TERMINFO=OFF -DLLVM_ENABLE_ASSERTIONS=OFF -DLLVM_ENABLE_WERROR=OFF -DLLVM_ENABLE_ZLIB=OFF -DLLVM_ENABLE_ZSTD=OFF -DLLVM_ENABLE_LIBXML2=OFF -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON -DLLVM_OPTIMIZED_TABLEGEN=ON -DLLVM_APPEND_VC_REV=OFF -DLLVM_ENABLE_RTTI=ON -DLLVM_ENABLE_UNWIND_TABLES=OFF -DLLVM_ENABLE_Z3_SOLVER=OFF -DCMAKE_SKIP_RPATH=ON -DCMAKE_BINARY_DIR=/home/fox/dev/Lakka-LibreELEC/build.Lakka-Generic.x86_64/build/llvm-16.0.1/.x86_64-linux-gnu -DLLVM_NATIVE_BUILD=/home/fox/dev/Lakka-LibreELEC/build.Lakka-Generic.x86_64/build/llvm-16.0.1/.x86_64-linux-gnu/native -DLLVM_ENABLE_PROJECTS='clang' -DCLANG_LINK_CLANG_DYLIB=ON -DLLVM_TARGETS_TO_BUILD=X86\;AMDGPU /home/fox/dev/Lakka-LibreELEC/build.Lakka-Generic.x86_64/build/llvm-16.0.1/llvm
-- bolt project is disabled
-- clang project is enabled
-- clang-tools-extra project is disabled
-- compiler-rt project is disabled
-- cross-project-tests project is disabled
-- libc project is disabled
-- libclc project is disabled
-- lld project is disabled
-- lldb project is disabled
-- mlir project is disabled
-- openmp project is disabled
-- polly project is disabled
-- pstl project is disabled
-- flang project is disabled
-- Could NOT find LibEdit (missing: LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES)
-- Native target architecture is X86
-- Threads enabled.
-- Doxygen disabled.
-- Ninja version: 1.11.1
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- LLVM host triple: x86_64-pc-linux-gnu
-- LLVM default target triple: x86_64-pc-linux-gnu
-- Building with -fPIC
-- Targeting X86
-- Targeting AMDGPU
-- Clang version: 16.0.1
-- Configuring done (2.4s)
-- Generating done (1.1s)
-- Build files have been written to: /home/fox/dev/Lakka-LibreELEC/build.Lakka-Generic.x86_64/build/llvm-16.0.1/.x86_64-linux-gnu
Executing (host): ninja
[1/771] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGBlocks.cpp.o
FAILED: tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGBlocks.cpp.o
/home/fox/dev/Lakka-LibreELEC/build.Lakka-Generic.x86_64/toolchain/bin/host-g++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/fox/dev/Lakka-LibreELEC/build.Lakka-Generic.x86_64/build/llvm-16.0.1/.x86_64-linux-gnu/tools/clang/lib/CodeGen -I/home/fox/dev/Lakka-LibreELEC/build.Lakka-Generic.x86_64/build/llvm-16.0.1/clang/lib/CodeGen -I/home/fox/dev/Lakka-LibreELEC/build.Lakka-Generic.x86_64/build/llvm-16.0.1/clang/include -I/home/fox/dev/Lakka-LibreELEC/build.Lakka-Generic.x86_64/build/llvm-16.0.1/.x86_64-linux-gnu/tools/clang/include -I/home/fox/dev/Lakka-LibreELEC/build.Lakka-Generic.x86_64/build/llvm-16.0.1/.x86_64-linux-gnu/include -I/home/fox/dev/Lakka-LibreELEC/build.Lakka-Generic.x86_64/build/llvm-16.0.1/llvm/include -march=native -O2 -Wall -pipe -I/home/fox/dev/Lakka-LibreELEC/build.Lakka-Generic.x86_64/toolchain/include -Wno-format-security -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -DDUMMYOPT -std=c++17 -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -MD -MT tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGBlocks.cpp.o -MF tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGBlocks.cpp.o.d -o tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGBlocks.cpp.o -c /home/fox/dev/Lakka-LibreELEC/build.Lakka-Generic.x86_64/build/llvm-16.0.1/clang/lib/CodeGen/CGBlocks.cpp
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
[2/771] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGCUDARuntime.cpp.o
[3/771] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGCXX.cpp.o
[4/771] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGCXXABI.cpp.o
[5/771] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGCleanup.cpp.o
[6/771] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGCoroutine.cpp.o
[7/771] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGClass.cpp.o
[8/771] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGCall.cpp.o
ninja: build stopped: subcommand failed.
e[1;31mFAILURE: scripts/build llvm:host during make_host (default)e[0m
*********** FAILED COMMAND ***********
ninja ${NINJA_OPTS} ${PKG_MAKE_OPTS_HOST}
**************************************
e[1;31mFAILURE: scripts/build llvm:host has failed!e[0m
Any ideas as to what’s happening here? Thanks.