• Bug#1095653: ruby-build: fails test build-ruby-openssl on unstable/armh

    From Lucas Nussbaum@21:1/5 to All on Mon Feb 10 12:10:01 2025
    Source: ruby-build
    Version: 20241225.2-1
    Severity: serious

    Hi,

    See
    https://ci.debian.net/packages/r/ruby-build/unstable/armhf/

    The error message in the build log is:
    cc -I. -Iinclude -Iapps/include -fPIC -pthread -march=armv7-a -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSLDIR="\"/tmp/autopkgtest.TtHp4o/autopkgtest_tmp/openssl/ssl\"" -DENGINESDIR="\"/tmp/autopkgtest.TtHp4o/autopkgtest_
    tmp/openssl/lib/engines-3\"" -DMODULESDIR="\"/tmp/autopkgtest.TtHp4o/autopkgtest_tmp/openssl/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DZLIB -DZLIB_SHARED -DNDEBUG -MMD -MF apps/lib/libapps-lib-app_rand.d.tmp -MT apps/lib/libapps-lib-app_rand.o -c
    -o apps/lib/libapps-lib-app_rand.o apps/lib/app_rand.c
    cc1: error: '-mfloat-abi=hard': selected architecture lacks an FPU
    cc1: error: '-mfloat-abi=hard': selected architecture lacks an FPU
    cc1: error: '-mfloat-abi=hard': selected architecture lacks an FPU
    make[1]: *** [Makefile:4291: apps/lib/libapps-lib-app_params.o] Error 1

    I think that what happens is:
    * the 'build-ruby-openssl' test builds the ruby interpreter with a
    vendored openssl (not the system one), so first it builds openssl
    (3.0.15)
    * openssl's configure results in explicitely using -march=armv7-a
    (rather than using the compiler's default, which would be
    -march=armv7-a+fp)
    * but the code being compiled has FP instructions
    * so GCC refuses to compile that code

    Those links sound relevant:
    1/ https://github.com/checkpoint-restore/criu/issues/1653

    Starting with gcc-11, Debian's armhf compiler no longer builds with a
    default -mfpu= option. Instead it enables the FPU via an extension to
    the -march flag (--with-arch=armv7-a+fp). criu's Makefile explicitly
    passes its own -march=armv7-a setting, which overrides the +fp
    default, so we end up with no FPU:
    cc1: error: '-mfloat-abi=hard': selected architecture lacks an FPU

    This was fixed with https://salsa.debian.org/debian/criu/-/commit/55d4dc414e6542c69c4fae95d31160256d726013

    2/ https://github.com/openssl/openssl/issues/21630 (closed)
    The last comment is:
    I've read the note several times but the behaviour of Configure does
    not seem to match it. Rather than actually leaving the options open,
    it adds the -march=armv7-a. If it had just picked the base linux-armv4 target, things would have been fine.


    So, this is not going to be fixed in openssl. This could be worked
    around in ruby-build.

    Lucas

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian Bunk@21:1/5 to All on Thu Apr 10 15:00:01 2025
    Control: tags 1095653 + patch

    Dear maintainer,

    I've uploaded an NMU for ruby-build (versioned as 20241225.2-1.1).
    The diff is attached to this message.

    cu
    Adrian

    diffstat for ruby-build-20241225.2 ruby-build-20241225.2

    changelog | 8 ++++++++
    tests/control | 7 ++++++-
    2 files changed, 14 insertions(+), 1 deletion(-)

    diff -Nru ruby-build-20241225.2/debian/changelog ruby-build-20241225.2/debian/changelog
    --- ruby-build-20241225.2/debian/changelog 2024-12-25 11:06:48.000000000 +0200
    +++ ruby-build-20241225.2/debian/changelog 2025-04-10 15:46:24.000000000 +0300
    @@ -1,3 +1,11 @@
    +ruby-build (20241225.2-1.1) unstable; urgency=medium
    +
    + * Non-maintainer upload.
    + * Apply patch from Simon Quigley to not run the build-ruby-openssl
    + autopkgtest on armhf. (Closes: #1095653)
    +
    + -- Adrian Bunk <bunk@debian.org> Thu, 10 Apr 2025 15:46:24 +0300
    +
    ruby-build (20241225.2-1) unstable; urgency=medium

    * Update version used for autopkgtest to 3.4.1
    diff -Nru ruby-build-20241225.2/debian/tests/control ruby-build-20241225.2/debian/tests/control
    --- ruby-build-20241225.2/debian/tests/control 2024-12-25 11:06:48.000000000 +0200
    +++ ruby-build-20241225.2/debian/tests/control 2025-04-10 15:46:17.000000000 +0300
    @@ -1,10 +1,15 @@
    Test-Command: bats test/
    Depends: bats

    -Tests: build-ruby build-ruby-openssl
    +Tests: build-ruby
    Restrictions: needs-internet allow-stderr
    Depends: @, @recommends@
  • From Debian Bug Tracking System@21:1/5 to All on Thu Apr 10 15:00:01 2025
    Processing control commands:

    tags 1095653 + patch
    Bug #1095653 [src:ruby-build] ruby-build: fails test build-ruby-openssl on unstable/armhf
    Added tag(s) patch.

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

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

    Your message dated Thu, 10 Apr 2025 13:21:00 +0000
    with message-id <E1u2rq0-00Fw9l-Qm@fasolo.debian.org>
    and subject line Bug#1095653: fixed in ruby-build 20241225.2-1.1
    has caused the Debian Bug report #1095653,
    regarding ruby-build: fails test build-ruby-openssl on unstable/armhf
    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.)


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

    Received: (at submit) by bugs.debian.org; 10 Feb 2025 11:08:23 +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=-107.6 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
    DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,
    MD5_SHA1_SUM,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, 30; hammy, 150; neutral, 132; 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::