Bug#1017319: gringo: FTBFS: catch.hpp:6415:41: error: array bound is not an integer constant before ‘]’ token

Lucas Nussbaum lucas at debian.org
Sun Aug 14 09:44:30 BST 2022


Source: gringo
Version: 5.4.1-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220813 ftbfs-bookworm

Hi,

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


Relevant part (hopefully):
> make[4]: Entering directory '/<<PKGBUILDDIR>>/build.dir/hardening_mt'
> [  8%] Building CXX object clasp/libpotassco/tests/CMakeFiles/test_potassco_opts.dir/main.cpp.o
> [  8%] Building CXX object clasp/libpotassco/tests/CMakeFiles/test_potassco_opts.dir/test_application.cpp.o
> [  9%] Building CXX object clasp/libpotassco/tests/CMakeFiles/test_potassco_opts.dir/test_value.cpp.o
> [  9%] Building CXX object clasp/libpotassco/app/CMakeFiles/lpconvert.dir/lpconvert.cpp.o
> cd /<<PKGBUILDDIR>>/build.dir/hardening_mt/clasp/libpotassco/tests && /usr/bin/g++-10  -I/<<PKGBUILDDIR>>/clasp/libpotassco/tests -I/<<PKGBUILDDIR>>/clasp/libpotassco -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -O3 -DNDEBUG -fvisibility=hidden -std=gnu++11 -MD -MT clasp/libpotassco/tests/CMakeFiles/test_potassco_opts.dir/test_application.cpp.o -MF CMakeFiles/test_potassco_opts.dir/test_application.cpp.o.d -o CMakeFiles/test_potassco_opts.dir/test_application.cpp.o -c /<<PKGBUILDDIR>>/clasp/libpotassco/tests/test_application.cpp
> cd /<<PKGBUILDDIR>>/build.dir/hardening_mt/clasp/libpotassco/tests && /usr/bin/g++-10  -I/<<PKGBUILDDIR>>/clasp/libpotassco/tests -I/<<PKGBUILDDIR>>/clasp/libpotassco -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -O3 -DNDEBUG -fvisibility=hidden -std=gnu++11 -MD -MT clasp/libpotassco/tests/CMakeFiles/test_potassco_opts.dir/main.cpp.o -MF CMakeFiles/test_potassco_opts.dir/main.cpp.o.d -o CMakeFiles/test_potassco_opts.dir/main.cpp.o -c /<<PKGBUILDDIR>>/clasp/libpotassco/tests/main.cpp
> [  9%] Building CXX object clasp/libpotassco/tests/CMakeFiles/test_potassco_lp.dir/test_aspif.cpp.o
> cd /<<PKGBUILDDIR>>/build.dir/hardening_mt/clasp/libpotassco/tests && /usr/bin/g++-10  -I/<<PKGBUILDDIR>>/clasp/libpotassco/tests -I/<<PKGBUILDDIR>>/clasp/libpotassco -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -O3 -DNDEBUG -fvisibility=hidden -std=gnu++11 -MD -MT clasp/libpotassco/tests/CMakeFiles/test_potassco_opts.dir/test_value.cpp.o -MF CMakeFiles/test_potassco_opts.dir/test_value.cpp.o.d -o CMakeFiles/test_potassco_opts.dir/test_value.cpp.o -c /<<PKGBUILDDIR>>/clasp/libpotassco/tests/test_value.cpp
> cd /<<PKGBUILDDIR>>/build.dir/hardening_mt/clasp/libpotassco/app && /usr/bin/g++-10  -I/<<PKGBUILDDIR>>/clasp/libpotassco -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -O3 -DNDEBUG -fvisibility=hidden -std=gnu++11 -MD -MT clasp/libpotassco/app/CMakeFiles/lpconvert.dir/lpconvert.cpp.o -MF CMakeFiles/lpconvert.dir/lpconvert.cpp.o.d -o CMakeFiles/lpconvert.dir/lpconvert.cpp.o -c /<<PKGBUILDDIR>>/clasp/libpotassco/app/lpconvert.cpp
> cd /<<PKGBUILDDIR>>/build.dir/hardening_mt/clasp/libpotassco/tests && /usr/bin/g++-10  -I/<<PKGBUILDDIR>>/clasp/libpotassco/tests -I/<<PKGBUILDDIR>>/clasp/libpotassco -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -O3 -DNDEBUG -fvisibility=hidden -std=c++11 -MD -MT clasp/libpotassco/tests/CMakeFiles/test_potassco_lp.dir/test_aspif.cpp.o -MF CMakeFiles/test_potassco_lp.dir/test_aspif.cpp.o.d -o CMakeFiles/test_potassco_lp.dir/test_aspif.cpp.o -c /<<PKGBUILDDIR>>/clasp/libpotassco/tests/test_aspif.cpp
> [ 10%] Building CXX object clasp/src/CMakeFiles/libclasp.dir/asp_preprocessor.cpp.o
> cd /<<PKGBUILDDIR>>/build.dir/hardening_mt/clasp/src && /usr/bin/g++-10  -I/<<PKGBUILDDIR>>/clasp -I/<<PKGBUILDDIR>>/build.dir/hardening_mt/clasp -I/<<PKGBUILDDIR>>/clasp/libpotassco -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -O3 -DNDEBUG -fPIC -fvisibility=hidden -std=gnu++11 -MD -MT clasp/src/CMakeFiles/libclasp.dir/asp_preprocessor.cpp.o -MF CMakeFiles/libclasp.dir/asp_preprocessor.cpp.o.d -o CMakeFiles/libclasp.dir/asp_preprocessor.cpp.o -c /<<PKGBUILDDIR>>/clasp/src/asp_preprocessor.cpp
> [ 10%] Building CXX object clasp/libpotassco/tests/CMakeFiles/test_potassco_opts.dir/test_options.cpp.o
> cd /<<PKGBUILDDIR>>/build.dir/hardening_mt/clasp/libpotassco/tests && /usr/bin/g++-10  -I/<<PKGBUILDDIR>>/clasp/libpotassco/tests -I/<<PKGBUILDDIR>>/clasp/libpotassco -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -O3 -DNDEBUG -fvisibility=hidden -std=gnu++11 -MD -MT clasp/libpotassco/tests/CMakeFiles/test_potassco_opts.dir/test_options.cpp.o -MF CMakeFiles/test_potassco_opts.dir/test_options.cpp.o.d -o CMakeFiles/test_potassco_opts.dir/test_options.cpp.o -c /<<PKGBUILDDIR>>/clasp/libpotassco/tests/test_options.cpp
> [ 10%] Building CXX object libreify/CMakeFiles/libreify.dir/src/program.cc.o
> cd /<<PKGBUILDDIR>>/build.dir/hardening_mt/libreify && /usr/bin/g++-10  -I/<<PKGBUILDDIR>>/libreify -I/<<PKGBUILDDIR>>/libgringo -I/<<PKGBUILDDIR>>/clasp/libpotassco -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -O3 -DNDEBUG -fPIC -fvisibility=hidden -std=c++14 -MD -MT libreify/CMakeFiles/libreify.dir/src/program.cc.o -MF CMakeFiles/libreify.dir/src/program.cc.o.d -o CMakeFiles/libreify.dir/src/program.cc.o -c /<<PKGBUILDDIR>>/libreify/src/program.cc
> In file included from /<<PKGBUILDDIR>>/clasp/libpotassco/tests/test_options.cpp:21:
> /<<PKGBUILDDIR>>/clasp/libpotassco/tests/test_options.cpp: In function ‘void Potassco::ProgramOptions::Test::____C_A_T_C_H____T_E_S_T____6()’:
> /<<PKGBUILDDIR>>/clasp/libpotassco/tests/test_options.cpp:113:70: warning: catching polymorphic type ‘class Potassco::ProgramOptions::UnknownOption’ by value [-Wcatch-value=]
>   113 |   REQUIRE_THROWS_AS(Po::parseCommandString("--no-value=2", ctx), Po::UnknownOption);
>       |                                                                      ^~~~~~~~~~~~~
> /<<PKGBUILDDIR>>/clasp/libpotassco/tests/test_options.cpp:115:57: warning: catching polymorphic type ‘class Potassco::ProgramOptions::ValueError’ by value [-Wcatch-value=]
>   115 |   REQUIRE_THROWS_AS(Po::ParsedOptions().assign(pv), Po::ValueError);
>       |                                                         ^~~~~~~~~~
> /<<PKGBUILDDIR>>/clasp/libpotassco/tests/test_options.cpp: In function ‘void Potassco::ProgramOptions::Test::____C_A_T_C_H____T_E_S_T____19()’:
> /<<PKGBUILDDIR>>/clasp/libpotassco/tests/test_options.cpp:186:46: warning: catching polymorphic type ‘class Potassco::ProgramOptions::ContextError’ by value [-Wcatch-value=]
>   186 |  REQUIRE_THROWS_AS(ctx.findGroup("Foo"), Po::ContextError);
>       |                                              ^~~~~~~~~~~~
> /<<PKGBUILDDIR>>/clasp/libpotassco/tests/test_options.cpp: In function ‘void Potassco::ProgramOptions::Test::____C_A_T_C_H____T_E_S_T____27()’:
> /<<PKGBUILDDIR>>/clasp/libpotassco/tests/test_options.cpp:249:48: warning: catching polymorphic type ‘class Potassco::ProgramOptions::Error’ by value [-Wcatch-value=]
>   249 |   REQUIRE_THROWS_AS(x(0, Po::flag(b), ""), Po::Error);
>       |                                                ^~~~~
> /<<PKGBUILDDIR>>/clasp/libpotassco/tests/test_options.cpp:250:49: warning: catching polymorphic type ‘class Potassco::ProgramOptions::Error’ by value [-Wcatch-value=]
>   250 |   REQUIRE_THROWS_AS(x("", Po::flag(b), ""), Po::Error);
>       |                                                 ^~~~~
> /<<PKGBUILDDIR>>/clasp/libpotassco/tests/test_options.cpp:253:55: warning: catching polymorphic type ‘class Potassco::ProgramOptions::Error’ by value [-Wcatch-value=]
>   253 |   REQUIRE_THROWS_AS(x("foo,fo", Po::flag(b), ""), Po::Error);
>       |                                                       ^~~~~
> /<<PKGBUILDDIR>>/clasp/libpotassco/tests/test_options.cpp:264:57: warning: catching polymorphic type ‘class Potassco::ProgramOptions::ValueError’ by value [-Wcatch-value=]
>   264 |   REQUIRE_THROWS_AS(Po::ParsedOptions().assign(pv), Po::ValueError);
>       |                                                         ^~~~~~~~~~
> /<<PKGBUILDDIR>>/clasp/libpotassco/tests/test_options.cpp:267:64: warning: catching polymorphic type ‘class Potassco::ProgramOptions::UnknownOption’ by value [-Wcatch-value=]
>   267 |   REQUIRE_THROWS_AS(Po::parseCommandString("--help", ctx), Po::UnknownOption);
>       |                                                                ^~~~~~~~~~~~~
> /<<PKGBUILDDIR>>/clasp/libpotassco/tests/test_options.cpp:277:73: warning: catching polymorphic type ‘class Potassco::ProgramOptions::AmbiguousOption’ by value [-Wcatch-value=]
>   277 |   REQUIRE_THROWS_AS(ctx.find("he", Po::OptionContext::find_prefix), Po::AmbiguousOption);
>       |                                                                         ^~~~~~~~~~~~~~~
> /<<PKGBUILDDIR>>/clasp/libpotassco/tests/test_options.cpp: In function ‘void Potassco::ProgramOptions::Test::____C_A_T_C_H____T_E_S_T____36()’:
> /<<PKGBUILDDIR>>/clasp/libpotassco/tests/test_options.cpp:334:72: warning: catching polymorphic type ‘class Potassco::ProgramOptions::SyntaxError’ by value [-Wcatch-value=]
>   334 |   REQUIRE_THROWS_AS(Po::parseCommandString(cmd, ctx, false, 0, 0), Po::SyntaxError);
>       |                                                                        ^~~~~~~~~~~
> In file included from /<<PKGBUILDDIR>>/clasp/libpotassco/tests/main.cpp:19:
> /<<PKGBUILDDIR>>/clasp/libpotassco/tests/catch.hpp:6415:41: error: array bound is not an integer constant before ‘]’ token
>  6415 |         static char altStackMem[SIGSTKSZ];
>       |                                         ^
> /<<PKGBUILDDIR>>/clasp/libpotassco/tests/catch.hpp: In constructor ‘Catch::FatalConditionHandler::FatalConditionHandler()’:
> /<<PKGBUILDDIR>>/clasp/libpotassco/tests/catch.hpp:6434:30: error: ‘altStackMem’ was not declared in this scope
>  6434 |             sigStack.ss_sp = altStackMem;
>       |                              ^~~~~~~~~~~
> /<<PKGBUILDDIR>>/clasp/libpotassco/tests/catch.hpp: At global scope:
> /<<PKGBUILDDIR>>/clasp/libpotassco/tests/catch.hpp:6466:53: error: array bound is not an integer constant before ‘]’ token
>  6466 |     char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
>       |                                                     ^
> [ 11%] Linking CXX executable ../../../bin/lpconvert
> cd /<<PKGBUILDDIR>>/build.dir/hardening_mt/clasp/libpotassco/app && /usr/bin/cmake -E cmake_link_script CMakeFiles/lpconvert.dir/link.txt --verbose=1
> /usr/bin/g++-10 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -O3 -DNDEBUG -Wl,-z,relro -Wl,-z,now -rdynamic CMakeFiles/lpconvert.dir/lpconvert.cpp.o -o ../../../bin/lpconvert  ../../../lib/libpotassco.a 
> make[4]: Leaving directory '/<<PKGBUILDDIR>>/build.dir/hardening_mt'
> [ 11%] Built target lpconvert
> [ 12%] Building CXX object clasp/libpotassco/tests/CMakeFiles/test_potassco_lp.dir/test_smodels.cpp.o
> cd /<<PKGBUILDDIR>>/build.dir/hardening_mt/clasp/libpotassco/tests && /usr/bin/g++-10  -I/<<PKGBUILDDIR>>/clasp/libpotassco/tests -I/<<PKGBUILDDIR>>/clasp/libpotassco -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -O3 -DNDEBUG -fvisibility=hidden -std=c++11 -MD -MT clasp/libpotassco/tests/CMakeFiles/test_potassco_lp.dir/test_smodels.cpp.o -MF CMakeFiles/test_potassco_lp.dir/test_smodels.cpp.o.d -o CMakeFiles/test_potassco_lp.dir/test_smodels.cpp.o -c /<<PKGBUILDDIR>>/clasp/libpotassco/tests/test_smodels.cpp
> [ 12%] Building CXX object clasp/src/CMakeFiles/libclasp.dir/cb_enumerator.cpp.o
> cd /<<PKGBUILDDIR>>/build.dir/hardening_mt/clasp/src && /usr/bin/g++-10  -I/<<PKGBUILDDIR>>/clasp -I/<<PKGBUILDDIR>>/build.dir/hardening_mt/clasp -I/<<PKGBUILDDIR>>/clasp/libpotassco -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -O3 -DNDEBUG -fPIC -fvisibility=hidden -std=gnu++11 -MD -MT clasp/src/CMakeFiles/libclasp.dir/cb_enumerator.cpp.o -MF CMakeFiles/libclasp.dir/cb_enumerator.cpp.o.d -o CMakeFiles/libclasp.dir/cb_enumerator.cpp.o -c /<<PKGBUILDDIR>>/clasp/src/cb_enumerator.cpp
> [ 12%] Building CXX object clasp/libpotassco/tests/CMakeFiles/test_potassco_lp.dir/test_text.cpp.o
> cd /<<PKGBUILDDIR>>/build.dir/hardening_mt/clasp/libpotassco/tests && /usr/bin/g++-10  -I/<<PKGBUILDDIR>>/clasp/libpotassco/tests -I/<<PKGBUILDDIR>>/clasp/libpotassco -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -O3 -DNDEBUG -fvisibility=hidden -std=c++11 -MD -MT clasp/libpotassco/tests/CMakeFiles/test_potassco_lp.dir/test_text.cpp.o -MF CMakeFiles/test_potassco_lp.dir/test_text.cpp.o.d -o CMakeFiles/test_potassco_lp.dir/test_text.cpp.o -c /<<PKGBUILDDIR>>/clasp/libpotassco/tests/test_text.cpp
> make[4]: *** [clasp/libpotassco/tests/CMakeFiles/test_potassco_opts.dir/build.make:121: clasp/libpotassco/tests/CMakeFiles/test_potassco_opts.dir/main.cpp.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2022/08/13/gringo_5.4.1-3_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220813;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220813&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the debian-science-maintainers mailing list