Skip to content

Instantly share code, notes, and snippets.

@davipatti
Created April 27, 2020 21:53
Show Gist options
  • Save davipatti/acadf87cb53d16555b2465d8635d504f to your computer and use it in GitHub Desktop.
Save davipatti/acadf87cb53d16555b2465d8635d504f to your computer and use it in GitHub Desktop.
lc0 build fail
david@puck~/D/lc0> ./build.sh
~/Downloads/lc0 ~/Downloads/lc0
[0/1] Regenerating build files.
The Meson build system
Version: 0.51.2
Source dir: /home/david/Downloads/lc0
Build dir: /home/david/Downloads/lc0/build/release
Build type: native build
Project name: lc0
Project version: undefined
C++ compiler for the host machine: g++ (gcc 9.2.1 "g++ (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Compiler for C++ supports arguments -march=native: YES (cached)
Program scripts/compile_proto.py found: YES (/home/david/Downloads/lc0/scripts/compile_proto.py)
Program git found: YES (/usr/bin/git)
Message: Using build identifier "git.4b8acff".
Dependency threads found: YES (cached)
Library dl found: YES
Library libtensorflow_cc found: NO
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Found CMake: /usr/bin/cmake (3.13.4)
Run-time dependency accelerate found: NO (tried pkgconfig and cmake)
Library mkl_rt found: NO
Library mklml found: NO
Library dnnl found: NO
Library openblas.dll found: NO
Library openblas found: YES
Has header "openblas_config.h" : YES (cached)
Program ispc found: NO
Library OpenCL found: YES
Dependency OpenCL found: YES (cached)
Library cublas found: YES
Library cudnn found: YES
Library cudart found: YES
Program nvcc found: YES (/usr/local/cuda/bin/nvcc)
Dependency zlib found: YES (cached)
Dependency gtest found: YES (cached)
Build targets in project: 8
Found ninja-1.9.0 at /usr/bin/ninja
[46/131] Generating 'lc0@exe/common_kernels.o'.
FAILED: lc0@exe/common_kernels.o
/usr/local/cuda/bin/nvcc -c ../../src/neural/cuda/common_kernels.cu -o lc0@exe/common_kernels.o -I /home/david/Downloads/lc0/src --std=c++14 -Xcompiler -fPIC -I /opt/cuda/include/ -I /usr/local/cuda/include/ -I /usr/lib/cuda/include/
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
[49/131] Compiling C++ object 'lc0@exe/src_neural_cuda_layers.cc.o'.
FAILED: lc0@exe/src_neural_cuda_layers.cc.o
g++ -Ilc0@exe -I. -I../.. -I../../src -I/usr/local/cuda/include/ -I/usr/lib/cuda/include/ -I../../src/neural/cuda/ -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++17 -O3 -march=native '-DBUILD_IDENTIFIER="git.4b8acff"' -DUSE_OPENBLAS -DNO_PEXT -pthread -isystem ../../third_party -MD -MQ 'lc0@exe/src_neural_cuda_layers.cc.o' -MF 'lc0@exe/src_neural_cuda_layers.cc.o.d' -o 'lc0@exe/src_neural_cuda_layers.cc.o' -c ../../src/neural/cuda/layers.cc
In file included from /usr/local/cuda/include/channel_descriptor.h:61,
from /usr/local/cuda/include/cuda_runtime.h:95,
from /usr/local/cuda/include/cudnn.h:64,
from ../../src/neural/cuda/layers.h:31,
from ../../src/neural/cuda/layers.cc:27:
/usr/local/cuda/include/cuda_runtime_api.h:2480:88: error: use of enum ‘cudaStreamCaptureMode’ without previous declaration
2480 | extern __host__ cudaError_t CUDARTAPI cudaStreamBeginCapture(cudaStream_t stream, enum cudaStreamCaptureMode mode);
| ^~~~~~~~~~~~~~~~~~~~~
/usr/local/cuda/include/cuda_runtime_api.h:2531:80: error: use of enum ‘cudaStreamCaptureMode’ without previous declaration
2531 | extern __host__ cudaError_t CUDARTAPI cudaThreadExchangeStreamCaptureMode(enum cudaStreamCaptureMode *mode);
| ^~~~~~~~~~~~~~~~~~~~~
[59/131] Compiling C++ object 'lc0@exe/src_neural_opencl_OpenCLTuner.cc.o'.
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment