Subject: Re: bug#11645: Unable to cross compile guile 2.0.5 for MIPS/PPC on x86_64
From: [email-masked] (Ludovic Courtès)
To: "Marinescu\, Bogdan A" <[email-masked]>
Cc: [email-masked]
Date: Wed, 20 Jun 2012 15:34:09 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

"Marinescu, Bogdan A" <[email-masked]> skribis:

> Compiling guile 2.0.5 for MIPS and PowerPC (both in big endian mode)
> fails with a segmentation fault. guile 2.0.5 is built first for x86_64
> and this version is used to cross-compile guile for MIPS. The
> compilation stops with this error:
>
> GUILE_AUTO_COMPILE=0      \
>   ../meta/uninstalled-env     \
>   guild compile --target="mips-poky-linux-gnu" -Wunbound-variable
> -Warity-mismatch -Wformat \
>     -L "/ssd/build/tmp/work/mips32-poky-linux/guile-2.0.5-r0/guile-2.0.5/module"
> -L "/ssd/build/tmp/work/mips32-poky-linux/guile-2.0.5-r0/guile-2.0.5/module"
>   \
>     -L "/ssd/build/tmp/work/mips32-poky-linux/guile-2.0.5-r0/guile-2.0.5/guile-readline"
>      \
>     -o "ice-9/occam-channel.go" "ice-9/occam-channel.scm"
> make[2]: *** [ice-9/occam-channel.go] Segmentation fault (core dumped)

This is fixed by commit f3b312a19d70293d7a3407fc4ef479183edd7cca, which
will be in 2.0.6 (the fix was simple, but the investigation trickier ;-)).

There were only little-endian cross-compilation targets under continuous
integration, so I’ve added this one:
<http://hydra.nixos.org/jobset/gnu/guile-2-0>.

Thanks for the report!

Ludo’.