GNU bug report logs - #50858
Installing git-annex for aarch64 fails on ghc build

Previous Next

Package: guix;

Reported by: Zacchaeus Scheffer <zaccysc <at> gmail.com>

Date: Mon, 27 Sep 2021 22:29:02 UTC

Severity: wishlist

To reply to this bug, email your comments to 50858 AT debbugs.gnu.org.

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#50858; Package guix. (Mon, 27 Sep 2021 22:29:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Zacchaeus Scheffer <zaccysc <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 27 Sep 2021 22:29:02 GMT) Full text and rfc822 format available.

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

From: Zacchaeus Scheffer <zaccysc <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: Installing git-annex for aarch64 fails on ghc build
Date: Mon, 27 Sep 2021 18:28:38 -0400
[Message part 1 (text/plain, inline)]
Hi Guix!

I'm trying to install git-annex for aarch64, but it fails on the following
line:

\ 'configure-bin' phasebuilder for
`/gnu/store/b6j0zdnbpdhx81npbk25m4nls5y1h3f5-ghc-7.10.2.drv' failed with
exit code 1

I have attached the log for the failed ghc build.  The first error there
seems to be:

/tmp/guix-build-ghc-7.10.2.drv-0/ghc-7.10.2/ghc-bin/ghc-7.8.4/utils/ghc-pwd/dist-install/build/tmp/ghc-pwd:
cannot execute binary file: Exec format error

Seeing as this works fine for x86, I'm guessing that a ghc-pwd is being
used that was compiled for x86, maybe an error in setting up cross
compiling?

Thanks,
Zacchae
[Message part 2 (text/html, inline)]
[j0zdnbpdhx81npbk25m4nls5y1h3f5-ghc-7.10.2.drv.bz2 (application/x-bzip, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#50858; Package guix. (Fri, 01 Oct 2021 20:18:02 GMT) Full text and rfc822 format available.

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

From: Maxime Devos <maximedevos <at> telenet.be>
To: Zacchaeus Scheffer <zaccysc <at> gmail.com>, 50858 <at> debbugs.gnu.org
Subject: Re: bug#50858: Installing git-annex for aarch64 fails on ghc build
Date: Fri, 01 Oct 2021 22:16:59 +0200
[Message part 1 (text/plain, inline)]
Zacchaeus Scheffer schreef op ma 27-09-2021 om 18:28 [-0400]:
> Hi Guix!
> 
> I'm trying to install git-annex for aarch64,

Are you doing --target=aarch64-linux-gnu or --system=aarch64-linux?
The current package definition needs bootstrap binaries, which currently
are only defined for x86_64-linux and i686-linux, so --system=aarch64-linux
cannot work.

Doing --target=aarch64-linux-gnu should work though (untested).

>  but it fails on the following line:
> 
> \ 'configure-bin' phasebuilder for `/gnu/store/b6j0zdnbpdhx81npbk25m4nls5y1h3f5-ghc-7.10.2.drv' failed with exit code 1
> 
> I have attached the log for the failed ghc build.  The first error there seems to be:
> 
> /tmp/guix-build-ghc-7.10.2.drv-0/ghc-7.10.2/ghc-bin/ghc-7.8.4/utils/ghc-pwd/dist-install/build/tmp/ghc-pwd: cannot execute binary file: Exec format error
> 
> Seeing as this works fine for x86, I'm guessing that a ghc-pwd is being used that was compiled for x86, maybe an error in setting up cross compiling?
> 
> Thanks,
> Zacchae
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#50858; Package guix. (Sun, 03 Oct 2021 12:35:02 GMT) Full text and rfc822 format available.

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

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Maxime Devos <maximedevos <at> telenet.be>
Cc: 50858 <at> debbugs.gnu.org, Zacchaeus Scheffer <zaccysc <at> gmail.com>
Subject: Re: bug#50858: Installing git-annex for aarch64 fails on ghc build
Date: Sun, 3 Oct 2021 15:32:05 +0300
[Message part 1 (text/plain, inline)]
On Fri, Oct 01, 2021 at 10:16:59PM +0200, Maxime Devos wrote:
> Zacchaeus Scheffer schreef op ma 27-09-2021 om 18:28 [-0400]:
> > Hi Guix!
> > 
> > I'm trying to install git-annex for aarch64,
> 
> Are you doing --target=aarch64-linux-gnu or --system=aarch64-linux?
> The current package definition needs bootstrap binaries, which currently
> are only defined for x86_64-linux and i686-linux, so --system=aarch64-linux
> cannot work.
> 
> Doing --target=aarch64-linux-gnu should work though (untested).

(ins)efraim <at> 3900XT ~/workspace/guix$ time torsocks ./pre-inst-env guix build --no-grafts git-annex --target=aarch64-linux-gnu
guix build: error: gnu/packages/haskell-apps.scm:345:2: git-annex <at> 8.20210903: build system `haskell' does not support cross builds

Interestingly it might be easier to get the haskell-build-system to
support cross compiling than to find the upstream blessed binary for one
of the GHC releases and use that as a bootstrap for later GHC releases
on aarch64.

> 
> >  but it fails on the following line:
> > 
> > \ 'configure-bin' phasebuilder for `/gnu/store/b6j0zdnbpdhx81npbk25m4nls5y1h3f5-ghc-7.10.2.drv' failed with exit code 1
> > 
> > I have attached the log for the failed ghc build.  The first error there seems to be:
> > 
> > /tmp/guix-build-ghc-7.10.2.drv-0/ghc-7.10.2/ghc-bin/ghc-7.8.4/utils/ghc-pwd/dist-install/build/tmp/ghc-pwd: cannot execute binary file: Exec format error
> > 
> > Seeing as this works fine for x86, I'm guessing that a ghc-pwd is being used that was compiled for x86, maybe an error in setting up cross compiling?
> > 
> > Thanks,
> > Zacchae



-- 
Efraim Flashner   <efraim <at> flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#50858; Package guix. (Sat, 25 Nov 2023 11:09:01 GMT) Full text and rfc822 format available.

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

From: Simon Tournier <zimon.toutoune <at> gmail.com>
To: Zacchaeus Scheffer <zaccysc <at> gmail.com>
Cc: 50858 <at> debbugs.gnu.org
Subject: Re: bug#50858: Installing git-annex for aarch64 fails on ghc build
Date: Fri, 24 Nov 2023 15:56:14 +0100
Hi,

On Mon, 27 Sep 2021 at 18:28, Zacchaeus Scheffer <zaccysc <at> gmail.com> wrote:

> Seeing as this works fine for x86, I'm guessing that a ghc-pwd is
> being used that was compiled for x86, maybe an error in setting up
> cross compiling?

To my knowledge, the system aarch64 is not supported.  The GHC bootstrap
is currently implemented for x86_64 and i686, only.

Moreover, the Haskell build system does not support cross-builds, again
to my knowledge.

There is no mean to compile git-annex for aarch64.  Therefore, it is
expected that it fails.

Cheers,
simon




Severity set to 'wishlist' from 'normal' Request was from Simon Tournier <zimon.toutoune <at> gmail.com> to control <at> debbugs.gnu.org. (Sat, 25 Nov 2023 11:09:03 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 257 days ago.

Previous Next


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