GNU bug report logs - #75932
go@1.17.13 builds failing on aarch64-linux

Previous Next

Package: guix;

Reported by: Ian Eure <ian <at> retrospec.tv>

Date: Wed, 29 Jan 2025 18:55:02 UTC

Severity: normal

Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 75932 in the body.
You can then email your comments to 75932 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#75932; Package guix. (Wed, 29 Jan 2025 18:55:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ian Eure <ian <at> retrospec.tv>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 29 Jan 2025 18:55:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: bug-guix <at> gnu.org
Subject: go <at> 1.17.13 builds failing on aarch64-linux
Date: Wed, 29 Jan 2025 10:19:14 -0800
Noticed on my aarch64-linux VM today that golang builds are 
failing:

   $ guix build go
   <snip>
   starting phase `build'
   make.bash: line 159: 
   /gnu/store/45vng74anlglfd30v678a1lkbb34pjpv-go-1.4-bootstrap-20171003/bin/go: 
   cannot execute binary file: Exec format error
   $ guix shell file -- file 
   /gnu/store/45vng74anlglfd30v678a1lkbb34pjpv-go-1.4-bootstrap-20171003/bin/go
   <snip>
   /gnu/store/45vng74anlglfd30v678a1lkbb34pjpv-go-1.4-bootstrap-20171003/bin/go: 
   ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), 
   statically linked, stripped
   $ uname -a
   Linux vakum 6.11.11-gnu #1 SMP PREEMPT_DYNAMIC 1 aarch64 
   GNU/Linux
   $ guix describe
   Generation 7	Jan 29 2025 08:50:46	(current)
   guix ac103c2
     repository URL: https://git.savannah.gnu.org/git/guix.git
     branch: master
     commit: ac103c2eab1a169ca18c88fd0b0d03c7d2e02c9d

This was working in the previous generation, which was commit 
680d01aeefaec383da44c3b6920c8a42f41613e9.  I don’t see any changes 
to go-1.4 or go-1.17 in there, but there are some go-build-system 
change, which might be related.

 -- Ian





Information forwarded to bug-guix <at> gnu.org:
bug#75932; Package guix. (Fri, 31 Jan 2025 16:45:02 GMT) Full text and rfc822 format available.

Message #8 received at 75932 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 75932 <at> debbugs.gnu.org
Subject: go <at> 1.17.13 builds failing on aarch64-linux
Date: Fri, 31 Jan 2025 17:44:07 +0100
[Message part 1 (text/plain, inline)]
Hi,

The issue may come from the fact that all tests started to run
as default is ./... .

I can check later on Monday.

Oleg
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#75932; Package guix. (Sat, 01 Feb 2025 20:32:01 GMT) Full text and rfc822 format available.

Message #11 received at 75932 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 75932 <at> debbugs.gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: go <at> 1.17.13 builds failing on aarch64-linux
Date: Sat, 1 Feb 2025 21:31:16 +0100
[Message part 1 (text/plain, inline)]
Hi,


> cannot execute binary file: Exec format error

This looks like one binary built on one architecture is invoked on other.

May you share the steps please?

Oleg
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#75932; Package guix. (Sat, 01 Feb 2025 21:02:02 GMT) Full text and rfc822 format available.

Message #14 received at 75932 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Cc: 75932 <at> debbugs.gnu.org
Subject: Re: go <at> 1.17.13 builds failing on aarch64-linux
Date: Sat, 01 Feb 2025 13:01:41 -0800
Hi Sharlatan,

Sharlatan Hellseher <sharlatanus <at> gmail.com> writes:

> Hi,
>
>> cannot execute binary file: Exec format error
>
> This looks like one binary built on one architecture is invoked 
> on other.
>

Yes.  My original report includes the output of `file' on the 
binary in question, which is a 32-bit ARM ELF executable. 
Presumably this cannot be directly executed on a 64-bit ARM host.


> May you share the steps please?
>

Running  `guix build go' on an aarch64-linux machine reproduces 
the issue.  I included what I thought would be all the relevant 
information in my original report, including a commit where this 
worked, the commit where it’s broken, the machine type, and the 
output of `file' on the binary that’s failing to run.  If you need 
more information, please let me know what specific things would be 
helpful, and I’d be happy to provide it.

 -- Ian





Information forwarded to bug-guix <at> gnu.org:
bug#75932; Package guix. (Mon, 03 Feb 2025 12:10:02 GMT) Full text and rfc822 format available.

Message #17 received at 75932 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 75932 <at> debbugs.gnu.org
Cc: ian <at> retrospec.tv
Subject: go <at> 1.17.13 builds failing on aarch64-linux
Date: Mon, 03 Feb 2025 12:09:22 +0000
[Message part 1 (text/plain, inline)]
Hi Ian,

I tried to reproduce it with time-machine and your commit on
--system=aarch64-linux:

--8<---------------cut here---------------start------------->8---
guix time-machine --commit=ac103c2eab1a169ca18c88fd0b0d03c7d2e02c9d -- build --system=aarch64-linux go
<...>
/gnu/store/3z743aawlgqxww7dhkaap7gwcxjsgviw-go-1.23.5
/gnu/store/72609ldby63jf84z7qr4f628imnghdd2-go-1.23.5-tests

guix time-machine --commit=ac103c2eab1a169ca18c88fd0b0d03c7d2e02c9d -- build --system=aarch64-linux go <at> 1.4-bootstrap-20171003
<...>
/gnu/store/14jpr2l9qbin1bnf1dciyv1f0i3mi25g-go-1.4-bootstrap-20171003-doc
/gnu/store/szpnxss4sdk6q06cnqi5vvz3y1f5kb4s-go-1.4-bootstrap-20171003
/gnu/store/x3f04scmkdl4p32md1kvc3xnykz4lwhq-go-1.4-bootstrap-20171003-tests

guix time-machine --commit=ac103c2eab1a169ca18c88fd0b0d03c7d2e02c9d -- shell file -- file /gnu/store/szpnxss4sdk6q06cnqi5vvz3y1f5kb4s-go-1.4-bootstrap-20171003/bin/go
<...>
/gnu/store/szpnxss4sdk6q06cnqi5vvz3y1f5kb4s-go-1.4-bootstrap-20171003/bin/go:
ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically
linked, stripped

guix time-machine --commit=ac103c2eab1a169ca18c88fd0b0d03c7d2e02c9d -- shell file -- file /gnu/store/3z743aawlgqxww7dhkaap7gwcxjsgviw-go-1.23.5/bin/go
<...>
/gnu/store/3z743aawlgqxww7dhkaap7gwcxjsgviw-go-1.23.5/bin/go: ELF 64-bit
LSB executable, ARM aarch64, version 1 (SYSV), statically linked, Go
BuildID=0eCUv8J6ZCq7sgVVZxvd/PzySMddYip0GeTK6gXT2/fIgm9FAYEjVeYs-FPzTf/q1haDqtswLHqvG5hU8dG,
stripped
--8<---------------cut here---------------end--------------->8---


It built succefully on my end in Qemu as you may see. I've got x86_64 for the
host machine.

Is any chance you may provide a similar reproducer?

--
Oleg
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#75932; Package guix. (Sat, 08 Feb 2025 15:31:01 GMT) Full text and rfc822 format available.

Message #20 received at 75932 <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Cc: 75932 <at> debbugs.gnu.org
Subject: Re: go <at> 1.17.13 builds failing on aarch64-linux
Date: Sat, 08 Feb 2025 07:30:45 -0800
close 75932
thanks

Hi Sharlatan,

I rebooted my VM and am no longer able to reproduce the issue, 
even though I hadn’t pulled any newer revisions.  Not sure what 
was going on with this, might be a reproducability bug.

 -- Ian

Sharlatan Hellseher <sharlatanus <at> gmail.com> writes:

> Hi Ian,
>
> I tried to reproduce it with time-machine and your commit on
> --system=aarch64-linux:
>
> --8<---------------cut 
> here---------------start------------->8---
> guix time-machine 
> --commit=ac103c2eab1a169ca18c88fd0b0d03c7d2e02c9d -- build 
> --system=aarch64-linux go
> <...>
> /gnu/store/3z743aawlgqxww7dhkaap7gwcxjsgviw-go-1.23.5
> /gnu/store/72609ldby63jf84z7qr4f628imnghdd2-go-1.23.5-tests
>
> guix time-machine 
> --commit=ac103c2eab1a169ca18c88fd0b0d03c7d2e02c9d -- build 
> --system=aarch64-linux go <at> 1.4-bootstrap-20171003
> <...>
> /gnu/store/14jpr2l9qbin1bnf1dciyv1f0i3mi25g-go-1.4-bootstrap-20171003-doc
> /gnu/store/szpnxss4sdk6q06cnqi5vvz3y1f5kb4s-go-1.4-bootstrap-20171003
> /gnu/store/x3f04scmkdl4p32md1kvc3xnykz4lwhq-go-1.4-bootstrap-20171003-tests
>
> guix time-machine 
> --commit=ac103c2eab1a169ca18c88fd0b0d03c7d2e02c9d -- shell file 
> -- file 
> /gnu/store/szpnxss4sdk6q06cnqi5vvz3y1f5kb4s-go-1.4-bootstrap-20171003/bin/go
> <...>
> /gnu/store/szpnxss4sdk6q06cnqi5vvz3y1f5kb4s-go-1.4-bootstrap-20171003/bin/go:
> ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), 
> statically
> linked, stripped
>
> guix time-machine 
> --commit=ac103c2eab1a169ca18c88fd0b0d03c7d2e02c9d -- shell file 
> -- file 
> /gnu/store/3z743aawlgqxww7dhkaap7gwcxjsgviw-go-1.23.5/bin/go
> <...>
> /gnu/store/3z743aawlgqxww7dhkaap7gwcxjsgviw-go-1.23.5/bin/go: 
> ELF 64-bit
> LSB executable, ARM aarch64, version 1 (SYSV), statically 
> linked, Go
> BuildID=0eCUv8J6ZCq7sgVVZxvd/PzySMddYip0GeTK6gXT2/fIgm9FAYEjVeYs-FPzTf/q1haDqtswLHqvG5hU8dG,
> stripped
>




Reply sent to Sharlatan Hellseher <sharlatanus <at> gmail.com>:
You have taken responsibility. (Sat, 08 Feb 2025 17:42:02 GMT) Full text and rfc822 format available.

Notification sent to Ian Eure <ian <at> retrospec.tv>:
bug acknowledged by developer. (Sat, 08 Feb 2025 17:42:02 GMT) Full text and rfc822 format available.

Message #25 received at 75932-done <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 75932-done <at> debbugs.gnu.org
Subject: go <at> 1.17.13 builds failing on aarch64-linux
Date: Sat, 8 Feb 2025 17:41:05 +0000
[Message part 1 (text/plain, inline)]

[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 09 Mar 2025 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 4 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.