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

Fails to build on dragonfly target with a macro matcher failure #1957

Closed
nagisa opened this issue Oct 25, 2020 · 0 comments · Fixed by #1958
Closed

Fails to build on dragonfly target with a macro matcher failure #1957

nagisa opened this issue Oct 25, 2020 · 0 comments · Fixed by #1958
Labels
C-bug Category: bug

Comments

@nagisa
Copy link
Member

nagisa commented Oct 25, 2020

error: no rules expected the token `#`
Error:    --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.79/src/unix/bsd/freebsdlike/dragonfly/errno.rs:4:5
    |
4   |     #[deprecated(since = "0.2.77", "Use `__errno_location()` instead")]
    |     ^ no rules expected this token in macro call
    | 
   ::: /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.79/src/macros.rs:230:9
    |
230 |         macro_rules! f {
    |         -------------- when calling this macro

From a brief look at the code it seems like f! has not been written in a way that would make it expect an item with attributes, making building of libc fail when this attribute was added.

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

Successfully merging a pull request may close this issue.

1 participant