Open ghost opened 1 year ago
I was not able to reproduce, can you provide a repo or steps?
Does a cargo clean
solves the problem?
@albertlarsan68
Not sure, ran cargo build
distrobox guest.
And finally was able to build after running cargo build
in both host and guest, with some attempts removing target dir with rm -r target
.
Also by development enviroment uses nix.
My shell.nix
:
{ pkgs ? (import <nixpkgs> {}) }:
let
rust-overlay = builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz";
pkgs = import <nixpkgs> {
overlays = [(import rust-overlay)];
};
toolchain = pkgs.rust-bin.fromRustupToolchainFile ./toolchain.toml;
in
with pkgs;
mkShell rec {
buildInputs = [
vulkan-headers
vulkan-loader
vulkan-validation-layers
xorg.libXcursor
xorg.libX11
xorg.libXcursor
xorg.libXrandr
xorg.libXi
];
nativeBuildInputs = [
cmake
toolchain
glslang
];
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
}
Maybe related with no using cargo clean
but rm target -r
before build release after debug with nix based rustup
Possibile replication instructions:
nix-shell shell.nix
cargo build
distrobox enter buildbox
cargo build
gets an Errorrm -r target
cargo build
Another error
cargo build
It skips errorI'm hitting this error reproducable on my system.
This is on a system where libssl.so.3
is not readily available (nix-managed system) and thus sqlx seems to require that somewhere down the dependency chain, then leading to an ICE later.
Of course this should error out somehow, but not with an ICE.
Environment:
$ rustc --version
rustc 1.71.1 (eb26296b5 2023-08-03)
$ cargo --version
cargo 1.71.1 (7f1d04c00 2023-07-29)
STR:
$ cargo new --lib ice-crash && cd ice-crash
$ cargo add sqlx@0.7.1 -F runtime-async-std-native-tls -F macros
<snip>
$ cargo build
<snip>
The relevant parts are:
error: libssl.so.3: cannot open shared object file: No such file or directory
and
thread 'rustc' panicked at 'internal error: entered unreachable code', compiler/rustc_resolve/src/lib.rs:1888:67
Full log output
Code
No my package. But my dependencies are:
Meta
rustc --version --verbose
:Error output
No my package
```
```