Subject: bug#54793: closed (Re: bug#54793: guile-fibers does not cross-compile)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 14 Apr 2022 12:52:02 +0000

Your bug report

#54793: guile-fibers does not cross-compile

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
54793: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=54793
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#54793: guile-fibers does not cross-compile
From: Ludovic Courtès <[email-masked]>
To: Mathieu Othacehe <[email-masked]>
Cc: [email-masked]
Date: Thu, 14 Apr 2022 14:50:33 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi!

Mathieu Othacehe <[email-masked]> skribis:

> guile-fibers does not cross-compile, the error is the following:
>
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> In procedure dlopen: file "/tmp/guix-build-guile-fibers-1.1.0.drv-0/fibers-1.1.0/.libs/epoll.so", message "/tmp/guix-build-guile-fibers-1.1.0.drv-0/fibers-1.1.0/.libs/epoll.so: wrong ELF class: ELFCLASS32"

I pushed cross-compilation support upstream:

  c4756b9 epoll: Do not refer to 'epoll.so'-provided variables at expansion time.
  393ecc6 build: Pass '--target' and '-L' to 'guild compile' when cross-compiling.
  e5fa008 build: Do not load 'epoll.so' during cross-compilation.

… and an equivalent fix in Guix:

  1f82602153 gnu: [email-masked]: Support cross-compilation.

Thanks!

Ludo’.

Subject: guile-fibers does not cross-compile
From: Mathieu Othacehe <[email-masked]>
To: [email-masked]
Date: Fri, 08 Apr 2022 17:37:18 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

guile-fibers does not cross-compile, the error is the following:

--8<---------------cut here---------------start------------->8---
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure dlopen: file "/tmp/guix-build-guile-fibers-1.1.0.drv-0/fibers-1.1.0/.libs/epoll.so", message "/tmp/guix-build-guile-fibers-1.1.0.drv-0/fibers-1.1.0/.libs/epoll.so: wrong ELF class: ELFCLASS32"
--8<---------------cut here---------------end--------------->8---

It breaks the build of novena, pine64 and pinebook-pro images, see:
https://ci.guix.gnu.org/eval/216001?status=failed.

Thanks,

Mathieu