Ubuntu 16.0.4 version
LLVM 8.0.1
CLANG 8
sudo ninja all
[0/1] Re-running CMake…
– Found glog with new-style glog target.
– Found LLVM 8.0.1
– Using LLVMConfig.cmake in: /usr/local/lib/cmake/llvm
Adding CPU backend.
Adding CMakeFiles backend.
Adding Interpreter backend.
– ******** Summary ********
– CMake version : 3.5.1
– CMake command : /usr/bin/cmake
– System : Linux
– C++ compiler : /usr/bin/c++
– C++ compiler version : 5.5.0
– CXX flags : -Wall -Wnon-virtual-dtor -fno-exceptions -fno-rtti -Wno-psabi -Wnon-virtual-dtor
– Build type : Release
– Compile definitions : GIT_SHA1=“ef7f916”;GIT_DATE=“2019-09-12”;WITH_PNG;GLOW_WITH_LLVMIRCODEGEN=1;GLOW_WITH_CPU=1;GOOGLE_PROTOBUF_NO_RTTI;ONNX_NAMESPACE=glow_onnx
– CMAKE_PREFIX_PATH : /usr/bin
– CMAKE_INSTALL_PREFIX : /usr/local
– CMAKE_MODULE_PATH : ~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 : optimized;/usr/lib/x86_64-linux-gnu/libprotobuf.so;debug;/usr/lib/x86_64-linux-gnu/libprotobuf.so;-pthread
– BUILD_ONNX_PYTHON : OFF
– Failed to find LLVM FileCheck
– git Version: v1.5.0
– Version: 1.5.0
– 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
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
– Generating done
– Build files have been written to: ~/glow
[1/111] Linking CXX executable bin/resnet-verify
FAILED: bin/resnet-verify
: && /usr/bin/c++ -Wall -Wnon-virtual-dtor -fno-exceptions -fno-rtti -Wno-psabi -O3 -DNDEBUG -march=native -ffast-math -fno-finite-math-only examples/CMakeFiles/resnet-verify.dir/resnet-verify.cpp.o -o bin/resnet-verify lib/ExecutionEngine/libExecutionEngine.a lib/Graph/libGraph.a lib/Importer/libImporter.a lib/Runtime/HostManager/libHostManager.a lib/Partitioner/libPartitioner.a lib/Runtime/Provisioner/libProvisioner.a lib/Runtime/Executor/libExecutor.a lib/Optimizer/GraphOptimizer/libGraphOptimizer.a lib/Backends/libBackends.a lib/Quantization/libQuantization.a lib/Backend/libBackend.a lib/ExecutionContext/libExecutionContext.a lib/CodeGen/libCodeGen.a lib/IR/libIR.a lib/Optimizer/GraphOptimizerPipeline/libGraphOptimizerPipeline.a /usr/local/lib/libLLVMCore.a /usr/local/lib/libLLVMBinaryFormat.a lib/Converter/libConverter.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 /usr/local/lib/libglog.a /usr/local/lib/libLLVMSupport.a -lz -lrt -ldl -ltinfo -lpthread -lm /usr/local/lib/libLLVMDemangle.a lib/Importer/build_onnx/libonnx_proto.a -pthread /usr/lib/x86_64-linux-gnu/libprotobuf.so && :
lib/Runtime/HostManager/libHostManager.a(HostManager.cpp.o): In function glow::runtime::HostManager::exportMemoryCounters()': HostManager.cpp:(.text+0x601): undefined reference to
glow::Stats()’
HostManager.cpp:(.text+0x618): undefined reference to glow::StatsExporterRegistry::setCounter(llvm::StringRef, long)' HostManager.cpp:(.text+0x61d): undefined reference to
glow::Stats()’
HostManager.cpp:(.text+0x634): undefined reference to glow::StatsExporterRegistry::setCounter(llvm::StringRef, long)' HostManager.cpp:(.text+0x639): undefined reference to
glow::Stats()’
HostManager.cpp:(.text+0x650): undefined reference to glow::StatsExporterRegistry::setCounter(llvm::StringRef, long)' lib/Runtime/HostManager/libHostManager.a(HostManager.cpp.o): In function
glow::runtime::HostManager::clearHost()’:
HostManager.cpp:(.text+0x3521): undefined reference to glow::Stats()' HostManager.cpp:(.text+0x3537): undefined reference to
glow::StatsExporterRegistry::setCounter(llvm::StringRef, long)’
HostManager.cpp:(.text+0x353c): undefined reference to glow::Stats()' HostManager.cpp:(.text+0x3552): undefined reference to
glow::StatsExporterRegistry::setCounter(llvm::StringRef, long)’
HostManager.cpp:(.text+0x3557): undefined reference to glow::Stats()' HostManager.cpp:(.text+0x356d): undefined reference to
glow::StatsExporterRegistry::setCounter(llvm::StringRef, long)’
lib/Base/libBase.a(Image.cpp.o): In function glow::getPngInfo(char const*)': Image.cpp:(.text+0x1b5): undefined reference to
png_set_longjmp_fn’
lib/Base/libBase.a(Image.cpp.o): In function glow::writePngImage(glow::Tensor*, char const*, std::pair<float, float>, llvm::ArrayRef<float>, llvm::ArrayRef<float>)': Image.cpp:(.text+0x5e6): undefined reference to
png_set_longjmp_fn’
Image.cpp:(.text+0x641): undefined reference to png_set_longjmp_fn' Image.cpp:(.text+0x6c8): undefined reference to
png_set_longjmp_fn’
Image.cpp:(.text+0x8a6): undefined reference to png_set_longjmp_fn' lib/Base/libBase.a(Image.cpp.o):Image.cpp:(.text+0xa4f): more undefined references to
png_set_longjmp_fn’ follow
collect2: error: ld returned 1 exit status
I am getting this error please help me to fix this!