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

From: Ludovic Courtès <[email-masked]>
Date: Thu, 14 Apr 2022 14:50:33 +0200

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’.