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

Compile Error in extensions.cpp on _xgetbv #24

Open
cyberxml opened this issue Oct 27, 2019 · 0 comments
Open

Compile Error in extensions.cpp on _xgetbv #24

cyberxml opened this issue Oct 27, 2019 · 0 comments

Comments

@cyberxml
Copy link

../gits/libsathelper/src/extensions.cpp:20:20: error: ambiguating new declaration of ‘long long unsigned int _xgetbv(unsigned int)’ 20 | unsigned long long _xgetbv(unsigned int index) { | ^~~~~~~ In file included from /usr/lib/gcc/x86_64-redhat-linux/9/include/immintrin.h:43, from ...gits/libsathelper/src/extensions.cpp:11: /usr/lib/gcc/x86_64-redhat-linux/9/include/xsaveintrin.h:60:1: note: old declaration ‘long long int _xgetbv(unsigned int)’ 60 | _xgetbv (unsigned int __A) | ^~~~~~~

Fedora 30
gcc version 9.2.1 20190827 (Red Hat 9.2.1-1) (GCC)

workaround: rename _xgetbv to xgetbv in src/extensions.cpp

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

1 participant