Thanks for responding.

Not a bad idea, but curl is already installed on the machine:

[EMAIL PROTECTED]:~/Software/nix-0.12pre13257$ dpkg -l | grep curl
ii curl 7.15.5-1etch1 Get a file from an HTTP, HTTPS, FTP or GOPHE ii libcurl3 7.15.5-1etch1 Multi-protocol file transfer library


The problem appears to be in nix-build. It appears the following C++ code in src/libstore/build.cc generates the error:

...
void DerivationGoal::startBuilder()
{
   startNest(nest, lvlInfo,
format("building path(s) %1%") % showPaths(outputPaths(drv.outputs))) /* Right platform? */
   if (drv.platform != thisSystem)
       throw BuildError(
           format("a `%1%' is required to build `%3%', but I am a `%2%'")
           % drv.platform % thisSystem % drvPath);
...

What's somewhat surprising is that it appears the curl derivation defines "system" correctly:

/nix/store/n0j98b0464xc2n5pchzqh7hzmlvh240v-curl.drv:

Derive([...,("system","i686-linux")])

I haven't followed the code that reads the derivation to set the internal variables in nix-build.

Steve

Pjotr Prins wrote:
Hi Steve,

I am probably wrong, but what if you install curl using apt?

Pj.

On Tue, Nov 18, 2008 at 07:17:36PM -0500, Steve Roggenkamp wrote:
I'm trying to build the installation CD on a Debian etch system (x86_64), but am running into a problem I can't debug.

I've downloaded and built the nix packaging system from Subversion: nix-0.12pre13257. My nixpkgs system is from Subversion revision 13304 and my nixos is revision 13254.

In the toplevel directory for nixos I type in the following command:

nix-build installer/cd-dvd/rescue-cd.nix

A short while later I get a long error message that has the last few lines:

building path(s) `/nix/store/hnmncq9xq7lsfyfq1dxahlnrxi9aamg1-curl'
a `i686-linux' is required to build `/nix/store/n0j98b0464xc2n5pchzqh7hzmlvh240v-curl.drv', but I am a `x86_64-linux' cannot build derivation `/nix/store/l6dc2gn0v0nf4advx5724dr7cbfvc504-stdenv-linux-initial.drv': 1 inputs could not be realised
building path(s) `/nix/store/44gp39nqdj44201b560pggb4v58gm926-gcc.tar.bz2'
cannot build derivation `/nix/store/76mcb3khnihyn1y3lz428vb3xf7v5gym-stdenv-linux-boot.drv': 1 inputs could not be realised cannot build derivation `/nix/store/wfxgd9ir862pryazn6w3z2801sah2lwr-glibc-2.7.drv': 1 inputs could not be realised cannot build derivation `/nix/store/mf64ahifnb9aind36617ndj28w6sk4p0-glibc-2.7-multi.drv': 1 inputs could not be realised cannot build derivation `/nix/store/4p5ngjj4y8rmzn2hmdfs9jh8pdxlq71z-gcc-4.3.1.drv': 1 inputs could not be realised cannot build derivation `/nix/store/l78d0ji8i2m4pxalz662047hz0z2c7sb-grub-0.97-patch-1.7.drv': 1 inputs could not be realised cannot build derivation `/nix/store/2vrrik00rqjx8vhqfxkxb7lfvh5xa4w9-iso9660-image.drv': 1 inputs could not be realised error: build of `/nix/store/2vrrik00rqjx8vhqfxkxb7lfvh5xa4w9-iso9660-image.drv' failed


I've spent quite a bit of time attempting to debug the situation. The best I can figure out is the glibc-2.7-multi is attempting to build both the x86_64 and the i686 version to insure both sets of libraries. As a newbie, I'm having difficulty in determining what I have to change in order to get this to build.

Any help would be appreciated.

TIA,
Steve

_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to