Looks like it's just a matter of using the correct compiler flags. 2.0.7 built fine if I'm not mistaken and looks like this regression came with the switch to CMake. Unfortunately I know absolutely zilch about CMake so I haven't been able to wrap my head around it.
$ nix-build '<nixpkgs>' -A nix-plugins
these derivations will be built:
/nix/store/kslw4pr9kjd2p208bmpapwn7yv180v13-nix-plugins-3.0.1.drv
building '/nix/store/kslw4pr9kjd2p208bmpapwn7yv180v13-nix-plugins-3.0.1.drv'...
unpacking sources
unpacking source archive /nix/store/rzl0q93pcv7asj9nd7q985cmijbpj5dq-source
source root is source
patching sources
configuring
fixing cmake files...
cmake flags: -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/grpp6a4n3z6wl2kgn2z3yjhj8v7x193n-nix-plugins-3.0.1/include -DCMAKE_INSTALL_LIBDIR=/nix/store/grpp6a4n3z6wl2kgn2z3yjhj8v7x193n-nix-plugins-3.0.1/lib -DCMAKE_INSTALL_NAME_DIR=/nix/store/grpp6a4n3z6wl2kgn2z3yjhj8v7x193n-nix-plugins-3.0.1/lib -DCMAKE_INSTALL_PREFIX=/nix/store/grpp6a4n3z6wl2kgn2z3yjhj8v7x193n-nix-plugins-3.0.1
-- The C compiler identification is Clang 5.0.1
-- The CXX compiler identification is Clang 5.0.1
-- Check for working C compiler: /nix/store/53h1zds6q5k4ab4l7430fbddn0l0iq1c-clang-wrapper-5.0.1/bin/clang
-- Check for working C compiler: /nix/store/53h1zds6q5k4ab4l7430fbddn0l0iq1c-clang-wrapper-5.0.1/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /nix/store/53h1zds6q5k4ab4l7430fbddn0l0iq1c-clang-wrapper-5.0.1/bin/clang++
-- Check for working CXX compiler: /nix/store/53h1zds6q5k4ab4l7430fbddn0l0iq1c-clang-wrapper-5.0.1/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /nix/store/j2zsla2jd1kmh67n95di6v8769jynwp8-pkg-config-0.29.2/bin/pkg-config (found version "0.29.2")
-- Checking for modules 'nix-expr>=2.0;nix-main>=2.0;nix-store>=2.0'
-- Found nix-expr, version 2.0
-- Found nix-main, version 2.0
-- Found nix-store, version 2.0
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_INSTALL_INCLUDEDIR
CMAKE_INSTALL_LIBDIR
-- Build files have been written to: /tmp/nix-build-nix-plugins-3.0.1.drv-0/source/build
cmake: enabled parallel building
building
build flags: -j8 -l8 SHELL=/nix/store/pkjmwq7sqrvjg7cjiph6hq0khsmfl6p8-bash-4.4-p12/bin/bash
Scanning dependencies of target nix-extra-builtins
[ 50%] Building CXX object CMakeFiles/nix-extra-builtins.dir/extra-builtins.cc.o
In file included from /tmp/nix-build-nix-plugins-3.0.1.drv-0/source/extra-builtins.cc:2:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/primops.hh:1:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/eval.hh:3:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/attr-set.hh:3:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/nixexpr.hh:3:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/value.hh:3:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/symbol-table.hh:6:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/types.hh:4:
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/ref.hh:78:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template<typename T2, typename... Args>
^
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/ref.hh:80:18: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
make_ref(Args&&... args);
^
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/ref.hh:84:30: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template<typename T, typename... Args>
^
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/ref.hh:86:14: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
make_ref(Args&&... args)
^
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/ref.hh:88:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto p = std::make_shared<T>(std::forward<Args>(args)...);
^
In file included from /tmp/nix-build-nix-plugins-3.0.1.drv-0/source/extra-builtins.cc:2:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/primops.hh:1:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/eval.hh:3:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/attr-set.hh:3:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/nixexpr.hh:3:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/value.hh:3:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/symbol-table.hh:6:
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/types.hh:37:31: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
struct nop { template<typename... T> nop(T...) {} };
^
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/types.hh:69:18: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template<typename... Args>
^
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/types.hh:74:8: error: expected unqualified-id
nop{boost::io::detail::feed(f, args)...};
^
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/types.hh:87:25: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions]
unsigned int status = 1; // exit status
^
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/types.hh:89:22: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template<typename... Args>
^
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/types.hh:96:22: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template<typename... Args>
^
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/types.hh:121:18: error: using declaration cannot refer to a constructor
MakeError(Error, BaseError)
~~~~~~~~~~~~~~~~~^~~~~~~~~~
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/types.hh:118:27: note: expanded from macro 'MakeError'
using superClass::superClass; \
~~~~~~~~~~~~^
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/types.hh:128:22: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template<typename... Args>
^
In file included from /tmp/nix-build-nix-plugins-3.0.1.drv-0/source/extra-builtins.cc:2:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/primops.hh:1:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/eval.hh:3:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/attr-set.hh:3:
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/nixexpr.hh:12:22: error: using declaration cannot refer to a constructor
MakeError(EvalError, Error)
~~~~~~~~~~~~~~~~~~~~~^~~~~~
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/types.hh:118:27: note: expanded from macro 'MakeError'
using superClass::superClass; \
~~~~~~~~~~~~^
In file included from /tmp/nix-build-nix-plugins-3.0.1.drv-0/source/extra-builtins.cc:2:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/primops.hh:1:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/eval.hh:3:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/attr-set.hh:3:
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/nixexpr.hh:13:23: error: using declaration cannot refer to a constructor
MakeError(ParseError, Error)
~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/types.hh:118:27: note: expanded from macro 'MakeError'
using superClass::superClass; \
~~~~~~~~~~~~^
In file included from /tmp/nix-build-nix-plugins-3.0.1.drv-0/source/extra-builtins.cc:2:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/primops.hh:1:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/eval.hh:3:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/attr-set.hh:3:
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/nixexpr.hh:14:33: error: using declaration cannot refer to a constructor
MakeError(IncompleteParseError, ParseError)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/types.hh:118:27: note: expanded from macro 'MakeError'
using superClass::superClass; \
~~~~~~~~~~~~^
In file included from /tmp/nix-build-nix-plugins-3.0.1.drv-0/source/extra-builtins.cc:2:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/primops.hh:1:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/eval.hh:3:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/attr-set.hh:3:
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/nixexpr.hh:15:27: error: using declaration cannot refer to a constructor
MakeError(AssertionError, EvalError)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/types.hh:118:27: note: expanded from macro 'MakeError'
using superClass::superClass; \
~~~~~~~~~~~~^
In file included from /tmp/nix-build-nix-plugins-3.0.1.drv-0/source/extra-builtins.cc:2:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/primops.hh:1:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/eval.hh:3:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/attr-set.hh:3:
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/nixexpr.hh:16:24: error: using declaration cannot refer to a constructor
MakeError(ThrownError, AssertionError)
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/types.hh:118:27: note: expanded from macro 'MakeError'
using superClass::superClass; \
~~~~~~~~~~~~^
In file included from /tmp/nix-build-nix-plugins-3.0.1.drv-0/source/extra-builtins.cc:2:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/primops.hh:1:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/eval.hh:3:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/attr-set.hh:3:
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/nixexpr.hh:17:18: error: using declaration cannot refer to a constructor
MakeError(Abort, EvalError)
~~~~~~~~~~~~~~~~~^~~~~~~~~~
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/types.hh:118:27: note: expanded from macro 'MakeError'
using superClass::superClass; \
~~~~~~~~~~~~^
In file included from /tmp/nix-build-nix-plugins-3.0.1.drv-0/source/extra-builtins.cc:2:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/primops.hh:1:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/eval.hh:3:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/attr-set.hh:3:
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/nixexpr.hh:18:22: error: using declaration cannot refer to a constructor
MakeError(TypeError, EvalError)
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/types.hh:118:27: note: expanded from macro 'MakeError'
using superClass::superClass; \
~~~~~~~~~~~~^
In file included from /tmp/nix-build-nix-plugins-3.0.1.drv-0/source/extra-builtins.cc:2:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/primops.hh:1:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/eval.hh:3:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/attr-set.hh:3:
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/nixexpr.hh:19:30: error: using declaration cannot refer to a constructor
MakeError(UndefinedVarError, Error)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/types.hh:118:27: note: expanded from macro 'MakeError'
using superClass::superClass; \
~~~~~~~~~~~~^
In file included from /tmp/nix-build-nix-plugins-3.0.1.drv-0/source/extra-builtins.cc:2:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/primops.hh:1:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/eval.hh:3:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/attr-set.hh:3:
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/nixexpr.hh:20:32: error: using declaration cannot refer to a constructor
MakeError(RestrictedPathError, Error)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/types.hh:118:27: note: expanded from macro 'MakeError'
using superClass::superClass; \
~~~~~~~~~~~~^
In file included from /tmp/nix-build-nix-plugins-3.0.1.drv-0/source/extra-builtins.cc:2:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/primops.hh:1:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/eval.hh:3:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/attr-set.hh:3:
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/nixexpr.hh:238:19: error: no matching conversion for functional-style cast from 'boost::basic_format' to 'nix::ParseError'
throw ParseError(format("duplicate formal function argument '%1%' at %2%")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/nixexpr.hh:13:11: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'boost::basic_format' to 'const nix::ParseError' for 1st argument
MakeError(ParseError, Error)
^
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/types.hh:115:11: note: expanded from macro 'MakeError'
class newClass : public superClass \
^
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/nixexpr.hh:13:11: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /tmp/nix-build-nix-plugins-3.0.1.drv-0/source/extra-builtins.cc:2:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/primops.hh:1:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/eval.hh:3:
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/attr-set.hh:43:43: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
Bindings(const Bindings & bindings) = delete;
^
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/attr-set.hh:84:17: error: no member named 'emplace_back' in 'std::__1::vector<const nix::Attr *, std::__1::allocator<const nix::Attr *> >'; did you mean '__emplace_back'?
res.emplace_back(&attrs[n]);
^~~~~~~~~~~~
__emplace_back
/nix/store/j6ifwrr83k1c5nmjfx1p63nydpqsbqd6-libc++-5.0.1/include/c++/v1/vector:679:10: note: '__emplace_back' declared here
void __emplace_back(const value_type& __x) { push_back(__x); }
^
In file included from /tmp/nix-build-nix-plugins-3.0.1.drv-0/source/extra-builtins.cc:2:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/primops.hh:1:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/eval.hh:3:
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/attr-set.hh:85:43: error: expected expression
std::sort(res.begin(), res.end(), [](const Attr * a, const Attr * b) {
^
In file included from /tmp/nix-build-nix-plugins-3.0.1.drv-0/source/extra-builtins.cc:2:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/primops.hh:1:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/eval.hh:7:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/hash.hh:4:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/serialise.hh:6:
In file included from /nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/util.hh:4:
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/logging.hh:52:20: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions]
uint64_t i = 0;
^
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/logging.hh:80:8: error: unknown type name 'thread_local'
extern thread_local ActivityId curActivity;
^
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/logging.hh:80:31: error: expected ';' after top level declarator
extern thread_local ActivityId curActivity;
^
;
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/logging.hh:95:38: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
Activity(const Activity & act) = delete;
^
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/logging.hh:106:22: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template<typename... Args>
^
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/logging.hh:89:41: error: expected expression
const Logger::Fields & fields = {}, ActivityId parent = curActivity);
^
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/logging.hh:89:65: error: use of undeclared identifier 'curActivity'
const Logger::Fields & fields = {}, ActivityId parent = curActivity);
^
/nix/store/89mg1myg6krrn5c40jlx1jzyddcdj7hn-nix-2.0-dev/include/nix/logging.hh:92:41: error: expected expression
const Logger::Fields & fields = {}, ActivityId parent = curActivity)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
15 warnings and 20 errors generated.
make[2]: *** [CMakeFiles/nix-extra-builtins.dir/build.make:63: CMakeFiles/nix-extra-builtins.dir/extra-builtins.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/nix-extra-builtins.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
builder for '/nix/store/kslw4pr9kjd2p208bmpapwn7yv180v13-nix-plugins-3.0.1.drv' failed with exit code 2
error: build of '/nix/store/kslw4pr9kjd2p208bmpapwn7yv180v13-nix-plugins-3.0.1.drv' failed