• Bug#1103136: etlcpp: FTBFS in testing/i386: test_atomic.cpp:326:37: err

    From Lucas Nussbaum@21:1/5 to All on Mon Apr 14 14:00:01 2025
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Wed Apr 23 11:10:02 2025
    This is a multi-part message in MIME format...

    Your message dated Wed, 23 Apr 2025 09:04:30 +0000
    with message-id <E1u7W1u-00CAte-3D@fasolo.debian.org>
    and subject line Bug#1103136: fixed in etlcpp 20.39.4+dfsg-3
    has caused the Debian Bug report #1103136,
    regarding etlcpp: FTBFS in testing/i386: test_atomic.cpp:326:37: error: useless cast to type ‘ptrdiff_t’ {aka ‘int’} [-Werror=useless-cast]
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1103136: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1103136
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 14 Apr 2025 11:43:50 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-105.2 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
    DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,
    SPF_HELO_NONE,SPF_NONE,UNPARSEABLE_RELAY,USER_IN_DKIM_WELCOMELIST,
    USER_IN_DKIM_WHITELIST autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 39; hammy, 150; neutral, 192; spammy,
    0. spammytokens:
    hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
    0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
    0.000-+--H*RT:311, 0.000-+--H*RT:108
    Return-path: <lucas@debian.org>
    Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:5106