!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

573 Members
125 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
18 Aug 2025
@artturin:matrix.orgArtturin2 weeks ago20:24:52
@quadradical:federated.nexusQuadRadical (Ping)ahhhh, oke20:25:27
@quadradical:federated.nexusQuadRadical (Ping)i still have this though20:25:39
@quadradical:federated.nexusQuadRadical (Ping)
error: builder for '/nix/store/9ymkhv5grky5wmk1n19icn82cl7v24ph-glycin-loaders-aarch64-unknown-linux-gnu-1.2.3.drv' failed with exit code 1;
       last 25 log lines:
       >    Compiling static_assertions v1.1.0
       >    Compiling rustix v0.38.44
       > error: linker `cc` not found
       >   |
       >   = note: No such file or directory (os error 2)
       >
       > error: could not compile `serde` (build script) due to 1 previous error
       > warning: build failed, waiting for other jobs to finish...
       > error: could not compile `crossbeam-utils` (build script) due to 1 previous error
       > error: could not compile `libc` (build script) due to 1 previous error
       > error: could not compile `proc-macro2` (build script) due to 1 previous error
       > error: could not compile `rustix` (build script) due to 1 previous error
       > [1/12] Merging translations for loaders/glycin-jxl.conf
       > /nix/store/m705ap2d06cz67bl8xssz33rl9axy3pm-gettext-0.25.1/bin/msgfmt: ../loaders/../po/LINGUAS does not exist
       > [2/12] Merging translations for loaders/glycin-image-rs.conf
       > /nix/store/m705ap2d06cz67bl8xssz33rl9axy3pm-gettext-0.25.1/bin/msgfmt: ../loaders/../po/LINGUAS does not exist
       > loaders/tmp-glycin-image-rs:27:0: warning: invalid non-blank line
       > loaders/tmp-glycin-image-rs:31:0: warning: invalid non-blank line
       > [3/12] Merging translations for loaders/glycin-svg.conf
       > /nix/store/m705ap2d06cz67bl8xssz33rl9axy3pm-gettext-0.25.1/bin/msgfmt: ../loaders/../po/LINGUAS does not exist
       > [4/12] Merging translations for loaders/glycin-heif.conf
       > /nix/store/m705ap2d06cz67bl8xssz33rl9axy3pm-gettext-0.25.1/bin/msgfmt: ../loaders/../po/LINGUAS does not exist
       > FAILED: loaders/glycin-heif-bin
       > env CARGO_HOME=/build/glycin-1.2.3/build/cargo-home LOCALEDIR=/nix/store/cckz6c52iwiwbirh05m3fa1sjlhzwi3f-glycin-loaders-aarch64-unknown-linux-gnu-1.2.3/share/locale GIT_DESCRIBE= /nix/store/as0xa9521nz18lgw9a5q3r3x5r4b15pz-aarch64-unknown-linux-gnu-cargo-1.88.0/bin/cargo build --target-dir /build/glycin-1.2.3/build/cargo-target --profile release --manifest-path /build/glycin-1.2.3/Cargo.toml --package glycin-heif
       > ninja: build stopped: subcommand failed.
       For full logs, run 'nix log /nix/store/9ymkhv5grky5wmk1n19icn82cl7v24ph-glycin-loaders-aarch64-unknown-linux-gnu-1.2.3.drv'.
20:25:42
@quadradical:federated.nexusQuadRadical (Ping) but the substitute seemed to work:
        postPatch = lib.optionalString (super.stdenv.buildPlatform != super.stdenv.hostPlatform) ''
          substituteInPlace loaders/meson.build \
            --replace-fail "cargo_target_dir / rust_target / loader," "cargo_target_dir / '${super.stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target / loader,"
        '';
20:25:56
@artturin:matrix.orgArtturin
In reply to @quadradical:federated.nexus
but the substitute seemed to work:
        postPatch = lib.optionalString (super.stdenv.buildPlatform != super.stdenv.hostPlatform) ''
          substituteInPlace loaders/meson.build \
            --replace-fail "cargo_target_dir / rust_target / loader," "cargo_target_dir / '${super.stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target / loader,"
        '';
The error isn't related to that
20:28:13
@artturin:matrix.orgArtturinDid you add the env var20:28:27
@quadradical:federated.nexusQuadRadical (Ping) Yeah I did, I have this overlay:
      glycin-loaders = super.glycin-loaders.overrideAttrs (old: {
        postPatch = lib.optionalString (super.stdenv.buildPlatform != super.stdenv.hostPlatform) ''
          substituteInPlace loaders/meson.build \
            --replace-fail "cargo_target_dir / rust_target / loader," "cargo_target_dir / '${super.stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target / loader,"
        '';
        env.CARGO_BUILD_TARGET = super.stdenv.hostPlatform.rust.rustcTargetSpec;
      });
20:28:48
@quadradical:federated.nexusQuadRadical (Ping)Redacted or Malformed Event20:32:19
@quadradical:federated.nexusQuadRadical (Ping)Redacted or Malformed Event20:32:34
@artturin:matrix.orgArtturin
In reply to @quadradical:federated.nexus
sent an image.
What's in build/cargo-home
20:45:24
@quadradical:federated.nexusQuadRadical (Ping)  .global-cache  .package-cache  .package-cache-mutate 20:46:26
@artturin:matrix.orgArtturin Try
cp -R /build/.cargo $sourceRoot/
20:54:07
@quadradical:federated.nexusQuadRadical (Ping) in postPatch? 20:54:52
@artturin:matrix.orgArtturinYeah20:55:24
@quadradical:federated.nexusQuadRadical (Ping)no difference20:55:32
@quadradical:federated.nexusQuadRadical (Ping)wait no20:55:47
@quadradical:federated.nexusQuadRadical (Ping)i put it in the wrong overlay20:55:51
@quadradical:federated.nexusQuadRadical (Ping)1 sec20:55:52
@quadradical:federated.nexusQuadRadical (Ping) cp: cannot stat '/build/.cargo': No such file or directory 20:56:35
@quadradical:federated.nexusQuadRadical (Ping) should it be build/cargo-home instead? 20:57:20
@artturin:matrix.orgArtturinAhh20:58:32
@artturin:matrix.orgArtturinglycin-loaders doesn't have the cargoSetupHook20:58:50
@artturin:matrix.orgArtturinThat's the issur20:58:53
@artturin:matrix.orgArtturinJust add it like in the other package20:59:05
@artturin:matrix.orgArtturinAnd the copy isn't needed20:59:10
@quadradical:federated.nexusQuadRadical (Ping)ohh ok thanks!20:59:32
@artturin:matrix.orgArtturinIt's what adds the cargo config necessary necessary cross20:59:58
@artturin:matrix.orgArtturin* It's what adds the cargo config filr necessary for cross21:00:41
@artturin:matrix.orgArtturin* It's what adds the cargo config file necessary for cross21:00:57

Show newer messages


Back to Room ListRoom Version: 6