question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG]: rustc_codegen_gcc not updating?

See original GitHub issue

Describe the bug

It seems the compiler rustccggcc-master is not being updated. The version shown in here for example (rustc 1.56.0-nightly (ccffcafd5 2021-08-11)) is 5 months old. I can also confirm that it generates code that should not be generated anymore.

Note: I think I might know what could cause this issue: I sometimes rewrote the history in this git repo and also in this one. Could that be the problem?

Steps to reproduce

Compile any Rust code with rustccggcc-master and look at the compiler version.

Expected behavior

The version should be the same (or close to) the one in this file (nightly-2021-12-30).

Reproduction link

https://godbolt.org/z/s9WTrdx8o

Screenshots

Not applicable

Operating System

No response

Browser version

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
dkmcommented, Jan 16, 2022

It’s possible that the version number is cached somewhere… But if you can confirm codegen is really from latest code, that’s great.

One way to “see” it, is to disable filters and check the assembly file near the end https://godbolt.org/z/396nMs919

        .ident  "GCC: (Compiler-Explorer-Build-cggcc-e690fb12731eb5f86d4c88400a344f65607af385-gcc-13789ac0a9f3e2ee42e38927e657a910df793de5) 12.0.0 20220102 (experimental)"

We can see the diff between the info version in the UI ccff..... and the above. That’s the rustc version here. Looking at the SHA1 above is correct: e690fb12731eb5f86d4c88400a344f65607af385 points to https://github.com/rust-lang/rustc_codegen_gcc/commit/e690fb12731eb5f86d4c88400a344f65607af385 which is the latest one.

1reaction
antoyocommented, Jan 15, 2022

Ok, I pushed a commit. Let’s see tomorrow if it’s fixed. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

rust-lang/rustc_codegen_gcc: libgccjit AOT codegen for rustc
The primary goal of this project is to be able to compile Rust code on platforms unsupported by LLVM. A secondary goal is...
Read more >
GCC codegen now under rust-lang organization. - Reddit
rust git repo shows rustc_codegen_cranelift is directly included in the repo, not as a submodule. I can see rustc_codegen_llvm (translating MIR ...
Read more >
Compiling Rust with GCC: an update - LWN.net
> Part of the idea is to stabilize rust: right now, there are no bugs in rustc, because the language is defined as...
Read more >
How do I fix the error "couldn't load codegen backend" on ...
I'm using macOS 10.11.6 with Rust 1.30.1 installed via rustup. gcc is Apple LLVM version 8.0.0 (clang-800.0.42.1) .
Read more >
Rust front-end merged in GCC trunk | Hacker News
FSF wants to support Rust as a first-class language in GCC, which means their own implementation and ability to bootstrap without dependence on ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found