• Bug#1104825: mame: FTBFS on riscv64: g++: error: unrecognized command-l

    From Bo YU@21:1/5 to All on Wed May 7 03:50:01 2025
    --wyzwvmjwyvo27hrp
    Content-Type: text/plain; charset=gb2312
    Content-Disposition: inline
    Content-Transfer-Encoding: quoted-printable

    Source: mame
    Version: 0.277+dfsg.1-3
    Severity: serious
    Tags: ftbfs patch
    User: debian-riscv@lists.debian.org
    Usertags: riscv64
    X-Debbugs-Cc: debian-riscv@lists.debian.org

    Dear Maintainer,

    now mame has one ftbfs issue since 0.277+dfsg.1-1 due to:

    ```

    Precompiling src/emu/emu.h...
    g++ -g -O2 -ffile-prefix-map=/build/reproducible-path/mame-0.277+dfsg.1=. -fstack-protector-strong -Wformat -Werror=format-security -g0 -O2 -Wno-error=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/mame-0.277+dfsg.1=. -fstack-
    protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -MMD -MP -MP -DNDEBUG -DCRLF=2 -DLSB_FIRST -DXMD_H -DFLAC__NO_DLL -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DPTR64=1 -I"../../../..
    /../src/osd" -I"../../../../../src/emu" -I"../../../../../src/lib/util" -m64 -std=c++17 -pipe -O1 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=
    deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-nonnull -Wno-stringop-overread -Wno-error=maybe-uninitialized -Wno-error=uninitialized -m64 -std=c++
    17 -Woverloaded-virtual -Wvla -Wimplicit-fallthrough -Wno-xor-used-as-pow -Wsuggest-override -x c++-header -DNDEBUG -DCRLF=2 -DLSB_FIRST -DXMD_H -DFLAC__NO_DLL -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DPTR64=1 -I"../../../../../src/osd" -I"../.
    ./../../../src/emu" -I"../../../../../src/lib/util" -o "../../../../linux_gcc/obj/x64/Release/emu.h.gch" -c "../../../../../src/emu/emu.h"
    g++: error: unrecognized command-line option ¡®-m64¡¯
    g++: error: unrecognized command-line option ¡®-m64¡¯
    make[4]: *** [precompile.make:320: ../../../../linux_gcc/obj/x64/Release/emu.h.gch] Error 1
    ```

    To see the full buildd log: https://buildd.debian.org/status/fetch.php?pkg=mame&arch=riscv64&ver=0.277%2Bdfsg.1-3&stamp=1746406180&raw=0

    It seems it need DRC_C_BACKEND on riscv64 currently and I have tested
    it on my localy Unmatched board.

    BTW, I have reverted the commit[0] on risv64 because it did not fix the FTBFS on riscv64, but I am not confident about this, so please review it
    carefully and let me know any issues.

    [0]: https://salsa.debian.org/games-team/mame/-/commit/d15e23dcba86be55c46352434b9c097b722cce87

    --
    Regards,
    --
    Bo YU


    --wyzwvmjwyvo27hrp
    Content-Type: text/plain; charset=us-ascii
    Content-Disposition: attachment; filename="mame-ftbfs-rv64.debdiff" Content-Transfer-Encoding: quoted-printable

    diff -Nru mame-0.277+dfsg.1/debian/changelog mame-0.277+dfsg.1/debian/changelog --- mame-0.277+dfsg.1/debian/changelog 2025-05-04 20:28:24.000000000 +0000
    +++ mame-0.277+dfsg.1/debian/changelog 2025-05-06 01:18:41.000000000 +0000
    @@ -1,3 +1,10 @@
    +mame (0.277+dfsg.1-3.1) UNRELEASED; urgency=medium
    +
    + * Non-maintainer upload.
    + * Fix fbtfs issue on riscv64. (Closes: #-1)
    +
    + -- Bo YU <vimer@debian.org> Tue, 06 May 2025 01:18:41 +0000
    +
    mame (0.277+dfsg.1-3) unstable; urgency=medium

    * Restore riscv64 part of a patch that was accidentally dropped during
    diff -Nru mame-0.277+dfsg.1/debian/patches/ftbfs_alpha_ia64.patch mame-0.277+dfsg.1/debian/patches/ftbfs_alpha_ia64.patch
    --- mame-0.277+dfsg.1/debian/patches/ftbfs_alpha_ia64.patch 2025-05-04 20:28:24.000000000 +0000
    +++ mame-0
  • From Debian Bug Tracking System@21:1/5 to All on Wed May 14 18:50:01 2025
    This is a multi-part message in MIME format...

    Your message dated Wed, 14 May 2025 16:38:33 +0000
    with message-id <E1uFF7p-00G0NC-3U@fasolo.debian.org>
    and subject line Bug#1104825: fixed in mame 0.277+dfsg.1-4
    has caused the Debian Bug report #1104825,
    regarding mame: FTBFS on riscv64: g++: error: unrecognized command-line option ‘'-m64'
    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.)


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

    Received: (at submit) by bugs.debian.org; 7 May 2025 01:45:21 +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=-112.1 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
    DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,
    MD5_SHA1_SUM,MONEY,PGPSIGNATURE,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, 80; hammy, 150; neutral, 263; 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: <vimer@debian.org>
    Received: from stravinsky.debian.org (