guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with removing <config.h> from gen-scmconfig when cross-compi


From: Ludovic Courtès
Subject: Re: Problem with removing <config.h> from gen-scmconfig when cross-compiling
Date: Thu, 13 Mar 2014 19:23:12 +0100
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

Mark H Weaver <address@hidden> skribis:

> address@hidden (Ludovic Courtès) writes:
>
>> (BTW, we can test cross-compilation to GNU/Linux with
>> guix build guile --with-source=guile-2.0.9.xyz.tar.xz 
>> --target=mips64el-linux-gnu.)
>
> I tried this on my x86_64 box with guix master (v0.5-355-g9037ea2),
> freshly built (autoreconf -vfi, configure, make clean, etc) and got
> this:
>
> address@hidden:~/guix$ ./pre-inst-env guix build -K guile 
> --with-source=/home/mhw/guile-2.0.9.239-21a7b-dirty.tar.xz 
> --target=mips64el-linux-gnu
> guix build: warning: ambiguous package specification `guile'
> guix build: warning: choosing guile-2.0.9 from gnu/packages/base.scm:1044:33
> guix build: error: gnu/packages/bootstrap.scm:201:3: guile-bootstrap-2.0: 
> build system `raw' does not support cross builds

Oh, funny.  Here’s what I get:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix build -K guile 
--with-source=$HOME/src/guile/guile-2.0.9.239-21a7b.tar.xz 
--target=mips64el-linux-gnu -n
guix build: warning: ambiguous package specification `guile'
guix build: warning: choosing guile-2.0.9 from gnu/packages/guile.scm:183:43
The following derivations would be built:
   /nix/store/ygji7r8cw9kq53r3y00fyksdck9rbs2l-guile-2.0.9.239-21a7b.drv
   /nix/store/h1f4d4l69svgj4rszz6pdyhz7rahcf2z-binutils-2.23.2.tar.bz2.drv
   /nix/store/gclaxgj109jmrrx795cg254vfykqwmn4-binutils-2.23.2.tar.xz.drv
   /nix/store/zj9nd1ysr1ga8w775l0b0q9m2jncvj5l-libelf-0.8.13.tar.gz.drv
   /nix/store/9zz4g05zagndaklff8jn695r46q85mf4-gcc-4.8.2.tar.xz.drv
   /nix/store/yivpp34iw8f13sf40mrxx0f92mpzmazs-libelf-0.8.13.drv
   /nix/store/9yccsrz3h41wd8nilnlyg4nva5gr9184-bash-light-4.2.drv
   /nix/store/ipy04pgr0r23nprwh39ijzwmikklxvyj-glibc-2.18.tar.xz.drv
   
/nix/store/shm0vybdx80h4s5sagk1pk5mfvhkfa7l-gcc-cross-sans-libc-mips64el-linux-gnu-4.8.2.drv
   /nix/store/6f572clhayc3689i2jz3djqcslh4dn88-libtool-2.4.2.tar.xz.drv
   /nix/store/yifk89n5yn9ibjslkk4s0xn4giq9z6k5-readline-6.2.tar.xz.drv
   /nix/store/mrv5y4brg6cbx7kvib2f2l99v0wispyn-libffi-3.0.13.tar.xz.drv
   /nix/store/ycpg9709lzcvb8mxj50ims0kfs9h2bn2-libffi-3.0.13.drv
   /nix/store/v0jaav7l1vk0bjb9wm6vhac4kpj72cvl-readline-6.2.drv
   /nix/store/a6l4wslz8fh4fvb7xz2dnlb951nrgsbs-ncurses-5.9.drv
   /nix/store/p1k3b0xc1fjfdyy68vjzpbadysbjqzyc-bash-4.2.drv
   /nix/store/9w09gdiz6wabv3r82w2fk67plnck5zm1-libunistring-0.9.3.drv
   /nix/store/qx2a27higncxn4yybcx9402b9fwlm590-libtool-2.4.2.drv
   /nix/store/0lbhn2gifq7bdls5jafjk1gzkcp3zdc0-libgc-7.2d.drv
   /nix/store/kjg76c3wjpy5nx22jbp14ii9j55irs4i-gmp-5.1.3.drv
   
/nix/store/2vrxad9jb73d4x5vicnpbbj638cvm0iw-glibc-cross-mips64el-linux-gnu-2.18.drv
   
/nix/store/pm908g3hjclq5zvzri2n58icb1l2q8zm-linux-libre-headers-cross-mips64el-linux-gnu-3.3.8.drv
   /nix/store/293bbw8x4vmpg1kdjps31sw8r55527ml-guile-2.0.9.239-21a7b.drv
   
/nix/store/ys42q97jxxylrgg9a021zih6pnwphszd-pkg-config-mips64el-linux-gnu-0.27.1.drv
   
/nix/store/j4c0j5annyf1gvrpr9jfwmxan0ggv5w5-gcc-cross-mips64el-linux-gnu-4.8.2.drv
   
/nix/store/x0fvh7r5nmac8r5f621vhdxw5mqgpk95-binutils-cross-mips64el-linux-gnu-2.23.2.drv
--8<---------------cut here---------------end--------------->8---

The solution is to specify the “right” Guile, unambiguously, with:

  -e '(@ (gnu packages guile) guile-2.0)'

and things should work as expected (with Guix commit 257b934 or later,
that is ;-)).

Thanks,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]