[Nix-dev] binutils missing libbfd

Nawal Husnoo nawal at husnoo.com
Fri Mar 3 00:27:59 CET 2017


Hi,

I'm trying to build simulavr, using the script below. However, it's not
finding *binutils-2.27/lib/libbfd.so


bfd search- /nix/store/43cpb15i8jjing1gwn8rmbg80lhl8kqv-binutils-2.27/lib/
libbfd.la in "include" and ""... no
configure: error:
    Could not locate libbfd.so/libbfd.a and/or bfd.h.


But it's possible to have it installed:

$ ls /nix/store/*binutils*/lib/libbfd*
/nix/store/2mvblw8kq86ncaidjrp3x4rssy1lhlhi-binutils-2.27/lib/libbfd-2.27.so
/nix/store/2mvblw8kq86ncaidjrp3x4rssy1lhlhi-binutils-2.27/lib/libbfd.la
/nix/store/2mvblw8kq86ncaidjrp3x4rssy1lhlhi-binutils-2.27/lib/libbfd.so
/nix/store/b7sf8p9fgjlrwr1ndwvwdy71lfnn02pv-binutils-2.27-lib/lib/
libbfd-2.27.so
/nix/store/b7sf8p9fgjlrwr1ndwvwdy71lfnn02pv-binutils-2.27-lib/lib/libbfd.la
/nix/store/b7sf8p9fgjlrwr1ndwvwdy71lfnn02pv-binutils-2.27-lib/lib/libbfd.so
/nix/store/cwxfpjwr4fp6mhyfc46pj0apy4w4dwyr-binutils-2.27-lib/lib/
libbfd-2.27.so
/nix/store/cwxfpjwr4fp6mhyfc46pj0apy4w4dwyr-binutils-2.27-lib/lib/libbfd.la
/nix/store/cwxfpjwr4fp6mhyfc46pj0apy4w4dwyr-binutils-2.27-lib/lib/libbfd.so
/nix/store/j1myzr7f9139kckijcy6yqv4l62vml8j-binutils-2.27-lib/lib/
libbfd-2.27.so
/nix/store/j1myzr7f9139kckijcy6yqv4l62vml8j-binutils-2.27-lib/lib/libbfd.la
/nix/store/j1myzr7f9139kckijcy6yqv4l62vml8j-binutils-2.27-lib/lib/libbfd.so


How do I select the right binutils in the default.nix below?

Thanks,

Nawal

{ stdenv, fetchurl, python, doxygen, tcl, tk, binutils }:

stdenv.mkDerivation rec {
  name = "simulavr";

  src = fetchurl {
    url = "
http://download.savannah.nongnu.org/releases/simulavr/simulavr-1.0.0.tar.gz
";
    sha256 =
"39d93faa3eeae2bee15f682dd6a48fb4d4366addd12a2abebb04c99f87809be7";
  };

  configureFlags = [
    "--enable-python"
    "--enable-doxygen-doc"
    "--enable-tcl"
    "--with-bfd=${binutils}/lib/libbfd.la"
  ];

  buildInputs = [ python doxygen tcl tk binutils];

  meta = {
    description = "";
    homepage    = http://www.nongnu.org/simulavr/;
    license     = stdenv.lib.licenses.gpl2;
    platforms   = stdenv.lib.platforms.all;
  };
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20170302/b822dea0/attachment.html>


More information about the nix-dev mailing list