Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 779970 - dev-lang/rust-1.51.0 doesn't build: error: panic message is not a string literal
Summary: dev-lang/rust-1.51.0 doesn't build: error: panic message is not a string literal
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-04 08:35 UTC by Alexey
Modified: 2021-04-05 04:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,74.56 KB, text/x-log)
2021-04-04 08:35 UTC, Alexey
Details
emerge --info (file_779970.txt,5.26 KB, text/plain)
2021-04-04 08:37 UTC, Alexey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey 2021-04-04 08:35:27 UTC
Created attachment 697140 [details]
build.log

error: panic message is not a string literal
    --> src/bootstrap/builder.rs:1493:24
     |
1493 |                 panic!(out);
     |                        ^^^
     |
     = note: `-D non-fmt-panic` implied by `-D warnings`
     = note: this is no longer accepted in Rust 2021
help: add a "{}" format string to Display the message
     |
1493 |                 panic!("{}", out);
     |                        ^^^^^
help: or use std::panic::panic_any instead
     |
1493 |                 std::panic::panic_any(out);
     |                 ^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

error: could not compile `bootstrap`
Comment 1 Alexey 2021-04-04 08:37:36 UTC
Created attachment 697143 [details]
emerge --info
Comment 2 Patrick Lauer gentoo-dev 2021-04-04 12:45:43 UTC
This seems to only happen when self-compiling rust 1.51 with rust 1.51;
building 1.51 works with rust-1.50
Comment 3 Georgy Yakovlev archtester gentoo-dev 2021-04-05 03:27:11 UTC
That happens from time to time, I’ll check for patches or will limit version to previous.
As alternative - install previous rust-bin or disable sysyem-bootstrap.
Comment 4 Georgy Yakovlev archtester gentoo-dev 2021-04-05 04:22:10 UTC
this will help

https://github.com/rust-lang/rust/commit/31c93397bde772764cda3058e16f9cef61895090#diff-6e3c7e8b58a9a198adc885bced48fff2c5fd9a1ee126ccce52166476a536807f

it does not change the compiler itself, just makes the bootsrtapper build with new rust.


will add it soon.
Comment 5 Larry the Git Cow gentoo-dev 2021-04-05 04:27:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0103a61da2ab319aa179ff4b6e6f638f2b7fa7c

commit a0103a61da2ab319aa179ff4b6e6f638f2b7fa7c
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2021-04-05 04:25:44 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-04-05 04:26:15 +0000

    dev-lang/rust: fix 1.51.0 bootstrap with same version
    
    Closes: https://bugs.gentoo.org/779970
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-lang/rust/files/1.51.0-bootstrap-panic.patch | 43 ++++++++++++++++++++++++
 dev-lang/rust/rust-1.51.0.ebuild                 |  1 +
 2 files changed, 44 insertions(+)