[Nix-dev] cannot build coreutils
Ben Franksen
ben.franksen at online.de
Fri Apr 25 17:40:34 CEST 2014
Hi All
I am trying to use an older version of gcc (4.4) to compile a new cross-gcc
for RTEMS-4.9, since building with a current gcc fails. I am using the
nixpkgs from the stable nixos-13.10 branch.
I have this
binutils_powerpc_rtems49 = callPackage rtems/4.9/binutils {
stdenv = stdenvAdapters.overrideGCC stdenv gcc44;
targetArch = "powerpc";
};
in packageOverrides inside config.nix. When I try to build, I get an error
in the configure phase for coreutils:
> nix-env -i binutils-powerpc-rtems4.9
replacing old `binutils-powerpc-rtems4.9'
installing `binutils-powerpc-rtems4.9'
these derivations will be built:
/nix/store/6c9ddidbjifccdqs6yxy74iisy9zzq70-gcc-wrapper-4.4.6.drv
/nix/store/7ap9h7j2j4vi92syb6s9c1gaps0l7rz0-glibc-2.17.drv
/nix/store/gkv50ilpimla17bjrn5fbkzby6ycg1yl-binutils-powerpc-rtems4.9.drv
/nix/store/lafw93rpmf3y0gdjd726ny6zraygasd6-coreutils-8.21.drv
/nix/store/m4mvgikl0kkmk2z84xlx830xgx5hiwzi-binutils-2.23.1.drv
/nix/store/vb7x59gb9g8zfy9y066n2acgj7yfgadx-linux-headers-3.7.1.drv
/nix/store/ws89nxbis7dv7604s0dm1442gq944vic-bash-4.2-p42.drv
building path(s) `/nix/store/vhdkzr2za2qly65fy39lxz7k1i6jmg92-
coreutils-8.21'
building /nix/store/vhdkzr2za2qly65fy39lxz7k1i6jmg92-coreutils-8.21
unpacking sources
unpacking source archive /nix/store/zv8flybdrdr5sprbjlrbna64iprll80k-
coreutils-8.21.tar.xz
[...etc...]
checking whether mknod can create fifo without root privileges... configure:
error: in `/tmp/nix-build-coreutils-8.21.drv-0/coreutils-8.21':
configure: error: you should not run configure as root (set
FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
See `config.log' for more details
note: keeping build directory `/tmp/nix-build-coreutils-8.21.drv-0'
builder for `/nix/store/lafw93rpmf3y0gdjd726ny6zraygasd6-coreutils-8.21.drv'
failed with exit code 1
cannot build derivation `/nix/store/6c9ddidbjifccdqs6yxy74iisy9zzq70-gcc-
wrapper-4.4.6.drv': 1 dependencies couldn't be built
cannot build derivation `/nix/store/q81c6v7xhhysgaqnjrdhihjj79bcg4kl-
binutils-powerpc-rtems4.9.drv': 1 dependencies couldn't be built
error: build of `/nix/store/q81c6v7xhhysgaqnjrdhihjj79bcg4kl-binutils-
powerpc-rtems4.9.drv' failed
I think something is wrong here. Why does configure think it is running as
root? I am using the standard multi-user setup with nixbld0..nixbld9 as
build users.
Cheers
Ben
--
"Make it so they have to reboot after every typo." -- Scott Adams
More information about the nix-dev
mailing list