Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: size of array ‘altStackMem’ is not an integral constant-expression #183

Open
sebastic opened this issue Aug 14, 2022 · 1 comment

Comments

@sebastic
Copy link

As reported in Debian Bug #1017327:

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
g++ -c -o out/issue122.o test/t/issue122.cpp -Iinclude -isystem test/include -std=c++11 -Werror -Wall -Wextra -pedantic -Wformat=2 -Wsign-conversion -Wshadow -Wunused-parameter -O3 -DNDEBUG -march=native -DSINGLE_THREADED -fvisibility-inlines-hidden -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -pthread
In file included from /usr/include/signal.h:328,
                 from test/include/catch.hpp:6392,
                 from test/unit.cpp:2:
test/include/catch.hpp:6415:33: error: size of array ‘altStackMem’ is not an integral constant-expression
 6415 |         static char altStackMem[SIGSTKSZ];
      |                                 ^~~~~~~~
test/include/catch.hpp:6466:45: error: size of array ‘altStackMem’ is not an integral constant-expression
 6466 |     char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
      |                                             ^~~~~~~~
mkdir -p ./out
g++ -c -o out/mutating_visitor.o test/t/mutating_visitor.cpp -Iinclude -isystem test/include -std=c++11 -Werror -Wall -Wextra -pedantic -Wformat=2 -Wsign-conversion -Wshadow -Wunused-parameter -O3 -DNDEBUG -march=native -DSINGLE_THREADED -fvisibility-inlines-hidden -fvisibility=hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -pthread
make[1]: *** [Makefile:96: out/unit.o] Error 1

The full build log is available from:
http://qa-logs.debian.net/2022/08/13/mapbox-variant_1.2.0-1_unstable.log

stfnwong added a commit to stfnwong/LCLCLCLC that referenced this issue Oct 18, 2022
It also turns out that there is an issue with catch on Fedora 36. In
summary, a stack size constant symbol seems to have been changed
somewhere. See this issue mapbox/variant#183
for more info.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant