Source: newsboat
Version: 2.21-1.3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@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):
> g++ -std=c++11 -O2 -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Werror -Wall 
> -Wextra -Wunreachable-code -DLOCALEDIR=\"/usr/local/share/locale\" 
> -I/usr/include/x86_64-linux-gnu -I/usr/include/libxml2 -I/usr/include/json-c 
> -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o test/utils.o -c 
> test/utils.cpp
> In file included from /usr/include/signal.h:328,
>                  from ./3rd-party/catch.hpp:8042,
>                  from test/test.cpp:2:
> ./3rd-party/catch.hpp:10830:58: error: call to non-‘constexpr’ function ‘long 
> int sysconf(int)’
> 10830 |     static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ 
> ? 32768 : MINSIGSTKSZ;
>       |                                                          ^~~~~~~~~~~
> In file included from /usr/include/x86_64-linux-gnu/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;
>       |                 ^~~~~~~
> ./3rd-party/catch.hpp:10889:45: error: size of array ‘altStackMem’ is not an 
> integral constant-expression
> 10889 |     char FatalConditionHandler::altStackMem[sigStackSize] = {};
>       |                                             ^~~~~~~~~~~~
> g++ -std=c++11 -O2 -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Werror -Wall 
> -Wextra -Wunreachable-code -DLOCALEDIR=\"/usr/local/share/locale\" 
> -I/usr/include/x86_64-linux-gnu -I/usr/include/libxml2 -I/usr/include/json-c 
> -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o 
> test/test-helpers/chdir.o -c test/test-helpers/chdir.cpp
> g++ -std=c++11 -O2 -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Werror -Wall 
> -Wextra -Wunreachable-code -DLOCALEDIR=\"/usr/local/share/locale\" 
> -I/usr/include/x86_64-linux-gnu -I/usr/include/libxml2 -I/usr/include/json-c 
> -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o 
> test/test-helpers/chmod.o -c test/test-helpers/chmod.cpp
> g++ -std=c++11 -O2 -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Werror -Wall 
> -Wextra -Wunreachable-code -DLOCALEDIR=\"/usr/local/share/locale\" 
> -I/usr/include/x86_64-linux-gnu -I/usr/include/libxml2 -I/usr/include/json-c 
> -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o 
> test/test-helpers/envvar.o -c test/test-helpers/envvar.cpp
> g++ -std=c++11 -O2 -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Werror -Wall 
> -Wextra -Wunreachable-code -DLOCALEDIR=\"/usr/local/share/locale\" 
> -I/usr/include/x86_64-linux-gnu -I/usr/include/libxml2 -I/usr/include/json-c 
> -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o 
> test/test-helpers/loggerresetter.o -c test/test-helpers/loggerresetter.cpp
> g++ -std=c++11 -O2 -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Werror -Wall 
> -Wextra -Wunreachable-code -DLOCALEDIR=\"/usr/local/share/locale\" 
> -I/usr/include/x86_64-linux-gnu -I/usr/include/libxml2 -I/usr/include/json-c 
> -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o 
> test/test-helpers/maintempdir.o -c test/test-helpers/maintempdir.cpp
> g++ -std=c++11 -O2 -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Werror -Wall 
> -Wextra -Wunreachable-code -DLOCALEDIR=\"/usr/local/share/locale\" 
> -I/usr/include/x86_64-linux-gnu -I/usr/include/libxml2 -I/usr/include/json-c 
> -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o 
> test/test-helpers/misc.o -c test/test-helpers/misc.cpp
> g++ -std=c++11 -O2 -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Werror -Wall 
> -Wextra -Wunreachable-code -DLOCALEDIR=\"/usr/local/share/locale\" 
> -I/usr/include/x86_64-linux-gnu -I/usr/include/libxml2 -I/usr/include/json-c 
> -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o 
> test/test-helpers/opts.o -c test/test-helpers/opts.cpp
> g++ -std=c++11 -O2 -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Werror -Wall 
> -Wextra -Wunreachable-code -DLOCALEDIR=\"/usr/local/share/locale\" 
> -I/usr/include/x86_64-linux-gnu -I/usr/include/libxml2 -I/usr/include/json-c 
> -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o 
> test/test-helpers/tempdir.o -c test/test-helpers/tempdir.cpp
> g++ -std=c++11 -O2 -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Werror -Wall 
> -Wextra -Wunreachable-code -DLOCALEDIR=\"/usr/local/share/locale\" 
> -I/usr/include/x86_64-linux-gnu -I/usr/include/libxml2 -I/usr/include/json-c 
> -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o 
> test/test-helpers/tempfile.o -c test/test-helpers/tempfile.cpp
> cargo test --no-run
> warning: trailing semicolon in macro used in expression position
>    --> rust/libnewsboat/src/logger.rs:312:75
>     |
> 312 |           logger::get_instance().log($level, &format!($format, $( $arg 
> ),+));
>     |                                                                         
>     ^
>     |
>    ::: rust/libnewsboat/src/utils.rs:547:22
>     |
> 547 |                   _ => log!(
>     |  ______________________-
> 548 | |                     Level::UserError,
> 549 | |                     "Conversion of \"{}\" and/or \"{}\" to CString 
> failed.",
> 550 | |                     cmd,
> 551 | |                     param
> 552 | |                 ),
>     | |_________________- in this macro invocation
>     |
>     = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default
>     = warning: this was previously accepted by the compiler but is being 
> phased out; it will become a hard error in a future release!
>     = note: for more information, see issue #79813 
> <https://github.com/rust-lang/rust/issues/79813>
>     = note: this warning originates in the macro `log` (in Nightly builds, 
> run with -Z macro-backtrace for more info)
> 
> warning: trailing semicolon in macro used in expression position
>    --> rust/libnewsboat/src/logger.rs:309:53
>     |
> 309 |           logger::get_instance().log($level, $message);
>     |                                                       ^
>     |
>    ::: rust/libnewsboat/src/utils.rs:672:13
>     |
> 672 | /             log!(
> 673 | |                 Level::Warn,
> 674 | |                 &format!("{}: Couldn't create child process: {}", 
> caller, err)
> 675 | |             )
>     | |_____________- in this macro invocation
>     |
>     = warning: this was previously accepted by the compiler but is being 
> phased out; it will become a hard error in a future release!
>     = note: for more information, see issue #79813 
> <https://github.com/rust-lang/rust/issues/79813>
>     = note: macro invocations at the end of a block are treated as expressions
>     = note: to ignore the value produced by the macro, add a semicolon after 
> the invocation of `log`
>     = note: this warning originates in the macro `log` (in Nightly builds, 
> run with -Z macro-backtrace for more info)
> 
> warning: unnecessary trailing semicolon
>    --> rust/libnewsboat/src/filterparser.rs:229:6
>     |
> 229 |     };
>     |      ^ help: remove this semicolon
>     |
>     = note: `#[warn(redundant_semicolons)]` on by default
> 
> warning: `libnewsboat` (lib) generated 3 warnings
> warning: panic message is not a string literal
>    --> rust/libnewsboat/src/matcher.rs:384:34
>     |
> 384 |                 result => panic!(format!("unexpected result: {:?}", 
> result)),
>     |                                  
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>     |
>     = note: `#[warn(non_fmt_panics)]` on by default
>     = note: this usage of panic!() is deprecated; it will be a hard error in 
> Rust 2021
>     = note: for more information, see 
> <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
>     = note: the panic!() macro supports formatting, so there's no need for 
> the format!() macro here
> help: remove the `format!(..)` macro call
>     |
> 384 -                 result => panic!(format!("unexpected result: {:?}", 
> result)),
> 384 +                 result => panic!("unexpected result: {:?}", result),
>     | 
> 
> warning: panic message is not a string literal
>    --> rust/libnewsboat/src/matcher.rs:402:30
>     |
> 402 |             result => panic!(format!("unexpected result: {:?}", 
> result)),
>     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>     |
>     = note: this usage of panic!() is deprecated; it will be a hard error in 
> Rust 2021
>     = note: for more information, see 
> <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
>     = note: the panic!() macro supports formatting, so there's no need for 
> the format!() macro here
> help: remove the `format!(..)` macro call
>     |
> 402 -             result => panic!(format!("unexpected result: {:?}", 
> result)),
> 402 +             result => panic!("unexpected result: {:?}", result),
>     | 
> 
> warning: panic message is not a string literal
>    --> rust/libnewsboat/src/matcher.rs:407:30
>     |
> 407 |             result => panic!(format!("unexpected result: {:?}", 
> result)),
>     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>     |
>     = note: this usage of panic!() is deprecated; it will be a hard error in 
> Rust 2021
>     = note: for more information, see 
> <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
>     = note: the panic!() macro supports formatting, so there's no need for 
> the format!() macro here
> help: remove the `format!(..)` macro call
>     |
> 407 -             result => panic!(format!("unexpected result: {:?}", 
> result)),
> 407 +             result => panic!("unexpected result: {:?}", result),
>     | 
> 
> warning: `libnewsboat` (lib test) generated 6 warnings (3 duplicates)
> warning: unused return value of `CString::from_raw` that must be used
>   --> rust/libnewsboat-ffi/src/lib.rs:39:9
>    |
> 39 |         CString::from_raw(string);
>    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
>    |
>    = note: `#[warn(unused_must_use)]` on by default
>    = note: call `drop(from_raw(ptr))` if you intend to drop the `CString`
> 
> warning: `libnewsboat-ffi` (lib test) generated 1 warning
>     Finished test [unoptimized + debuginfo] target(s) in 0.07s
> make[2]: *** [Makefile:136: test/test.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2022/08/13/newsboat_2.21-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=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220813&fusertaguser=lu...@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.

Reply via email to