[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ghc-pkg: No such file or directory

From: Nikita Karetnikov
Subject: ghc-pkg: No such file or directory
Date: Mon, 24 Jun 2013 19:26:12 +0400

I'm trying to package a binary version of GHC (attached), which fails
with the following error:

/nix/store/snrdydzbrw9aqnz569k73dmk67wn1akv-my-coreutils-8.20/bin/install -c -m 
755 -d 
 --force --global-conf 
 update libffi/package.conf.install
 No such file or directory
make[1]: *** [install_packages] Error 127
make: *** [install] Error 2
phase `install' failed after 2 seconds
note: keeping build directory `/tmp/nix-build-ghc-bin-7.0.1.drv-16'
builder for `/nix/store/8ifycdgaisy3n6xsxkm05cklcmra40yw-ghc-bin-7.0.1.drv' 
failed with exit code 1
@ build-failed /nix/store/8ifycdgaisy3n6xsxkm05cklcmra40yw-ghc-bin-7.0.1.drv - 
1 builder for `/nix/store/8ifycdgaisy3n6xsxkm05cklcmra40yw-ghc-bin-7.0.1.drv' 
failed with exit code 1
guix build: error: build failed: build of 
`/nix/store/8ifycdgaisy3n6xsxkm05cklcmra40yw-ghc-bin-7.0.1.drv' failed

I'm not sure what causes the problem.  I don't see anything strange in
makefiles.  Should I patch executables?  Here is a relevant snippet from

    (if stdenv.isLinux then ''
      find . -type f -perm +100 \
          -exec patchelf --interpreter "$(cat 
$NIX_GCC/nix-support/dynamic-linker)" \
          --set-rpath "${ncurses}/lib:${gmp}/lib" {} \;
      sed -i "s|/usr/bin/perl|perl\x00        |" 
      sed -i "s|/usr/bin/gcc|gcc\x00        |" 
      for prog in ld ar gcc strip ranlib; do
        find . -name "setup-config" -exec sed -i 
"s@/usr/bin/address@hidden(type -p $prog)@g" {} \;
     '' else "");

What do you think?

P.S. I'm using a previous version of 'coreutils' (i.e., 'my-coreutils'),
which should be removed from the recipe.

Attachment: ghc.scm
Description: Text document

Attachment: pgp93w1D0fnrZ.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]