pytorch / glow

Compiler for Neural Network hardware accelerators

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FAILED: bin/image-classifier during building glow

omgitsmj24 opened this issue · comments

I'm encountering multiple building errors for glow, first is the folly problem which I was able to bypass by adding some lines in their makefiles.

However during this problem, when I need to call cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug ../glow from the /build_Debug directory execute ninja all in the command lines gives me this:

Details

@omgitsmj24 ➜ /workspaces/codespaces-blank/build_Debug $ cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug ../glow -- Cannot find glog automatically. Using legacy find. -- Found glog: /usr/include -- Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so) -- Glow: Found gflags with new-style gflags target. -- Using 64b tensor dimensions. -- Libjit option 'fast-math' enabled. -- Found LLVM 10.0.0 -- Using LLVMConfig.cmake in: /usr/lib/llvm-10/cmake CMake Warning (dev) at /home/codespace/.local/lib/python3.10/site-packages/cmake/data/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to find_package_handle_standard_args(DOUBLE_CONVERSION) does not match the name of the calling package (DoubleConversion). This can lead to problems in calling code that expectsfind_packageresult variables (e.g.,_FOUND`) to follow a certain
pattern.
Call Stack (most recent call first):
thirdparty/folly/CMake/FindDoubleConversion.cmake:26 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
thirdparty/folly/CMake/folly-deps.cmake:35 (find_package)
thirdparty/folly/CMakeLists.txt:113 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found double-conversion: /usr/lib/x86_64-linux-gnu/libdouble-conversion.so
-- Found gflags from package config /usr/lib/x86_64-linux-gnu/cmake/gflags/gflags-config.cmake
CMake Warning (dev) at /home/codespace/.local/lib/python3.10/site-packages/cmake/data/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args (glog) does
not match the name of the calling package (Glog). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
thirdparty/folly/build/fbcode_builder/CMake/FindGlog.cmake:17 (find_package_handle_standard_args)
thirdparty/folly/CMake/folly-deps.cmake:46 (find_package)
thirdparty/folly/CMakeLists.txt:113 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found glog: /usr/lib/x86_64-linux-gnu/libglog.so
-- Found libevent: /usr/lib/x86_64-linux-gnu/libevent.so
-- Could NOT find LibLZMA (missing: LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.2.4")
-- Found LZ4: /usr/lib/x86_64-linux-gnu/liblz4.so
CMake Warning (dev) at /home/codespace/.local/lib/python3.10/site-packages/cmake/data/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args (ZSTD) does
not match the name of the calling package (Zstd). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
thirdparty/folly/CMake/FindZstd.cmake:32 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
thirdparty/folly/CMake/folly-deps.cmake:90 (find_package)
thirdparty/folly/CMakeLists.txt:113 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found Zstd: /usr/lib/x86_64-linux-gnu/libzstd.so
CMake Warning (dev) at /home/codespace/.local/lib/python3.10/site-packages/cmake/data/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args (SNAPPY)
does not match the name of the calling package (Snappy). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
thirdparty/folly/CMake/FindSnappy.cmake:31 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
thirdparty/folly/CMake/folly-deps.cmake:97 (find_package)
thirdparty/folly/CMakeLists.txt:113 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Could NOT find SNAPPY (missing: SNAPPY_LIBRARY SNAPPY_INCLUDE_DIR)
CMake Warning (dev) at /home/codespace/.local/lib/python3.10/site-packages/cmake/data/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args (LIBDWARF)
does not match the name of the calling package (LibDwarf). This can lead
to problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
thirdparty/folly/CMake/FindLibDwarf.cmake:25 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
thirdparty/folly/CMake/folly-deps.cmake:104 (find_package)
thirdparty/folly/CMakeLists.txt:113 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Could NOT find LIBDWARF (missing: LIBDWARF_LIBRARY LIBDWARF_INCLUDE_DIR)
CMake Warning (dev) at /home/codespace/.local/lib/python3.10/site-packages/cmake/data/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args (LIBIBERTY)
does not match the name of the calling package (Libiberty). This can lead
to problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
thirdparty/folly/CMake/FindLibiberty.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
thirdparty/folly/CMake/folly-deps.cmake:108 (find_package)
thirdparty/folly/CMakeLists.txt:113 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Could NOT find LIBIBERTY (missing: LIBIBERTY_LIBRARY LIBIBERTY_INCLUDE_DIR)
CMake Warning (dev) at /home/codespace/.local/lib/python3.10/site-packages/cmake/data/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args (LIBAIO)
does not match the name of the calling package (LibAIO). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
thirdparty/folly/CMake/FindLibAIO.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
thirdparty/folly/CMake/folly-deps.cmake:112 (find_package)
thirdparty/folly/CMakeLists.txt:113 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Could NOT find LIBAIO (missing: LIBAIO_LIBRARY LIBAIO_INCLUDE_DIR)
CMake Warning (dev) at /home/codespace/.local/lib/python3.10/site-packages/cmake/data/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args (LIBURING)
does not match the name of the calling package (LibUring). This can lead
to problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
thirdparty/folly/CMake/FindLibUring.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
thirdparty/folly/CMake/folly-deps.cmake:116 (find_package)
thirdparty/folly/CMakeLists.txt:113 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Could NOT find LIBURING (missing: LIBURING_LIBRARY LIBURING_INCLUDE_DIR)
CMake Warning (dev) at /home/codespace/.local/lib/python3.10/site-packages/cmake/data/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args (LIBSODIUM)
does not match the name of the calling package (Libsodium). This can lead
to problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
thirdparty/folly/CMake/FindLibsodium.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
thirdparty/folly/CMake/folly-deps.cmake:120 (find_package)
thirdparty/folly/CMakeLists.txt:113 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found Libsodium: /usr/lib/x86_64-linux-gnu/libsodium.so
-- Setting FOLLY_USE_SYMBOLIZER: OFF
-- arch x86_64-linux-gnu matches x86_64, setting SSE2/AVX2 compile flags for LtHash SIMD code
-- compiler has flag pclmul, setting compile flag for /workspaces/codespaces-blank/glow/thirdparty/folly/folly/hash/detail/ChecksumDetail.cpp;/workspaces/codespaces-blank/glow/thirdparty/folly/folly/hash/detail/Crc32CombineDetail.cpp;/workspaces/codespaces-blank/glow/thirdparty/folly/folly/hash/detail/Crc32cDetail.cpp
-- Adding CPU backend.
-- Adding LIBJIT library: libjit_cpu.
-- Adding Interpreter backend.
-- Check backend CPU for ONNXModelWriters
-- Check backend Interpreter for ONNXModelWriters

-- ******** Summary ********
-- CMake version : 3.26.3
-- CMake command : /home/codespace/.local/lib/python3.10/site-packages/cmake/data/bin/cmake
-- System : Linux
-- C++ compiler : /usr/bin/c++
-- C++ compiler version : 10.0.0
-- CXX flags : -Wall -Wnon-virtual-dtor -Wnon-virtual-dtor
-- Build type : Debug
-- Compile definitions : GIT_SHA1="3ffcb02c3";GIT_DATE="2023-06-13";GIT_TAG="";GLOW_BUILD_DATE="2023-06-14";GLOW_VERSION="2023-06-13 (3ffcb02) ()";WITH_PNG;GLOW_WITH_LLVMIRCODEGEN=1;GLOW_WITH_CPU=1;__STDC_FORMAT_MACROS;GOOGLE_PROTOBUF_NO_RTTI;ONNX_NAMESPACE=glow_onnx
-- CMAKE_PREFIX_PATH :
-- CMAKE_INSTALL_PREFIX : /usr/local
-- CMAKE_MODULE_PATH : /workspaces/codespaces-blank/glow/cmake/modules

-- ONNX version : 1.5.0
-- ONNX NAMESPACE : glow_onnx
-- ONNX_BUILD_TESTS : OFF
-- ONNX_BUILD_BENCHMARKS : OFF
-- ONNX_USE_LITE_PROTO : OFF
-- ONNXIFI_DUMMY_BACKEND : OFF
-- ONNXIFI_ENABLE_EXT : OFF

-- Protobuf compiler : /usr/bin/protoc
-- Protobuf includes : /usr/include
-- Protobuf libraries : /usr/lib/x86_64-linux-gnu/libprotobuf.so;-lpthread
-- BUILD_ONNX_PYTHON : OFF
-- Check backend CPU for custom instructions or nodes
-- Check backend Interpreter for custom instructions or nodes
-- Failed to find LLVM FileCheck
-- git Version: v1.5.0
-- Version: 1.5.0
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- failed to compile
-- Performing Test HAVE_STD_REGEX -- success
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK -- success
CMake Deprecation Warning at tests/googletest/CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at tests/googletest/googlemock/CMakeLists.txt:45 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at tests/googletest/googletest/CMakeLists.txt:56 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

Skipping adding test en2gr_cpu_test because it requires a models directory. Configure with -DGLOW_MODELS_DIR.
Skipping adding test en2gr_quantization_test because it requires a models directory. Configure with -DGLOW_MODELS_DIR.
Skipping adding test en2gr_cpu_partition_test because it requires a models directory. Configure with -DGLOW_MODELS_DIR.
Skipping adding test en2gr_cpu_config_test because it requires a models directory. Configure with -DGLOW_MODELS_DIR.
Skipping adding test resnet_runtime_test because it requires a models directory. Configure with -DGLOW_MODELS_DIR.
-- Configuring done (2.8s)
CMake Warning (dev) at thirdparty/folly/CMakeLists.txt:314 (add_library):
Policy CMP0063 is not set: Honor visibility properties for all target
types. Run "cmake --help-policy CMP0063" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.

Target "folly_base" of type "OBJECT_LIBRARY" has the following visibility
properties set for CXX:

CXX_VISIBILITY_PRESET
VISIBILITY_INLINES_HIDDEN

For compatibility CMake is not honoring them for this target.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at thirdparty/folly/CMakeLists.txt:364 (add_library):
Policy CMP0063 is not set: Honor visibility properties for all target
types. Run "cmake --help-policy CMP0063" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.

Target "folly_test_util" of type "STATIC_LIBRARY" has the following
visibility properties set for CXX:

CXX_VISIBILITY_PRESET
VISIBILITY_INLINES_HIDDEN

For compatibility CMake is not honoring them for this target.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at thirdparty/folly/folly/CMakeLists.txt:15 (add_library):
Policy CMP0063 is not set: Honor visibility properties for all target
types. Run "cmake --help-policy CMP0063" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.

Target "follybenchmark" of type "STATIC_LIBRARY" has the following
visibility properties set for CXX:

CXX_VISIBILITY_PRESET
VISIBILITY_INLINES_HIDDEN

For compatibility CMake is not honoring them for this target.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done (1.4s)
-- Build files have been written to: /workspaces/codespaces-blank/build_Debug
@omgitsmj24 ➜ /workspaces/codespaces-blank/build_Debug $ ninja all
[7/395] NodeGen: Generating nodes.
Writing node descriptors to:
/workspaces/codespaces-blank/build_Debug/glow/AutoGenNodes.h
/workspaces/codespaces-blank/build_Debug/glow/AutoGenNodes.cpp
/workspaces/codespaces-blank/build_Debug/glow/AutoGenNodes.def
/workspaces/codespaces-blank/build_Debug/glow/AutoGenNodesImport.h
/workspaces/codespaces-blank/build_Debug/glow/AutoGenNodesExport.h
[9/395] InstrGen: Generating instructions.
Writing instr descriptors to:
/workspaces/codespaces-blank/build_Debug/glow/AutoGenInstr.h
/workspaces/codespaces-blank/build_Debug/glow/AutoGenInstr.cpp
/workspaces/codespaces-blank/build_Debug/glow/AutoGenInstr.def
/workspaces/codespaces-blank/build_Debug/glow/AutoGenIRBuilder.h
/workspaces/codespaces-blank/build_Debug/glow/AutoGenIRBuilder.cpp
/workspaces/codespaces-blank/build_Debug/glow/AutoGenIRGen.h
[32/395] Building CXX object lib/Backends/Interpreter/CMakeFiles/Interpreter.dir/InterpreterNodes.cpp.o
/workspaces/codespaces-blank/glow/lib/Backends/Interpreter/InterpreterNodes.cpp:5143:1: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-int-float-conversion]
DEFINE_REDUCEMINMAX_INST(ReduceMin, max)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/workspaces/codespaces-blank/glow/lib/Backends/Interpreter/InterpreterNodes.cpp:5138:34: note: expanded from macro 'DEFINE_REDUCEMINMAX_INST'
eBatchDims, eDestDims, std::numeric_limits<int32_t>::init_func());
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/workspaces/codespaces-blank/glow/lib/Backends/Interpreter/InterpreterNodes.cpp:262:25: note: expanded from macro 'dispatchArithmeticImpl'
functionName(VA_ARGS);
~~~~~~~~~~~~ ^~~~~~~~~~~
/workspaces/codespaces-blank/glow/lib/Backends/Interpreter/InterpreterNodes.cpp:5143:1: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-int-float-conversion]
DEFINE_REDUCEMINMAX_INST(ReduceMin, max)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/workspaces/codespaces-blank/glow/lib/Backends/Interpreter/InterpreterNodes.cpp:5138:34: note: expanded from macro 'DEFINE_REDUCEMINMAX_INST'
eBatchDims, eDestDims, std::numeric_limits<int32_t>::init_func());
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/workspaces/codespaces-blank/glow/lib/Backends/Interpreter/InterpreterNodes.cpp:265:29: note: expanded from macro 'dispatchArithmeticImpl'
functionName<float16_t>(VA_ARGS);
^~~~~~~~~~~
/workspaces/codespaces-blank/glow/lib/Backends/Interpreter/InterpreterNodes.cpp:5143:1: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-int-float-conversion]
DEFINE_REDUCEMINMAX_INST(ReduceMin, max)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/workspaces/codespaces-blank/glow/lib/Backends/Interpreter/InterpreterNodes.cpp:5138:34: note: expanded from macro 'DEFINE_REDUCEMINMAX_INST'
eBatchDims, eDestDims, std::numeric_limits<int32_t>::init_func());
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/workspaces/codespaces-blank/glow/lib/Backends/Interpreter/InterpreterNodes.cpp:268:30: note: expanded from macro 'dispatchArithmeticImpl'
functionName<bfloat16_t>(VA_ARGS);
^~~~~~~~~~~
3 warnings generated.
[65/395] Building CXX object lib/LLVMIRCodeGen/CMakeFiles/LLVMIRCodeGen.dir/GlowJIT.cpp.o
/workspaces/codespaces-blank/glow/lib/LLVMIRCodeGen/GlowJIT.cpp:350:7: warning: 'LegacyLocalCXXRuntimeOverrides' is deprecated: ORCv1 utilities (utilities with the 'Legacy' prefix) are deprecated. Please use the ORCv2 LocalCXXRuntimeOverrides utility instead [-Wdeprecated-declarations]
cxxSymbolOverride_(
^
/usr/lib/llvm-10/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h:238:33: note: 'LegacyLocalCXXRuntimeOverrides' has been explicitly marked deprecated here
LegacyLocalCXXRuntimeOverrides::LegacyLocalCXXRuntimeOverrides(
^
/workspaces/codespaces-blank/glow/lib/LLVMIRCodeGen/GlowJIT.cpp:368:7: warning: 'LegacyRTDyldObjectLinkingLayer' is deprecated: ORCv1 layers (layers with the 'Legacy' prefix) are deprecated. Please use ORCv2 (see docs/ORCv2.rst) [-Wdeprecated-declarations]
objectLayer_(
^
/usr/lib/llvm-10/include/llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h:358:3: note: 'LegacyRTDyldObjectLinkingLayer' has been explicitly marked deprecated here
LLVM_ATTRIBUTE_DEPRECATED(
^
/usr/lib/llvm-10/include/llvm/Support/Compiler.h:302:23: note: expanded from macro 'LLVM_ATTRIBUTE_DEPRECATED'
decl attribute((deprecated(message)))
^
/workspaces/codespaces-blank/glow/lib/LLVMIRCodeGen/GlowJIT.cpp:377:7: warning: 'LegacyIRCompileLayer' is deprecated: ORCv1 layers (layers with the 'Legacy' prefix) are deprecated. Please use the ORCv2 IRCompileLayer instead [-Wdeprecated-declarations]
compileLayer_(objectLayer_, SimpleCompiler(*TM_)) {
^
/usr/lib/llvm-10/include/llvm/ExecutionEngine/Orc/IRCompileLayer.h:82:3: note: 'LegacyIRCompileLayer' has been explicitly marked deprecated here
LLVM_ATTRIBUTE_DEPRECATED(
^
/usr/lib/llvm-10/include/llvm/Support/Compiler.h:302:23: note: expanded from macro 'LLVM_ATTRIBUTE_DEPRECATED'
decl attribute((deprecated(message)))
^
/workspaces/codespaces-blank/glow/lib/LLVMIRCodeGen/GlowJIT.cpp:420:49: warning: 'LegacyCtorDtorRunner' is deprecated: ORCv1 utilities (utilities with the 'Legacy' prefix) are deprecated. Please use the ORCv2 CtorDtorRunner utility instead [-Wdeprecated-declarations]
LegacyCtorDtorRunner<decltype(compileLayer_)> ctorRunner(std::move(ctorNames),
^
/usr/lib/llvm-10/include/llvm/ExecutionEngine/Orc/ExecutionUtils.h:114:3: note: 'LegacyCtorDtorRunner' has been explicitly marked deprecated here
LLVM_ATTRIBUTE_DEPRECATED(
^
/usr/lib/llvm-10/include/llvm/Support/Compiler.h:302:23: note: expanded from macro 'LLVM_ATTRIBUTE_DEPRECATED'
decl attribute((deprecated(message)))
^
4 warnings generated.
[166/395] Linking CXX executable bin/image-classifier
FAILED: bin/image-classifier
: && /usr/bin/c++ -Wall -Wnon-virtual-dtor -g -fno-omit-frame-pointer -O0 tools/loader/CMakeFiles/image-classifier.dir/Loader.cpp.o tools/loader/CMakeFiles/image-classifier.dir/ImageClassifier.cpp.o tools/loader/CMakeFiles/image-classifier.dir/ExecutorCore.cpp.o tools/loader/CMakeFiles/image-classifier.dir/ExecutorCoreHelperFunctions.cpp.o -o bin/image-classifier lib/Backends/libBackends.a lib/Base/libBase.a lib/Converter/libConverter.a lib/ExecutionEngine/libExecutionEngine.a lib/Runtime/HostManager/libHostManager.a lib/Graph/libGraph.a lib/Importer/libImporter.a lib/Optimizer/GraphOptimizer/libGraphOptimizer.a lib/Quantization/libQuantization.a /usr/lib/llvm-10/lib/libLLVMSupport.a lib/Runtime/Executor/libExecutor.a lib/Exporter/libExporter.a lib/Importer/libImporter.a /usr/lib/x86_64-linux-gnu/libprotobuf.so lib/Importer/build_onnx/libonnx_proto.a /usr/lib/x86_64-linux-gnu/libprotobuf.so lib/Partitioner/libPartitioner.a lib/Runtime/Provisioner/libProvisioner.a lib/Backends/libBackends.a -Wl,--whole-archive /workspaces/codespaces-blank/build_Debug/lib/Backends/CPU/libCPUBackend.a -Wl,--no-whole-archive lib/Backends/CPU/libCPUBackend.a lib/LLVMIRCodeGen/libLLVMIRCodeGen.a /usr/lib/llvm-10/lib/libLLVMAArch64CodeGen.a /usr/lib/llvm-10/lib/libLLVMAArch64AsmParser.a /usr/lib/llvm-10/lib/libLLVMAArch64Disassembler.a /usr/lib/llvm-10/lib/libLLVMAArch64Desc.a /usr/lib/llvm-10/lib/libLLVMAArch64Info.a /usr/lib/llvm-10/lib/libLLVMAArch64Utils.a /usr/lib/llvm-10/lib/libLLVMAMDGPUCodeGen.a /usr/lib/llvm-10/lib/libLLVMMIRParser.a /usr/lib/llvm-10/lib/libLLVMAMDGPUAsmParser.a /usr/lib/llvm-10/lib/libLLVMAMDGPUDisassembler.a /usr/lib/llvm-10/lib/libLLVMAMDGPUDesc.a /usr/lib/llvm-10/lib/libLLVMAMDGPUInfo.a /usr/lib/llvm-10/lib/libLLVMAMDGPUUtils.a /usr/lib/llvm-10/lib/libLLVMARMCodeGen.a /usr/lib/llvm-10/lib/libLLVMARMAsmParser.a /usr/lib/llvm-10/lib/libLLVMARMDisassembler.a /usr/lib/llvm-10/lib/libLLVMARMDesc.a /usr/lib/llvm-10/lib/libLLVMARMInfo.a /usr/lib/llvm-10/lib/libLLVMARMUtils.a /usr/lib/llvm-10/lib/libLLVMBPFCodeGen.a /usr/lib/llvm-10/lib/libLLVMBPFAsmParser.a /usr/lib/llvm-10/lib/libLLVMBPFDesc.a /usr/lib/llvm-10/lib/libLLVMBPFDisassembler.a /usr/lib/llvm-10/lib/libLLVMBPFInfo.a /usr/lib/llvm-10/lib/libLLVMHexagonCodeGen.a /usr/lib/llvm-10/lib/libLLVMHexagonAsmParser.a /usr/lib/llvm-10/lib/libLLVMHexagonDisassembler.a /usr/lib/llvm-10/lib/libLLVMHexagonDesc.a /usr/lib/llvm-10/lib/libLLVMHexagonInfo.a /usr/lib/llvm-10/lib/libLLVMLanaiCodeGen.a /usr/lib/llvm-10/lib/libLLVMLanaiAsmParser.a /usr/lib/llvm-10/lib/libLLVMLanaiDisassembler.a /usr/lib/llvm-10/lib/libLLVMLanaiDesc.a /usr/lib/llvm-10/lib/libLLVMLanaiInfo.a /usr/lib/llvm-10/lib/libLLVMMipsCodeGen.a /usr/lib/llvm-10/lib/libLLVMMipsAsmParser.a /usr/lib/llvm-10/lib/libLLVMMipsDesc.a /usr/lib/llvm-10/lib/libLLVMMipsDisassembler.a /usr/lib/llvm-10/lib/libLLVMMipsInfo.a /usr/lib/llvm-10/lib/libLLVMMSP430CodeGen.a /usr/lib/llvm-10/lib/libLLVMMSP430AsmParser.a /usr/lib/llvm-10/lib/libLLVMMSP430Desc.a /usr/lib/llvm-10/lib/libLLVMMSP430Disassembler.a /usr/lib/llvm-10/lib/libLLVMMSP430Info.a /usr/lib/llvm-10/lib/libLLVMNVPTXCodeGen.a /usr/lib/llvm-10/lib/libLLVMNVPTXDesc.a /usr/lib/llvm-10/lib/libLLVMNVPTXInfo.a /usr/lib/llvm-10/lib/libLLVMPowerPCCodeGen.a /usr/lib/llvm-10/lib/libLLVMPowerPCAsmParser.a /usr/lib/llvm-10/lib/libLLVMPowerPCDesc.a /usr/lib/llvm-10/lib/libLLVMPowerPCDisassembler.a /usr/lib/llvm-10/lib/libLLVMPowerPCInfo.a /usr/lib/llvm-10/lib/libLLVMRISCVCodeGen.a /usr/lib/llvm-10/lib/libLLVMRISCVAsmParser.a /usr/lib/llvm-10/lib/libLLVMRISCVDesc.a /usr/lib/llvm-10/lib/libLLVMRISCVDisassembler.a /usr/lib/llvm-10/lib/libLLVMRISCVInfo.a /usr/lib/llvm-10/lib/libLLVMRISCVUtils.a /usr/lib/llvm-10/lib/libLLVMSparcCodeGen.a /usr/lib/llvm-10/lib/libLLVMSparcAsmParser.a /usr/lib/llvm-10/lib/libLLVMSparcDesc.a /usr/lib/llvm-10/lib/libLLVMSparcDisassembler.a /usr/lib/llvm-10/lib/libLLVMSparcInfo.a /usr/lib/llvm-10/lib/libLLVMSystemZCodeGen.a /usr/lib/llvm-10/lib/libLLVMSystemZAsmParser.a /usr/lib/llvm-10/lib/libLLVMSystemZDisassembler.a /usr/lib/llvm-10/lib/libLLVMSystemZDesc.a /usr/lib/llvm-10/lib/libLLVMSystemZInfo.a /usr/lib/llvm-10/lib/libLLVMWebAssemblyCodeGen.a /usr/lib/llvm-10/lib/libLLVMWebAssemblyAsmParser.a /usr/lib/llvm-10/lib/libLLVMWebAssemblyDisassembler.a /usr/lib/llvm-10/lib/libLLVMWebAssemblyDesc.a /usr/lib/llvm-10/lib/libLLVMWebAssemblyInfo.a /usr/lib/llvm-10/lib/libLLVMX86CodeGen.a /usr/lib/llvm-10/lib/libLLVMCFGuard.a /usr/lib/llvm-10/lib/libLLVMGlobalISel.a /usr/lib/llvm-10/lib/libLLVMX86AsmParser.a /usr/lib/llvm-10/lib/libLLVMX86Desc.a /usr/lib/llvm-10/lib/libLLVMX86Disassembler.a /usr/lib/llvm-10/lib/libLLVMX86Info.a /usr/lib/llvm-10/lib/libLLVMX86Utils.a /usr/lib/llvm-10/lib/libLLVMXCoreCodeGen.a /usr/lib/llvm-10/lib/libLLVMXCoreDesc.a /usr/lib/llvm-10/lib/libLLVMXCoreDisassembler.a /usr/lib/llvm-10/lib/libLLVMXCoreInfo.a /usr/lib/llvm-10/lib/libLLVMAVRCodeGen.a /usr/lib/llvm-10/lib/libLLVMAsmPrinter.a /usr/lib/llvm-10/lib/libLLVMDebugInfoDWARF.a /usr/lib/llvm-10/lib/libLLVMSelectionDAG.a /usr/lib/llvm-10/lib/libLLVMAVRAsmParser.a /usr/lib/llvm-10/lib/libLLVMAVRDesc.a /usr/lib/llvm-10/lib/libLLVMAVRDisassembler.a /usr/lib/llvm-10/lib/libLLVMMCDisassembler.a /usr/lib/llvm-10/lib/libLLVMAVRInfo.a /usr/lib/llvm-10/lib/libLLVMInterpreter.a /usr/lib/x86_64-linux-gnu/libffi.so /usr/lib/llvm-10/lib/libLLVMOrcJIT.a /usr/lib/llvm-10/lib/libLLVMExecutionEngine.a /usr/lib/llvm-10/lib/libLLVMPasses.a /usr/lib/llvm-10/lib/libLLVMCodeGen.a /usr/lib/llvm-10/lib/libLLVMipo.a /usr/lib/llvm-10/lib/libLLVMBitWriter.a /usr/lib/llvm-10/lib/libLLVMIRReader.a /usr/lib/llvm-10/lib/libLLVMAsmParser.a /usr/lib/llvm-10/lib/libLLVMScalarOpts.a /usr/lib/llvm-10/lib/libLLVMInstCombine.a /usr/lib/llvm-10/lib/libLLVMVectorize.a /usr/lib/llvm-10/lib/libLLVMLinker.a /usr/lib/llvm-10/lib/libLLVMAggressiveInstCombine.a /usr/lib/llvm-10/lib/libLLVMInstrumentation.a /usr/lib/llvm-10/lib/libLLVMTarget.a /usr/lib/llvm-10/lib/libLLVMTransformUtils.a /usr/lib/llvm-10/lib/libLLVMAnalysis.a /usr/lib/llvm-10/lib/libLLVMProfileData.a /usr/lib/llvm-10/lib/libLLVMRuntimeDyld.a /usr/lib/llvm-10/lib/libLLVMJITLink.a /usr/lib/llvm-10/lib/libLLVMObject.a /usr/lib/llvm-10/lib/libLLVMMCParser.a /usr/lib/llvm-10/lib/libLLVMMC.a /usr/lib/llvm-10/lib/libLLVMDebugInfoCodeView.a /usr/lib/llvm-10/lib/libLLVMDebugInfoMSF.a /usr/lib/llvm-10/lib/libLLVMBitReader.a /usr/lib/llvm-10/lib/libLLVMTextAPI.a /usr/lib/llvm-10/lib/libLLVMOrcError.a -Wl,--whole-archive /workspaces/codespaces-blank/build_Debug/lib/Backends/Interpreter/libInterpreter.a -Wl,--no-whole-archive lib/Optimizer/GraphOptimizer/libGraphOptimizer.a lib/Backends/Interpreter/libInterpreter.a lib/Optimizer/IROptimizer/libIROptimizer.a lib/Optimizer/Lower/libLower.a lib/Quantization/libQuantization.a lib/Converter/libConverter.a lib/Backend/libBackend.a lib/Optimizer/GraphOptimizerPipeline/libGraphOptimizerPipeline.a lib/Runtime/libRuntime.a lib/ExecutionContext/libExecutionContext.a lib/CodeGen/libCodeGen.a lib/Optimizer/IROptimizerPipeline/libIROptimizerPipeline.a lib/PassManager/libPassManager.a lib/IR/libIR.a lib/Graph/libGraph.a lib/Quantization/Base/libQuantizationBase.a lib/Support/TensorPool/libTensorPool.a lib/Base/libBase.a /usr/lib/x86_64-linux-gnu/libpng.so lib/Support/libSupport.a lib/Flags/libFlags.a /usr/lib/x86_64-linux-gnu/libglog.so /usr/lib/x86_64-linux-gnu/libgflags.so.2.2.2 libMiniz.a thirdparty/folly/libfolly.a /usr/lib/x86_64-linux-gnu/libboost_context.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_regex.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.71.0 -pthread /usr/lib/x86_64-linux-gnu/libboost_atomic.so.1.71.0 /usr/lib/x86_64-linux-gnu/libdouble-conversion.so /usr/lib/x86_64-linux-gnu/libgflags.so.2.2.2 /usr/lib/x86_64-linux-gnu/libglog.so /usr/lib/x86_64-linux-gnu/libevent.so /usr/lib/x86_64-linux-gnu/libssl.so /usr/lib/x86_64-linux-gnu/libcrypto.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libbz2.so /usr/lib/x86_64-linux-gnu/liblz4.so /usr/lib/x86_64-linux-gnu/libzstd.so /usr/lib/x86_64-linux-gnu/libsodium.so -latomic /usr/local/lib/libfmt.a /usr/lib/x86_64-linux-gnu/libjemalloc.so /usr/lib/llvm-10/lib/libLLVMCore.a /usr/lib/llvm-10/lib/libLLVMBinaryFormat.a /usr/lib/llvm-10/lib/libLLVMRemarks.a /usr/lib/llvm-10/lib/libLLVMBitstreamReader.a /usr/lib/llvm-10/lib/libLLVMSupport.a -lz -lrt -ldl -ltinfo -lpthread -lm /usr/lib/llvm-10/lib/libLLVMDemangle.a && :
clang: error: unable to execute command: Terminated
clang: error: linker command failed due to signal (use -v to see invocation)
[168/395] Linking CXX executable bin/object-detector
ninja: build stopped: subcommand failed.`

This is also not specific to image-classifier as the title but also other functions in /workspaces/codespaces-blank/glow/tools/loader, for example, if I comment these lines in /workspaces/codespaces-blank/glow/tools/loader/CMakeLists.txt

add_executable(image-classifier
  Loader.cpp
  ImageClassifier.cpp
  ExecutorCore.cpp
  ExecutorCoreHelperFunctions.cpp)

target_link_libraries(image-classifier
                      PRIVATE
                        Backends
                        Base
                        Converter
                        ExecutionEngine
                        HostManager
                        Graph
                        Importer
                        GraphOptimizer
                        Quantization
                        LLVMSupport), 

this will also return the title error above but with object-detector instead as it is the next function to be built in the building process.

I think this problem is really easy to reproduce since all you need is a GitHub account. I'm using a blank codespace in GitHub to build the repo from the ground up and have tried sudo apt update, sudo apt upgrade, or changing the version of llvm8 to llvm10. Since I don't have access to any other Linux or MacOS machines, codespace is my only means to use glow so I'm wondering if this problem is specific to codespace virtual machine?