Subject: gdb 9.1 build hangs when using "-s armhf-linux" on x86_64-linux
From: Danny Milosavljevic <[email-masked]>
To: <[email-masked]>
Date: Tue, 18 Feb 2020 12:53:54 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

the gdb 9.1 build hangs when using "-s armhf-linux" on x86_64-linux.

$ guix describe
Generation 53   Feb 14 2020 20:09:47    (current)
  guix 6a7f4d8
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 6a7f4d89b2029b43b766217d71d5dbbdfcc5fa09

$ guix build -s armhf-linux gdb
[wait for several days]
[nothing]

l-wx------ 1 guixbuilder01 guixbuild 64 17. Feb 14:48 1 -> /tmp/guix-build-gdb-9.1.drv-0/build/bfd/po/BLD-POTFILES-t
            |                                      |             |-make(9064)-+-bash(9070)-+-make(9098)-+-bash(12468)-+-bash(12490)-+-make(12543)-+-bash(12599)-+-bash(13986)-+-make(13988)-+-bash(13994)-+-bash(13999)-+-bash(14015)-+-sed(14018)---{sed}(14021)
guixbui+ 14015 13999  0 Feb16 ?        00:00:00 /gnu/store/bc87x9c6kmqx6rm2ifl3a5fjyffa6dl4-qemu-4.2.0/bin/qemu-arm /gnu/store/nvkn00kq4x4g5wjjjvjj6rhzs0ihihxl-bash-minimal-5.0.7/bin/bash -c ( rm -f BLD-POTFILES-t BLD-POTFILES \     && (sed -e '/^#/d' \             -e '/^[ ?]*$/d' \ ?    -e "s@.*@?../& \\\\@" < ../../../gdb-9.1/bfd/po/BLD-POTFILES.in \ ?| sed -e '$s/\\$//') > BLD-POTFILES-t \     && chmod a-w BLD-POTFILES-t \     && mv BLD-POTFILES-t BLD-POTFILES )

guixbui+ 14018 14015 49 Feb16 ?        09:51:51 /gnu/store/bc87x9c6kmqx6rm2ifl3a5fjyffa6dl4-qemu-4.2.0/bin/qemu-arm /gnu/store/nqrkjlwj2xhgcqnkz2g8bb00372s45xl-sed-4.7/bin/sed -e $s/\\$//

When I kill that I get:

Terminated
make[3]: *** [Makefile:265: BLD-POTFILES] Error 143
make[3]: Leaving directory '/tmp/guix-build-gdb-9.1.drv-0/build/bfd/po'

          lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \

(It eventually works around itself once a substitute built on an
ARM server is available, but just for documentation purposes this
bug report)