ginkgo-project / ginkgo

Numerical linear algebra software package
https://ginkgo-project.github.io/
BSD 3-Clause "New" or "Revised" License
400 stars 89 forks source link

Build fails with clang++ 10/Apple g++ #330

Closed nbeams closed 5 years ago

nbeams commented 5 years ago

Build fails with latest clang (Apple LLVM version 10.0.1 (clang-1001.0.46.4)) and g++ from Apple. With MacOS Mojave 10.14.6. Build with g++ 9.1.0 (built on system through Homebrew) succeeds.

pratikvn commented 5 years ago

@nbeams , thank you for the bug report. Could you please attach your CMakeCache.txt file so that we can try and reproduce the problem ?

nbeams commented 5 years ago

Sure, here is CMakeCache.txt from using clang as the compiler, all default options. cmake version is 3.15.1.

EXTERNAL cache entries //Build shared (.so, .dylib, .dll) libraries BUILD_SHARED_LIBS:BOOL=ON //Build the testing tree. BUILD_TESTING:BOOL=ON //Path to a program. BZRCOMMAND:FILEPATH=BZRCOMMAND-NOTFOUND //clang-format executable CLANG_FORMAT_EXECUTABLE:FILEPATH=CLANG_FORMAT_EXECUTABLE-NOTFOUND //Path to a program. CMAKE_AR:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ar //Choose the type of build. CMAKE_BUILD_TYPE:STRING=Release //Enable/Disable color output during build. CMAKE_COLOR_MAKEFILE:BOOL=ON //CXX compiler CMAKE_CXX_COMPILER:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/c++ //Flags used by the CXX compiler during all build types. CMAKE_CXX_FLAGS:STRING= //Flags used by the CXX compiler during ASAN builds. CMAKE_CXX_FLAGS_ASAN:STRING=-g -O1 -fsanitize=address -fno-omit-frame-pointer //Flags used by the CXX compiler during COVERAGE builds. CMAKE_CXX_FLAGS_COVERAGE:STRING=-g -O0 --coverage //Flags used by the CXX compiler during DEBUG builds. CMAKE_CXX_FLAGS_DEBUG:STRING=-g //Flags used by the CXX compiler during MINSIZEREL builds. CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG //Flags used by the CXX compiler during RELEASE builds. CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG //Flags used by the CXX compiler during RELWITHDEBINFO builds. CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG //C compiler CMAKE_C_COMPILER:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/cc //Flags used by the C compiler during all build types. CMAKE_C_FLAGS:STRING= //Flags used by the C compiler during ASAN builds. CMAKE_C_FLAGS_ASAN:STRING=-g -O1 -fsanitize=address -fno-omit-frame-pointer //Flags used by the C compiler during COVERAGE builds. CMAKE_C_FLAGS_COVERAGE:STRING=-g -O0 --coverage //Flags used by the C compiler during DEBUG builds. CMAKE_C_FLAGS_DEBUG:STRING=-g //Flags used by the C compiler during MINSIZEREL builds. CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG //Flags used by the C compiler during RELEASE builds. CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG //Flags used by the C compiler during RELWITHDEBINFO builds. CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG //Executable file format CMAKE_EXECUTABLE_FORMAT:STRING=MACHO //Flags used by the linker during all build types. CMAKE_EXE_LINKER_FLAGS:STRING= //Flags used for linking binaries during ASAN builds. CMAKE_EXE_LINKER_FLAGS_ASAN:STRING=-fsanitize=address -fno-omit-frame-pointer //Flags used for linking binaries during COVERAGE builds. CMAKE_EXE_LINKER_FLAGS_COVERAGE:STRING=--coverage //Flags used by the linker during DEBUG builds. CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= //Flags used by the linker during MINSIZEREL builds. CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= //Flags used by the linker during RELEASE builds. CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= //Flags used by the linker during RELWITHDEBINFO builds. CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= //Enable/Disable output of compile commands during generation. CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF //User executables (bin) CMAKE_INSTALL_BINDIR:PATH=bin //Read-only architecture-independent data (DATAROOTDIR) CMAKE_INSTALL_DATADIR:PATH= //Read-only architecture-independent data root (share) CMAKE_INSTALL_DATAROOTDIR:PATH=share //Documentation root (DATAROOTDIR/doc/PROJECT_NAME) CMAKE_INSTALL_DOCDIR:PATH= //C header files (include) CMAKE_INSTALL_INCLUDEDIR:PATH=include //Info documentation (DATAROOTDIR/info) CMAKE_INSTALL_INFODIR:PATH= //Object code libraries (lib) CMAKE_INSTALL_LIBDIR:PATH=lib //Program executables (libexec) CMAKE_INSTALL_LIBEXECDIR:PATH=libexec //Locale-dependent data (DATAROOTDIR/locale) CMAKE_INSTALL_LOCALEDIR:PATH= //Modifiable single-machine data (var) CMAKE_INSTALL_LOCALSTATEDIR:PATH=var //Man documentation (DATAROOTDIR/man) CMAKE_INSTALL_MANDIR:PATH= //Path to a program. CMAKE_INSTALL_NAME_TOOL:FILEPATH=/usr/bin/install_name_tool //C header files for non-gcc (/usr/include) CMAKE_INSTALL_OLDINCLUDEDIR:PATH=/usr/include //Install path prefix, prepended onto install directories. CMAKE_INSTALL_PREFIX:PATH=/usr/local //Run-time variable data (LOCALSTATEDIR/run) CMAKE_INSTALL_RUNSTATEDIR:PATH= //System admin executables (sbin) CMAKE_INSTALL_SBINDIR:PATH=sbin //Modifiable architecture-independent data (com) CMAKE_INSTALL_SHAREDSTATEDIR:PATH=com //Read-only single-machine data (etc) CMAKE_INSTALL_SYSCONFDIR:PATH=etc //Path to a program. CMAKE_LINKER:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ld //Path to a program. CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make //Flags used by the linker during the creation of modules during // all build types. CMAKE_MODULE_LINKER_FLAGS:STRING= //Flags used by the linker during the creation of modules during // DEBUG builds. CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= //Flags used by the linker during the creation of modules during // MINSIZEREL builds. CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= //Flags used by the linker during the creation of modules during // RELEASE builds. CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= //Flags used by the linker during the creation of modules during // RELWITHDEBINFO builds. CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= //Path to a program. CMAKE_NM:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/nm //Path to a program. CMAKE_OBJCOPY:FILEPATH=CMAKE_OBJCOPY-NOTFOUND //Path to a program. CMAKE_OBJDUMP:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/objdump //Build architectures for OSX CMAKE_OSX_ARCHITECTURES:STRING= //Minimum OS X version to target for deployment (at runtime); newer // APIs weak linked. Set to empty string for default value. CMAKE_OSX_DEPLOYMENT_TARGET:STRING= //The product will be built against the headers and libraries located // inside the indicated SDK. CMAKE_OSX_SYSROOT:PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk //Value Computed by CMake CMAKE_PROJECT_DESCRIPTION:STATIC=A numerical linear algebra library targeting many-core architectures //Value Computed by CMake CMAKE_PROJECT_HOMEPAGE_URL:STATIC= //Value Computed by CMake CMAKE_PROJECT_NAME:STATIC=Ginkgo //Value Computed by CMake CMAKE_PROJECT_VERSION:STATIC=1.0.0 //Value Computed by CMake CMAKE_PROJECT_VERSION_MAJOR:STATIC=1 //Value Computed by CMake CMAKE_PROJECT_VERSION_MINOR:STATIC=0 //Value Computed by CMake CMAKE_PROJECT_VERSION_PATCH:STATIC=0 //Value Computed by CMake CMAKE_PROJECT_VERSION_TWEAK:STATIC= //Path to a program. CMAKE_RANLIB:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ranlib //Flags used by the linker during the creation of shared libraries // during all build types. CMAKE_SHARED_LINKER_FLAGS:STRING= //Flags used by the shared libraries linker during ASAN builds. CMAKE_SHARED_LINKER_FLAGS_ASAN:STRING=-fsanitize=address -fno-omit-frame-pointer //Flags used by the shared libraries linker during COVERAGE builds. CMAKE_SHARED_LINKER_FLAGS_COVERAGE:STRING=--coverage //Flags used by the linker during the creation of shared libraries // during DEBUG builds. CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= //Flags used by the linker during the creation of shared libraries // during MINSIZEREL builds. CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= //Flags used by the linker during the creation of shared libraries // during RELEASE builds. CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= //Flags used by the linker during the creation of shared libraries // during RELWITHDEBINFO builds. CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= //If set, runtime paths are not added when installing shared libraries, // but are added when building. CMAKE_SKIP_INSTALL_RPATH:BOOL=NO //If set, runtime paths are not added when using shared libraries. CMAKE_SKIP_RPATH:BOOL=NO //Flags used by the linker during the creation of static libraries // during all build types. CMAKE_STATIC_LINKER_FLAGS:STRING= //Flags used by the linker during the creation of static libraries // during DEBUG builds. CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= //Flags used by the linker during the creation of static libraries // during MINSIZEREL builds. CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= //Flags used by the linker during the creation of static libraries // during RELEASE builds. CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= //Flags used by the linker during the creation of static libraries // during RELWITHDEBINFO builds. CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= //Path to a program. CMAKE_STRIP:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/strip //If this value is on, makefiles will be generated without the // .SILENT directive, and all commands will be echoed to the console // during the make. This is useful for debugging only. With Visual // Studio IDE projects all commands are done without /nologo. CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE //Path to the coverage program that CTest uses for performing coverage // inspection COVERAGE_COMMAND:FILEPATH=/usr/bin/gcov //Extra command line flags to pass to the coverage tool COVERAGE_EXTRA_FLAGS:STRING=-l //Enable to build OSX bundles CPACK_BINARY_BUNDLE:BOOL=OFF //Enable to build Debian packages CPACK_BINARY_DEB:BOOL=OFF //Enable to build OSX Drag And Drop package CPACK_BINARY_DRAGNDROP:BOOL=OFF //Enable to build FreeBSD packages CPACK_BINARY_FREEBSD:BOOL=OFF //Enable to build IFW packages CPACK_BINARY_IFW:BOOL=OFF //Enable to build NSIS packages CPACK_BINARY_NSIS:BOOL=OFF //Enable to build OSX X11 packages CPACK_BINARY_OSXX11:BOOL=OFF //Enable to build PackageMaker packages CPACK_BINARY_PACKAGEMAKER:BOOL=OFF //Enable to build productbuild packages CPACK_BINARY_PRODUCTBUILD:BOOL=OFF //Enable to build RPM packages CPACK_BINARY_RPM:BOOL=OFF //Enable to build STGZ packages CPACK_BINARY_STGZ:BOOL=ON //Enable to build TBZ2 packages CPACK_BINARY_TBZ2:BOOL=OFF //Enable to build TGZ packages CPACK_BINARY_TGZ:BOOL=ON //Enable to build TXZ packages CPACK_BINARY_TXZ:BOOL=OFF //Enable to build RPM source packages CPACK_SOURCE_RPM:BOOL=OFF //Enable to build TBZ2 source packages CPACK_SOURCE_TBZ2:BOOL=ON //Enable to build TGZ source packages CPACK_SOURCE_TGZ:BOOL=ON //Enable to build TXZ source packages CPACK_SOURCE_TXZ:BOOL=ON //Enable to build TZ source packages CPACK_SOURCE_TZ:BOOL=ON //Enable to build ZIP source packages CPACK_SOURCE_ZIP:BOOL=OFF //How many times to retry timed-out CTest submissions. CTEST_SUBMIT_RETRY_COUNT:STRING=3 //How long to wait between timed-out CTest submissions. CTEST_SUBMIT_RETRY_DELAY:STRING=5 //Path to a program. CVSCOMMAND:FILEPATH=CVSCOMMAND-NOTFOUND //Options passed to the cvs update command. CVS_UPDATE_OPTIONS:STRING=-d -A -P //Maximum time allowed before CTest will kill the test. DART_TESTING_TIMEOUT:STRING=1500 //Parameter pass to clang-format -style= GCF_CLANGFORMAT_STYLE:STRING=file //Ignore directories for GCF GCF_IGNORE_LIST:STRING=third_party //Build Ginkgo's benchmarks GINKGO_BUILD_BENCHMARKS:BOOL=ON //Compile kernels for NVIDIA GPUs GINKGO_BUILD_CUDA:BOOL=OFF //Generate documentation GINKGO_BUILD_DOC:BOOL=OFF //Build Ginkgo's examples GINKGO_BUILD_EXAMPLES:BOOL=ON //Build the external-lib-interfacing with deal.II, you need to // link the deal.II library. GINKGO_BUILD_EXTLIB_EXAMPLE:BOOL=OFF //Compile OpenMP kernels for CPU GINKGO_BUILD_OMP:BOOL=OFF //Compile reference CPU kernels GINKGO_BUILD_REFERENCE:BOOL=ON //Generate build files for unit tests GINKGO_BUILD_TESTS:BOOL=ON //Set the required CXX compiler flags, mainly used for warnings. // Current default is `-Wpedantic` GINKGO_COMPILER_FLAGS:STRING=-Wpedantic //A list of target NVIDIA GPU achitectures. See README.md for more // detail. GINKGO_CUDA_ARCHITECTURES:STRING=Auto //Set the required NVCC compiler flags, mainly used for warnings. // Current default is an empty string GINKGO_CUDA_COMPILER_FLAGS:STRING= //Add development tools to the build system GINKGO_DEVEL_TOOLS:BOOL=ON //Make Ginkgo export its build directory to the CMake package registry. GINKGO_EXPORT_BUILD_DIR:BOOL=OFF //Use all the optimizations for the CUDA Jacobi algorithm GINKGO_JACOBI_FULL_OPTIMIZATIONS:BOOL=OFF //Do not update dependencies each time the project is rebuilt GINKGO_SKIP_DEPENDENCY_UPDATE:BOOL=ON //Verbosity level. Put 0 to turn off. 1 activates a few important // messages. GINKGO_VERBOSE_LEVEL:STRING=1 //Make Ginkgo call `clang-tidy` to find programming issues. GINKGO_WITH_CLANG_TIDY:BOOL=OFF //Make Ginkgo call `iwyu` (Include What You Use) to find include // issues. GINKGO_WITH_IWYU:BOOL=OFF //Path to a program. GITCOMMAND:FILEPATH=/usr/local/bin/git //Git command line client GIT_EXECUTABLE:FILEPATH=/usr/local/bin/git //Whether or not coverage is supported by at least one compiler. Ginkgo_ASAN_SUPPORTED:STRING=TRUE //Value Computed by CMake Ginkgo_BINARY_DIR:STATIC=/Users/natalie/Library/Ginkgo/ginkgo/build3 //Whether or not coverage is supported by at least one compiler. Ginkgo_COVERAGE_SUPPORTED:STRING=TRUE //Value Computed by CMake Ginkgo_SOURCE_DIR:STATIC=/Users/natalie/Library/Ginkgo/ginkgo //Path to a program. HGCOMMAND:FILEPATH=HGCOMMAND-NOTFOUND //Command to build the project MAKECOMMAND:STRING=/usr/local/Cellar/cmake/3.15.1/bin/cmake --build . --config "${CTEST_CONFIGURATION_TYPE}" //Path to the memory checking command, used for memory error detection. MEMORYCHECK_COMMAND:FILEPATH=MEMORYCHECK_COMMAND-NOTFOUND //File that contains suppressions for the memory checker MEMORYCHECK_SUPPRESSIONS_FILE:FILEPATH= //Path to a program. P4COMMAND:FILEPATH=P4COMMAND-NOTFOUND //Path to a file. PAPI_INCLUDE_DIR:PATH=PAPI_INCLUDE_DIR-NOTFOUND //Path to a library. PAPI_LIBRARY_DEBUG:FILEPATH=PAPI_LIBRARY_DEBUG-NOTFOUND //Path to a library. PAPI_LIBRARY_RELEASE:FILEPATH=PAPI_LIBRARY_RELEASE-NOTFOUND //Path to a program. PYTHON_EXECUTABLE:FILEPATH=/usr/local/bin/python //Name of the computer/site where compile is being run SITE:STRING=skyhopper.nomad.utk.edu //Path to the SLURM sbatch executable SLURM_SBATCH_COMMAND:FILEPATH=SLURM_SBATCH_COMMAND-NOTFOUND //Path to the SLURM srun executable SLURM_SRUN_COMMAND:FILEPATH=SLURM_SRUN_COMMAND-NOTFOUND //Path to a program. SVNCOMMAND:FILEPATH=/usr/bin/svn //Dependencies for the target ginkgo_LIB_DEPENDS:STATIC=general;ginkgo_omp;general;ginkgo_cuda;general;ginkgo_reference; //Dependencies for the target ginkgo_omp_LIB_DEPENDS:STATIC=general;ginkgo_cuda; //Value Computed by CMake git-clang-format-cmake_BINARY_DIR:STATIC=/Users/natalie/Library/Ginkgo/ginkgo/build3/third_party/git-cmake-format/build //Value Computed by CMake git-clang-format-cmake_SOURCE_DIR:STATIC=/Users/natalie/Library/Ginkgo/ginkgo/build3/third_party/git-cmake-format/src INTERNAL cache entries //ADVANCED property for variable: BZRCOMMAND BZRCOMMAND-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CLANG_FORMAT_EXECUTABLE CLANG_FORMAT_EXECUTABLE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_AR CMAKE_AR-ADVANCED:INTERNAL=1 //This is the directory where this CMakeCache.txt was created CMAKE_CACHEFILE_DIR:INTERNAL=/Users/natalie/Library/Ginkgo/ginkgo/build3 //Major version of cmake used to create the current loaded cache CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 //Minor version of cmake used to create the current loaded cache CMAKE_CACHE_MINOR_VERSION:INTERNAL=15 //Patch version of cmake used to create the current loaded cache CMAKE_CACHE_PATCH_VERSION:INTERNAL=1 //ADVANCED property for variable: CMAKE_COLOR_MAKEFILE CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1 //Path to CMake executable. CMAKE_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.15.1/bin/cmake //Path to cpack program executable. CMAKE_CPACK_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.15.1/bin/cpack //Path to ctest program executable. CMAKE_CTEST_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.15.1/bin/ctest //ADVANCED property for variable: CMAKE_CXX_COMPILER CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_CXX_FLAGS_ASAN CMAKE_CXX_FLAGS_ASAN-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_CXX_FLAGS_COVERAGE CMAKE_CXX_FLAGS_COVERAGE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_COMPILER CMAKE_C_COMPILER-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS CMAKE_C_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS_ASAN CMAKE_C_FLAGS_ASAN-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS_COVERAGE CMAKE_C_FLAGS_COVERAGE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //Path to cache edit program executable. CMAKE_EDIT_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.15.1/bin/ccmake //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_ASAN CMAKE_EXE_LINKER_FLAGS_ASAN-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_COVERAGE CMAKE_EXE_LINKER_FLAGS_COVERAGE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1 //Name of external makefile project generator. CMAKE_EXTRA_GENERATOR:INTERNAL= //Name of generator. CMAKE_GENERATOR:INTERNAL=Unix Makefiles //Generator instance identifier. CMAKE_GENERATOR_INSTANCE:INTERNAL= //Name of generator platform. CMAKE_GENERATOR_PLATFORM:INTERNAL= //Name of generator toolset. CMAKE_GENERATOR_TOOLSET:INTERNAL= //Test CMAKE_HAVE_LIBC_PTHREAD CMAKE_HAVE_LIBC_PTHREAD:INTERNAL=1 //Have include pthread.h CMAKE_HAVE_PTHREAD_H:INTERNAL=1 //Source directory with the top level CMakeLists.txt file for this // project CMAKE_HOME_DIRECTORY:INTERNAL=/Users/natalie/Library/Ginkgo/ginkgo //ADVANCED property for variable: CMAKE_INSTALL_BINDIR CMAKE_INSTALL_BINDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_DATADIR CMAKE_INSTALL_DATADIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_DATAROOTDIR CMAKE_INSTALL_DATAROOTDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_DOCDIR CMAKE_INSTALL_DOCDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_INCLUDEDIR CMAKE_INSTALL_INCLUDEDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_INFODIR CMAKE_INSTALL_INFODIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_LIBDIR CMAKE_INSTALL_LIBDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_LIBEXECDIR CMAKE_INSTALL_LIBEXECDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_LOCALEDIR CMAKE_INSTALL_LOCALEDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_LOCALSTATEDIR CMAKE_INSTALL_LOCALSTATEDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_MANDIR CMAKE_INSTALL_MANDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_NAME_TOOL CMAKE_INSTALL_NAME_TOOL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_OLDINCLUDEDIR CMAKE_INSTALL_OLDINCLUDEDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_RUNSTATEDIR CMAKE_INSTALL_RUNSTATEDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_SBINDIR CMAKE_INSTALL_SBINDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_SHAREDSTATEDIR CMAKE_INSTALL_SHAREDSTATEDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_INSTALL_SYSCONFDIR CMAKE_INSTALL_SYSCONFDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_LINKER CMAKE_LINKER-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MAKE_PROGRAM CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_NM CMAKE_NM-ADVANCED:INTERNAL=1 //number of local generators CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=56 //ADVANCED property for variable: CMAKE_OBJCOPY CMAKE_OBJCOPY-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_OBJDUMP CMAKE_OBJDUMP-ADVANCED:INTERNAL=1 //Platform information initialized CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1 //ADVANCED property for variable: CMAKE_RANLIB CMAKE_RANLIB-ADVANCED:INTERNAL=1 //Path to CMake installation. CMAKE_ROOT:INTERNAL=/usr/local/Cellar/cmake/3.15.1/share/cmake //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_ASAN CMAKE_SHARED_LINKER_FLAGS_ASAN-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_COVERAGE CMAKE_SHARED_LINKER_FLAGS_COVERAGE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SKIP_RPATH CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STRIP CMAKE_STRIP-ADVANCED:INTERNAL=1 //uname command CMAKE_UNAME:INTERNAL=/usr/bin/uname //ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: COVERAGE_COMMAND COVERAGE_COMMAND-ADVANCED:INTERNAL=1 //ADVANCED property for variable: COVERAGE_EXTRA_FLAGS COVERAGE_EXTRA_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CPACK_BINARY_BUNDLE CPACK_BINARY_BUNDLE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CPACK_BINARY_DEB CPACK_BINARY_DEB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CPACK_BINARY_DRAGNDROP CPACK_BINARY_DRAGNDROP-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CPACK_BINARY_FREEBSD CPACK_BINARY_FREEBSD-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CPACK_BINARY_IFW CPACK_BINARY_IFW-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CPACK_BINARY_NSIS CPACK_BINARY_NSIS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CPACK_BINARY_OSXX11 CPACK_BINARY_OSXX11-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CPACK_BINARY_PACKAGEMAKER CPACK_BINARY_PACKAGEMAKER-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CPACK_BINARY_PRODUCTBUILD CPACK_BINARY_PRODUCTBUILD-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CPACK_BINARY_RPM CPACK_BINARY_RPM-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CPACK_BINARY_STGZ CPACK_BINARY_STGZ-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CPACK_BINARY_TBZ2 CPACK_BINARY_TBZ2-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CPACK_BINARY_TGZ CPACK_BINARY_TGZ-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CPACK_BINARY_TXZ CPACK_BINARY_TXZ-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CPACK_SOURCE_RPM CPACK_SOURCE_RPM-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CPACK_SOURCE_TBZ2 CPACK_SOURCE_TBZ2-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CPACK_SOURCE_TGZ CPACK_SOURCE_TGZ-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CPACK_SOURCE_TXZ CPACK_SOURCE_TXZ-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CPACK_SOURCE_TZ CPACK_SOURCE_TZ-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CPACK_SOURCE_ZIP CPACK_SOURCE_ZIP-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CTEST_SUBMIT_RETRY_COUNT CTEST_SUBMIT_RETRY_COUNT-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CTEST_SUBMIT_RETRY_DELAY CTEST_SUBMIT_RETRY_DELAY-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CVSCOMMAND CVSCOMMAND-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CVS_UPDATE_OPTIONS CVS_UPDATE_OPTIONS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: DART_TESTING_TIMEOUT DART_TESTING_TIMEOUT-ADVANCED:INTERNAL=1 //Details about finding Git FIND_PACKAGE_MESSAGE_DETAILS_Git:INTERNAL=[/usr/local/bin/git][v2.22.0()] //Details about finding PythonInterp FIND_PACKAGE_MESSAGE_DETAILS_PythonInterp:INTERNAL=[/usr/local/bin/python][v2.7.16()] //Details about finding Threads FIND_PACKAGE_MESSAGE_DETAILS_Threads:INTERNAL=[TRUE][v()] //ADVANCED property for variable: GITCOMMAND GITCOMMAND-ADVANCED:INTERNAL=1 //ADVANCED property for variable: GIT_EXECUTABLE GIT_EXECUTABLE-ADVANCED:INTERNAL=1 //Have include cxxabi.h GKO_HAVE_CXXABI_H:INTERNAL=1 Ginkgo_ASAN_COMPILER_FLAGS:INTERNAL=-g -O1 -fsanitize=address -fno-omit-frame-pointer Ginkgo_ASAN_LINKER_FLAGS:INTERNAL=-fsanitize=address -fno-omit-frame-pointer Ginkgo_COVERAGE_COMPILER_FLAGS:INTERNAL=-g -O0 --coverage Ginkgo_COVERAGE_LINKER_FLAGS:INTERNAL=--coverage Ginkgo_CUSTOM_BUILD_TYPES:INTERNAL=COVERAGE;TSAN;ASAN //Test Ginkgo_CXX_ASAN_SUPPORTED Ginkgo_CXX_ASAN_SUPPORTED:INTERNAL=1 //Test Ginkgo_CXX_COVERAGE_SUPPORTED Ginkgo_CXX_COVERAGE_SUPPORTED:INTERNAL=1 //Test Ginkgo_CXX_TSAN_SUPPORTED Ginkgo_CXX_TSAN_SUPPORTED:INTERNAL= //Test Ginkgo_C_ASAN_SUPPORTED Ginkgo_C_ASAN_SUPPORTED:INTERNAL=1 //Test Ginkgo_C_COVERAGE_SUPPORTED Ginkgo_C_COVERAGE_SUPPORTED:INTERNAL=1 //Test Ginkgo_C_TSAN_SUPPORTED Ginkgo_C_TSAN_SUPPORTED:INTERNAL= Ginkgo_TSAN_COMPILER_FLAGS:INTERNAL=-g -O1 -fsanitize=thread -fno-omit-frame-pointer -fPIC Ginkgo_TSAN_LINKER_FLAGS:INTERNAL=-fsanitize=thread -static-libtsan -fno-omit-frame-pointer -fPIC //ADVANCED property for variable: HGCOMMAND HGCOMMAND-ADVANCED:INTERNAL=1 //ADVANCED property for variable: MAKECOMMAND MAKECOMMAND-ADVANCED:INTERNAL=1 //ADVANCED property for variable: MEMORYCHECK_COMMAND MEMORYCHECK_COMMAND-ADVANCED:INTERNAL=1 //ADVANCED property for variable: MEMORYCHECK_SUPPRESSIONS_FILE MEMORYCHECK_SUPPRESSIONS_FILE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: P4COMMAND P4COMMAND-ADVANCED:INTERNAL=1 //ADVANCED property for variable: PAPI_INCLUDE_DIR PAPI_INCLUDE_DIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: PAPI_LIBRARY_DEBUG PAPI_LIBRARY_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: PAPI_LIBRARY_RELEASE PAPI_LIBRARY_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: PYTHON_EXECUTABLE PYTHON_EXECUTABLE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: SITE SITE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: SLURM_SBATCH_COMMAND SLURM_SBATCH_COMMAND-ADVANCED:INTERNAL=1 //ADVANCED property for variable: SLURM_SRUN_COMMAND SLURM_SRUN_COMMAND-ADVANCED:INTERNAL=1 //ADVANCED property for variable: SVNCOMMAND SVNCOMMAND-ADVANCED:INTERNAL=1 //CMAKE_INSTALL_PREFIX during last run _GNUInstallDirs_LAST_CMAKE_INSTALL_PREFIX:INTERNAL=/usr/local
pratikvn commented 5 years ago

Sorry, I forgot to ask. What is the actual error you get ?

nbeams commented 5 years ago

Short version: a lot of errors that look like

In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__string:56: /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:721:71: error: invalid operands to binary expression ('const gko::detail::IteratorFactory<int, float>::element' and 'const gko::detail::IteratorFactory<int, float>::element') bool operator()(const _T1& __x, const _T1& __y) const {return __x < __y;} and In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__string:56: /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3718:20: error: no matching function for call to '__sort3' unsigned __r = __sort3<_Compare>(__x1, __x2, __x3, __c);

Click for long version (full output): [ 0%] Built target ginkgo_omp_device [ 0%] Built target ginkgo_cuda_device [ 0%] Built target ginkgo_reference_device [ 0%] Built target make_run_all_benchmarks [ 1%] Built target ginkgo_cuda [ 1%] Building CXX object reference/CMakeFiles/ginkgo_reference.dir/matrix/csr_kernels.cpp.o [ 2%] Built target ginkgo_omp [ 2%] Built target generate_ginkgo_header In file included from /Users/natalie/Library/Ginkgo/ginkgo/reference/matrix/csr_kernels.cpp:33: In file included from /Users/natalie/Library/Ginkgo/ginkgo/core/matrix/csr_kernels.hpp:37: In file included from /Users/natalie/Library/Ginkgo/ginkgo/include/ginkgo/core/base/types.hpp:43: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/complex:247: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/sstream:174: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/ostream:138: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/ios:216: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__locale:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/string:500: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/string_view:176: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__string:56: /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:721:71: error: invalid operands to binary expression ('const gko::detail::IteratorFactory::element' and 'const gko::detail::IteratorFactory::element') bool operator()(const _T1& __x, const _T1& __y) const {return __x < __y;} ~~~ ^ ~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3931:17: note: in instantiation of member function 'std::__1::__less::element, gko::detail::IteratorFactory::element>::operator()' requested here if (__comp(*--__last, *__first)) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4117:5: note: in instantiation of function template specialization 'std::__1::__sort::element, gko::detail::IteratorFactory::element> &, gko::detail::IteratorFactory::Iterator>' requested here __sort<_Comp_ref>(__first, __last, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4126:12: note: in instantiation of function template specialization 'std::__1::sort::Iterator, std::__1::__less::element, gko::detail::IteratorFactory::element> >' requested here _VSTD::sort(__first, __last, __less::value_type>()); ^ /Users/natalie/Library/Ginkgo/ginkgo/reference/matrix/csr_kernels.cpp:486:14: note: in instantiation of function template specialization 'std::__1::sort::Iterator>' requested here std::sort(helper.begin(), helper.end()); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/utility:594:1: note: candidate template ignored: could not match 'pair' against 'const gko::detail::IteratorFactory::element' operator< (const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/iterator:702:1: note: candidate template ignored: could not match 'reverse_iterator' against 'const gko::detail::IteratorFactory::element' operator<(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/iterator:1143:1: note: candidate template ignored: could not match 'move_iterator' against 'const gko::detail::IteratorFactory::element' operator<(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/iterator:1515:1: note: candidate template ignored: could not match '__wrap_iter' against 'const gko::detail::IteratorFactory::element' operator<(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y) _NOEXCEPT_DEBUG ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/tuple:1182:1: note: candidate template ignored: could not match 'tuple' against 'const gko::detail::IteratorFactory::element' operator<(const tuple<_Tp...>& __x, const tuple<_Up...>& __y) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:2970:1: note: candidate template ignored: could not match 'unique_ptr' against 'const gko::detail::IteratorFactory::element' operator< (const unique_ptr<_T1, _D1>& __x, const unique_ptr<_T2, _D2>& __y) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:3028:1: note: candidate template ignored: could not match 'unique_ptr' against 'const gko::detail::IteratorFactory::element' operator<(const unique_ptr<_T1, _D1>& __x, nullptr_t) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:3037:1: note: candidate template ignored: could not match 'unique_ptr' against 'const gko::detail::IteratorFactory::element' operator<(nullptr_t, const unique_ptr<_T1, _D1>& __x) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:4808:1: note: candidate template ignored: could not match 'shared_ptr' against 'const gko::detail::IteratorFactory::element' operator<(const shared_ptr<_Tp>& __x, const shared_ptr<_Up>& __y) _NOEXCEPT ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:4878:1: note: candidate template ignored: could not match 'shared_ptr' against 'const gko::detail::IteratorFactory::element' operator<(const shared_ptr<_Tp>& __x, nullptr_t) _NOEXCEPT ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:4886:1: note: candidate template ignored: could not match 'shared_ptr' against 'const gko::detail::IteratorFactory::element' operator<(nullptr_t, const shared_ptr<_Tp>& __x) _NOEXCEPT ^ In file included from /Users/natalie/Library/Ginkgo/ginkgo/reference/matrix/csr_kernels.cpp:33: In file included from /Users/natalie/Library/Ginkgo/ginkgo/core/matrix/csr_kernels.hpp:37: In file included from /Users/natalie/Library/Ginkgo/ginkgo/include/ginkgo/core/base/types.hpp:43: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/complex:247: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/sstream:174: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/ostream:138: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/ios:216: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__locale:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/string:500: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/string_view:176: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__string:56: /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3718:20: error: no matching function for call to '__sort3' unsigned __r = __sort3<_Compare>(__x1, __x2, __x3, __c); ^~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3938:20: note: in instantiation of function template specialization 'std::__1::__sort4::element, gko::detail::IteratorFactory::element> &, gko::detail::IteratorFactory::Iterator>' requested here _VSTD::__sort4<_Compare>(__first, __first+1, __first+2, --__last, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4117:5: note: in instantiation of function template specialization 'std::__1::__sort::element, gko::detail::IteratorFactory::element> &, gko::detail::IteratorFactory::Iterator>' requested here __sort<_Comp_ref>(__first, __last, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4126:12: note: in instantiation of function template specialization 'std::__1::sort::Iterator, std::__1::__less::element, gko::detail::IteratorFactory::element> >' requested here _VSTD::sort(__first, __last, __less::value_type>()); ^ /Users/natalie/Library/Ginkgo/ginkgo/reference/matrix/csr_kernels.cpp:486:14: note: in instantiation of function template specialization 'std::__1::sort::Iterator>' requested here std::sort(helper.begin(), helper.end()); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3678:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less::element, gko::detail::IteratorFactory::element> &, _ForwardIterator = gko::detail::IteratorFactory::Iterator] __sort3(_ForwardIterator __x, _ForwardIterator __y, _ForwardIterator __z, _Compare __c) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3744:20: error: no matching function for call to '__sort4' unsigned __r = __sort4<_Compare>(__x1, __x2, __x3, __x4, __c); ^~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3941:20: note: in instantiation of function template specialization 'std::__1::__sort5::element, gko::detail::IteratorFactory::element> &, gko::detail::IteratorFactory::Iterator>' requested here _VSTD::__sort5<_Compare>(__first, __first+1, __first+2, __first+3, --__last, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4117:5: note: in instantiation of function template specialization 'std::__1::__sort::element, gko::detail::IteratorFactory::element> &, gko::detail::IteratorFactory::Iterator>' requested here __sort<_Comp_ref>(__first, __last, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4126:12: note: in instantiation of function template specialization 'std::__1::sort::Iterator, std::__1::__less::element, gko::detail::IteratorFactory::element> >' requested here _VSTD::sort(__first, __last, __less::value_type>()); ^ /Users/natalie/Library/Ginkgo/ginkgo/reference/matrix/csr_kernels.cpp:486:14: note: in instantiation of function template specialization 'std::__1::sort::Iterator>' requested here std::sort(helper.begin(), helper.end()); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3715:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less::element, gko::detail::IteratorFactory::element> &, _ForwardIterator = gko::detail::IteratorFactory::Iterator] __sort4(_ForwardIterator __x1, _ForwardIterator __x2, _ForwardIterator __x3, ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3809:5: error: no matching function for call to '__sort3' __sort3<_Compare>(__first, __first+1, __j, __comp); ^~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3946:20: note: in instantiation of function template specialization 'std::__1::__insertion_sort_3::element, gko::detail::IteratorFactory::element> &, gko::detail::IteratorFactory::Iterator>' requested here _VSTD::__insertion_sort_3<_Compare>(__first, __last, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4117:5: note: in instantiation of function template specialization 'std::__1::__sort::element, gko::detail::IteratorFactory::element> &, gko::detail::IteratorFactory::Iterator>' requested here __sort<_Comp_ref>(__first, __last, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4126:12: note: in instantiation of function template specialization 'std::__1::sort::Iterator, std::__1::__less::element, gko::detail::IteratorFactory::element> >' requested here _VSTD::sort(__first, __last, __less::value_type>()); ^ /Users/natalie/Library/Ginkgo/ginkgo/reference/matrix/csr_kernels.cpp:486:14: note: in instantiation of function template specialization 'std::__1::sort::Iterator>' requested here std::sort(helper.begin(), helper.end()); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3678:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less::element, gko::detail::IteratorFactory::element> &, _ForwardIterator = gko::detail::IteratorFactory::Iterator] __sort3(_ForwardIterator __x, _ForwardIterator __y, _ForwardIterator __z, _Compare __c) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3842:9: error: no matching function for call to '__sort3' _VSTD::__sort3<_Compare>(__first, __first+1, --__last, __comp); ^~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/__config:508:15: note: expanded from macro '_VSTD' #define _VSTD std::_LIBCPP_NAMESPACE ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4072:32: note: in instantiation of function template specialization 'std::__1::__insertion_sort_incomplete::element, gko::detail::IteratorFactory::element> &, gko::detail::IteratorFactory::Iterator>' requested here bool __fs = _VSTD::__insertion_sort_incomplete<_Compare>(__first, __i, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4117:5: note: in instantiation of function template specialization 'std::__1::__sort::element, gko::detail::IteratorFactory::element> &, gko::detail::IteratorFactory::Iterator>' requested here __sort<_Comp_ref>(__first, __last, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4126:12: note: in instantiation of function template specialization 'std::__1::sort::Iterator, std::__1::__less::element, gko::detail::IteratorFactory::element> >' requested here _VSTD::sort(__first, __last, __less::value_type>()); ^ /Users/natalie/Library/Ginkgo/ginkgo/reference/matrix/csr_kernels.cpp:486:14: note: in instantiation of function template specialization 'std::__1::sort::Iterator>' requested here std::sort(helper.begin(), helper.end()); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3678:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less::element, gko::detail::IteratorFactory::element> &, _ForwardIterator = gko::detail::IteratorFactory::Iterator] __sort3(_ForwardIterator __x, _ForwardIterator __y, _ForwardIterator __z, _Compare __c) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3845:9: error: no matching function for call to '__sort4' _VSTD::__sort4<_Compare>(__first, __first+1, __first+2, --__last, __comp); ^~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/__config:508:15: note: expanded from macro '_VSTD' #define _VSTD std::_LIBCPP_NAMESPACE ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3715:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less::element, gko::detail::IteratorFactory::element> &, _ForwardIterator = gko::detail::IteratorFactory::Iterator] __sort4(_ForwardIterator __x1, _ForwardIterator __x2, _ForwardIterator __x3, ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3848:9: error: no matching function for call to '__sort5' _VSTD::__sort5<_Compare>(__first, __first+1, __first+2, __first+3, --__last, __comp); ^~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/__config:508:15: note: expanded from macro '_VSTD' #define _VSTD std::_LIBCPP_NAMESPACE ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3741:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less::element, gko::detail::IteratorFactory::element> &, _ForwardIterator = gko::detail::IteratorFactory::Iterator] __sort5(_ForwardIterator __x1, _ForwardIterator __x2, _ForwardIterator __x3, ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3853:5: error: no matching function for call to '__sort3' __sort3<_Compare>(__first, __first+1, __j, __comp); ^~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3678:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less::element, gko::detail::IteratorFactory::element> &, _ForwardIterator = gko::detail::IteratorFactory::Iterator] __sort3(_ForwardIterator __x, _ForwardIterator __y, _ForwardIterator __z, _Compare __c) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:721:71: error: invalid operands to binary expression ('const gko::detail::IteratorFactory::element' and 'const gko::detail::IteratorFactory::element') bool operator()(const _T1& __x, const _T1& __y) const {return __x < __y;} ~~~ ^ ~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3931:17: note: in instantiation of member function 'std::__1::__less::element, gko::detail::IteratorFactory::element>::operator()' requested here if (__comp(*--__last, *__first)) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4117:5: note: in instantiation of function template specialization 'std::__1::__sort::element, gko::detail::IteratorFactory::element> &, gko::detail::IteratorFactory::Iterator>' requested here __sort<_Comp_ref>(__first, __last, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4126:12: note: in instantiation of function template specialization 'std::__1::sort::Iterator, std::__1::__less::element, gko::detail::IteratorFactory::element> >' requested here _VSTD::sort(__first, __last, __less::value_type>()); ^ /Users/natalie/Library/Ginkgo/ginkgo/reference/matrix/csr_kernels.cpp:486:14: note: in instantiation of function template specialization 'std::__1::sort::Iterator>' requested here std::sort(helper.begin(), helper.end()); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/utility:594:1: note: candidate template ignored: could not match 'pair' against 'const gko::detail::IteratorFactory::element' operator< (const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/iterator:702:1: note: candidate template ignored: could not match 'reverse_iterator' against 'const gko::detail::IteratorFactory::element' operator<(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/iterator:1143:1: note: candidate template ignored: could not match 'move_iterator' against 'const gko::detail::IteratorFactory::element' operator<(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/iterator:1515:1: note: candidate template ignored: could not match '__wrap_iter' against 'const gko::detail::IteratorFactory::element' operator<(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y) _NOEXCEPT_DEBUG ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/tuple:1182:1: note: candidate template ignored: could not match 'tuple' against 'const gko::detail::IteratorFactory::element' operator<(const tuple<_Tp...>& __x, const tuple<_Up...>& __y) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:2970:1: note: candidate template ignored: could not match 'unique_ptr' against 'const gko::detail::IteratorFactory::element' operator< (const unique_ptr<_T1, _D1>& __x, const unique_ptr<_T2, _D2>& __y) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:3028:1: note: candidate template ignored: could not match 'unique_ptr' against 'const gko::detail::IteratorFactory::element' operator<(const unique_ptr<_T1, _D1>& __x, nullptr_t) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:3037:1: note: candidate template ignored: could not match 'unique_ptr' against 'const gko::detail::IteratorFactory::element' operator<(nullptr_t, const unique_ptr<_T1, _D1>& __x) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:4808:1: note: candidate template ignored: could not match 'shared_ptr' against 'const gko::detail::IteratorFactory::element' operator<(const shared_ptr<_Tp>& __x, const shared_ptr<_Up>& __y) _NOEXCEPT ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:4878:1: note: candidate template ignored: could not match 'shared_ptr' against 'const gko::detail::IteratorFactory::element' operator<(const shared_ptr<_Tp>& __x, nullptr_t) _NOEXCEPT ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:4886:1: note: candidate template ignored: could not match 'shared_ptr' against 'const gko::detail::IteratorFactory::element' operator<(nullptr_t, const shared_ptr<_Tp>& __x) _NOEXCEPT ^ In file included from /Users/natalie/Library/Ginkgo/ginkgo/reference/matrix/csr_kernels.cpp:33: In file included from /Users/natalie/Library/Ginkgo/ginkgo/core/matrix/csr_kernels.hpp:37: In file included from /Users/natalie/Library/Ginkgo/ginkgo/include/ginkgo/core/base/types.hpp:43: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/complex:247: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/sstream:174: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/ostream:138: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/ios:216: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__locale:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/string:500: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/string_view:176: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__string:56: /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3718:20: error: no matching function for call to '__sort3' unsigned __r = __sort3<_Compare>(__x1, __x2, __x3, __c); ^~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3938:20: note: in instantiation of function template specialization 'std::__1::__sort4::element, gko::detail::IteratorFactory::element> &, gko::detail::IteratorFactory::Iterator>' requested here _VSTD::__sort4<_Compare>(__first, __first+1, __first+2, --__last, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4117:5: note: in instantiation of function template specialization 'std::__1::__sort::element, gko::detail::IteratorFactory::element> &, gko::detail::IteratorFactory::Iterator>' requested here __sort<_Comp_ref>(__first, __last, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4126:12: note: in instantiation of function template specialization 'std::__1::sort::Iterator, std::__1::__less::element, gko::detail::IteratorFactory::element> >' requested here _VSTD::sort(__first, __last, __less::value_type>()); ^ /Users/natalie/Library/Ginkgo/ginkgo/reference/matrix/csr_kernels.cpp:486:14: note: in instantiation of function template specialization 'std::__1::sort::Iterator>' requested here std::sort(helper.begin(), helper.end()); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3678:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less::element, gko::detail::IteratorFactory::element> &, _ForwardIterator = gko::detail::IteratorFactory::Iterator] __sort3(_ForwardIterator __x, _ForwardIterator __y, _ForwardIterator __z, _Compare __c) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3744:20: error: no matching function for call to '__sort4' unsigned __r = __sort4<_Compare>(__x1, __x2, __x3, __x4, __c); ^~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3941:20: note: in instantiation of function template specialization 'std::__1::__sort5::element, gko::detail::IteratorFactory::element> &, gko::detail::IteratorFactory::Iterator>' requested here _VSTD::__sort5<_Compare>(__first, __first+1, __first+2, __first+3, --__last, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4117:5: note: in instantiation of function template specialization 'std::__1::__sort::element, gko::detail::IteratorFactory::element> &, gko::detail::IteratorFactory::Iterator>' requested here __sort<_Comp_ref>(__first, __last, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4126:12: note: in instantiation of function template specialization 'std::__1::sort::Iterator, std::__1::__less::element, gko::detail::IteratorFactory::element> >' requested here _VSTD::sort(__first, __last, __less::value_type>()); ^ /Users/natalie/Library/Ginkgo/ginkgo/reference/matrix/csr_kernels.cpp:486:14: note: in instantiation of function template specialization 'std::__1::sort::Iterator>' requested here std::sort(helper.begin(), helper.end()); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3715:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less::element, gko::detail::IteratorFactory::element> &, _ForwardIterator = gko::detail::IteratorFactory::Iterator] __sort4(_ForwardIterator __x1, _ForwardIterator __x2, _ForwardIterator __x3, ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3809:5: error: no matching function for call to '__sort3' __sort3<_Compare>(__first, __first+1, __j, __comp); ^~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3946:20: note: in instantiation of function template specialization 'std::__1::__insertion_sort_3::element, gko::detail::IteratorFactory::element> &, gko::detail::IteratorFactory::Iterator>' requested here _VSTD::__insertion_sort_3<_Compare>(__first, __last, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4117:5: note: in instantiation of function template specialization 'std::__1::__sort::element, gko::detail::IteratorFactory::element> &, gko::detail::IteratorFactory::Iterator>' requested here __sort<_Comp_ref>(__first, __last, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4126:12: note: in instantiation of function template specialization 'std::__1::sort::Iterator, std::__1::__less::element, gko::detail::IteratorFactory::element> >' requested here _VSTD::sort(__first, __last, __less::value_type>()); ^ /Users/natalie/Library/Ginkgo/ginkgo/reference/matrix/csr_kernels.cpp:486:14: note: in instantiation of function template specialization 'std::__1::sort::Iterator>' requested here std::sort(helper.begin(), helper.end()); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3678:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less::element, gko::detail::IteratorFactory::element> &, _ForwardIterator = gko::detail::IteratorFactory::Iterator] __sort3(_ForwardIterator __x, _ForwardIterator __y, _ForwardIterator __z, _Compare __c) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3842:9: error: no matching function for call to '__sort3' _VSTD::__sort3<_Compare>(__first, __first+1, --__last, __comp); ^~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/__config:508:15: note: expanded from macro '_VSTD' #define _VSTD std::_LIBCPP_NAMESPACE ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4072:32: note: in instantiation of function template specialization 'std::__1::__insertion_sort_incomplete::element, gko::detail::IteratorFactory::element> &, gko::detail::IteratorFactory::Iterator>' requested here bool __fs = _VSTD::__insertion_sort_incomplete<_Compare>(__first, __i, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4117:5: note: in instantiation of function template specialization 'std::__1::__sort::element, gko::detail::IteratorFactory::element> &, gko::detail::IteratorFactory::Iterator>' requested here __sort<_Comp_ref>(__first, __last, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4126:12: note: in instantiation of function template specialization 'std::__1::sort::Iterator, std::__1::__less::element, gko::detail::IteratorFactory::element> >' requested here _VSTD::sort(__first, __last, __less::value_type>()); ^ /Users/natalie/Library/Ginkgo/ginkgo/reference/matrix/csr_kernels.cpp:486:14: note: in instantiation of function template specialization 'std::__1::sort::Iterator>' requested here std::sort(helper.begin(), helper.end()); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3678:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less::element, gko::detail::IteratorFactory::element> &, _ForwardIterator = gko::detail::IteratorFactory::Iterator] __sort3(_ForwardIterator __x, _ForwardIterator __y, _ForwardIterator __z, _Compare __c) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3845:9: error: no matching function for call to '__sort4' _VSTD::__sort4<_Compare>(__first, __first+1, __first+2, --__last, __comp); ^~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/__config:508:15: note: expanded from macro '_VSTD' #define _VSTD std::_LIBCPP_NAMESPACE ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3715:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less::element, gko::detail::IteratorFactory::element> &, _ForwardIterator = gko::detail::IteratorFactory::Iterator] __sort4(_ForwardIterator __x1, _ForwardIterator __x2, _ForwardIterator __x3, ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3848:9: error: no matching function for call to '__sort5' _VSTD::__sort5<_Compare>(__first, __first+1, __first+2, __first+3, --__last, __comp); ^~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/__config:508:15: note: expanded from macro '_VSTD' #define _VSTD std::_LIBCPP_NAMESPACE ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3741:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less::element, gko::detail::IteratorFactory::element> &, _ForwardIterator = gko::detail::IteratorFactory::Iterator] __sort5(_ForwardIterator __x1, _ForwardIterator __x2, _ForwardIterator __x3, ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3853:5: error: no matching function for call to '__sort3' __sort3<_Compare>(__first, __first+1, __j, __comp); ^~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3678:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less::element, gko::detail::IteratorFactory::element> &, _ForwardIterator = gko::detail::IteratorFactory::Iterator] __sort3(_ForwardIterator __x, _ForwardIterator __y, _ForwardIterator __z, _Compare __c) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:721:71: error: invalid operands to binary expression ('const gko::detail::IteratorFactory >::element' and 'const gko::detail::IteratorFactory >::element') bool operator()(const _T1& __x, const _T1& __y) const {return __x < __y;} ~~~ ^ ~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3931:17: note: in instantiation of member function 'std::__1::__less >::element, gko::detail::IteratorFactory >::element>::operator()' requested here if (__comp(*--__last, *__first)) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4117:5: note: in instantiation of function template specialization 'std::__1::__sort >::element, gko::detail::IteratorFactory >::element> &, gko::detail::IteratorFactory >::Iterator>' requested here __sort<_Comp_ref>(__first, __last, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4126:12: note: in instantiation of function template specialization 'std::__1::sort >::Iterator, std::__1::__less >::element, gko::detail::IteratorFactory >::element> >' requested here _VSTD::sort(__first, __last, __less::value_type>()); ^ /Users/natalie/Library/Ginkgo/ginkgo/reference/matrix/csr_kernels.cpp:486:14: note: in instantiation of function template specialization 'std::__1::sort >::Iterator>' requested here std::sort(helper.begin(), helper.end()); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/utility:594:1: note: candidate template ignored: could not match 'pair' against 'const gko::detail::IteratorFactory >::element' operator< (const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/iterator:702:1: note: candidate template ignored: could not match 'reverse_iterator' against 'const gko::detail::IteratorFactory >::element' operator<(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/iterator:1143:1: note: candidate template ignored: could not match 'move_iterator' against 'const gko::detail::IteratorFactory >::element' operator<(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/iterator:1515:1: note: candidate template ignored: could not match '__wrap_iter' against 'const gko::detail::IteratorFactory >::element' operator<(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y) _NOEXCEPT_DEBUG ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/tuple:1182:1: note: candidate template ignored: could not match 'tuple' against 'const gko::detail::IteratorFactory >::element' operator<(const tuple<_Tp...>& __x, const tuple<_Up...>& __y) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:2970:1: note: candidate template ignored: could not match 'unique_ptr' against 'const gko::detail::IteratorFactory >::element' operator< (const unique_ptr<_T1, _D1>& __x, const unique_ptr<_T2, _D2>& __y) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:3028:1: note: candidate template ignored: could not match 'unique_ptr' against 'const gko::detail::IteratorFactory >::element' operator<(const unique_ptr<_T1, _D1>& __x, nullptr_t) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:3037:1: note: candidate template ignored: could not match 'unique_ptr' against 'const gko::detail::IteratorFactory >::element' operator<(nullptr_t, const unique_ptr<_T1, _D1>& __x) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:4808:1: note: candidate template ignored: could not match 'shared_ptr' against 'const gko::detail::IteratorFactory >::element' operator<(const shared_ptr<_Tp>& __x, const shared_ptr<_Up>& __y) _NOEXCEPT ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:4878:1: note: candidate template ignored: could not match 'shared_ptr' against 'const gko::detail::IteratorFactory >::element' operator<(const shared_ptr<_Tp>& __x, nullptr_t) _NOEXCEPT ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:4886:1: note: candidate template ignored: could not match 'shared_ptr' against 'const gko::detail::IteratorFactory >::element' operator<(nullptr_t, const shared_ptr<_Tp>& __x) _NOEXCEPT ^ In file included from /Users/natalie/Library/Ginkgo/ginkgo/reference/matrix/csr_kernels.cpp:33: In file included from /Users/natalie/Library/Ginkgo/ginkgo/core/matrix/csr_kernels.hpp:37: In file included from /Users/natalie/Library/Ginkgo/ginkgo/include/ginkgo/core/base/types.hpp:43: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/complex:247: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/sstream:174: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/ostream:138: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/ios:216: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__locale:15: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/string:500: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/string_view:176: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__string:56: /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3718:20: error: no matching function for call to '__sort3' unsigned __r = __sort3<_Compare>(__x1, __x2, __x3, __c); ^~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3938:20: note: in instantiation of function template specialization 'std::__1::__sort4 >::element, gko::detail::IteratorFactory >::element> &, gko::detail::IteratorFactory >::Iterator>' requested here _VSTD::__sort4<_Compare>(__first, __first+1, __first+2, --__last, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4117:5: note: in instantiation of function template specialization 'std::__1::__sort >::element, gko::detail::IteratorFactory >::element> &, gko::detail::IteratorFactory >::Iterator>' requested here __sort<_Comp_ref>(__first, __last, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4126:12: note: in instantiation of function template specialization 'std::__1::sort >::Iterator, std::__1::__less >::element, gko::detail::IteratorFactory >::element> >' requested here _VSTD::sort(__first, __last, __less::value_type>()); ^ /Users/natalie/Library/Ginkgo/ginkgo/reference/matrix/csr_kernels.cpp:486:14: note: in instantiation of function template specialization 'std::__1::sort >::Iterator>' requested here std::sort(helper.begin(), helper.end()); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3678:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less >::element, gko::detail::IteratorFactory >::element> &, _ForwardIterator = gko::detail::IteratorFactory >::Iterator] __sort3(_ForwardIterator __x, _ForwardIterator __y, _ForwardIterator __z, _Compare __c) ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3744:20: error: no matching function for call to '__sort4' unsigned __r = __sort4<_Compare>(__x1, __x2, __x3, __x4, __c); ^~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3941:20: note: in instantiation of function template specialization 'std::__1::__sort5 >::element, gko::detail::IteratorFactory >::element> &, gko::detail::IteratorFactory >::Iterator>' requested here _VSTD::__sort5<_Compare>(__first, __first+1, __first+2, __first+3, --__last, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4117:5: note: in instantiation of function template specialization 'std::__1::__sort >::element, gko::detail::IteratorFactory >::element> &, gko::detail::IteratorFactory >::Iterator>' requested here __sort<_Comp_ref>(__first, __last, __comp); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:4126:12: note: in instantiation of function template specialization 'std::__1::sort >::Iterator, std::__1::__less >::element, gko::detail::IteratorFactory >::element> >' requested here _VSTD::sort(__first, __last, __less::value_type>()); ^ /Users/natalie/Library/Ginkgo/ginkgo/reference/matrix/csr_kernels.cpp:486:14: note: in instantiation of function template specialization 'std::__1::sort >::Iterator>' requested here std::sort(helper.begin(), helper.end()); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:3715:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less >::element, gko::detail::IteratorFactory >::element> &, _ForwardIterator = gko::detail::IteratorFactory >::Iterator] __sort4(_ForwardIterator __x1, _ForwardIterator __x2, _ForwardIterator __x3, ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[2]: *** [reference/CMakeFiles/ginkgo_reference.dir/matrix/csr_kernels.cpp.o] Error 1 make[1]: *** [reference/CMakeFiles/ginkgo_reference.dir/all] Error 2 make: *** [all] Error 2
thoasm commented 5 years ago

Thank you very much for this issue and your input @nbeams! We created PR #332, which should resolve this issue (at least it does on the system we tested it on).