Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.rc > #389639

Bug#1103136: etlcpp: FTBFS in testing/i386: test_atomic.cpp:326:37: error: useless cast to type ‘ptrdiff_t’ {aka ‘int’} [-Werror=useless-cast]

From Lucas Nussbaum <lucas@debian.org>
Newsgroups linux.debian.bugs.rc
Subject Bug#1103136: etlcpp: FTBFS in testing/i386: test_atomic.cpp:326:37: error: useless cast to type ‘ptrdiff_t’ {aka ‘int’} [-Werror=useless-cast]
Date 2025-04-14 14:00 +0200
Message-ID <KBqDL-ds2a-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Source: etlcpp
Version: 20.39.4+dfsg-2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20250414 ftbfs-trixie

Hi,

During a rebuild of all packages in testing (trixie), your package failed
to build on i386.


Relevant part (hopefully):
> cd /build/reproducible-path/etlcpp-20.39.4+dfsg/obj-i686-linux-gnu/test && /usr/bin/c++ -DETL_DEBUG -I/build/reproducible-path/etlcpp-20.39.4+dfsg/test/../include -isystem /build/reproducible-path/etlcpp-20.39.4+dfsg/test/UnitTest++/.. -Wno-aggressive-loop-optimizations -Wno-pessimizing-move -std=gnu++20 -fno-omit-frame-pointer -fno-common -Wall -Wextra -Werror -Wfloat-equal -Wuseless-cast -Wshadow -Wnull-dereference -MD -MT test/CMakeFiles/etl_tests.dir/test_base64_RFC3501_decoder.cpp.o -MF CMakeFiles/etl_tests.dir/test_base64_RFC3501_decoder.cpp.o.d -o CMakeFiles/etl_tests.dir/test_base64_RFC3501_decoder.cpp.o -c /build/reproducible-path/etlcpp-20.39.4+dfsg/test/test_base64_RFC3501_decoder.cpp
> In file included from /build/reproducible-path/etlcpp-20.39.4+dfsg/test/UnitTest++/TestMacros.h:6,
>                  from /build/reproducible-path/etlcpp-20.39.4+dfsg/test/UnitTest++/UnitTestPP.h:5,
>                  from /build/reproducible-path/etlcpp-20.39.4+dfsg/test/UnitTest++/UnitTest++.h:1,
>                  from /build/reproducible-path/etlcpp-20.39.4+dfsg/test/unit_test_framework.h:32,
>                  from /build/reproducible-path/etlcpp-20.39.4+dfsg/test/test_atomic.cpp:29:
> /build/reproducible-path/etlcpp-20.39.4+dfsg/test/test_atomic.cpp: In member function ‘virtual void {anonymous}::Suitetest_atomic_std::Testtest_atomic_operator_pointer_fetch_add::RunImpl() const’:
> /build/reproducible-path/etlcpp-20.39.4+dfsg/test/test_atomic.cpp:326:37: error: useless cast to type ‘ptrdiff_t’ {aka ‘int’} [-Werror=useless-cast]
>   326 |       CHECK_EQUAL(compare.fetch_add(ptrdiff_t(10)), test.fetch_add(ptrdiff_t(10)));
>       |                                     ^~~~~~~~~~~~~
> /build/reproducible-path/etlcpp-20.39.4+dfsg/test/UnitTest++/ExceptionMacros.h:7:37: note: in definition of macro ‘UNITTEST_IMPL_TRY’
>     7 |    #define UNITTEST_IMPL_TRY(x) try x
>       |                                     ^
> /build/reproducible-path/etlcpp-20.39.4+dfsg/test/UnitTest++/CheckMacros.h:290:45: note: in expansion of macro ‘UNITTEST_CHECK_EQUAL’
>   290 |       #define CHECK_EQUAL(expected, actual) UNITTEST_CHECK_EQUAL((expected), (actual))
>       |                                             ^~~~~~~~~~~~~~~~~~~~
> /build/reproducible-path/etlcpp-20.39.4+dfsg/test/test_atomic.cpp:326:7: note: in expansion of macro ‘CHECK_EQUAL’
>   326 |       CHECK_EQUAL(compare.fetch_add(ptrdiff_t(10)), test.fetch_add(ptrdiff_t(10)));
>       |       ^~~~~~~~~~~
> /build/reproducible-path/etlcpp-20.39.4+dfsg/test/test_atomic.cpp:326:68: error: useless cast to type ‘ptrdiff_t’ {aka ‘int’} [-Werror=useless-cast]
>   326 |       CHECK_EQUAL(compare.fetch_add(ptrdiff_t(10)), test.fetch_add(ptrdiff_t(10)));
>       |                                                                    ^~~~~~~~~~~~~
> /build/reproducible-path/etlcpp-20.39.4+dfsg/test/UnitTest++/ExceptionMacros.h:7:37: note: in definition of macro ‘UNITTEST_IMPL_TRY’
>     7 |    #define UNITTEST_IMPL_TRY(x) try x
>       |                                     ^
> /build/reproducible-path/etlcpp-20.39.4+dfsg/test/UnitTest++/CheckMacros.h:290:45: note: in expansion of macro ‘UNITTEST_CHECK_EQUAL’
>   290 |       #define CHECK_EQUAL(expected, actual) UNITTEST_CHECK_EQUAL((expected), (actual))
>       |                                             ^~~~~~~~~~~~~~~~~~~~
> /build/reproducible-path/etlcpp-20.39.4+dfsg/test/test_atomic.cpp:326:7: note: in expansion of macro ‘CHECK_EQUAL’
>   326 |       CHECK_EQUAL(compare.fetch_add(ptrdiff_t(10)), test.fetch_add(ptrdiff_t(10)));
>       |       ^~~~~~~~~~~
> /build/reproducible-path/etlcpp-20.39.4+dfsg/test/test_atomic.cpp: In member function ‘virtual void {anonymous}::Suitetest_atomic_std::Testtest_atomic_operator_pointer_fetch_sub::RunImpl() const’:
> /build/reproducible-path/etlcpp-20.39.4+dfsg/test/test_atomic.cpp:434:37: error: useless cast to type ‘ptrdiff_t’ {aka ‘int’} [-Werror=useless-cast]
>   434 |       CHECK_EQUAL(compare.fetch_add(ptrdiff_t(10)), test.fetch_add(ptrdiff_t(10)));
>       |                                     ^~~~~~~~~~~~~
> /build/reproducible-path/etlcpp-20.39.4+dfsg/test/UnitTest++/ExceptionMacros.h:7:37: note: in definition of macro ‘UNITTEST_IMPL_TRY’
>     7 |    #define UNITTEST_IMPL_TRY(x) try x
>       |                                     ^
> /build/reproducible-path/etlcpp-20.39.4+dfsg/test/UnitTest++/CheckMacros.h:290:45: note: in expansion of macro ‘UNITTEST_CHECK_EQUAL’
>   290 |       #define CHECK_EQUAL(expected, actual) UNITTEST_CHECK_EQUAL((expected), (actual))
>       |                                             ^~~~~~~~~~~~~~~~~~~~
> /build/reproducible-path/etlcpp-20.39.4+dfsg/test/test_atomic.cpp:434:7: note: in expansion of macro ‘CHECK_EQUAL’
>   434 |       CHECK_EQUAL(compare.fetch_add(ptrdiff_t(10)), test.fetch_add(ptrdiff_t(10)));
>       |       ^~~~~~~~~~~
> /build/reproducible-path/etlcpp-20.39.4+dfsg/test/test_atomic.cpp:434:68: error: useless cast to type ‘ptrdiff_t’ {aka ‘int’} [-Werror=useless-cast]
>   434 |       CHECK_EQUAL(compare.fetch_add(ptrdiff_t(10)), test.fetch_add(ptrdiff_t(10)));
>       |                                                                    ^~~~~~~~~~~~~
> /build/reproducible-path/etlcpp-20.39.4+dfsg/test/UnitTest++/ExceptionMacros.h:7:37: note: in definition of macro ‘UNITTEST_IMPL_TRY’
>     7 |    #define UNITTEST_IMPL_TRY(x) try x
>       |                                     ^
> /build/reproducible-path/etlcpp-20.39.4+dfsg/test/UnitTest++/CheckMacros.h:290:45: note: in expansion of macro ‘UNITTEST_CHECK_EQUAL’
>   290 |       #define CHECK_EQUAL(expected, actual) UNITTEST_CHECK_EQUAL((expected), (actual))
>       |                                             ^~~~~~~~~~~~~~~~~~~~
> /build/reproducible-path/etlcpp-20.39.4+dfsg/test/test_atomic.cpp:434:7: note: in expansion of macro ‘CHECK_EQUAL’
>   434 |       CHECK_EQUAL(compare.fetch_add(ptrdiff_t(10)), test.fetch_add(ptrdiff_t(10)));
>       |       ^~~~~~~~~~~
> cc1plus: all warnings being treated as errors
> make[4]: *** [test/CMakeFiles/etl_tests.dir/build.make:180: test/CMakeFiles/etl_tests.dir/test_atomic.cpp.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2025/04/14/etlcpp_20.39.4+dfsg-2_testing-i386.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20250414;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20250414&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 mark 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.

Back to linux.debian.bugs.rc | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1103136: etlcpp: FTBFS in testing/i386: test_atomic.cpp:326:37: error: useless cast to type ‘ptrdiff_t’ {aka ‘int’} [-Werror=useless-cast] Lucas Nussbaum <lucas@debian.org> - 2025-04-14 14:00 +0200
  Bug#1103136: marked as done (etlcpp: FTBFS in testing/i386:  test_atomic.cpp:326:37: error: useless cast to type ‘ptrdiff_t’  {aka ‘int’} [-Werror=useless-cast]) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-04-23 11:10 +0200

csiph-web