!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

903 Members
For people hacking on the Nix package manager itself191 Servers

Load older messages


SenderMessageTime
23 Oct 2021
@balsoft:balsoft.rubalsoftYou only want to disable the global registry?09:45:14
@bew:matrix.orgbewyes09:45:19
@balsoft:balsoft.rubalsoftOk then09:46:05
@bew:matrix.orgbew in my home config I declaratively generate my ~/.config/nix/registry.json for user registry 09:46:13
@bew:matrix.orgbew(I wrote about it earlier today FYI: https://discourse.nixos.org/t/how-to-pin-nix-registry-nixpkgs-to-release-channel/14883/3)09:46:58
@bew:matrix.orgbew

nix-shell fails the same way:

[nix-shell:~/Projects/opensource/nix-stuff/nix]$ make
  GEN    doc/manual/nix.json
/home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/bin/nix: error while loading shared libraries: libboost_context.so.1.76.0: cannot open shared object file: No such file or
directory
make: *** [doc/manual/local.mk:55: doc/manual/nix.json] Error 127

:(

09:58:50
@bew:matrix.orgbew *

nix-shell fails the same way:

[nix-shell:~/Projects/opensource/nix-stuff/nix]$ make
  GEN    doc/manual/nix.json
/home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/bin/nix: error while loading shared libraries: libboost_context.so.1.76.0: cannot open shared object file: No such file or
directory
make: *** [doc/manual/local.mk:55: doc/manual/nix.json] Error 127

😢

09:59:04
@enzime:nixos.devEnzime hm, I wonder why it's looking for 1.76.0 is that the version you're running on Arch? 10:02:42
@bew:matrix.orgbewhmm yes, I have arch packages boost & boost-libs at version 1.76.0-110:05:31
@enzime:nixos.devEnzime I would do an env | grep boost and look for non-Nix paths 10:07:51
@bew:matrix.orgbewthere are no non-Nix paths10:11:30
@bew:matrix.orgbewboost appears in $buildInputs $NIX_CFLAGS_COMPILE and $NIX_LDFLAGS but all in /nix/store, and all about boost 1.69.010:14:12
@enzime:nixos.devEnzime
In reply to @bew:matrix.org
boost appears in $buildInputs $NIX_CFLAGS_COMPILE and $NIX_LDFLAGS but all in /nix/store, and all about boost 1.69.0
yeah I had a look, configure.ac uses AX_BOOST_BASE the definition of which you can see in aclocal.m4
10:35:07
@enzime:nixos.devEnzimehttps://www.gnu.org/software/autoconf-archive/ax_boost_base.html according to docs, it searches FHS paths10:36:26
@enzime:nixos.devEnzimeI'm guessing this just requires setting the correct flags somewhere to use Nix's boost10:36:53
@bew:matrix.orgbew in configure script I've seen there is a flag called --with-boost-libdir maybe we could use that? 10:38:04
@bew:matrix.orgbew * in configure script I've seen there is a flag called --with-boost-libdir=DIR maybe we could use that? 10:38:15
@enzime:nixos.devEnzime possibly --with-boost? not sure if that's for a source root 10:38:24
@enzime:nixos.devEnzime I'm not too familiar with C/C++ build systems, but I'm guessing these are flags for ./configure 10:38:59
@enzime:nixos.devEnzime just to confirm you're using $configureFlags with ./configure right? 10:39:53
@bew:matrix.orgbewRedacted or Malformed Event10:39:58
@bew:matrix.orgbew
In reply to @enzime:nixos.dev
just to confirm you're using $configureFlags with ./configure right?
yes
10:42:48
@enzime:nixos.devEnzime I would try ./configure $configureFlags --with-boost-libdir=$(nix path-info nixpkgs#boost.dev) 10:44:16
@enzime:nixos.devEnzimeI'm not sure the exact dir you'll need though10:44:27
@enzime:nixos.devEnzime I think --with-boost is what you want actually 10:47:05
@bew:matrix.orgbew Hmm I tried --with-boost-libdir=/nix/store/w39sq8msn27a205hz0ccawdx98gxj5ar-boost-1.69.0/lib but it complains with configure: error: --with-boost-libdir expected directory name 10:48:32
@bew:matrix.orgbew --with-boost seems to work, retrying a clean build, thanks! 10:49:54
@bew:matrix.orgbew * Hmm I tried --with-boost-libdir=/nix/store/w39sq8msn27a205hz0ccawdx98gxj5ar-boost-1.69.0/lib but it complains with configure: error: --with-boost-libdir expected directory name
I don't know what it wants x)
10:50:17
@bew:matrix.orgbewHeyy it works :) will make a PR11:14:24
@bew:matrix.orgbew Do you know how I can run the tests/flakes.sh test script ? running it with sh doesn't find common.sh, and doing make tests/flakes.sh does nothing 11:34:19

There are no newer messages yet.


Back to Room ListRoom Version: 6