Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#61303 closed defect (invalid)

rust 1.47.0, cargo 0.47.0 fail to build

Reported by: essandess (Steve Smith) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: Cc: g5pw (Aljaž Srebrnič), herbygillot (Herby Gillot)
Port: rust, cargo

Description

I'm trying to update rust to version 1.47.0 and cargo to version 0.47.0.

I'm hitting a lot of compiler errors:

:info:build    Compiling std v0.0.0 (/opt/local/var/macports/build/_opt_local_ports_lang_rust/rust/work/rustc-1.47.0-src/library/std)
:info:build error: unknown lint: `clashing_extern_declarations`
:info:build    --> library/core/src/lib.rs:301:9
:info:build     |
:info:build 301 | #[allow(clashing_extern_declarations)]
:info:build     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:info:build     |
:info:build     = note: `-D unknown-lints` implied by `-D warnings`
:info:build error: unknown lint: `clashing_extern_declarations`
:info:build    --> library/core/src/lib.rs:301:9
:info:build     |
:info:build 301 | #[allow(clashing_extern_declarations)]
:info:build     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:info:build    Compiling hashbrown v0.8.2
:info:build error[E0658]: the `#[track_caller]` attribute is an experimental feature
:info:build   --> library/core/src/ops/index.rs:65:5
:info:build    |
:info:build 65 |     #[track_caller]
:info:build    |     ^^^^^^^^^^^^^^^

Full log attached.

Also see:

Attachments (1)

main.log (786.8 KB) - added by essandess (Steve Smith) 4 years ago.

Download all attachments as: .zip

Change History (6)

Changed 4 years ago by essandess (Steve Smith)

Attachment: main.log added

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

comment:2 Changed 4 years ago by g5pw (Aljaž Srebrnič)

Resolution: invalid
Status: newclosed

Please don’t open tickets for errors that are not in the tree (yet)... the build error is due to the fact that the bootstrap rustc version is too old. A good place to check when trying to update a port is to look at the git history to see how it was updated in the past.

comment:3 Changed 4 years ago by chrstphrchvz (Christopher Chavez)

I think it would be valid to have opened this as an "update" ticket i.e. to request it be updated, but then explaining the difficulty encountered when trying to do so.

comment:4 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

rust and cargo have been updated to 1.47.0 and 0.47.0. Is this ticket still relevant?

comment:5 Changed 4 years ago by g5pw (Aljaž Srebrnič)

No, and it has been closed :)

Note: See TracTickets for help on using tickets.