• Bug#1103250: yasm: FTBFS on amd64, arm64, armel, armhf, i386, ppc64el,

    From Peter Green@21:1/5 to Jing Luo on Tue Apr 15 23:00:01 2025
    On 15/04/2025 16:07, Jing Luo wrote:
    X-Debbugs-Cc: debian-amd64@lists.debian.org, debian-arm@lists.debian.org, debian-powerpc@lists.debian.org, debian-riscv@lists.debian.org

    I understand CC'ing the porters when you have an issue that is specific to the port, but
    if it's failing on every damn architecture, that isn't really a porter problem.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Petter Reinholdtsen@21:1/5 to All on Sat Apr 19 23:10:01 2025
    I tried to reproduce this in my sid chroot on a machine running Debian
    Stable, but here it built just fine for amd64. Was this a problem in
    some other package which have since been fixed?

    When I try the same build in a testing/trixy chroot on a different
    machine, running testing, the build fail like this:

    Test elf_amd64_test: O.O. +2-2/4 50%
    ** O: elf-rip did not match object file!
    ** O: gotpcrel did not match object file!
    FAIL modules/objfmts/elf/tests/amd64/elf_amd64_test.sh (exit status: 2)

    ============================================================================
    Testsuite summary for yasm 1.3.0
    ============================================================================
    # TOTAL: 44
    # PASS: 43
    # SKIP: 0
    # XFAIL: 0
    # FAIL: 1
    # XPASS: 0
    # ERROR: 0
    ============================================================================
    See ./test-suite.log for debugging.
    Some test(s) failed. Please report this to bug-yasm@tortall.net,
    together with the test-suite.log file (gzipped) and your system
    information. Thanks.
    ============================================================================
    make[5]: *** [Makefile:3265: test-suite.log] Error 1

    Perhaps the issue is kernel specific? The latter test was done using
    this script:

    #!/bin/sh
    set -x
    set -e
    pkg=$1
    testdir="test-$pkg"
    sudo debootstrap testing "$testdir"
    sudo mount -o bind /proc "$testdir"/proc
    echo deb-src http://deb.debian.org/debian testing main | sudo tee -a "$testdir"/etc/apt/sources.list
    sudo chroot "$testdir" apt update
    sudo chroot "$testdir" apt -y build-dep "$pkg"
    sudo chroot "$testdir" apt-get source -b "$pkg"
    sudo umount "$testdir"/proc

    When I modify the script to rerun using unstable, I get this failure:

    FAIL: modules/objfmts/elf/tests/gas64/elf_gas64_test.sh
    =======================================================

    Test elf_gas64_test: O... +3-1/4 75%
    ** O: crosssect did not match object file!
    FAIL modules/objfmts/elf/tests/gas64/elf_gas64_test.sh (exit status: 1)

    ============================================================================
    Testsuite summary for yasm 1.3.0
    ============================================================================
    # TOTAL: 44
    # PASS: 41
    # SKIP: 0
    # XFAIL: 0
    # FAIL: 3
    # XPASS: 0
    # ERROR: 0
    ============================================================================
    See ./test-suite.log for debugging.
    Some test(s) failed. Please report this to bug-yasm@tortall.net,
    together with the test-suite.log file (gzipped) and your system
    information. Thanks.
    ============================================================================
    make[5]: *** [Makefile:3265: test-suite.log] Error 1

    --
    Happy hacking
    Petter Reinholdtsen

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Petter Reinholdtsen@21:1/5 to All on Sun Apr 27 09:50:01 2025
    Control: tags -1 + patch

    I investigated some more, and from
    <UR: https://github.com/yasm/yasm/issues/157 > I got the idea that this
    is an issue with parallell build, and sure enough, on the testing
    machine were I was able to reproduce the error, it went away by using
    'debuild -j1'.

    Thus, the simple fix for this is the following change:

    diff --git a/debian/rules b/debian/rules
    index cc8db6a..a84feb4 100755
    --- a/debian/rules
    +++ b/debian/rules
    @@ -1,7 +1,7 @@
    #!/usr/bin/make -f

    %:
    - dh $@
    + dh $@ --no-parallel

    override_dh_auto_install:
    dh_auto_install

    --
    Happy hacking
    Petter Reinholdtsen

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)