| 22 Oct 2021 |
balsoft | Ok, I think the best way is to add StorePathSet references = new StorePathSet () or something like that to the interfaces for addToStore and addToStoreFromDump | 17:57:39 |
balsoft | And then scanForReferences after filtering, and add all the references which are still there | 17:58:21 |
balsoft | Would this be acceptable? | 17:58:31 |
| 23 Oct 2021 |
| bew joined the room. | 08:54:28 |
bew | Hello, I'm trying to build Nix on an archlinux system (but that shouldn't matter, right?), I used nix develop then ran the bootstrap, configure and make steps. The make step fails when linking nix with:
% make
LD /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/bin/nix
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: warning: libboost_context.so.1.76.0, needed by /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixexpr.so, not found (try using -rpath or -rpath-link)
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixstore.so: undefined reference to `curl_easy_getinfo@CURL_OPENSSL_4'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixstore.so: undefined reference to `curl_multi_perform@CURL_OPENSSL_4'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixstore.so: undefined reference to `curl_multi_cleanup@CURL_OPENSSL_4'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixstore.so: undefined reference to `curl_global_init@CURL_OPENSSL_4'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixstore.so: undefined reference to `curl_multi_info_read@CURL_OPENSSL_4'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixstore.so: undefined reference to `curl_slist_free_all@CURL_OPENSSL_4'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixstore.so: undefined reference to `curl_easy_strerror@CURL_OPENSSL_4'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixstore.so: undefined reference to `curl_easy_setopt@CURL_OPENSSL_4'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixstore.so: undefined reference to `curl_easy_init@CURL_OPENSSL_4'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixutil.so: undefined reference to `jump_fcontext'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixstore.so: undefined reference to `curl_slist_append@CURL_OPENSSL_4'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixstore.so: undefined reference to `curl_multi_add_handle@CURL_OPENSSL_4'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixstore.so: undefined reference to `curl_multi_remove_handle@CURL_OPENSSL_4'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixstore.so: undefined reference to `curl_multi_setopt@CURL_OPENSSL_4'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixutil.so: undefined reference to `make_fcontext'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixexpr.so: undefined reference to `boost::context::stack_traits::default_size()'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixutil.so: undefined reference to `ontop_fcontext'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixstore.so: undefined reference to `curl_easy_cleanup@CURL_OPENSSL_4'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixexpr.so: undefined reference to `boost::context::stack_traits::page_size()'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixstore.so: undefined reference to `curl_multi_init@CURL_OPENSSL_4'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixstore.so: undefined reference to `curl_multi_strerror@CURL_OPENSSL_4'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixstore.so: undefined reference to `curl_multi_wait@CURL_OPENSSL_4'
/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/lib/libnixstore.so: undefined reference to `curl_easy_reset@CURL_OPENSSL_4'
collect2: error: ld returned 1 exit status
make: *** [mk/lib.mk:118: /home/lesell_b/Projects/opensource/nix-stuff/nix/outputs/out/bin/nix] Error 1
(with current HEAD, commit 4a2b7cc68)
| 08:57:50 |
bew | Anyone knows how I can fix this? | 08:58:00 |
bew | Looking at the boost dependency (in a nix repl):
(builtins.getFlake "path:.").inputs.nixpkgs.legacyPackages.x86_64-linux.boost17x.version I get "1.75.0", but libnixexpr.so seems to require "1.76.0" | 09:31:49 |
bew | * Looking at the boost dependency (in a nix repl):
(builtins.getFlake "path:.").inputs.nixpkgs.legacyPackages.x86_64-linux.boost.version I get "1.75.0", but libnixexpr.so seems to require "1.76.0" | 09:31:59 |
bew | * Looking at the boost dependency (in a nix repl):
(builtins.getFlake "path:.").inputs.nixpkgs.legacyPackages.x86_64-linux.boost.version I get "1.69.0", but libnixexpr.so seems to require "1.76.0" | 09:32:16 |
bew | looks wrong, right? | 09:32:58 |
bew | And looking at the other boost version in the nixpkgs input of the flake, the last boost is 1.75.0, so we can't even have 1.76.0 :( | 09:33:56 |
bew | I'm not sure what do do now.. (maybe I'll just open a PR on nix, and let the CI do its stuff..) | 09:34:27 |
Enzime | probably good enough to run 1.75 | 09:35:21 |
bew | aand for some reason nix build managed to build nix without errors >< well at least something is working | 09:35:38 |
bew | * aand for some reason nix build finally managed to build nix without errors >< well at least something is working | 09:35:47 |
Enzime | maybe there's some impurities coming in from your base distro when running nix develop | 09:36:05 |
Enzime | that's probably why nix build works fine | 09:36:13 |
bew | hmm.. (now how do I find what impurities.... oh well ^^) | 09:37:07 |
Enzime | I would look into LD_LIBRARY_PATH when inside of nix develop | 09:38:13 |
Enzime | also have you tried nix-shell? | 09:38:19 |
bew | FYI I'm making a little change to registry, to solve https://github.com/NixOS/nix/issues/4874 (one of my issues), I did my changes but I can't find test cases. Am I missing something? | 09:38:37 |
Enzime | if there aren't any test cases you could write some more :) | 09:39:52 |
bew | And is there a way to run tests without nix develop / nix-shell ? | 09:41:20 |
Enzime | the nix build runs them although that might make for a slow feedback loop :) | 09:41:59 |
bew | I'm retrying a clean build in nix-shell.. we'll see how it goes | 09:43:12 |
bew | And I didn't have any $LD_LIBRARY_PATH env var | 09:43:44 |
bew | * And I didn't have any $LD_LIBRARY_PATH env var when in nix develop | 09:43:59 |
balsoft | In reply to @bew:matrix.org FYI I'm making a little change to registry, to solve https://github.com/NixOS/nix/issues/4874 (one of my issues), I did my changes but I can't find test cases. Am I missing something? Hm, now there's use-registries = false | 09:44:26 |
bew | In reply to @balsoft:balsoft.ru Hm, now there's use-registries = false but that will disable all registries (even the user one) no? | 09:44:57 |
balsoft | Yes | 09:45:07 |