Skip to content

error[E0463]: can't find crate for core- with: --prefix=/usr --libdir=/usr/lib/amd64 #141887

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
psumbera opened this issue Jun 2, 2025 · 6 comments
Labels
C-bug Category: This is a bug. regression-from-stable-to-stable Performance or correctness regression from one stable version to another. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@psumbera
Copy link
Contributor

psumbera commented Jun 2, 2025

Rust build fails when using for bootstrap Rust 1.87.0 built with --prefix=/usr --libdir=/usr/lib/amd64 (On Solaris 64 bit libraries need to be placed into /usr/lib/amd64):

Building compiler artifacts (stage0 -> stage1, x86_64-pc-solaris)
warning: `/builds/psumbera/userland-test/components/rust/rustc/build/.cargo/config` is deprecated in favor of `config.toml`
note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`
   Compiling proc-macro2 v1.0.93
   Compiling unicode-ident v1.0.14
   Compiling libc v0.2.169
   Compiling cfg-if v1.0.0
error[E0463]: can't find crate for `core`
  |
  = note: the `x86_64-pc-solaris` target may not be installed
  = help: consider downloading the target with `rustup target add x86_64-pc-solaris`
  = help: consider building the standard library from source with `cargo build -Zbuild-std`

For more information about this error, try `rustc --explain E0463`.
error: could not compile `cfg-if` (lib) due to 1 previous error

This used to work with Rust 1.78.0.

@psumbera psumbera added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) C-bug Category: This is a bug. labels Jun 2, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jun 2, 2025
@jieyouxu
Copy link
Member

jieyouxu commented Jun 2, 2025

I believe #141729 fixes this for 1.89.0, but not present in 1.87.0

@jieyouxu jieyouxu removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jun 2, 2025
@jyn514
Copy link
Member

jyn514 commented Jun 2, 2025

@jieyouxu should we backport #141729 to 1.88?

@Mark-Simulacrum Mark-Simulacrum added the regression-from-stable-to-stable Performance or correctness regression from one stable version to another. label Jun 2, 2025
@rustbot rustbot added the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Jun 2, 2025
@Mark-Simulacrum Mark-Simulacrum removed the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Jun 2, 2025
@Mark-Simulacrum
Copy link
Member

I'm not opposed to a backport but given the long time range not sure it's worth it.

@jieyouxu
Copy link
Member

jieyouxu commented Jun 2, 2025

@jieyouxu should we backport #141729 to 1.88?

That's only a beta backport right? Here it's a stable version that is reported. We'd have to do a stable point release, and I don't feel like it's justified alone in absence of other stable backport candidates. And even then I'm not sure if it's worth it, like Mark said.

@jyn514
Copy link
Member

jyn514 commented Jun 2, 2025

That's only a beta backport right? Here it's a stable version that is reported. We'd have to do a stable point release, and I don't feel like it's justified alone in absence of other stable backport candidates. And even then I'm not sure if it's worth it, like Mark said.

right. but we can limit the breakage to only 1.87, instead of breaking both 1.87 and 1.88.

@jieyouxu
Copy link
Member

jieyouxu commented Jun 2, 2025

Ok. I think that's reasonable, let me beta-nominate the PR.

EDIT: nvm you were so much faster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. regression-from-stable-to-stable Performance or correctness regression from one stable version to another. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

No branches or pull requests

5 participants