Skip to content

Can't build latest mozilla-central version of third_party/rust/autocfg using either rustc 1.68.0 or rustc 1.69.0-beta.1 #109485

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

Closed
mac198442 opened this issue Mar 22, 2023 · 3 comments
Labels
C-bug Category: This is a bug.

Comments

@mac198442
Copy link

I tried this code:

<code>

I expected to see this happen: explanation

Instead, this happened: explanation

Meta

rustc --version --verbose:

<version>
Backtrace

<backtrace>

@mac198442 mac198442 added the C-bug Category: This is a bug. label Mar 22, 2023
@mac198442
Copy link
Author

mac198442 commented Mar 22, 2023

I can not build mozilla-central/third_party/rust/autocfg using rustc version 1.68.0 or rustc 1.69.0-beta.1 under windows with older AMD CPUs both result in this error:

Compiling autocfg v1.1.0 (C:\Users\mac\mozilla\firefox\mozilla\third_party\rust\autocfg)
error: could not compile autocfg

Caused by:
process didn't exit successfully: rustc --crate-name autocfg 'src\lib.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=79 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=b77804a677fb1e0d -C extra-filename=-b77804a677fb1e0d --out-dir 'c:\Users\mac\mozilla\firefox\mozilla\third_party\rust\autocfg\target\debug\deps' -C 'incremental=c:\Users\mac\mozilla\firefox\mozilla\third_party\rust\autocfg\target\debug\incremental' -L 'dependency=c:\Users\mac\mozilla\firefox\mozilla\third_party\rust\autocfg\target\debug\deps' (exit code: 0xc000001d, STATUS_ILLEGAL_INSTRUCTION)

this compiles successfully using either rustc 1.67.1 or rustc 1.70.0-nightly.

So, it would seem the issue is known and has been fixed but the fix really needs to be backported to a 1.68.1 and a newer 1.69.0 beta. It is embarrassing for a compiler to abort compiling legitimate code. This is embarrassing both to the rust project and Mozilla.

@mac198442
Copy link
Author

mac198442 commented Mar 22, 2023

Oh I meant to add the results from various AMD CPUs that i had access to to test this:

FAILS AMD Phenom(tm) II X3 710 Processor 2.60 GHz
FAILS AMD A6-3420M with Radeon(tm) HD Grpahics 1,50 GHz
WORKS AMD A6-4400M APU with Radeon(tm) HD Graphics 2.70 GHz
WORKS AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx 2.30 GHz

@albertlarsan68
Copy link
Member

This issue exists as #108978, please report your results there.

@mac198442 mac198442 changed the title An't build latest mozilla-central version of third_party/rust/autocfg using either rustc 1.68.0 or rustc 1.69.0-berta.1 Can't build latest mozilla-central version of third_party/rust/autocfg using either rustc 1.68.0 or rustc 1.69.0-beta.1 Mar 22, 2023
@albertlarsan68 albertlarsan68 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 22, 2023
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.
Projects
None yet
Development

No branches or pull requests

2 participants