Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rust-1.84 & git
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
eu47
n00b
n00b


Joined: 06 May 2022
Posts: 25
Location: Edmonton, Canada

PostPosted: Sat Jan 11, 2025 1:05 pm    Post subject: rust-1.84 & git Reply with quote

When trying to update rust from 1.83.0 to 1.84.0 it fails with this:

Code:
Finished `dev` profile [unoptimized] target(s) in 1m 41s
running: /tmp/portage/dev-lang/rust-1.84.0/work/rustc-1.84.0-src/build/bootstrap/debug/bootstrap build -vvv --config=/tmp/portage/dev-lang/rust-1.84.0/work/rustc-1.84.0-src/config.toml -j13
fatal: --local can only be used inside a git repository
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
thread 'main' panicked at src/core/config/config.rs:2908:89:
called `Result::unwrap()` on an `Err` value: "command did not execute successfully: cd \"/tmp/portage/dev-lang/rust-1.84.0/work/rustc-1.84.0-src\" && \"git\" \"rev-list\" \"--author=bors@rust-lang.org\" \"-n1\" \"--first-parent\" \"HEAD\"\nexpected success, got: exit status: 128\n"
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: bootstrap::core::config::config::Config::last_modified_commit
   4: bootstrap::core::config::config::Config::download_ci_rustc_commit
   5: bootstrap::core::config::config::Config::parse_inner
   6: bootstrap::core::config::config::Config::parse
   7: bootstrap::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Traceback (most recent call last):
  File "/tmp/portage/dev-lang/rust-1.84.0/work/rustc-1.84.0-src/./x.py", line 50, in <module>
    bootstrap.main()
  File "/tmp/portage/dev-lang/rust-1.84.0/work/rustc-1.84.0-src/src/bootstrap/bootstrap.py", line 1212, in main
    bootstrap(args)
  File "/tmp/portage/dev-lang/rust-1.84.0/work/rustc-1.84.0-src/src/bootstrap/bootstrap.py", line 1188, in bootstrap
    run(args, env=env, verbose=build.verbose, is_bootstrap=True)
  File "/tmp/portage/dev-lang/rust-1.84.0/work/rustc-1.84.0-src/src/bootstrap/bootstrap.py", line 202, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /tmp/portage/dev-lang/rust-1.84.0/work/rustc-1.84.0-src/build/bootstrap/debug/bootstrap build -vvv --config=/tmp/portage/dev-lang/rust-1.84.0/work/rustc-1.84.0-src/config.toml -j13
 * ERROR: dev-lang/rust-1.84.0::gentoo failed (compile phase):
 *   (no error message)


Any ideas why?
Back to top
View user's profile Send private message
TequilaTR
n00b
n00b


Joined: 01 Feb 2005
Posts: 68

PostPosted: Sat Jan 11, 2025 1:40 pm    Post subject: Reply with quote

Same here.

I guess this got overlooked. Either wait, as this should be a rather obvious case, or file a Bug here: https://bugs.gentoo.org/ (i checked, but didn't find anything yet).
Maybe one can modify the build or wrap it artificially in git. But i guess the experts should check that.

For me i put it to package.mask for a few days.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22974

PostPosted: Sat Jan 11, 2025 3:09 pm    Post subject: Reply with quote

As I read that output, the Rust build assumes it will always be run in a git repository, and panics and dies if you try to run it outside one. This seems like a bug in the Rust build system to me. It should gracefully recover from the inability to access git metadata. The ebuild is running the build outside a git repository, probably using a tarball export of the released revision. I see dev-lang/rust-1.84.0 - [meson] RuntimeError: failed to run: /.../bootstrap build -vvv --config=/.../config.toml -j4, which has the same error in its log. The text written in the bug does not directly reference the error. You need to fetch and decompress dev-lang:rust-1.84.0:20250111-113039.log.xz to see it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum