[Issue 23317] runnable/cdvecfill.sh and compilable/cdcmp.d fail two test on binutils-2.39 due to objdump whitespace change

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 1 13:31:44 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23317

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

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

--- Comment #1 from RazvanN <razvan.nitu1305 at 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?

--


More information about the Digitalmars-d-bugs mailing list