Fingolfin1196 / ImageGraph

1 stars 1 forks source link

build fails #3

Closed wucke13 closed 4 years ago

wucke13 commented 4 years ago

This might be related to https://github.com/Fingolfin1196/QNodeGraph/issues/1

Output:

these derivations will be built:
  /nix/store/ak5z2s8gd6rjx28hahzra3lymbajsjsk-st16sim.drv
building '/nix/store/ak5z2s8gd6rjx28hahzra3lymbajsjsk-st16sim.drv'...
unpacking sources
unpacking source archive /nix/store/ikgpqvv1q6qnbh9jq8lah3ybv3zahvy8-ImageGraph
source root is ImageGraph
patching sources
configuring
fixing cmake files...
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/sbv9v35pwpbna71w2mi31gp5jizd1wh3-st16sim/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/sbv9v35pwpbna71w2mi31gp5jizd1wh3-st16sim/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/sbv9v35pwpbna71w2mi31gp5jizd1wh3-st16sim/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/sbv9v35pwpbna71w2mi31gp5jizd1wh3-st16sim/share/doc/ -DCMAKE_INSTALL_INFODIR=/nix/store/sbv9v35pwpbna71w2mi31gp5jizd1wh3-st16sim/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/sbv9v35pwpbna71w2mi31gp5jizd1wh3-st16sim/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/sbv9v35pwpbna71w2mi31gp5jizd1wh3-st16sim/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/sbv9v35pwpbna71w2mi31gp5jizd1wh3-st16sim/include -DCMAKE_INSTALL_SBINDIR=/nix/store/sbv9v35pwpbna71w2mi31gp5jizd1wh3-st16sim/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/sbv9v35pwpbna71w2mi31gp5jizd1wh3-st16sim/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/sbv9v35pwpbna71w2mi31gp5jizd1wh3-st16sim/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_SYSROOT= -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_FIND_FRAMEWORK=last -DCMAKE_STRIP=/nix/store/hrkc2sf2883l16d5yq3zg0y339kfw4xv-binutils-2.31.1/bin/strip -DCMAKE_RANLIB=/nix/store/hrkc2sf2883l16d5yq3zg0y339kfw4xv-binutils-2.31.1/bin/ranlib -DCMAKE_AR=/nix/store/hrkc2sf2883l16d5yq3zg0y339kfw4xv-binutils-2.31.1/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/sbv9v35pwpbna71w2mi31gp5jizd1wh3-st16sim
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Check for working C compiler: /nix/store/blznzy96bwzv58v7iy9bgp1r8hmd3g1f-gcc-wrapper-9.2.0/bin/gcc
-- Check for working C compiler: /nix/store/blznzy96bwzv58v7iy9bgp1r8hmd3g1f-gcc-wrapper-9.2.0/bin/gcc -- 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/blznzy96bwzv58v7iy9bgp1r8hmd3g1f-gcc-wrapper-9.2.0/bin/g++
-- Check for working CXX compiler: /nix/store/blznzy96bwzv58v7iy9bgp1r8hmd3g1f-gcc-wrapper-9.2.0/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Boost: /nix/store/0ipbd1fc3gazb2q7mfdjyfjs0yl0wprj-boost-1.69.0-dev/include (found version "1.69.0") found components: context
-- Found PkgConfig: /nix/store/9a405mh6qivk0b864d88b6hjl45rcxd6-pkg-config-0.29.2/bin/pkg-config (found version "0.29.2")
-- Checking for modules 'vips;vips-cpp;gobject-2.0'
--   Found vips, version 8.9.1
--   Found vips-cpp, version 8.9.1
--   Found gobject-2.0, version 2.62.4
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_TESTING
    CMAKE_EXPORT_NO_PACKAGE_REGISTRY

-- Build files have been written to: /build/ImageGraph/build
cmake: enabled parallel building
building
build flags: -j4 -l4 SHELL=/nix/store/hrpvwkjz04s9i4nmli843hyw9z4pwhww-bash-4.4-p23/bin/bash
Scanning dependencies of target ImageGraph
[  4%] Building CXX object CMakeFiles/ImageGraph.dir/src/internal/ProtoGraphAdaptor.cpp.o
[  8%] Building CXX object CMakeFiles/ImageGraph.dir/src/core/NodeGraph.cpp.o
[ 12%] Building CXX object CMakeFiles/ImageGraph.dir/src/internal/Task.cpp.o
[ 16%] Building CXX object CMakeFiles/ImageGraph.dir/src/internal/GraphAdaptor.cpp.o
In file included from /build/ImageGraph/src/internal/Task.cpp:2:
/build/ImageGraph/include/internal/GraphAdaptor.hpp:11:8: warning: 'ImageGraph::internal::GraphAdaptor' has a field 'ImageGraph::internal::GraphAdaptor::chooser_' whose type uses the anonymous namespace [-Wsubobject-linkage]
   11 | struct GraphAdaptor {
      |        ^~~~~~~~~~~~
In file included from /build/ImageGraph/src/internal/ProtoGraphAdaptor.cpp:1:
/build/ImageGraph/src/internal/../../include/internal/ProtoGraphAdaptor.hpp:8:8: warning: 'ImageGraph::internal::ProtoGraphAdaptor' has a field 'ImageGraph::internal::ProtoGraphAdaptor::chooser_' whose type uses the anonymous namespace [-Wsubobject-linkage]
    8 | struct ProtoGraphAdaptor {
      |        ^~~~~~~~~~~~~~~~~
In file included from /build/ImageGraph/src/internal/GraphAdaptor.cpp:1:
/build/ImageGraph/src/internal/../../include/internal/GraphAdaptor.hpp:11:8: warning: 'ImageGraph::internal::GraphAdaptor' has a field 'ImageGraph::internal::GraphAdaptor::chooser_' whose type uses the anonymous namespace [-Wsubobject-linkage]
   11 | struct GraphAdaptor {
      |        ^~~~~~~~~~~~
In file included from /build/ImageGraph/include/core/NodeGraph.hpp:4,
                 from /build/ImageGraph/src/core/NodeGraph.cpp:1:
/build/ImageGraph/include/core/../internal/GraphAdaptor.hpp:11:8: warning: 'ImageGraph::internal::GraphAdaptor' has a field 'ImageGraph::internal::GraphAdaptor::chooser_' whose type uses the anonymous namespace [-Wsubobject-linkage]
   11 | struct GraphAdaptor {
      |        ^~~~~~~~~~~~
[ 20%] Building CXX object CMakeFiles/ImageGraph.dir/src/core/MemoryDistribution.cpp.o
In file included from /build/ImageGraph/include/core/MemoryDistribution.hpp:3,
                 from /build/ImageGraph/src/core/NodeGraph.cpp:2:
/build/ImageGraph/include/core/../internal/ProtoGraphAdaptor.hpp:8:8: warning: 'ImageGraph::internal::ProtoGraphAdaptor' has a field 'ImageGraph::internal::ProtoGraphAdaptor::chooser_' whose type uses the anonymous namespace [-Wsubobject-linkage]
    8 | struct ProtoGraphAdaptor {
      |        ^~~~~~~~~~~~~~~~~
In file included from /build/ImageGraph/include/core/MemoryDistribution.hpp:5,
                 from /build/ImageGraph/src/core/NodeGraph.cpp:2:
/build/ImageGraph/include/core/../internal/Typing.hpp:156:25: error: 'requires' does not name a type
  156 | template<typename Node> requires std::is_base_of_v<node_tag, Node> struct node_traits {};
      |                         ^~~~~~~~
/build/ImageGraph/include/core/../internal/Typing.hpp:156:89: error: extra ';' [-Werror=pedantic]
  156 | template<typename Node> requires std::is_base_of_v<node_tag, Node> struct node_traits {};
      |                                                                                         ^
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/ImageGraph.dir/build.make:63: CMakeFiles/ImageGraph.dir/src/core/NodeGraph.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /build/ImageGraph/src/core/../../include/core/MemoryDistribution.hpp:3,
                 from /build/ImageGraph/src/core/MemoryDistribution.cpp:1:
/build/ImageGraph/src/core/../../include/core/../internal/ProtoGraphAdaptor.hpp:8:8: warning: 'ImageGraph::internal::ProtoGraphAdaptor' has a field 'ImageGraph::internal::ProtoGraphAdaptor::chooser_' whose type uses the anonymous namespace [-Wsubobject-linkage]
    8 | struct ProtoGraphAdaptor {
      |        ^~~~~~~~~~~~~~~~~
In file included from /build/ImageGraph/src/core/../../include/core/MemoryDistribution.hpp:5,
                 from /build/ImageGraph/src/core/MemoryDistribution.cpp:1:
/build/ImageGraph/src/core/../../include/core/../internal/Typing.hpp:156:25: error: 'requires' does not name a type
  156 | template<typename Node> requires std::is_base_of_v<node_tag, Node> struct node_traits {};
      |                         ^~~~~~~~
/build/ImageGraph/src/core/../../include/core/../internal/Typing.hpp:156:89: error: extra ';' [-Werror=pedantic]
  156 | template<typename Node> requires std::is_base_of_v<node_tag, Node> struct node_traits {};
      |                                                                                         ^
In file included from /build/ImageGraph/src/core/../../include/core/NodeGraph.hpp:4,
                 from /build/ImageGraph/src/core/../../include/core/MemoryDistribution.hpp:6,
                 from /build/ImageGraph/src/core/MemoryDistribution.cpp:1:
/build/ImageGraph/src/core/../../include/core/../internal/GraphAdaptor.hpp:11:8: warning: 'ImageGraph::internal::GraphAdaptor' has a field 'ImageGraph::internal::GraphAdaptor::chooser_' whose type uses the anonymous namespace [-Wsubobject-linkage]
   11 | struct GraphAdaptor {
      |        ^~~~~~~~~~~~
In file included from include/boost/config/header_deprecated.hpp:18,
                 from include/boost/pending/integer_log2.hpp:5,
                 from include/boost/random/detail/integer_log2.hpp:19,
                 from include/boost/random/detail/int_float_pair.hpp:26,
                 from include/boost/random/exponential_distribution.hpp:27,
                 from include/boost/random/gamma_distribution.hpp:25,
                 from include/boost/random/beta_distribution.hpp:20,
                 from /build/ImageGraph/src/core/MemoryDistribution.cpp:4:
include/boost/pending/integer_log2.hpp:7:1: note: #pragma message: This header is deprecated. Use <boost/integer/integer_log2.hpp> instead.
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/ImageGraph.dir/build.make:115: CMakeFiles/ImageGraph.dir/src/core/MemoryDistribution.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:152: CMakeFiles/ImageGraph.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
builder for '/nix/store/ak5z2s8gd6rjx28hahzra3lymbajsjsk-st16sim.drv' failed with exit code 2
error: build of '/nix/store/ak5z2s8gd6rjx28hahzra3lymbajsjsk-st16sim.drv' failed
wucke13 commented 4 years ago

Solved! Quite stupid from my side. An outdated gcc doesn't cope well with concepts, and I didn't knew of the requires keyword before. clang-9 solves this issue.