!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

974 Members
For people hacking on the Nix package manager itself206 Servers

Load older messages


SenderMessageTime
22 Oct 2021
@balsoft:balsoft.rubalsoft 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:balsoft.rubalsoft And then scanForReferences after filtering, and add all the references which are still there 17:58:21
@balsoft:balsoft.rubalsoftWould this be acceptable?17:58:31
23 Oct 2021
@bew:matrix.orgbew joined the room.08:54:28
@bew:matrix.orgbew

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:matrix.orgbewAnyone knows how I can fix this?08:58:00
@bew:matrix.orgbew 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:matrix.orgbew * 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:matrix.orgbew * 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:matrix.orgbewlooks wrong, right?09:32:58
@bew:matrix.orgbewAnd 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:matrix.orgbewI'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:nixos.devEnzimeprobably good enough to run 1.7509:35:21
@bew:matrix.orgbew aand for some reason nix build managed to build nix without errors >< well at least something is working 09:35:38
@bew:matrix.orgbew * aand for some reason nix build finally managed to build nix without errors >< well at least something is working 09:35:47
@enzime:nixos.devEnzime maybe there's some impurities coming in from your base distro when running nix develop 09:36:05
@enzime:nixos.devEnzime that's probably why nix build works fine 09:36:13
@bew:matrix.orgbewhmm.. (now how do I find what impurities.... oh well ^^)09:37:07
@enzime:nixos.devEnzime I would look into LD_LIBRARY_PATH when inside of nix develop 09:38:13
@enzime:nixos.devEnzime also have you tried nix-shell? 09:38:19
@bew:matrix.orgbewFYI 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:nixos.devEnzimeif there aren't any test cases you could write some more :)09:39:52
@bew:matrix.orgbewAnd is there a way to run tests without nix develop / nix-shell ?09:41:20
@enzime:nixos.devEnzime the nix build runs them although that might make for a slow feedback loop :) 09:41:59
@bew:matrix.orgbewI'm retrying a clean build in nix-shell.. we'll see how it goes09:43:12
@bew:matrix.orgbewAnd I didn't have any $LD_LIBRARY_PATH env var09:43:44
@bew:matrix.orgbew * And I didn't have any $LD_LIBRARY_PATH env var when in nix develop 09:43:59
@balsoft:balsoft.rubalsoft
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:matrix.orgbew
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:balsoft.rubalsoftYes09:45:07

Show newer messages


Back to Room ListRoom Version: 6