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

do no longer depend on <assert.h> for XXH_STATIC_ASSERT #670

Merged
merged 1 commit into from
Dec 29, 2021
Merged

Conversation

Cyan4973
Copy link
Owner

@Cyan4973 Cyan4973 commented Dec 26, 2021

since some versions of this library are buggy (ex: uclibc).

use _Static_assert instead, which is directly part of the C11 language.

fix #664 .

since some versions are buggy.

Use `_Static_assert` instead, which is part of the C11 language.
@Cyan4973 Cyan4973 merged commit d878e1d into dev Dec 29, 2021
@ThomasWaldmann
Copy link
Contributor

ThomasWaldmann commented Jun 5, 2022

Had a lot of troubles due to this when trying to build borgbackup 1.1.18 release on FreeBSD 12.

The xxhash package in ports does not have this patch and the build is stumbling over "undefined symbol static_assert". Not sure why this worked ok for 1.1.17 release.

Would be cool to have a new xxhash release with all the fixes since last release.

ThomasWaldmann added a commit to ThomasWaldmann/borg that referenced this pull request Jun 5, 2022
Cyan4973/xxHash#670

this fixes building borgbackup on FreeBSD 12.x (when using the
bundled xxhash code). otherwise i got "undefined symbol static_assert".
ThomasWaldmann added a commit to ThomasWaldmann/borg that referenced this pull request Jun 5, 2022
Cyan4973/xxHash#670

this fixes building borgbackup on FreeBSD 12.x (when using the
bundled xxhash code). otherwise i got "undefined symbol static_assert".
@ThomasDevoogdt
Copy link

I also see the same problem on uClibc toolchains. This fix seems to be fine.

@Cyan4973 Cyan4973 deleted the fix664 branch July 20, 2023 21:07
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

Successfully merging this pull request may close these issues.

xxhash.h->XXH_STATIC_ASSERT: potential build failure due to missing static_assert macro
3 participants