unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#28243: Guix cross-compilation doesn't work
@ 2017-08-26 15:58 Manolis Ragkousis
  2017-08-28 23:15 ` Ludovic Courtès
  2020-08-11  8:45 ` Jan Nieuwenhuizen
  0 siblings, 2 replies; 6+ messages in thread
From: Manolis Ragkousis @ 2017-08-26 15:58 UTC (permalink / raw)
  To: 28243

Hello everyone,

In current master (72e2815d18ad688b0a16ce3b3efba1172423cec4)
cross-compilation doesn't work.
Running `guix build --target=i586-pc-gnu -c8 bootstrap-tarballs' or
running `guix build --target=i686-linux-gnu -c8 bootstrap-tarballs'
fail with

phase `set-paths' succeeded after 0.0 seconds
starting phase `install-locale'
warning: failed to install 'en_US.utf8' locale: Invalid argument
phase `install-locale' succeeded after 0.0 seconds
starting phase `unpack'
In execvp of tar: No such file or directory
phase `unpack' failed after 0.0 seconds

http://paste.lisp.org/display/354383

The problem appeared both in master and core-updates before today's
merge. I think the last time I checked if cross-compilation works, must
have been in early July. I am looking for the last working commit.

Manolis

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#28243: Guix cross-compilation doesn't work
  2017-08-26 15:58 bug#28243: Guix cross-compilation doesn't work Manolis Ragkousis
@ 2017-08-28 23:15 ` Ludovic Courtès
  2017-10-09 21:34   ` Ricardo Wurmus
  2020-08-11  8:45 ` Jan Nieuwenhuizen
  1 sibling, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2017-08-28 23:15 UTC (permalink / raw)
  To: Manolis Ragkousis; +Cc: 28243

Hi Manolis,

Manolis Ragkousis <manolis837@gmail.com> skribis:

> In current master (72e2815d18ad688b0a16ce3b3efba1172423cec4)
> cross-compilation doesn't work.

I think that’s an overstatement.  :-)

--8<---------------cut here---------------start------------->8---
ludo@ribbon ~/src/guix$ git describe
v0.13.0-2618-g7f090203d
ludo@ribbon ~/src/guix$ ./pre-inst-env guix build --target=powerpc-linux-gnu coreutils -n
substitute: updating list of substitutes from 'https://bayfront.guixsd.org'... 100.0%
substitute: updating list of substitutes from 'https://berlin.guixsd.org'... 100.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
107.3 MB would be downloaded:
   /gnu/store/pz3hpnyhx81k8sqxfrng632qfir5l5xd-coreutils-8.27-debug
   /gnu/store/dq4hvwqianbhjm2s4prpmcjlw956wlh2-coreutils-8.27
   /gnu/store/6dnnh0037rcam3qhz6ign3wi2wygcfpq-gcc-cross-powerpc-linux-gnu-5.4.0
   /gnu/store/czxzd2xcgjq40v9q02r0138716zwwj9c-acl-2.2.52
   /gnu/store/fc9qv46jrw3fr5bp9ll4rdhp4rl6963l-linux-libre-headers-cross-powerpc-linux-gnu-4.4.47
   /gnu/store/pgj7r7pcf1d051ccikl5bcpjq6dljkbw-glibc-cross-powerpc-linux-gnu-2.25
   /gnu/store/ssmm19p3bz215d604zkpkr4f3indjmds-gcc-cross-sans-libc-powerpc-linux-gnu-5.4.0
   /gnu/store/xw4hp3znb926c576gd4ppqqmfc3s8a8i-gmp-6.1.2
ludo@ribbon ~/src/guix$ ./pre-inst-env guix build --target=arm-linux-gnueabihf coreutils -n
substitute: updating list of substitutes from 'https://bayfront.guixsd.org'... 100.0%
substitute: updating list of substitutes from 'https://berlin.guixsd.org'... 100.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
101.7 MB would be downloaded:
   /gnu/store/4qx8vxizyjgvfivax12snz5ya3k91apd-coreutils-8.27-debug
   /gnu/store/xk249y3917689zm2sgdlpi25xc54nfq6-coreutils-8.27
   /gnu/store/dbzs50qvfnrddshr0nlxddk0cxd3rlh0-acl-2.2.52
   /gnu/store/j2nrcggkcxfbggd56bd4nzpaljr87mwv-gcc-cross-arm-linux-gnueabihf-5.4.0
   /gnu/store/lxs1nmi1a5kp7lz3hk8y2152ipwwpnva-gmp-6.1.2
   /gnu/store/wb4kd860x4ql181n073hzswcqb7l8qha-gcc-cross-sans-libc-arm-linux-gnueabihf-5.4.0
   /gnu/store/z74c0dfgy7vpi0lg9axaz7x40sv9yk9r-glibc-cross-arm-linux-gnueabihf-2.25
$ ./pre-inst-env guix build --target=i586-pc-gnu coreutils -n
substitute: updating list of substitutes from 'https://bayfront.guixsd.org'... 100.0%
substitute: updating list of substitutes from 'https://berlin.guixsd.org'... 100.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
109.0 MB would be downloaded:
   /gnu/store/a719clcz6y9600yjz6kr1smqfk7m9zpj-coreutils-8.27-debug
   /gnu/store/0yjqfa6j3b5a6nddqf0s1q0182sc9xsk-coreutils-8.27
   /gnu/store/4x6yybq64fbp0p08dph4sh0pmx60na6z-gcc-cross-sans-libc-i586-pc-gnu-5.4.0
   /gnu/store/5pzranj6vlc1g1gxcfhasvggz0fczsra-gnumach-headers-cross-i586-pc-gnu-1.8
   /gnu/store/5shv1d962kxs8sfrnasmcvx6yi8j1wkc-gcc-cross-i586-pc-gnu-5.4.0
   /gnu/store/jphd29k0ya151v92qri9awmqy2y5gjdm-hurd-headers-cross-i586-pc-gnu-0.9
   /gnu/store/kgbg5gf7ly6fyk57spxbvrzj31kcvv2g-acl-2.2.52
   /gnu/store/mrpfw505k12c4dp7dik8kf4dgcv0m9g4-gmp-6.1.2
   /gnu/store/p04d6sjgy6pivplvr5avsnxkjwwj9q2v-glibc-cross-i586-pc-gnu-2.23
--8<---------------cut here---------------end--------------->8---

However…

> Running `guix build --target=i586-pc-gnu -c8 bootstrap-tarballs' or
> running `guix build --target=i686-linux-gnu -c8 bootstrap-tarballs'
> fail with
>
> phase `set-paths' succeeded after 0.0 seconds
> starting phase `install-locale'
> warning: failed to install 'en_US.utf8' locale: Invalid argument
> phase `install-locale' succeeded after 0.0 seconds
> starting phase `unpack'
> In execvp of tar: No such file or directory
> phase `unpack' failed after 0.0 seconds
>
> http://paste.lisp.org/display/354383

^ followed by:

builder for `/gnu/store/x3i6zasfc97zrwr4c9lj73mh14x5rdwd-make-boot0-4.2.1.drv' failed with exit code 1

This to me suggests a bug in how grafts are applied in a
cross-compilation context: we shouldn’t be trying to cross-compile
‘make-boot0’ in the first place.  I’m pretty sure passing --no-grafts
avoids the problem (but remember it disables some of the security
updates!).  Can you confirm?

(This was reported before, but apparently not on bug-guix.)

> The problem appeared both in master and core-updates before today's
> merge. I think the last time I checked if cross-compilation works, must
> have been in early July. I am looking for the last working commit.

That can be useful too.

Thanks for the report,
Ludo’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#28243: Guix cross-compilation doesn't work
  2017-08-28 23:15 ` Ludovic Courtès
@ 2017-10-09 21:34   ` Ricardo Wurmus
  2017-10-12 11:12     ` Manolis Ragkousis
  0 siblings, 1 reply; 6+ messages in thread
From: Ricardo Wurmus @ 2017-10-09 21:34 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 28243

Hi Manolis,

Ludovic Courtès <ludo@gnu.org> writes:

>> Running `guix build --target=i586-pc-gnu -c8 bootstrap-tarballs' or
>> running `guix build --target=i686-linux-gnu -c8 bootstrap-tarballs'
>> fail with
>>
>> phase `set-paths' succeeded after 0.0 seconds
>> starting phase `install-locale'
>> warning: failed to install 'en_US.utf8' locale: Invalid argument
>> phase `install-locale' succeeded after 0.0 seconds
>> starting phase `unpack'
>> In execvp of tar: No such file or directory
>> phase `unpack' failed after 0.0 seconds
>>
>> http://paste.lisp.org/display/354383
>
> ^ followed by:
>
> builder for `/gnu/store/x3i6zasfc97zrwr4c9lj73mh14x5rdwd-make-boot0-4.2.1.drv' failed with exit code 1
>
> This to me suggests a bug in how grafts are applied in a
> cross-compilation context: we shouldn’t be trying to cross-compile
> ‘make-boot0’ in the first place.  I’m pretty sure passing --no-grafts
> avoids the problem (but remember it disables some of the security
> updates!).  Can you confirm?

Have you been able to confirm this?

I just wanted to do this on darnassus, but guix-daemon is not running
there, and I cannot seem to get it to build software as a user, because
obviously I cannot write to /gnu/store.

Could you give me a hint how to run guix on Darnassus?

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#28243: Guix cross-compilation doesn't work
  2017-10-09 21:34   ` Ricardo Wurmus
@ 2017-10-12 11:12     ` Manolis Ragkousis
  2017-10-12 21:53       ` Ricardo Wurmus
  0 siblings, 1 reply; 6+ messages in thread
From: Manolis Ragkousis @ 2017-10-12 11:12 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 28243

Hello Ricardo,

On 10/10/17 00:34, Ricardo Wurmus wrote:

> Have you been able to confirm this?
> 
> I just wanted to do this on darnassus, but guix-daemon is not running
> there, and I cannot seem to get it to build software as a user, because
> obviously I cannot write to /gnu/store.
> 
> Could you give me a hint how to run guix on Darnassus?

While disabling grafts does solve some of the issue, it's still not able
to cross-build everything and I didn't have time to look at it.

I could start the guix-daemon in darnassus for you to work on, by just
building guix as a user and using ./pre-inst-env, but I am afraid it
will create problems to darnassus. And Richard is using it for testing
things on the Hurd.

May I suggest giving you access to a local Hurd machine I have here so
you can hack as much as you want without worrying about side effects?

Manolis

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#28243: Guix cross-compilation doesn't work
  2017-10-12 11:12     ` Manolis Ragkousis
@ 2017-10-12 21:53       ` Ricardo Wurmus
  0 siblings, 0 replies; 6+ messages in thread
From: Ricardo Wurmus @ 2017-10-12 21:53 UTC (permalink / raw)
  To: Manolis Ragkousis; +Cc: 28243

[-- Attachment #1: Type: text/plain, Size: 250 bytes --]


Hi Manolis,

> May I suggest giving you access to a local Hurd machine I have here so
> you can hack as much as you want without worrying about side effects?

thanks, that’s a very kind offer.  I’d appreciate it.
Attached is my SSH public key.


[-- Attachment #2: id_rsa.hurd.pub --]
[-- Type: application/octet-stream, Size: 398 bytes --]

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDRm8wgTkg5l84RL+Ot35CDStq+OHByPGoKml2mlq+47mY8vmK3uGcJXtx8EtGtHa/13mHAOJn8CS3B4hCl+cAYl1651OVWDrY0ZhQRFPuq65YlCixaFJUNfeMOVD6oVRuEFy3M7fsuSicW/qQ27BjqNwm/7oToVp4Ncs2V0FEoqyNiJ1msgxHRWfqrXblTR+crQrfXH/Xm3wh26ax4Ahq2I/oJrN7zoI8RQnqklc+21jtZgaQr9AGZX1mM5DIvdxjY/7U52DujInAkOtYvmmMRD1z7l/7VUbLeYx9dm7bqwwaSuTOlpcyoNuligwRmJM5iD1srNLEs4aKjZetdekYz rekado@darnassus

[-- Attachment #3: Type: text/plain, Size: 90 bytes --]


-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#28243: Guix cross-compilation doesn't work
  2017-08-26 15:58 bug#28243: Guix cross-compilation doesn't work Manolis Ragkousis
  2017-08-28 23:15 ` Ludovic Courtès
@ 2020-08-11  8:45 ` Jan Nieuwenhuizen
  1 sibling, 0 replies; 6+ messages in thread
From: Jan Nieuwenhuizen @ 2020-08-11  8:45 UTC (permalink / raw)
  To: 28243-done

Manolis Ragkousis writes:

This has been fixed since 6741f543e6f09069961edd741cd210b7f49aadcc
that adds bootstrap tarballs for the Hurd.

Thanks,
Janneke

-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-08-11  8:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-26 15:58 bug#28243: Guix cross-compilation doesn't work Manolis Ragkousis
2017-08-28 23:15 ` Ludovic Courtès
2017-10-09 21:34   ` Ricardo Wurmus
2017-10-12 11:12     ` Manolis Ragkousis
2017-10-12 21:53       ` Ricardo Wurmus
2020-08-11  8:45 ` Jan Nieuwenhuizen

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