!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

546 Members
118 Servers

Load older messages


SenderMessageTime
18 Oct 2025
@matthewcroughan:defenestrate.itmatthewcroughanWhy is switch-to-configuration rust when I said system.switch.enableNg = false anyway?15:11:29
@matthewcroughan:defenestrate.itmatthewcroughanand why is it rust when nixos-rebuild-ng is python anyway?15:11:59
@k900:0upti.meK900Because old stc has been removed15:12:15
@matthewcroughan:defenestrate.itmatthewcroughanThe log for failure is very very obscure 15:12:45
@matthewcroughan:defenestrate.itmatthewcroughan
@nix { "action": "setPhase", "phase": "checkPhase" }
Executing cargoCheckHook
Running clippy...
   Compiling libc v0.2.174
   Compiling pkg-config v0.3.32
   Compiling crunchy v0.2.4
   Compiling tiny-keccak v2.0.2
   Compiling utf8parse v0.2.2
   Compiling anstyle-query v1.1.3
   Compiling is_terminal_polyfill v1.70.1
   Compiling anstyle v1.0.11
   Compiling colorchoice v1.0.4
   Compiling cfg-if v1.0.1
   Compiling clap_lex v0.7.5
   Compiling once_cell v1.21.3
   Compiling strsim v0.11.1
    Checking memchr v2.7.5
    Checking powerfmt v0.2.0
   Compiling xml-rs v0.8.27
   Compiling cfg_aliases v0.2.1
   Compiling anyhow v1.0.98
    Checking time-core v0.1.4
    Checking itoa v1.0.15
    Checking hashbrown v0.14.5
    Checking num_threads v0.1.7
   Compiling anstyle-parse v0.2.7
    Checking regex-syntax v0.8.5
    Checking num-conv v0.1.0
    Checking log v0.4.27
    Checking bitflags v2.9.1
   Compiling nix v0.30.1
    Checking glob v0.3.2
    Checking deranged v0.4.0
   Compiling anstream v0.6.19
    Checking aho-corasick v1.1.3
   Compiling clap_builder v4.5.41
   Compiling libdbus-sys v0.2.5
   Compiling getrandom v0.2.16
   Compiling dbus v0.9.7
   Compiling const-random-macro v0.1.16
    Checking regex-automata v0.4.9
    Checking const-random v0.1.18
    Checking hostname v0.4.1
    Checking time v0.3.41
    Checking dlv-list v0.5.2
    Checking ordered-multimap v0.7.3
   Compiling clap v4.5.41
    Checking rust-ini v0.21.2
    Checking syslog v7.0.0
   Compiling dbus-codegen v0.12.0
    Checking regex v1.11.1
   Compiling switch-to-configuration v0.1.0 (/build/src)
error: failed to run custom build command for `switch-to-configuration v0.1.0 (/build/src)`

Caused by:
  could not execute process `/build/src/target/debug/build/switch-to-configuration-dae2ab357d8c799a/build-script-build` (never executed)

Caused by:
  No such file or directory (os error 2)
15:12:53
@matthewcroughan:defenestrate.itmatthewcroughanhow get more logs15:13:33
@matthewcroughan:defenestrate.itmatthewcroughanthe build.rs isn't verbose enough 15:13:37
@qyliss:fairydust.spaceAlyssa Rossstrace in nix-shell is a nice easy way15:16:53
@dramforever:matrix.orgdramforeveri thought macos has that header15:24:32
@emilazy:matrix.orgemilyso it does15:56:25
@dramforever:matrix.orgdramforeveroh no, is it wrong dynamic linker or something16:00:54
@dramforever:matrix.orgdramforeverthe build.rs just uses unwrap(), so this isn't even in build.rs16:01:35
@dramforever:matrix.orgdramforeverunrelatedly, i don't know if this is excessive but it seems justified to: https://github.com/NixOS/nixpkgs/pull/45325916:04:19
@matthewcroughan:defenestrate.itmatthewcroughanSeems good to me, I don't know how to test the mercurial stuff with google-re216:05:35
@matthewcroughan:defenestrate.itmatthewcroughan* Seems good to me, I don't know how to test the mercurial stuff with google-re2 though16:05:38
@matthewcroughan:defenestrate.itmatthewcroughanI mean it might build, but who knows whether it works at runtime with mercurial the same exact way that is expected16:06:30
@dramforever:matrix.orgdramforeveri checked the code in mercurial and it does runtime checks for feature testing16:07:28
@dramforever:matrix.orgdramforeverlike for example if it's missing test_match it uses match instead16:07:42
@dramforever:matrix.orgdramforever oh they even have code that add fb-re2 compat https://phab.mercurial-scm.org/D10284 16:11:18
@dramforever:matrix.orgdramforeverso mercurial most definitely does not specifically depend on fb-re216:12:48
@dramforever:matrix.orgdramforeverand given that the actual regex works the same under the hood, i really doubt there will be any problems16:13:12
@dramforever:matrix.orgdramforeveroh they also catch re2 errors and fall back to normal re16:13:44
@matthewcroughan:defenestrate.itmatthewcroughanso they even noticed that the code was bad and then fallback16:19:10
@matthewcroughan:defenestrate.itmatthewcroughanlolwut16:19:11
@matthewcroughan:defenestrate.itmatthewcroughanBah so close to making a fully switchable system by swapping Nix out for Lix 16:19:47
@matthewcroughan:defenestrate.itmatthewcroughanBut Lix fails with llvm in ways that nix doesn't 16:20:01
@matthewcroughan:defenestrate.itmatthewcroughan
FAILED: [code=1] lix/libutil/liblixutil.so.p/processes.cc.o
aarch64-unknown-linux-musl-clang++ -Ilix/libutil/liblixutil.so.p -Ilix/libutil -I../lix/libutil -I. -I.. -flto -fdiagnostics-color=always -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -fpch-instantiate-templates -include-pch lix/libutil/liblixutil.so.p/precompiled-headers.hh.pch -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++23 -O2 -g -DLIX_UR_COMPILER_UWU -fp>
../lix/libutil/processes.cc:249:17: warning: parentheses were disambiguated as redundant parentheses around declaration of variable named 'stdout' [-Wvexing-parse]
  249 |     std::string stdout;
      |                 ^~~~~~
/nix/store/4w3bhgsi1al9v1jwgk9vc6ch20l7ynba-musl-aarch64-unknown-linux-musl-1.2.5-dev/include/stdio.h:67:16: note: expanded from macro 'stdout'
   67 | #define stdout (stdout)
      |                ^~~~~~~~
../lix/libutil/processes.cc:249:17: note: add a variable name to declare a 'std::string' (aka 'basic_string<char>') initialized with 'stdout'
  249 |     std::string stdout;
      |                 ^
      |                  varname
/nix/store/4w3bhgsi1al9v1jwgk9vc6ch20l7ynba-musl-aarch64-unknown-linux-musl-1.2.5-dev/include/stdio.h:67:16: note: expanded from macro 'stdout'
   67 | #define stdout (stdout)
      |                ^
../lix/libutil/processes.cc:249:5: note: add enclosing parentheses to perform a function-style cast
  249 |     std::string stdout;
      |     ^
      |     (                 )
../lix/libutil/processes.cc:249:17: note: remove parentheses to silence this warning
  249 |     std::string stdout;
      |                 ^
/nix/store/4w3bhgsi1al9v1jwgk9vc6ch20l7ynba-musl-aarch64-unknown-linux-musl-1.2.5-dev/include/stdio.h:67:16: note: expanded from macro 'stdout'
   67 | #define stdout (stdout)
      |                ^
../lix/libutil/processes.cc:384:25: error: use of undeclared identifier 'SYS_capset'
  384 |             if (syscall(SYS_capset, &hdr, data)) {
      |                         ^~~~~~~~~~
1 warning and 1 error generated
16:20:18
@dramforever:matrix.orgdramforevernot really bad, more that fb-re2 didn't do bytes16:20:32
@dramforever:matrix.orgdramforeverbut i guess in a way16:20:39
@dramforever:matrix.orgdramforeverthat means it's python 2 brained16:20:49

Show newer messages


Back to Room ListRoom Version: 6