!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

676 Members
Rust153 Servers

Load older messages


SenderMessageTime
15 May 2025
@jh-devv:matrix.org@jh-devv:matrix.org * 15:49:47
@k900:0upti.meK900i686-linux-android is definitely not a supported target15:49:54
@jh-devv:matrix.org@jh-devv:matrix.orgI always get errors "error[E0514]: found crate core compiled by an incompatible version of rustc #931" or similar15:50:02
@jh-devv:matrix.org@jh-devv:matrix.org
In reply to @k900:0upti.me
i686-linux-android is definitely not a supported target
https://doc.rust-lang.org/nightly/rustc/platform-support/android.html#building-the-target
15:51:03
@k900:0upti.meK900Definitely not in upstream Android though15:51:22
@k900:0upti.meK900It might work15:51:26
@jh-devv:matrix.org@jh-devv:matrix.org
In reply to @jh-devv:matrix.org
I always get errors "error[E0514]: found crate core compiled by an incompatible version of rustc #931" or similar
Well, what causes this?
15:52:00
@k900:0upti.meK900Not sure honestly15:52:12
@k900:0upti.meK900Depends on how you're invoking rustc15:52:18
@k900:0upti.meK900Or cargo or whatever15:52:21
@jh-devv:matrix.org@jh-devv:matrix.org
In reply to @k900:0upti.me
Or cargo or whatever
well, from Gradle in Android Studio
15:53:00
@k900:0upti.meK900Yeah I'm going to guess that it's somehow an Android Studio problem15:53:17
@k900:0upti.meK900 I'm not sure how 15:53:25
@jh-devv:matrix.org@jh-devv:matrix.orgUsing "rust-android-gradle" or "cargo-ndk-android'15:53:26
@k900:0upti.meK900But it very likely is15:53:28
@jh-devv:matrix.org@jh-devv:matrix.org
In reply to @k900:0upti.me
But it very likely is
Actually
15:54:25
@jh-devv:matrix.org@jh-devv:matrix.orgI can seem to repro this in a normal zsh shell too15:54:35
@jh-devv:matrix.org@jh-devv:matrix.orgIt basically complains that the targets are build with the wrong version of rust (???)15:55:30
@jh-devv:matrix.org@jh-devv:matrix.orgLike15:55:48
@jh-devv:matrix.org@jh-devv:matrix.org compiled by <insert nix store path> and not <insert current rust version> 15:56:16
@k900:0upti.meK900What exact command are you running in your shell?15:56:40
@jh-devv:matrix.org@jh-devv:matrix.org
In reply to @k900:0upti.me
What exact command are you running in your shell?
let me try if I can find it
15:57:56
@jh-devv:matrix.org@jh-devv:matrix.orgI tried it yesterday15:58:00
@jh-devv:matrix.org@jh-devv:matrix.org
In reply to @k900:0upti.me
What exact command are you running in your shell?
I think the issue with Android studio was that .direnv was not loaded at the right time
16:28:51
@jh-devv:matrix.org@jh-devv:matrix.org

Did

          android-studio = pkgs.android-studio.overrideAttrs (oldAttrs: {
            propagatedBuildInputs = [ toolchain ];
            meta.license = with lib.licenses; [
              asl20 # any free license
            ];
          });
16:29:09
@jh-devv:matrix.org@jh-devv:matrix.orgNow works right a charm16:29:14
@winter:catgirl.cloudWinter joined the room.17:53:30
@winter:catgirl.cloudWinterdoing the 1.87.0 bump17:53:42
@winter:catgirl.cloudWinterwould love to get https://github.com/NixOS/nixpkgs/pull/401281 in the same cycle as we can drop the patch17:54:13
@winter:catgirl.cloudWinter We've been missing some docs deps on at least macOS for several releases, but I don't feel like building more than two rustcs today so I'm going to leave that for a separate PR. 18:25:34

Show newer messages


Back to Room ListRoom Version: 6