* bug#50858: Installing git-annex for aarch64 fails on ghc build
@ 2021-09-27 22:28 Zacchaeus Scheffer
2021-10-01 20:16 ` Maxime Devos
2023-11-24 14:56 ` Simon Tournier
0 siblings, 2 replies; 4+ messages in thread
From: Zacchaeus Scheffer @ 2021-09-27 22:28 UTC (permalink / raw)
To: 50858
[-- Attachment #1.1: Type: text/plain, Size: 622 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 886 bytes --]
[-- Attachment #2: j0zdnbpdhx81npbk25m4nls5y1h3f5-ghc-7.10.2.drv.bz2 --]
[-- Type: application/x-bzip, Size: 79430 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#50858: Installing git-annex for aarch64 fails on ghc build
2021-09-27 22:28 bug#50858: Installing git-annex for aarch64 fails on ghc build Zacchaeus Scheffer
@ 2021-10-01 20:16 ` Maxime Devos
2021-10-03 12:32 ` Efraim Flashner
2023-11-24 14:56 ` Simon Tournier
1 sibling, 1 reply; 4+ messages in thread
From: Maxime Devos @ 2021-10-01 20:16 UTC (permalink / raw)
To: Zacchaeus Scheffer, 50858
[-- Attachment #1: Type: text/plain, Size: 1036 bytes --]
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
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#50858: Installing git-annex for aarch64 fails on ghc build
2021-10-01 20:16 ` Maxime Devos
@ 2021-10-03 12:32 ` Efraim Flashner
0 siblings, 0 replies; 4+ messages in thread
From: Efraim Flashner @ 2021-10-03 12:32 UTC (permalink / raw)
To: Maxime Devos; +Cc: 50858, Zacchaeus Scheffer
[-- Attachment #1: Type: text/plain, Size: 1857 bytes --]
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@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@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@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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#50858: Installing git-annex for aarch64 fails on ghc build
2021-09-27 22:28 bug#50858: Installing git-annex for aarch64 fails on ghc build Zacchaeus Scheffer
2021-10-01 20:16 ` Maxime Devos
@ 2023-11-24 14:56 ` Simon Tournier
1 sibling, 0 replies; 4+ messages in thread
From: Simon Tournier @ 2023-11-24 14:56 UTC (permalink / raw)
To: Zacchaeus Scheffer; +Cc: 50858
Hi,
On Mon, 27 Sep 2021 at 18:28, Zacchaeus Scheffer <zaccysc@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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-11-25 11:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-27 22:28 bug#50858: Installing git-annex for aarch64 fails on ghc build Zacchaeus Scheffer
2021-10-01 20:16 ` Maxime Devos
2021-10-03 12:32 ` Efraim Flashner
2023-11-24 14:56 ` Simon Tournier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).