!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

569 Members
123 Servers

Load older messages


SenderMessageTime
13 Jul 2025
@quadradical:federated.nexusQuadRadical (Ping) i mean its failing to find the pkg-config itself right? 21:20:52
@quadradical:federated.nexusQuadRadical (Ping) i mean its failing to find the pkg-config binary itself right? 21:20:56
@emilazy:matrix.orgemily ok what about depsBuildBuild = [ lvm2 ];, no pkg-config in the deps, but "PKG_CONFIG_${stdenv.buildPlatform.config}" = lib.getExe (pkgsBuildBuild.pkg-config); 21:21:06
@emilazy:matrix.orgemilythrowing stuff at the wall to see if it sticks21:21:10
@quadradical:federated.nexusQuadRadical (Ping)will try21:22:11
@quadradical:federated.nexusQuadRadical (Ping)OH21:22:31
@quadradical:federated.nexusQuadRadical (Ping)I MAY HAVE BEEN STUPID21:22:34
@quadradical:federated.nexusQuadRadical (Ping)i was most certainly stupid21:22:37
@quadradical:federated.nexusQuadRadical (Ping) i may have declared an array called pkgsBuildBuild instead of depsBuildBuild haha... whoops 21:22:56
@emilazy:matrix.orgemilyoh yeah that would do it21:23:10
@quadradical:federated.nexusQuadRadical (Ping)wait no it still failed21:23:14
@emilazy:matrix.orgemilyI'm still not sure the variables are getting mangled right but21:23:16
@quadradical:federated.nexusQuadRadical (Ping) if i actually do the right name its this error:
       >   thread 'main' panicked at /build/thin-provisioning-tools-1.2.0-vendor/libudev-sys-0.1.4/build.rs:38:41:
       >   called `Result::unwrap()` on an `Err` value: "\npkg-config exited with status code 1\n> PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags libudev\n\nThe system library `libudev` required by crate `libudev-sys` was not found.\nThe file `libudev.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.\nThe PKG_CONFIG_PATH environment variable is not set.\n\nHINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `libudev.pc`.\n"
       >   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
       > warning: build failed, waiting for other jobs to finish...
21:23:57
@quadradical:federated.nexusQuadRadical (Ping)so it cant find libudev21:24:08
@quadradical:federated.nexusQuadRadical (Ping)should i put udev in depsBuildBuild too?21:24:21
@emilazy:matrix.orgemily nah, re-ad pkg-config to nativeBuildInputs 21:24:56
@emilazy:matrix.orgemily * nah, re-add pkg-config to nativeBuildInputs 21:25:00
@emilazy:matrix.orgemilythis is all very silly but21:25:03
@quadradical:federated.nexusQuadRadical (Ping) this caused a different error^^ 21:25:15
@quadradical:federated.nexusQuadRadical (Ping) oke 21:25:18
@emilazy:matrix.orgemilythe problem is that it wants to link some things for the build platform and some for the host platform21:25:32
@emilazy:matrix.orgemilyand the whole thing is kind of confused about which21:25:37
@quadradical:federated.nexusQuadRadical (Ping)right21:25:43
@quadradical:federated.nexusQuadRadical (Ping)makes sense21:25:44
@emilazy:matrix.orgemily and we don't seem to do a good job at making sure the variables that the pkg_config crate expects for this stuff are wired up correctly 21:25:55
@quadradical:federated.nexusQuadRadical (Ping)btw21:26:48
@quadradical:federated.nexusQuadRadical (Ping) @emily 21:26:51
@quadradical:federated.nexusQuadRadical (Ping) this builds:
  depsBuildBuild = [
    pkg-config
    lvm2.dev
    udev
  ];
  nativeBuildInputs = [
    rustPlatform.bindgenHook
  ];
  buildInputs = [
    udev
    lvm2
  ];
21:26:55
@quadradical:federated.nexusQuadRadical (Ping)that works fine21:27:00
@quadradical:federated.nexusQuadRadical (Ping)just had to put udev in both21:27:08

Show newer messages


Back to Room ListRoom Version: 6