-
Notifications
You must be signed in to change notification settings - Fork 105
Open
Description
user@host:~/libs-dev/delaunator-cpp-build
$ cmake -Wno-dev -G Ninja -DWERROR=OFF -DCMAKE_INSTALL_PREFIX=${HOME}/gcc-env -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS="-march=native -mtune=native" -DCMAKE_C_FLAGS="-march=native -mtune=native" ../delaunator-cpp
-- The C compiler identification is GNU 12.2.1
-- The CXX compiler identification is GNU 12.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /somewhere/gcc-env/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /somewhere/gcc-env/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring release build
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /somewhere/libs-dev/delaunator-cpp-build
user@host:~/libs-dev/delaunator-cpp-build
$ ninja
[8/9] Building CXX object CMakeFiles/unit-tests.dir/test/main.test.cpp.o
FAILED: CMakeFiles/unit-tests.dir/test/main.test.cpp.o
/somewhere/gcc-env/bin/g++ -I/somewhere/libs-dev/delaunator-cpp/include -isystem /somewhere/libs-dev/delaunator-cpp/mason_packages/headers/catch/2.4.0/include -isystem /somewhere/libs-dev/delaunator-cpp/mason_packages/headers/rapidjson/1.1.0/include -isystem /somewhere/libs-dev/delaunator-cpp/mason_packages/linux-x86_64/benchmark/1.2.0/include -march=native -mtune=native -O3 -DNDEBUG -D_GLIBCXX_USE_CXX11_ABI=0 -Wall -Wextra -Wconversion -Wunreachable-code -Wuninitialized -pedantic-errors -Wold-style-cast -Wno-error=unused-variable -Wshadow -Wfloat-equal -Weffc++ -O2 -g -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/unit-tests.dir/test/main.test.cpp.o -MF CMakeFiles/unit-tests.dir/test/main.test.cpp.o.d -o CMakeFiles/unit-tests.dir/test/main.test.cpp.o -c /somewhere/libs-dev/delaunator-cpp/test/main.test.cpp
In file included from /usr/include/signal.h:328,
from /somewhere/libs-dev/delaunator-cpp/mason_packages/headers/catch/2.4.0/include/catch.hpp:5267,
from /somewhere/libs-dev/delaunator-cpp/test/main.test.cpp:2:
/somewhere/libs-dev/delaunator-cpp/mason_packages/headers/catch/2.4.0/include/catch.hpp:7860:58: error: call to non-‘constexpr’ function ‘long int sysconf(int)’
7860 | constexpr static std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
| ^~~~~~~~~~~
In file included from /usr/include/bits/sigstksz.h:24:
/usr/include/unistd.h:640:17: note: ‘long int sysconf(int)’ declared here
640 | extern long int sysconf (int __name) __THROW;
| ^~~~~~~
/somewhere/libs-dev/delaunator-cpp/mason_packages/headers/catch/2.4.0/include/catch.hpp:7919:45: error: size of array ‘altStackMem’ is not an integral constant-expression
7919 | char FatalConditionHandler::altStackMem[sigStackSize] = {};
| ^~~~~~~~~~~~
ninja: build stopped: subcommand failed.
Metadata
Metadata
Assignees
Labels
No labels