Hello all, I'll try the next days whether I can update the pieces. I'm using native armv5tel, not cross builds, as usual in nixos-on-arm.
1) Build a static busybox that works for the purpose. 2) Build release-14.12 or master 3) Commit the busybox to the bootstrap svn repository (if I am correct) 4) Make stdenv reference that busybox Let's hope that'd be enough to go on. armv6 (raspberry pi) should be able to use the armv5tel binary just fine. I bet I have the slowest system of all of the present here... I'll go at my pace. If you fix it earlier, commit or submit PR. :) Regards, Lluís. On Wed, Jan 28, 2015 at 04:29:25PM +0100, Bjørn Forsman wrote: > On 28 January 2015 at 08:42, Luke Clifton <[email protected]> wrote: > [...] > > I once used to think that full system cross compilation was the only way you > > should do things (I was an idealist). But it is a dead end. Unless you have > > thousands of hours to throw at the problem, it won't work. > > Me too. I totally agree :-) > > > Have you made any progress on this yourself? > > Nope, not really. I'm finding the nixpkgs/nixos/stdenv bootstrap > process quite difficult to grap, so I've been putting it off... > > All I have is this branch[1] that has some cross-compilation fixes > (borrowed from Buildroot[2]) for some basic packages (python, systemd, > ...), as a step towards a "cross-compiled bootstrap image" that can be > loaded in QEMU to do further native compilation. > > So far I've been thinking that we need to cross compile a fully > working (although minimal) nixos system for QEMU, but I'm not sure > this is strictly needed. Maybe we can bootstrap nix inside QEMU from a > tiny set of packages (gcc, libc, make)? But I'm not sure how to do it. > @nbp has some ideas: > https://github.com/NixOS/nixpkgs/issues/4963#issuecomment-64956636. > > Best regards, > Bjørn Forsman > > [1] https://github.com/bjornfor/nixpkgs/tree/cross-compile-fixes > [2] http://buildroot.uclibc.org/ > _______________________________________________ > nix-dev mailing list > [email protected] > http://lists.science.uu.nl/mailman/listinfo/nix-dev -- PGP key D4831A8A - https://emailselfdefense.fsf.org/ _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
