cargo warnings with nixos 22.11 rust infrastructure #206

Closed
opened 2022-12-01 12:48:19 +08:00 by sb10q · 7 comments
firmware> warning: unused config key `unstable.target-applies-to-host` in `/build/.cargo/config`
firmware> warning: unused config key `unstable.host-config` in `/build/.cargo/config`

Are those options doing any good for building embedded firmware?

If yes then the solution is probably to update rust/cargo (which we should do anyway).
If no then use appropriate Nix derivation options to get them removed.

``` firmware> warning: unused config key `unstable.target-applies-to-host` in `/build/.cargo/config` firmware> warning: unused config key `unstable.host-config` in `/build/.cargo/config` ``` Are those options doing any good for building embedded firmware? If yes then the solution is probably to update rust/cargo (which we should do anyway). If no then use appropriate Nix derivation options to get them removed.
esavkin was assigned by sb10q 2022-12-01 12:48:19 +08:00
Poster
Owner

NB: this also affects RISC-V ARTIQ.

NB: this also affects RISC-V ARTIQ.

How to reproduce this issue? I tried to compile it, but none of the warnings were emitted.

How to reproduce this issue? I tried to compile it, but none of the warnings were emitted.
Poster
Owner

The hydra logs also contain the warnings so it seems easy to reproduce. nix build .#hydraJobs. ...

The hydra logs also contain the warnings so it seems easy to reproduce. ``nix build .#hydraJobs. ...``

Should be fixed with next NixOS release 470e6130b3

Should be fixed with next NixOS release https://github.com/NixOS/nixpkgs/commit/470e6130b347c5aabc63cd6600ba78fa909e8e2a
Poster
Owner

Did you test it?

Did you test it?

Did you test it?

Well for now unstable repo is unusable, but I cherry-picked that commit to my fork https://github.com/thomasfire/nixpkgs/tree/nixos-22.11 , and it removes the warning. I doubt that they will not introduce new bugs for us, though.

> Did you test it? Well for now unstable repo is unusable, but I cherry-picked that commit to my fork https://github.com/thomasfire/nixpkgs/tree/nixos-22.11 , and it removes the warning. I doubt that they will not introduce new bugs for us, though.
Poster
Owner

Fixed in ddb3703f50

Fixed in ddb3703f5014f83cbd3693b447dfafd89183e305
sb10q closed this issue 2023-05-30 14:44:22 +08:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/artiq-zynq#206
There is no content yet.