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

btrfs/crypto/xxhash.h:485:36: error: missing ‘)’ after ‘__has_attribute’ #263

Open
robert-scheck opened this issue Feb 9, 2025 · 2 comments

Comments

@robert-scheck
Copy link
Contributor

Building latest partclone 0.3.33 from release tarball on Fedora Rawhide using GCC 15 fails like this:

In file included from btrfs/crypto/hash.c:19:
./btrfs/crypto/xxhash.h:485:36: error: missing ‘)’ after ‘__has_attribute’
  485 | #if XXH_HAS_C_ATTRIBUTE(fallthrough) || XXH_HAS_CPP_ATTRIBUTE(fallthrough)
      |                                    ^
./btrfs/include/kerncompat.h:287:55: error: missing binary operator before token ‘(’
  287 | #  define fallthrough                   __attribute__((__fallthrough__))
      |                                                       ^
./btrfs/crypto/xxhash.h:468:51: note: in definition of macro ‘XXH_HAS_C_ATTRIBUTE’
  468 | # define XXH_HAS_C_ATTRIBUTE(x) __has_c_attribute(x)
      |                                                   ^
./btrfs/crypto/xxhash.h:485:25: note: in expansion of macro ‘fallthrough’
  485 | #if XXH_HAS_C_ATTRIBUTE(fallthrough) || XXH_HAS_CPP_ATTRIBUTE(fallthrough)
      |                         ^~~~~~~~~~~
@Thomas-Tsai
Copy link
Owner

I create a new Debian with gcc-15 and I have the same problem here.
I would update btrfs-tools.

@robert-scheck
Copy link
Contributor Author

I didn't try this, just had a quick look whether I could find an obvious commit.

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