[Nix-dev] Can't open /dev/null: Permission denied
stewart mackenzie
setori88 at gmail.com
Sun May 10 17:48:24 CEST 2015
I'm trying to get gnuradio-osmosdr to see the new hackrf package.
when I try compile gnuradio-osmosdr:
`nix-build -A gnuradio-osmosdr` in my nixpkgs cloned repo
I get this:
'''
...
exporting git://git.osmocom.org/gr-osmosdr (rev refs/tags/v0.1.4) into
/nix/store/rkng7dscg1r63mll70vnclf8clbz628y-gr-osmosdr
fatal: open /dev/null or dup failed: Permission denied
error checking the existence of
http://tarballs.nixos.org/sha256/05j9in7yygfgl6nml0rixfvj1bbip982w3l54q05f0vyx8a7xllh:
curl: (23) Failed writing body (0 != 17)
trying http://www.python.org/ftp/python/2.7.9/Python-2.7.9.tar.xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
trying http://prdownloads.sourceforge.net/boost/boost_1_57_0.tar.bz2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:--
--:--:-- 0exporting git://github.com/mossmann/hackrf (rev
refs/tags/v2014.08.1) into
/nix/store/ni6n754xnsdv2xzix7xb7zp53mmg45xa-hackrf
fatal: open /dev/null or dup failed: Permission denied
exporting git://git.osmocom.org/rtl-sdr.git (rev refs/tags/v0.5.3)
into /nix/store/kzrfgg6swxcp6a0gx9bzv491pnd399y7-rtl-sdr
fatal: open /dev/null or dup failed: Permission denied
trying http://prdownloads.sourceforge.net/swig/swig-1.3.40.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:--
--:--:-- 0builder for
‘/nix/store/jbma2ihrv7hkb8fky6fwikj93vfjr4rl-gr-osmosdr.drv’ failed
with exit code 128
builder for ‘/nix/store/gn2qgifclfc25a19v4c9p310ps5yrsra-hackrf.drv’
failed with exit code 128
builder for ‘/nix/store/9avwjnjlpy9f885p3m00ws6lbpnjrfjz-rtl-sdr.drv’
failed with exit code 128
cannot build derivation
‘/nix/store/cd9s7xjrhw6azm2vkp188464nskm7crz-gnuradio-osmosdr-0.1.4.drv’:
1 dependencies couldn't be built
error: build of
‘/nix/store/cd9s7xjrhw6azm2vkp188464nskm7crz-gnuradio-osmosdr-0.1.4.drv’
failed
'''
Finally when I run 'sudo nixos-rebuild --upgrade switch` I get this:
'''
...
building path(s)
‘/nix/store/6g3bbm8663xl3idv33rmnqn47cyxz2l4-hint-0.4.2.2.tar.gz’
49 2986k 49 1479k 0 0 78398 0 0:00:39 0:00:19 0:00:20 84072
trying http://hackage.haskell.org/package/hint-0.4.2.2.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 30079 100 30079 0 0 38008 0 --:--:-- --:--:-- --:--:-- 38008
building path(s) ‘/nix/store/3gymj6p6hpgnq7j77pijf3nwarmf7a3p-initrd-fsinfo’
59 48.3M 59 29.0M 0 0 101k 0 0:08:05 0:04:51
0:03:14 124kbuilding path(s)
‘/nix/store/22rir2biv8761lgqi5n20bjfw89wd9wz-initrd-kmod-blacklist-ubuntu’
Can't open /dev/null: Permission denied
builder for ‘/nix/store/pzmzslny32d6qklv93rv3pqnw8jfjnzk-initrd-kmod-blacklist-ubuntu.drv’
failed with exit code 13
cannot build derivation
‘/nix/store/2wmnjgz196cnkj31phpbnj6mv7is40mm-initrd.drv’: 1
dependencies couldn't be built
killing process 18665
killing process 20968
killing process 21170
killing process 20702
killing process 20822
killing process 21024
building path(s)
‘/nix/store/r41s9knlxr0ygv3nwpvnhrgf17nas5fm-install_flash_player_11_linux.x86_64.tar.gz’
building path(s) ‘/nix/store/dm4xxdzrva2r099lpc6jnrjpz2gm77i1-issue’
building path(s) ‘/nix/store/4gwgmdf1hr6i8br77mkd4n5wpmsc591q-kernel-modules’
building path(s)
‘/nix/store/1chyl3jz2w5xmmkgbk087p0c0bh91k9v-lightdm-gtk-greeter’
building path(s)
‘/nix/store/5071r5g3mvikip2x08hgfhkbgv6r6pnn-mesa-drivers+txc-10.4.5’
building path(s) ‘/nix/store/pxiwgll038y10pmfc0psghzzyakx2dsh-mirrors-list’
building path(s)
‘/nix/store/pa440j2zkpyqp7rsgm3949igib2zc042-nixos-generate-config’
building path(s) ‘/nix/store/x83k97zs9y0rr85bmq9mkbcn519fddns-nixos-help’
cannot build derivation
‘/nix/store/k9hgcmyxmiqdvlllr2spvkiyb546qrqw-nixos-15.05pre61966.75ebc3c.drv’:
1 dependencies couldn't be built
error: build of
‘/nix/store/k9hgcmyxmiqdvlllr2spvkiyb546qrqw-nixos-15.05pre61966.75ebc3c.drv’
failed
'''
More information about the nix-dev
mailing list