| 23 Oct 2021 |
balsoft | You only want to disable the global registry? | 09:45:14 |
bew | yes | 09:45:19 |
balsoft | Ok then | 09:46:05 |
bew | in my home config I declaratively generate my ~/.config/nix/registry.json for user registry | 09:46:13 |
bew | (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 | 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 | * 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 | hm, I wonder why it's looking for 1.76.0 is that the version you're running on Arch? | 10:02:42 |
bew | hmm yes, I have arch packages boost & boost-libs at version 1.76.0-1 | 10:05:31 |
Enzime | I would do an env | grep boost and look for non-Nix paths | 10:07:51 |
bew | there are no non-Nix paths | 10:11:30 |
bew | boost appears in $buildInputs $NIX_CFLAGS_COMPILE and $NIX_LDFLAGS but all in /nix/store, and all about boost 1.69.0 | 10:14:12 |
Enzime | 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 | https://www.gnu.org/software/autoconf-archive/ax_boost_base.html according to docs, it searches FHS paths | 10:36:26 |
Enzime | I'm guessing this just requires setting the correct flags somewhere to use Nix's boost | 10:36:53 |
bew | in configure script I've seen there is a flag called --with-boost-libdir maybe we could use that? | 10:38:04 |
bew | * in configure script I've seen there is a flag called --with-boost-libdir=DIR maybe we could use that? | 10:38:15 |
Enzime | possibly --with-boost? not sure if that's for a source root | 10:38:24 |
Enzime | I'm not too familiar with C/C++ build systems, but I'm guessing these are flags for ./configure | 10:38:59 |
Enzime | just to confirm you're using $configureFlags with ./configure right? | 10:39:53 |
bew | Redacted or Malformed Event | 10:39:58 |
bew | In reply to @enzime:nixos.dev just to confirm you're using $configureFlags with ./configure right? yes | 10:42:48 |
Enzime | I would try ./configure $configureFlags --with-boost-libdir=$(nix path-info nixpkgs#boost.dev) | 10:44:16 |
Enzime | I'm not sure the exact dir you'll need though | 10:44:27 |
Enzime | I think --with-boost is what you want actually | 10:47:05 |
bew | 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 | --with-boost seems to work, retrying a clean build, thanks! | 10:49:54 |
bew | * 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 | Heyy it works :) will make a PR | 11:14:24 |
bew | 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 |