chmod +x ../build.sh
../build.sh -Dembed=true && mv ../build/release/lc0 Leela-97660778-BC27A6CA
The Meson build system
Version: 0.61.2
Source dir: /tmp/tmp5_iblscq/Leela/Leela-tmp
Build dir: /tmp/tmp5_iblscq/Leela/Leela-tmp/build/release
Build type: native build
Project name: lc0
Project version: undefined
C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
C++ linker for the host machine: c++ ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Has header "optional" : YES 
Has header "string_view" : YES 
Has header "charconv" : YES 
Compiler for C++ supports arguments -march=native: YES 
Program scripts/compile_proto.py found: YES (/usr/bin/python3 /tmp/tmp5_iblscq/Leela/Leela-tmp/scripts/compile_proto.py)
Program git found: YES (/usr/bin/git)
Message: cloning lczero-common.git into libs/lczero-common
meson.build:117: WARNING: Failed to parse short revision. Use git clone instead of downloading the archive from GitHub.
Message: Using build identifier "git.unknown".
Configuring build_id.h using configuration
Run-time dependency threads found: YES
Library dl found: YES
Did not find pkg-config by name 'pkg-config'
Found Pkg-config: NO
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency tensorflow_cc found: NO (tried pkgconfig and cmake)
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: NO
Run-time dependency eigen3 found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency eigen3
Downloading eigen source from https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.bz2
Downloading file of unknown size.
Downloading eigen patch from https://wrapdb.mesonbuild.com/v2/eigen_3.4.0-1/get_patch
Download size: 5619
Downloading: ..........

Executing subproject eigen 

eigen| Project name: eigen
eigen| Project version: 3.4.0
eigen| C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
eigen| C++ linker for the host machine: c++ ld.bfd 2.38
eigen| Build targets in project: 0
eigen| Subproject eigen finished.

Dependency eigen3 from subproject subprojects/eigen-3.4.0 found: YES 3.4.0
Program ispc found: NO
Library OpenCL found: YES
Run-time dependency opencl found: NO 
Has header "CL/opencl.h" : NO 
Library cublas found: YES
Library cudnn found: NO
Library cudart found: YES
Program nvcc found: YES (/usr/local/cuda/bin/nvcc)
Run-time dependency appleframeworks found: NO (tried framework)
Run-time dependency zlib found: YES 1.2.11
Library libatomic found: YES
Run-time dependency GTest found: NO (tried pkgconfig and system)
Looking for a fallback subproject for the dependency gtest
Downloading gtest source from https://github.com/google/googletest/archive/release-1.10.0.zip
Download size: 1146687
Downloading: ..........
Downloading gtest patch from https://wrapdb.mesonbuild.com/v1/projects/gtest/1.10.0/1/get_zip
Download size: 2093
Downloading: ..........

Executing subproject gtest 

gtest| Project name: gtest
gtest| Project version: 1.10.0
gtest| C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
gtest| C++ linker for the host machine: c++ ld.bfd 2.38
gtest| Dependency threads found: YES unknown (cached)
gtest| Dependency threads found: YES unknown (cached)
gtest| Dependency threads found: YES unknown (cached)
gtest| Dependency threads found: YES unknown (cached)
gtest| Build targets in project: 3
gtest| Subproject gtest finished.

Dependency gtest from subproject subprojects/googletest-release-1.10.0 found: YES 1.10.0
Build targets in project: 10

lc0 undefined

  Subprojects
    eigen    : YES
    gtest    : YES

  User defined options
    buildtype: release
    prefix   : /usr/local
    embed    : true

Found ninja-1.10.1 at /usr/bin/ninja
ninja: Entering directory `/tmp/tmp5_iblscq/Leela/Leela-tmp/build/release'
[1/198] Generating 'lc0.p/neural/onnx/onnx.pb.h'.
[2/198] Generating 'liblc0_lib.so.p/neural/onnx/onnx.pb.h'.
[3/198] Generating 'lc0.p/neural/xla/hlo.pb.h'.
[4/198] Generating 'lc0.p/proto/net.pb.h'.
[5/198] Generating 'liblc0_lib.so.p/neural/xla/hlo.pb.h'.
[6/198] Generating 'liblc0_lib.so.p/proto/net.pb.h'.
[7/198] Generating 'encoder_test.p/proto/net.pb.h'.
[8/198] Compiling C++ object lc0.p/src_neural_backends_shared_winograd_filter.cc.o
[9/198] Compiling C++ object lc0.p/src_neural_backends_blas_se_unit.cc.o
[10/198] Compiling C++ object lc0.p/src_chess_gamestate.cc.o
FAILED: lc0.p/src_chess_gamestate.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_chess_gamestate.cc.o -MF lc0.p/src_chess_gamestate.cc.o.d -o lc0.p/src_chess_gamestate.cc.o -c ../../src/chess/gamestate.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/chess/gamestate.h:32,
                 from ../../src/chess/gamestate.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from ../../src/chess/position.h:31,
                 from ../../src/chess/gamestate.h:32,
                 from ../../src/chess/gamestate.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/chess/gamestate.h:32,
                 from ../../src/chess/gamestate.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[11/198] Compiling C++ object lc0.p/src_chess_position.cc.o
FAILED: lc0.p/src_chess_position.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_chess_position.cc.o -MF lc0.p/src_chess_position.cc.o.d -o lc0.p/src_chess_position.cc.o -c ../../src/chess/position.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/chess/position.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from ../../src/chess/position.h:31,
                 from ../../src/chess/position.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/chess/position.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[12/198] Compiling C++ object lc0.p/src_utils_histogram.cc.o
[13/198] Compiling C++ object lc0.p/src_utils_numa.cc.o
FAILED: lc0.p/src_utils_numa.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_utils_numa.cc.o -MF lc0.p/src_utils_numa.cc.o.d -o lc0.p/src_utils_numa.cc.o -c ../../src/utils/numa.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/utils/numa.cc:30:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from ../../src/chess/bitboard.h:32,
                 from ../../src/utils/numa.cc:30:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/utils/numa.cc:30:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[14/198] Compiling C++ object lc0.p/src_search_register.cc.o
[15/198] Compiling C++ object lc0.p/src_chess_board.cc.o
FAILED: lc0.p/src_chess_board.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_chess_board.cc.o -MF lc0.p/src_chess_board.cc.o.d -o lc0.p/src_chess_board.cc.o -c ../../src/chess/board.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/board.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from ../../src/chess/board.h:31,
                 from ../../src/chess/board.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/board.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[16/198] Compiling C++ object lc0.p/src_utils_protomessage.cc.o
[17/198] Compiling C++ object lc0.p/src_neural_backends_shared_activation.cc.o
[18/198] Compiling C++ object lc0.p/src_chess_uciloop.cc.o
FAILED: lc0.p/src_chess_uciloop.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_chess_uciloop.cc.o -MF lc0.p/src_chess_uciloop.cc.o.d -o lc0.p/src_chess_uciloop.cc.o -c ../../src/chess/uciloop.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/chess/uciloop.h:36,
                 from ../../src/chess/uciloop.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/istream:38,
                 from /usr/include/c++/11/fstream:38,
                 from ../../src/chess/uciloop.h:30,
                 from ../../src/chess/uciloop.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/chess/uciloop.h:36,
                 from ../../src/chess/uciloop.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[19/198] Compiling C++ object lc0.p/src_engine_loop.cc.o
FAILED: lc0.p/src_engine_loop.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_engine_loop.cc.o -MF lc0.p/src_engine_loop.cc.o.d -o lc0.p/src_engine_loop.cc.o -c ../../src/engine_loop.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/chess/uciloop.h:36,
                 from ../../src/engine_loop.h:33,
                 from ../../src/engine_loop.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/ostream:38,
                 from /usr/include/c++/11/bits/unique_ptr.h:42,
                 from /usr/include/c++/11/memory:76,
                 from ../../src/engine_loop.h:30,
                 from ../../src/engine_loop.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/chess/uciloop.h:36,
                 from ../../src/engine_loop.h:33,
                 from ../../src/engine_loop.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[20/198] Compiling C++ object lc0.p/src_utils_weights_adapter.cc.o
[21/198] Compiling C++ object lc0.p/src_neural_decoder.cc.o
FAILED: lc0.p/src_neural_decoder.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_neural_decoder.cc.o -MF lc0.p/src_neural_decoder.cc.o.d -o lc0.p/src_neural_decoder.cc.o -c ../../src/neural/decoder.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/decoder.h:30,
                 from ../../src/neural/decoder.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from ../../src/chess/position.h:31,
                 from ../../src/neural/decoder.h:30,
                 from ../../src/neural/decoder.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/decoder.h:30,
                 from ../../src/neural/decoder.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[22/198] Compiling C++ object lc0.p/src_neural_batchsplit.cc.o
FAILED: lc0.p/src_neural_batchsplit.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_neural_batchsplit.cc.o -MF lc0.p/src_neural_batchsplit.cc.o.d -o lc0.p/src_neural_batchsplit.cc.o -c ../../src/neural/batchsplit.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/batchsplit.h:30,
                 from ../../src/neural/batchsplit.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/ostream:38,
                 from /usr/include/c++/11/bits/unique_ptr.h:42,
                 from /usr/include/c++/11/memory:76,
                 from ../../src/neural/backend.h:31,
                 from ../../src/neural/batchsplit.h:30,
                 from ../../src/neural/batchsplit.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/batchsplit.h:30,
                 from ../../src/neural/batchsplit.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[23/198] Compiling C++ object lc0.p/src_neural_backends_network_mux.cc.o
FAILED: lc0.p/src_neural_backends_network_mux.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_neural_backends_network_mux.cc.o -MF lc0.p/src_neural_backends_network_mux.cc.o.d -o lc0.p/src_neural_backends_network_mux.cc.o -c ../../src/neural/backends/network_mux.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/register.h:31,
                 from ../../src/neural/wrapper.h:34,
                 from ../../src/neural/factory.h:36,
                 from ../../src/neural/backends/network_mux.cc:32:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/stdexcept:39,
                 from /usr/include/c++/11/system_error:41,
                 from /usr/include/c++/11/bits/std_mutex.h:39,
                 from /usr/include/c++/11/condition_variable:40,
                 from ../../src/neural/backends/network_mux.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/register.h:31,
                 from ../../src/neural/wrapper.h:34,
                 from ../../src/neural/factory.h:36,
                 from ../../src/neural/backends/network_mux.cc:32:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[24/198] Compiling C++ object lc0.p/src_neural_backends_network_rr.cc.o
FAILED: lc0.p/src_neural_backends_network_rr.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_neural_backends_network_rr.cc.o -MF lc0.p/src_neural_backends_network_rr.cc.o.d -o lc0.p/src_neural_backends_network_rr.cc.o -c ../../src/neural/backends/network_rr.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/register.h:31,
                 from ../../src/neural/wrapper.h:34,
                 from ../../src/neural/factory.h:36,
                 from ../../src/neural/backends/network_rr.cc:32:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/stdexcept:39,
                 from /usr/include/c++/11/system_error:41,
                 from /usr/include/c++/11/bits/std_mutex.h:39,
                 from /usr/include/c++/11/condition_variable:40,
                 from ../../src/neural/backends/network_rr.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/register.h:31,
                 from ../../src/neural/wrapper.h:34,
                 from ../../src/neural/factory.h:36,
                 from ../../src/neural/backends/network_rr.cc:32:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[25/198] Compiling C++ object lc0.p/src_engine.cc.o
FAILED: lc0.p/src_engine.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_engine.cc.o -MF lc0.p/src_engine.cc.o.d -o lc0.p/src_engine.cc.o -c ../../src/engine.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/chess/uciloop.h:36,
                 from ../../src/engine_loop.h:33,
                 from ../../src/engine.h:32,
                 from ../../src/engine.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/ostream:38,
                 from /usr/include/c++/11/bits/unique_ptr.h:42,
                 from /usr/include/c++/11/memory:76,
                 from ../../src/engine_loop.h:30,
                 from ../../src/engine.h:32,
                 from ../../src/engine.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/chess/uciloop.h:36,
                 from ../../src/engine_loop.h:33,
                 from ../../src/engine.h:32,
                 from ../../src/engine.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[26/198] Compiling C++ object lc0.p/src_neural_factory.cc.o
FAILED: lc0.p/src_neural_factory.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_neural_factory.cc.o -MF lc0.p/src_neural_factory.cc.o.d -o lc0.p/src_neural_factory.cc.o -c ../../src/neural/factory.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/register.h:31,
                 from ../../src/neural/wrapper.h:34,
                 from ../../src/neural/factory.h:36,
                 from ../../src/neural/factory.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from ../../src/neural/factory.h:32,
                 from ../../src/neural/factory.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/register.h:31,
                 from ../../src/neural/wrapper.h:34,
                 from ../../src/neural/factory.h:36,
                 from ../../src/neural/factory.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[27/198] Compiling C++ object lc0.p/src_search_classic_stoppers_timemgr.cc.o
FAILED: lc0.p/src_search_classic_stoppers_timemgr.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_search_classic_stoppers_timemgr.cc.o -MF lc0.p/src_search_classic_stoppers_timemgr.cc.o.d -o lc0.p/src_search_classic_stoppers_timemgr.cc.o -c ../../src/search/classic/stoppers/timemgr.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/chess/uciloop.h:36,
                 from ../../src/search/classic/stoppers/timemgr.h:35,
                 from ../../src/search/classic/stoppers/timemgr.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/ostream:38,
                 from /usr/include/c++/11/bits/unique_ptr.h:42,
                 from /usr/include/c++/11/memory:76,
                 from ../../src/search/classic/stoppers/timemgr.h:31,
                 from ../../src/search/classic/stoppers/timemgr.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/chess/uciloop.h:36,
                 from ../../src/search/classic/stoppers/timemgr.h:35,
                 from ../../src/search/classic/stoppers/timemgr.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[28/198] Compiling C++ object lc0.p/src_neural_backend.cc.o
FAILED: lc0.p/src_neural_backend.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_neural_backend.cc.o -MF lc0.p/src_neural_backend.cc.o.d -o lc0.p/src_neural_backend.cc.o -c ../../src/neural/backend.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/backend.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/ostream:38,
                 from /usr/include/c++/11/bits/unique_ptr.h:42,
                 from /usr/include/c++/11/memory:76,
                 from ../../src/neural/backend.h:31,
                 from ../../src/neural/backend.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/backend.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[29/198] Compiling C++ object lc0.p/src_search_instamove_instamove.cc.o
FAILED: lc0.p/src_search_instamove_instamove.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_search_instamove_instamove.cc.o -MF lc0.p/src_search_instamove_instamove.cc.o.d -o lc0.p/src_search_instamove_instamove.cc.o -c ../../src/search/instamove/instamove.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/chess/uciloop.h:36,
                 from ../../src/search/instamove/instamove.h:32,
                 from ../../src/search/instamove/instamove.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/stdexcept:39,
                 from /usr/include/c++/11/system_error:41,
                 from /usr/include/c++/11/bits/std_mutex.h:39,
                 from /usr/include/c++/11/bits/atomic_wait.h:49,
                 from /usr/include/c++/11/bits/atomic_base.h:41,
                 from /usr/include/c++/11/atomic:41,
                 from ../../src/search/instamove/instamove.h:30,
                 from ../../src/search/instamove/instamove.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/chess/uciloop.h:36,
                 from ../../src/search/instamove/instamove.h:32,
                 from ../../src/search/instamove/instamove.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[30/198] Compiling C++ object lc0.p/src_search_classic_stoppers_legacy.cc.o
FAILED: lc0.p/src_search_classic_stoppers_legacy.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_search_classic_stoppers_legacy.cc.o -MF lc0.p/src_search_classic_stoppers_legacy.cc.o.d -o lc0.p/src_search_classic_stoppers_legacy.cc.o -c ../../src/search/classic/stoppers/legacy.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/chess/uciloop.h:36,
                 from ../../src/search/classic/stoppers/timemgr.h:35,
                 from ../../src/search/classic/stoppers/legacy.h:30,
                 from ../../src/search/classic/stoppers/legacy.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/ostream:38,
                 from /usr/include/c++/11/bits/unique_ptr.h:42,
                 from /usr/include/c++/11/memory:76,
                 from ../../src/search/classic/stoppers/timemgr.h:31,
                 from ../../src/search/classic/stoppers/legacy.h:30,
                 from ../../src/search/classic/stoppers/legacy.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/chess/uciloop.h:36,
                 from ../../src/search/classic/stoppers/timemgr.h:35,
                 from ../../src/search/classic/stoppers/legacy.h:30,
                 from ../../src/search/classic/stoppers/legacy.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[31/198] Compiling C++ object lc0.p/src_search_classic_stoppers_simple.cc.o
FAILED: lc0.p/src_search_classic_stoppers_simple.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_search_classic_stoppers_simple.cc.o -MF lc0.p/src_search_classic_stoppers_simple.cc.o.d -o lc0.p/src_search_classic_stoppers_simple.cc.o -c ../../src/search/classic/stoppers/simple.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/search/classic/node.h:36,
                 from ../../src/search/classic/stoppers/stoppers.h:33,
                 from ../../src/search/classic/stoppers/simple.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/streambuf:41,
                 from /usr/include/c++/11/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/11/iterator:66,
                 from /usr/include/c++/11/bits/ranges_algobase.h:36,
                 from /usr/include/c++/11/bits/ranges_algo.h:35,
                 from /usr/include/c++/11/algorithm:64,
                 from ../../src/search/classic/node.h:30,
                 from ../../src/search/classic/stoppers/stoppers.h:33,
                 from ../../src/search/classic/stoppers/simple.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/search/classic/node.h:36,
                 from ../../src/search/classic/stoppers/stoppers.h:33,
                 from ../../src/search/classic/stoppers/simple.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[32/198] Compiling C++ object lc0.p/src_search_classic_stoppers_stoppers.cc.o
FAILED: lc0.p/src_search_classic_stoppers_stoppers.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_search_classic_stoppers_stoppers.cc.o -MF lc0.p/src_search_classic_stoppers_stoppers.cc.o.d -o lc0.p/src_search_classic_stoppers_stoppers.cc.o -c ../../src/search/classic/stoppers/stoppers.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/search/classic/node.h:36,
                 from ../../src/search/classic/stoppers/stoppers.h:33,
                 from ../../src/search/classic/stoppers/stoppers.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/streambuf:41,
                 from /usr/include/c++/11/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/11/iterator:66,
                 from /usr/include/c++/11/bits/ranges_algobase.h:36,
                 from /usr/include/c++/11/bits/ranges_algo.h:35,
                 from /usr/include/c++/11/algorithm:64,
                 from ../../src/search/classic/node.h:30,
                 from ../../src/search/classic/stoppers/stoppers.h:33,
                 from ../../src/search/classic/stoppers/stoppers.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/search/classic/node.h:36,
                 from ../../src/search/classic/stoppers/stoppers.h:33,
                 from ../../src/search/classic/stoppers/stoppers.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[33/198] Compiling C++ object liblc0_lib.so.p/src_search_classic_node.cc.o
FAILED: liblc0_lib.so.p/src_search_classic_node.cc.o 
c++ -Iliblc0_lib.so.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -fPIC -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ liblc0_lib.so.p/src_search_classic_node.cc.o -MF liblc0_lib.so.p/src_search_classic_node.cc.o.d -o liblc0_lib.so.p/src_search_classic_node.cc.o -c ../../src/search/classic/node.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/search/classic/node.h:36,
                 from ../../src/search/classic/node.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/streambuf:41,
                 from /usr/include/c++/11/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/11/iterator:66,
                 from /usr/include/c++/11/bits/ranges_algobase.h:36,
                 from /usr/include/c++/11/bits/ranges_algo.h:35,
                 from /usr/include/c++/11/algorithm:64,
                 from ../../src/search/classic/node.h:30,
                 from ../../src/search/classic/node.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/search/classic/node.h:36,
                 from ../../src/search/classic/node.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[34/198] Compiling C++ object lc0.p/src_neural_backends_network_trivial.cc.o
FAILED: lc0.p/src_neural_backends_network_trivial.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_neural_backends_network_trivial.cc.o -MF lc0.p/src_neural_backends_network_trivial.cc.o.d -o lc0.p/src_neural_backends_network_trivial.cc.o -c ../../src/neural/backends/network_trivial.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/register.h:31,
                 from ../../src/neural/wrapper.h:34,
                 from ../../src/neural/factory.h:36,
                 from ../../src/neural/backends/network_trivial.cc:41:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/streambuf:41,
                 from /usr/include/c++/11/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/11/iterator:66,
                 from /usr/include/c++/11/bits/ranges_algobase.h:36,
                 from /usr/include/c++/11/bits/ranges_algo.h:35,
                 from /usr/include/c++/11/algorithm:64,
                 from ../../src/neural/backends/network_trivial.cc:34:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/register.h:31,
                 from ../../src/neural/wrapper.h:34,
                 from ../../src/neural/factory.h:36,
                 from ../../src/neural/backends/network_trivial.cc:41:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[35/198] Compiling C++ object lc0.p/src_neural_backends_network_demux.cc.o
FAILED: lc0.p/src_neural_backends_network_demux.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_neural_backends_network_demux.cc.o -MF lc0.p/src_neural_backends_network_demux.cc.o.d -o lc0.p/src_neural_backends_network_demux.cc.o -c ../../src/neural/backends/network_demux.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/register.h:31,
                 from ../../src/neural/wrapper.h:34,
                 from ../../src/neural/factory.h:36,
                 from ../../src/neural/backends/network_demux.cc:32:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/stdexcept:39,
                 from /usr/include/c++/11/system_error:41,
                 from /usr/include/c++/11/bits/std_mutex.h:39,
                 from /usr/include/c++/11/condition_variable:40,
                 from ../../src/neural/backends/network_demux.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/register.h:31,
                 from ../../src/neural/wrapper.h:34,
                 from ../../src/neural/factory.h:36,
                 from ../../src/neural/backends/network_demux.cc:32:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[36/198] Compiling C++ object lc0.p/src_neural_backends_network_random.cc.o
FAILED: lc0.p/src_neural_backends_network_random.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_neural_backends_network_random.cc.o -MF lc0.p/src_neural_backends_network_random.cc.o.d -o lc0.p/src_neural_backends_network_random.cc.o -c ../../src/neural/backends/network_random.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/register.h:31,
                 from ../../src/neural/wrapper.h:34,
                 from ../../src/neural/factory.h:36,
                 from ../../src/neural/backends/network_random.cc:35:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/ostream:38,
                 from /usr/include/c++/11/bits/unique_ptr.h:42,
                 from /usr/include/c++/11/memory:76,
                 from ../../src/neural/backends/network_random.cc:32:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/register.h:31,
                 from ../../src/neural/wrapper.h:34,
                 from ../../src/neural/factory.h:36,
                 from ../../src/neural/backends/network_random.cc:35:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[37/198] Compiling C++ object lc0.p/src_search_classic_stoppers_alphazero.cc.o
FAILED: lc0.p/src_search_classic_stoppers_alphazero.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_search_classic_stoppers_alphazero.cc.o -MF lc0.p/src_search_classic_stoppers_alphazero.cc.o.d -o lc0.p/src_search_classic_stoppers_alphazero.cc.o -c ../../src/search/classic/stoppers/alphazero.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/search/classic/node.h:36,
                 from ../../src/search/classic/stoppers/stoppers.h:33,
                 from ../../src/search/classic/stoppers/alphazero.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/streambuf:41,
                 from /usr/include/c++/11/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/11/iterator:66,
                 from /usr/include/c++/11/bits/ranges_algobase.h:36,
                 from /usr/include/c++/11/bits/ranges_algo.h:35,
                 from /usr/include/c++/11/algorithm:64,
                 from ../../src/search/classic/node.h:30,
                 from ../../src/search/classic/stoppers/stoppers.h:33,
                 from ../../src/search/classic/stoppers/alphazero.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/search/classic/node.h:36,
                 from ../../src/search/classic/stoppers/stoppers.h:33,
                 from ../../src/search/classic/stoppers/alphazero.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[38/198] Compiling C++ object lc0.p/src_neural_backends_network_record.cc.o
FAILED: lc0.p/src_neural_backends_network_record.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_neural_backends_network_record.cc.o -MF lc0.p/src_neural_backends_network_record.cc.o.d -o lc0.p/src_neural_backends_network_record.cc.o -c ../../src/neural/backends/network_record.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/register.h:31,
                 from ../../src/neural/wrapper.h:34,
                 from ../../src/neural/factory.h:36,
                 from ../../src/neural/backends/network_record.cc:30:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/ostream:38,
                 from /usr/include/c++/11/iostream:39,
                 from ../../src/neural/backends/network_record.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/register.h:31,
                 from ../../src/neural/wrapper.h:34,
                 from ../../src/neural/factory.h:36,
                 from ../../src/neural/backends/network_record.cc:30:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[39/198] Compiling C++ object lc0.p/src_search_classic_params.cc.o
FAILED: lc0.p/src_search_classic_params.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_search_classic_params.cc.o -MF lc0.p/src_search_classic_params.cc.o.d -o lc0.p/src_search_classic_params.cc.o -c ../../src/search/classic/params.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/encoder.h:32,
                 from ../../src/search/classic/params.h:30,
                 from ../../src/search/classic/params.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from ../../src/chess/position.h:31,
                 from ../../src/neural/encoder.h:32,
                 from ../../src/search/classic/params.h:30,
                 from ../../src/search/classic/params.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/encoder.h:32,
                 from ../../src/search/classic/params.h:30,
                 from ../../src/search/classic/params.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[40/198] Compiling C++ object lc0.p/src_search_classic_stoppers_smooth.cc.o
FAILED: lc0.p/src_search_classic_stoppers_smooth.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_search_classic_stoppers_smooth.cc.o -MF lc0.p/src_search_classic_stoppers_smooth.cc.o.d -o lc0.p/src_search_classic_stoppers_smooth.cc.o -c ../../src/search/classic/stoppers/smooth.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/chess/uciloop.h:36,
                 from ../../src/search/classic/stoppers/timemgr.h:35,
                 from ../../src/search/classic/stoppers/smooth.h:30,
                 from ../../src/search/classic/stoppers/smooth.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/ostream:38,
                 from /usr/include/c++/11/bits/unique_ptr.h:42,
                 from /usr/include/c++/11/memory:76,
                 from ../../src/search/classic/stoppers/timemgr.h:31,
                 from ../../src/search/classic/stoppers/smooth.h:30,
                 from ../../src/search/classic/stoppers/smooth.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/chess/uciloop.h:36,
                 from ../../src/search/classic/stoppers/timemgr.h:35,
                 from ../../src/search/classic/stoppers/smooth.h:30,
                 from ../../src/search/classic/stoppers/smooth.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[41/198] Compiling C++ object lc0.p/src_neural_encoder.cc.o
FAILED: lc0.p/src_neural_encoder.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_neural_encoder.cc.o -MF lc0.p/src_neural_encoder.cc.o.d -o lc0.p/src_neural_encoder.cc.o -c ../../src/neural/encoder.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/encoder.h:32,
                 from ../../src/neural/encoder.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from ../../src/chess/position.h:31,
                 from ../../src/neural/encoder.h:32,
                 from ../../src/neural/encoder.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/encoder.h:32,
                 from ../../src/neural/encoder.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[42/198] Compiling C++ object lc0.p/src_search_classic_stoppers_factory.cc.o
FAILED: lc0.p/src_search_classic_stoppers_factory.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_search_classic_stoppers_factory.cc.o -MF lc0.p/src_search_classic_stoppers_factory.cc.o.d -o lc0.p/src_search_classic_stoppers_factory.cc.o -c ../../src/search/classic/stoppers/factory.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/search/classic/node.h:36,
                 from ../../src/search/classic/stoppers/stoppers.h:33,
                 from ../../src/search/classic/stoppers/common.h:30,
                 from ../../src/search/classic/stoppers/factory.h:30,
                 from ../../src/search/classic/stoppers/factory.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/streambuf:41,
                 from /usr/include/c++/11/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/11/iterator:66,
                 from /usr/include/c++/11/bits/ranges_algobase.h:36,
                 from /usr/include/c++/11/bits/ranges_algo.h:35,
                 from /usr/include/c++/11/algorithm:64,
                 from ../../src/search/classic/node.h:30,
                 from ../../src/search/classic/stoppers/stoppers.h:33,
                 from ../../src/search/classic/stoppers/common.h:30,
                 from ../../src/search/classic/stoppers/factory.h:30,
                 from ../../src/search/classic/stoppers/factory.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/search/classic/node.h:36,
                 from ../../src/search/classic/stoppers/stoppers.h:33,
                 from ../../src/search/classic/stoppers/common.h:30,
                 from ../../src/search/classic/stoppers/factory.h:30,
                 from ../../src/search/classic/stoppers/factory.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[43/198] Compiling C++ object lc0.p/src_neural_xla_print_hlo.cc.o
[44/198] Compiling C++ object lc0.p/src_neural_backends_network_check.cc.o
FAILED: lc0.p/src_neural_backends_network_check.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_neural_backends_network_check.cc.o -MF lc0.p/src_neural_backends_network_check.cc.o.d -o lc0.p/src_neural_backends_network_check.cc.o -c ../../src/neural/backends/network_check.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/decoder.h:30,
                 from ../../src/neural/backends/network_check.cc:32:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/streambuf:41,
                 from /usr/include/c++/11/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/11/iterator:66,
                 from /usr/include/c++/11/bits/ranges_algobase.h:36,
                 from /usr/include/c++/11/bits/ranges_algo.h:35,
                 from /usr/include/c++/11/algorithm:64,
                 from ../../src/neural/backends/network_check.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/decoder.h:30,
                 from ../../src/neural/backends/network_check.cc:32:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[45/198] Compiling C++ object lc0.p/src_tools_backendbench.cc.o
FAILED: lc0.p/src_tools_backendbench.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_tools_backendbench.cc.o -MF lc0.p/src_tools_backendbench.cc.o.d -o lc0.p/src_tools_backendbench.cc.o -c ../../src/tools/backendbench.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/tools/backendbench.cc:30:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from ../../src/chess/board.h:31,
                 from ../../src/tools/backendbench.cc:30:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/tools/backendbench.cc:30:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[46/198] Compiling C++ object lc0.p/src_neural_memcache.cc.o
FAILED: lc0.p/src_neural_memcache.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_neural_memcache.cc.o -MF lc0.p/src_neural_memcache.cc.o.d -o lc0.p/src_neural_memcache.cc.o -c ../../src/neural/memcache.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/memcache.h:30,
                 from ../../src/neural/memcache.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/ostream:38,
                 from /usr/include/c++/11/bits/unique_ptr.h:42,
                 from /usr/include/c++/11/memory:76,
                 from ../../src/neural/backend.h:31,
                 from ../../src/neural/memcache.h:30,
                 from ../../src/neural/memcache.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/memcache.h:30,
                 from ../../src/neural/memcache.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[47/198] Compiling C++ object lc0.p/src_neural_cache.cc.o
[48/198] Compiling C++ object lc0.p/src_selfplay_multigame.cc.o
FAILED: lc0.p/src_selfplay_multigame.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_selfplay_multigame.cc.o -MF lc0.p/src_selfplay_multigame.cc.o.d -o lc0.p/src_selfplay_multigame.cc.o -c ../../src/selfplay/multigame.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/pgn.h:38,
                 from ../../src/selfplay/game.h:30,
                 from ../../src/selfplay/multigame.h:30,
                 from ../../src/selfplay/multigame.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/streambuf:41,
                 from /usr/include/c++/11/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/11/iterator:66,
                 from /usr/include/c++/11/bits/ranges_algobase.h:36,
                 from /usr/include/c++/11/bits/ranges_algo.h:35,
                 from /usr/include/c++/11/algorithm:64,
                 from ../../src/chess/pgn.h:32,
                 from ../../src/selfplay/game.h:30,
                 from ../../src/selfplay/multigame.h:30,
                 from ../../src/selfplay/multigame.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/pgn.h:38,
                 from ../../src/selfplay/game.h:30,
                 from ../../src/selfplay/multigame.h:30,
                 from ../../src/selfplay/multigame.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[49/198] Compiling C++ object lc0.p/src_neural_loader.cc.o
[50/198] Compiling C++ object lc0.p/src_search_classic_stoppers_common.cc.o
FAILED: lc0.p/src_search_classic_stoppers_common.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_search_classic_stoppers_common.cc.o -MF lc0.p/src_search_classic_stoppers_common.cc.o.d -o lc0.p/src_search_classic_stoppers_common.cc.o -c ../../src/search/classic/stoppers/common.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/search/classic/node.h:36,
                 from ../../src/search/classic/stoppers/stoppers.h:33,
                 from ../../src/search/classic/stoppers/common.h:30,
                 from ../../src/search/classic/stoppers/common.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/streambuf:41,
                 from /usr/include/c++/11/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/11/iterator:66,
                 from /usr/include/c++/11/bits/ranges_algobase.h:36,
                 from /usr/include/c++/11/bits/ranges_algo.h:35,
                 from /usr/include/c++/11/algorithm:64,
                 from ../../src/search/classic/node.h:30,
                 from ../../src/search/classic/stoppers/stoppers.h:33,
                 from ../../src/search/classic/stoppers/common.h:30,
                 from ../../src/search/classic/stoppers/common.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/search/classic/node.h:36,
                 from ../../src/search/classic/stoppers/stoppers.h:33,
                 from ../../src/search/classic/stoppers/common.h:30,
                 from ../../src/search/classic/stoppers/common.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[51/198] Compiling C++ object lc0.p/src_neural_network_legacy.cc.o
[52/198] Compiling C++ object lc0.p/src_tools_benchmark.cc.o
FAILED: lc0.p/src_tools_benchmark.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_tools_benchmark.cc.o -MF lc0.p/src_tools_benchmark.cc.o.d -o lc0.p/src_tools_benchmark.cc.o -c ../../src/tools/benchmark.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/search/classic/search.h:37,
                 from ../../src/tools/benchmark.h:30,
                 from ../../src/tools/benchmark.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/stdexcept:39,
                 from /usr/include/c++/11/system_error:41,
                 from /usr/include/c++/11/bits/std_mutex.h:39,
                 from /usr/include/c++/11/condition_variable:40,
                 from ../../src/search/classic/search.h:31,
                 from ../../src/tools/benchmark.h:30,
                 from ../../src/tools/benchmark.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/search/classic/search.h:37,
                 from ../../src/tools/benchmark.h:30,
                 from ../../src/tools/benchmark.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[53/198] Compiling C++ object lc0.p/src_main.cc.o
FAILED: lc0.p/src_main.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_main.cc.o -MF lc0.p/src_main.cc.o.d -o lc0.p/src_main.cc.o -c ../../src/main.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/main.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from ../../src/chess/board.h:31,
                 from ../../src/main.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/main.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[54/198] Compiling C++ object lc0.p/src_selfplay_loop.cc.o
FAILED: lc0.p/src_selfplay_loop.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_selfplay_loop.cc.o -MF lc0.p/src_selfplay_loop.cc.o.d -o lc0.p/src_selfplay_loop.cc.o -c ../../src/selfplay/loop.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/chess/uciloop.h:36,
                 from ../../src/selfplay/loop.h:32,
                 from ../../src/selfplay/loop.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/stdexcept:39,
                 from /usr/include/c++/11/system_error:41,
                 from /usr/include/c++/11/bits/std_mutex.h:39,
                 from /usr/include/c++/11/bits/atomic_wait.h:49,
                 from /usr/include/c++/11/bits/atomic_base.h:41,
                 from /usr/include/c++/11/atomic:41,
                 from /usr/include/c++/11/stop_token:34,
                 from /usr/include/c++/11/thread:40,
                 from ../../src/selfplay/loop.h:30,
                 from ../../src/selfplay/loop.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/chess/uciloop.h:36,
                 from ../../src/selfplay/loop.h:32,
                 from ../../src/selfplay/loop.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[55/198] Compiling C++ object lc0.p/src_engine_classic.cc.o
FAILED: lc0.p/src_engine_classic.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_engine_classic.cc.o -MF lc0.p/src_engine_classic.cc.o.d -o lc0.p/src_engine_classic.cc.o -c ../../src/engine_classic.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/chess/uciloop.h:36,
                 from ../../src/engine_loop.h:33,
                 from ../../src/engine_classic.h:32,
                 from ../../src/engine_classic.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/ostream:38,
                 from /usr/include/c++/11/bits/unique_ptr.h:42,
                 from /usr/include/c++/11/memory:76,
                 from ../../src/engine_loop.h:30,
                 from ../../src/engine_classic.h:32,
                 from ../../src/engine_classic.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/chess/uciloop.h:36,
                 from ../../src/engine_loop.h:33,
                 from ../../src/engine_classic.h:32,
                 from ../../src/engine_classic.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[56/198] Compiling C++ object lc0.p/src_selfplay_game.cc.o
FAILED: lc0.p/src_selfplay_game.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_selfplay_game.cc.o -MF lc0.p/src_selfplay_game.cc.o.d -o lc0.p/src_selfplay_game.cc.o -c ../../src/selfplay/game.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/pgn.h:38,
                 from ../../src/selfplay/game.h:30,
                 from ../../src/selfplay/game.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/streambuf:41,
                 from /usr/include/c++/11/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/11/iterator:66,
                 from /usr/include/c++/11/bits/ranges_algobase.h:36,
                 from /usr/include/c++/11/bits/ranges_algo.h:35,
                 from /usr/include/c++/11/algorithm:64,
                 from ../../src/chess/pgn.h:32,
                 from ../../src/selfplay/game.h:30,
                 from ../../src/selfplay/game.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/pgn.h:38,
                 from ../../src/selfplay/game.h:30,
                 from ../../src/selfplay/game.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[57/198] Compiling C++ object lc0.p/src_neural_xla_xla_tensor.cc.o
[58/198] Compiling C++ object lc0.p/src_search_classic_search.cc.o
FAILED: lc0.p/src_search_classic_search.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_search_classic_search.cc.o -MF lc0.p/src_search_classic_search.cc.o.d -o lc0.p/src_search_classic_search.cc.o -c ../../src/search/classic/search.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/search/classic/search.h:37,
                 from ../../src/search/classic/search.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/stdexcept:39,
                 from /usr/include/c++/11/system_error:41,
                 from /usr/include/c++/11/bits/std_mutex.h:39,
                 from /usr/include/c++/11/condition_variable:40,
                 from ../../src/search/classic/search.h:31,
                 from ../../src/search/classic/search.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/callbacks.h:36,
                 from ../../src/search/classic/search.h:37,
                 from ../../src/search/classic/search.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[59/198] Compiling C++ object lc0.p/src_neural_xla_hlo_builder.cc.o
[60/198] Compiling C++ object lc0.p/src_selfplay_tournament.cc.o
FAILED: lc0.p/src_selfplay_tournament.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_selfplay_tournament.cc.o -MF lc0.p/src_selfplay_tournament.cc.o.d -o lc0.p/src_selfplay_tournament.cc.o -c ../../src/selfplay/tournament.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/pgn.h:38,
                 from ../../src/selfplay/tournament.h:32,
                 from ../../src/selfplay/tournament.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/streambuf:41,
                 from /usr/include/c++/11/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/11/iterator:66,
                 from /usr/include/c++/11/bits/ranges_algobase.h:36,
                 from /usr/include/c++/11/bits/ranges_algo.h:35,
                 from /usr/include/c++/11/algorithm:64,
                 from ../../src/chess/pgn.h:32,
                 from ../../src/selfplay/tournament.h:32,
                 from ../../src/selfplay/tournament.cc:28:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/pgn.h:38,
                 from ../../src/selfplay/tournament.h:32,
                 from ../../src/selfplay/tournament.cc:28:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[61/198] Compiling C++ object lc0.p/src_neural_backends_blas_winograd_convolution3.cc.o
[62/198] Compiling C++ object lc0.p/src_tools_describenet.cc.o
[63/198] Compiling C++ object lc0.p/src_neural_backends_blas_convolution1.cc.o
[64/198] Compiling C++ object lc0.p/src_neural_backends_blas_fully_connected_layer.cc.o
[65/198] Compiling C++ object lc0.p/src_neural_onnx_adapters.cc.o
[66/198] Compiling C++ object lc0.p/src_neural_onnx_builder.cc.o
[67/198] Compiling C++ object lc0.p/src_neural_backends_cuda_network_cuda.cc.o
FAILED: lc0.p/src_neural_backends_cuda_network_cuda.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_neural_backends_cuda_network_cuda.cc.o -MF lc0.p/src_neural_backends_cuda_network_cuda.cc.o.d -o lc0.p/src_neural_backends_cuda_network_cuda.cc.o -c ../../src/neural/backends/cuda/network_cuda.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/register.h:31,
                 from ../../src/neural/wrapper.h:34,
                 from ../../src/neural/factory.h:36,
                 from ../../src/neural/backends/cuda/network_cuda.cc:38:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/streambuf:41,
                 from /usr/include/c++/11/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/11/iterator:66,
                 from /usr/include/c++/11/bits/ranges_algobase.h:36,
                 from /usr/include/c++/11/bits/ranges_algo.h:35,
                 from /usr/include/c++/11/algorithm:64,
                 from ../../src/neural/backends/cuda/network_cuda.cc:27:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/register.h:31,
                 from ../../src/neural/wrapper.h:34,
                 from ../../src/neural/factory.h:36,
                 from ../../src/neural/backends/cuda/network_cuda.cc:38:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[68/198] Compiling C++ object lc0.p/src_neural_backends_cuda_layers.cc.o
[69/198] Compiling C++ object lc0.p/src_tools_onnx2leela.cc.o
[70/198] Compiling C++ object lc0.p/src_neural_onnx_converter.cc.o
[71/198] Compiling C++ object lc0.p/src_tools_leela2onnx.cc.o
[72/198] Compiling C++ object lc0.p/src_neural_backends_blas_network_blas.cc.o
FAILED: lc0.p/src_neural_backends_blas_network_blas.cc.o 
c++ -Ilc0.p -I. -I../.. -I../../src -I../../src/neural/backends/cuda -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++20 -O3 -march=native -DNO_PEXT -DEMBED -pthread -isystem../../subprojects/eigen-3.4.0 -isystemsubprojects/eigen-3.4.0 -isystem/usr/local/cuda/include -isystem../../third_party -MD -MQ lc0.p/src_neural_backends_blas_network_blas.cc.o -MF lc0.p/src_neural_backends_blas_network_blas.cc.o.d -o lc0.p/src_neural_backends_blas_network_blas.cc.o -c ../../src/neural/backends/blas/network_blas.cc
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/register.h:31,
                 from ../../src/neural/wrapper.h:34,
                 from ../../src/neural/factory.h:36,
                 from ../../src/neural/backends/blas/network_blas.cc:33:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::File::ToString(bool) const’:
../../src/chess/types.h:63:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::File::ToString(bool) const’
   63 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
In file included from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/istream:38,
                 from /usr/include/c++/11/sstream:38,
                 from /usr/include/c++/11/complex:45,
                 from ../../subprojects/eigen-3.4.0/Eigen/Core:50,
                 from ../../src/neural/backends/blas/network_blas.cc:19:
/usr/include/c++/11/bits/basic_string.h:85:11: note: ‘std::__cxx11::basic_string<char>’ is not literal because:
   85 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/11/bits/basic_string.h:85:11: note:   ‘std::__cxx11::basic_string<char>’ does not have ‘constexpr’ destructor
In file included from ../../src/chess/bitboard.h:35,
                 from ../../src/chess/board.h:33,
                 from ../../src/chess/position.h:34,
                 from ../../src/neural/backend.h:36,
                 from ../../src/neural/register.h:31,
                 from ../../src/neural/wrapper.h:34,
                 from ../../src/neural/factory.h:36,
                 from ../../src/neural/backends/blas/network_blas.cc:33:
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Rank::ToString() const’:
../../src/chess/types.h:88:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Rank::ToString() const’
   88 |   constexpr std::string ToString() const { return std::string(1, '1' + idx); }
      |                         ^~~~~~~~
../../src/chess/types.h: In member function ‘constexpr std::string lczero::Square::ToString(bool) const’:
../../src/chess/types.h:115:25: error: invalid return type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} of ‘constexpr’ function ‘constexpr std::string lczero::Square::ToString(bool) const’
  115 |   constexpr std::string ToString(bool uppercase = false) const {
      |                         ^~~~~~~~
[73/198] Compiling C++ object lc0.p/src_neural_xla_onnx2hlo.cc.o
[74/198] Generating cuda fp32 code with a custom command
[75/198] Generating cuda fp16 code with a custom command
ninja: build stopped: subcommand failed.
make: *** [Makefile:7: all] Error 1