!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

575 Members
124 Servers

Load older messages


SenderMessageTime
13 Jul 2025
@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
@emilazy:matrix.orgemilywith no environment variables?21:27:09
@quadradical:federated.nexusQuadRadical (Ping)correct21:27:13
@quadradical:federated.nexusQuadRadical (Ping)and strictDeps21:27:18
@emilazy:matrix.orgemily what if you drop udev from pkgsBuildBuild and add pkg-config to nativeBuildInputs as well as depsBuildBuild? 21:27:34
@emilazy:matrix.orgemily * what if you drop udev from depsBuildBuild and add pkg-config to nativeBuildInputs as well as depsBuildBuild? 21:27:41
@quadradical:federated.nexusQuadRadical (Ping)sure will try21:27:58
@quadradical:federated.nexusQuadRadical (Ping) fails 21:28:39
@quadradical:federated.nexusQuadRadical (Ping)
The system library `devmapper` required by crate `devicemapper-sys` was not found.
       >   The file `devmapper.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
       >   PKG_CONFIG_PATH contains the following:
       >       - /nix/store/dgkyx5chvihgvmgb8pvc8qxq4gqm37b6-systemd-minimal-libs-aarch64-unknown-linux-gnu-257.6-dev/lib/pkgconfig
       >       - /nix/store/dgkyx5chvihgvmgb8pvc8qxq4gqm37b6-systemd-minimal-libs-aarch64-unknown-linux-gnu-257.6-dev/share/pkgconfig
       >
       >   HINT: you may need to install a package such as devmapper, devmapper-dev or devmapper-devel.The system library `devmapper` required by crate `devicemapper-sys` was not found.
       >   The file `devmapper.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
       >   PKG_CONFIG_PATH contains the following:
       >       - /nix/store/dgkyx5chvihgvmgb8pvc8qxq4gqm37b6-systemd-minimal-libs-aarch64-unknown-linux-gnu-257.6-dev/lib/pkgconfig
       >       - /nix/store/dgkyx5chvihgvmgb8pvc8qxq4gqm37b6-systemd-minimal-libs-aarch64-unknown-linux-gnu-257.6-dev/share/pkgconfig
       >
       >   HINT: you may need to install a package such as devmapper, devmapper-dev or devmapper-devel.
21:28:46

Show newer messages


Back to Room ListRoom Version: 6