| 13 Jul 2025 |
QuadRadical (Ping) | hmm | 20:55:25 |
QuadRadical (Ping) | is there anything i can do to debug this? | 20:55:33 |
emily | I bet our bindgen hook is screwy or something. idk this is fishy. | 20:55:33 |
QuadRadical (Ping) | hmm | 20:55:39 |
emily | you can probably try setting the feature flag that was added in ^ to thin-provisioning-tools's Cargo.toml in a patch. | 20:55:52 |
QuadRadical (Ping) | ah okay! | 20:56:35 |
QuadRadical (Ping) | will do ty | 20:57:14 |
emily | I think we're holding pkg-config variables wrong for the crate. going by https://docs.rs/pkg-config/latest/pkg_config/#cross-compilation | 20:57:26 |
QuadRadical (Ping) | interesting | 20:57:41 |
emily | can you try setting some random combination of these
HOST_PKG_CONFIG_PATH = "${pkgsBuildBuild.pkg-config}/bin/pkg-config";
"PKG_CONFIG_PATH_${stdenv.buildPlatform.config}" = "";
| 20:58:59 |
emily | just kind of throwing things at the wall. don't really have the brain tonight to properly debug this | 20:59:11 |
emily | oh! | 20:59:19 |
emily | try strictDeps = true; also | 20:59:22 |
QuadRadical (Ping) | sure | 20:59:37 |
QuadRadical (Ping) | all three | 20:59:38 |
Grimmauld (any/all) | oh yeah i forgot that might hlep | 20:59:38 |
QuadRadical (Ping) | * all three? | 20:59:44 |
Grimmauld (any/all) | strictDeps shouldn't break harder, if it does something else is wrong too | 21:00:22 |
QuadRadical (Ping) | so i put this and also put it in pkgsBuildBuild rather than buildInputs? | 21:00:43 |
QuadRadical (Ping) | adding only strictDeps does nothing | 21:01:43 |
emily | nah leave the deps | 21:01:43 |
QuadRadical (Ping) | ah okay | 21:01:46 |
QuadRadical (Ping) | so | 21:01:48 |
QuadRadical (Ping) | doing strictDeps does nothing | 21:01:54 |
QuadRadical (Ping) | however | 21:01:55 |
QuadRadical (Ping) | "PKG_CONFIG_PATH_${stdenv.buildPlatform.config}" = ""; | 21:02:00 |
QuadRadical (Ping) | this made it error | 21:02:02 |
QuadRadical (Ping) | error: builder for '/nix/store/n787wrc31pgc1dvxmhbr9qgx82qapcyf-thin-provisioning-tools-aarch64-unknown-linux-gnu-1.2.0.drv' failed with exit code 101;
last 25 log lines:
> cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
> cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
> cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
> cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
> cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
> cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
>
> --- stderr
>
> thread 'main' panicked at /build/thin-provisioning-tools-1.2.0-vendor/devicemapper-sys-0.3.2/build.rs:18:19:
> Suitable version of libdevmapper not found:
> pkg-config exited with status code 1
> > PKG_CONFIG_PATH= PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 aarch64-unknown-linux-gnu-pkg-config --libs --cflags devmapper 'devmapper >= 1.02.151'
>
> 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/q83nr91wq640cybqn80b1604inpdnggq-lvm2-aarch64-unknown-linux-gnu-2.03.32-dev/lib/pkgconfig
> - /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.
>
> note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
> warning: build failed, waiting for other jobs to finish...
For full logs, run 'nix log /nix/store/n787wrc31pgc1dvxmhbr9qgx82qapcyf-thin-provisioning-tools-aarch64-unknown-linux-gnu-1.2.0.drv'.
| 21:02:10 |
QuadRadical (Ping) | this is the same error as if i put it in pkgsBuildBuild instead of buildInputs | 21:02:32 |
emily | try "PKG_CONFIG_PATH_${stdenv.buildPlatform.config}" = "${pkgsBuildBuild.lvm2}/lib/pkg-config"; | 21:02:58 |