Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cjdns-21.2 fails to build: error: this #[deprecated] annotation has no effect #202

Open
yurivict opened this issue Oct 3, 2021 · 2 comments

Comments

@yurivict
Copy link

yurivict commented Oct 3, 2021

error: this `#[deprecated]` annotation has no effect
  --> /disk-samsung/freebsd-ports/net/cjdns/work/sodiumoxide-3aa7e8e21b9cd61ad64f4a0ed125d5b1af2cf38d/src/newtype_macros.rs:89:5
   |
89 |       #[deprecated(since="0.2.2", note="Use the `AsRef` or `AsMut` implementation instead")]
   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the unnecessary deprecation attribute
   | 
  ::: /disk-samsung/freebsd-ports/net/cjdns/work/sodiumoxide-3aa7e8e21b9cd61ad64f4a0ed125d5b1af2cf38d/src/randombytes.rs:49:1
   |
49 | / new_type! {
50 | |     /// `Seed` bytes for the deterministic random functions
51 | |     secret Seed(SEEDBYTES);
52 | | }
   | |_- in this macro invocation
   |
   = note: `#[deny(useless_deprecated)]` on by default
   = note: this error originates in the macro `newtype_traits` (in Nightly builds, run with -Z macro-backtrace for more info)

error: this `#[deprecated]` annotation has no effect
   --> /disk-samsung/freebsd-ports/net/cjdns/work/sodiumoxide-3aa7e8e21b9cd61ad64f4a0ed125d5b1af2cf38d/src/newtype_macros.rs:102:5
    |
102 |       #[deprecated(since="0.2.2", note="Use the `AsRef` or `AsMut` implementation instead")]
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the unnecessary deprecation attribute
    | 
   ::: /disk-samsung/freebsd-ports/net/cjdns/work/sodiumoxide-3aa7e8e21b9cd61ad64f4a0ed125d5b1af2cf38d/src/randombytes.rs:49:1
    |
49  | / new_type! {
50  | |     /// `Seed` bytes for the deterministic random functions
51  | |     secret Seed(SEEDBYTES);
52  | | }
    | |_- in this macro invocation
    |
    = note: this error originates in the macro `newtype_traits` (in Nightly builds, run with -Z macro-backtrace for more info)

error: this `#[deprecated]` annotation has no effect
   --> /disk-samsung/freebsd-ports/net/cjdns/work/sodiumoxide-3aa7e8e21b9cd61ad64f4a0ed125d5b1af2cf38d/src/newtype_macros.rs:115:5
    |
115 |       #[deprecated(since="0.2.2", note="Use the `AsRef` or `AsMut` implementation instead")]
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the unnecessary deprecation attribute
    | 
   ::: /disk-samsung/freebsd-ports/net/cjdns/work/sodiumoxide-3aa7e8e21b9cd61ad64f4a0ed125d5b1af2cf38d/src/randombytes.rs:49:1
    |
49  | / new_type! {
50  | |     /// `Seed` bytes for the deterministic random functions
51  | |     secret Seed(SEEDBYTES);
52  | | }
    | |_- in this macro invocation
    |
    = note: this error originates in the macro `newtype_traits` (in Nightly builds, run with -Z macro-backtrace for more info)

rust-1.55.0
clang-11
FreeBSD 13

@kpcyrd
Copy link
Member

kpcyrd commented Oct 3, 2021

This is a build failure in sodiumoxide, can you check if the latest commit from that crate builds on freebsd in general?

@yurivict
Copy link
Author

yurivict commented Oct 8, 2021

The current sodiumoxide revision builds fine on FreeBSD but tests fail with SIGILL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants