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

_serialize collides wtih immintrin.h #141

Open
nishiken opened this issue May 12, 2021 · 2 comments
Open

_serialize collides wtih immintrin.h #141

nishiken opened this issue May 12, 2021 · 2 comments

Comments

@nishiken
Copy link

Using fedora34, gcc 11.1.1
immintrin.h seems to invoke the errors in picojson.h.

/usr/lib/gcc/x86_64-redhat-linux/11/include/serializeintrin.h:37: note: macro "_serialize" defined here
37 | #define _serialize() __builtin_ia32_serialize ()

https://software.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/intrinsics/intrinsics-for-instruction-set-architecture-isa-instructions/serialize/serialize-1.html

@f18m
Copy link

f18m commented Jan 21, 2022

Hi I hit this problem as well.
I see other projects are fixing this issue by renaming serialize in picojson with serialize: https://gitlab.onelab.info/gmsh/gmsh/-/merge_requests/434/diffs

I'd love to see this fixes upstream :)

@f18m
Copy link

f18m commented Jan 21, 2022

One other note: this issue is making the "picojson-devel-1.3.0-11.fc34.x86_64" package of Fedora 34 and 35 unusable... :(

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