Thread overview
[Issue 23317] runnable/cdvecfill.sh and compilable/cdcmp.d fail two test on binutils-2.39 due to objdump whitespace change
Sep 01, 2022
RazvanN
Sep 01, 2022
Sergei Trofimovich
Dec 17, 2022
Iain Buclaw
Apr 19, 2023
ZombineDev
September 01, 2022
https://issues.dlang.org/show_bug.cgi?id=23317

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> ---
(In reply to Sergei Trofimovich from comment #0)
> Noticed new tests failure when updated nixpkgs from `binutils-2.38` to `2.39`: https://github.com/NixOS/nixpkgs/pull/185297#issuecomment-1229881420
> 
> There `dmd-2.097.2` started failing 2 tests https://hydra.nixos.org/log/fsda7n661p7nmb0xivb9sw2wgidhp5v0-dmd-2.097.2.drv:
> 
>     FAILED targets:
>     - runnable/cdvecfill.sh
>     - compilable/cdcmp.d
> 
> I think it happens because `objdump` in `binutils-2.39` stopped emitting trailing whitespace after `ret` instruction:
> 
> 
>     dmd/test $ diff -u ./test_results/compilable/cdcmp_0.o.dump.sanitized
> ./compilable/extra-files/cdcmp.out
>      Disassembly of section .text.d_dso_init:
> 
>     @@ -1069,5 +1069,5 @@
>        1c:  6a 01                   push   0x1
>        1e:  48 8b fc                mov    rdi,rsp
>        21:  e8 00 00 00 00          call   26 <.text.d_dso_init+0x26>
>     -  26:  c9                      leave
>     -  27:  c3                      ret<space><space><space><space>
>     +  26:  c9                      leave
>     +  27:  c3                      ret

Fixing this is easy however, if I understand correctly, we first must wait for you to make the upgrade to binutils-2.39 and then we have to fix this, right?

--
September 01, 2022
https://issues.dlang.org/show_bug.cgi?id=23317

--- Comment #2 from Sergei Trofimovich <slyfox@inbox.ru> ---
(In reply to RazvanN from comment #1)
> (In reply to Sergei Trofimovich from comment #0)
> > Noticed new tests failure when updated nixpkgs from `binutils-2.38` to `2.39`: https://github.com/NixOS/nixpkgs/pull/185297#issuecomment-1229881420
...
> >     FAILED targets:
> >     - runnable/cdvecfill.sh
> >     - compilable/cdcmp.d
...
> Fixing this is easy however, if I understand correctly, we first must wait for you to make the upgrade to binutils-2.39 and then we have to fix this, right?

No need to wait for nixpkgs update. I think nixpkgs can work test failures around by removing tests locally: https://github.com/NixOS/nixpkgs/pull/189087/files

I filed the bug upstream as it seems to be a generic problem of unstable output. I would expect most linux distributions to encounter these test failures at one point or another if they run the testsuites to quialify packages against newer toolchains. Thus the proper fix could help others.

I should be able to test the possible fixes against binutils-2.38 and 2.39 in case you have something.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=23317

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
April 19, 2023
https://issues.dlang.org/show_bug.cgi?id=23317

ZombineDev <petar.p.kirov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |petar.p.kirov@gmail.com

--