Bug 1987965 - rust-clap: FTBFS in Fedora rawhide/f35
Summary: rust-clap: FTBFS in Fedora rawhide/f35
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rust-clap
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rust SIG
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F35FTBFS F36FTBFS
TreeView+ depends on / blocked
 
Reported: 2021-07-29 17:06 UTC by Fedora Release Engineering
Modified: 2021-11-29 01:11 UTC (History)
5 users (show)

Fixed In Version: rust-clap-3.0.0~beta.5-2.fc36 rust-clap-3.0.0~beta.5-2.fc35 rust-clap-3.0.0~beta.5-2.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-21 17:48:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
build.log (32.00 KB, text/plain)
2021-07-29 17:06 UTC, Fedora Release Engineering
no flags Details
root.log (32.00 KB, text/plain)
2021-07-29 17:06 UTC, Fedora Release Engineering
no flags Details
state.log (1020 bytes, text/plain)
2021-07-29 17:06 UTC, Fedora Release Engineering
no flags Details

Description Fedora Release Engineering 2021-07-29 17:06:08 UTC
rust-clap failed to build from source in Fedora rawhide/f35

https://koji.fedoraproject.org/koji/taskinfo?taskID=72496009


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Please fix rust-clap at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
rust-clap will be orphaned. Before branching of Fedora 36,
rust-clap will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2021-07-29 17:06:13 UTC
Created attachment 1808723 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Fedora Release Engineering 2021-07-29 17:06:16 UTC
Created attachment 1808724 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2021-07-29 17:06:18 UTC
Created attachment 1808725 [details]
state.log

Comment 4 Fabio Valentini 2021-07-30 09:18:10 UTC
This seems to be caused by either an LLVM or Rust bug that is encountered when compiling a massive number of doctests in parallel on i686:

error: ran out of registers during register allocation
LLVM ERROR: Cannot emit physreg copy instruction
Couldn't compile the test.

Comment 5 Josh Stone 2021-07-30 18:38:40 UTC
I would call that an LLVM bug first, unless we find something specific that Rust is doing wrong.

Comment 6 Fabio Valentini 2021-07-30 19:47:33 UTC
Do you know if there's a way to limit parallelism for building doctests?
It seems like rustdoc does not limit the number of compile tasks it launches in parallel at all, which might contribute to this issue.

Comment 7 Josh Stone 2021-07-30 21:53:18 UTC
The parallelism should default to the number of logical cpus, but you can set RUST_TEST_THREADS=1 (or any number).

Comment 8 Ben Cotton 2021-08-10 13:30:14 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle.
Changing version to 35.

Comment 9 Fabio Valentini 2021-08-11 13:10:58 UTC
Ok ... I ran a scratch build with RUST_TEST_THREADS=1, and the i686 issue is still the same:
https://koji.fedoraproject.org/koji/taskinfo?taskID=73671680

---- src/build/arg_group.rs - build::arg_group::ArgGroup::arg (line 119) stdout ----
error: ran out of registers during register allocation
LLVM ERROR: Cannot emit physreg copy instruction
Couldn't compile the test.

Not sure how LLVM would ever run out of registers during code generation ...

Comment 10 Fedora Update System 2021-11-21 17:48:11 UTC
FEDORA-2021-d30f9d81fe has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2021-11-21 17:50:48 UTC
FEDORA-2021-1937205ae5 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-1937205ae5

Comment 12 Fedora Update System 2021-11-21 17:55:05 UTC
FEDORA-2021-b9e6038b3b has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-b9e6038b3b

Comment 13 Fedora Update System 2021-11-22 02:26:49 UTC
FEDORA-2021-1937205ae5 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-1937205ae5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-1937205ae5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 14 Fedora Update System 2021-11-22 02:32:13 UTC
FEDORA-2021-b9e6038b3b has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-b9e6038b3b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-b9e6038b3b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 Fedora Update System 2021-11-24 09:13:58 UTC
FEDORA-2021-b9e6038b3b has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-b9e6038b3b

Comment 16 Fedora Update System 2021-11-24 09:57:43 UTC
FEDORA-2021-1937205ae5 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-1937205ae5

Comment 17 Fedora Update System 2021-11-25 23:15:58 UTC
FEDORA-2021-b9e6038b3b has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-b9e6038b3b

Comment 18 Fedora Update System 2021-11-26 02:15:26 UTC
FEDORA-2021-1937205ae5 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-1937205ae5

Comment 19 Fedora Update System 2021-11-26 03:04:22 UTC
FEDORA-2021-b9e6038b3b has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-b9e6038b3b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-b9e6038b3b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 20 Fedora Update System 2021-11-26 03:12:42 UTC
FEDORA-2021-1937205ae5 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-1937205ae5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-1937205ae5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 21 Fedora Update System 2021-11-27 01:10:11 UTC
FEDORA-2021-1937205ae5 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 22 Fedora Update System 2021-11-29 01:11:03 UTC
FEDORA-2021-b9e6038b3b has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.