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 with error: invalid combination of type specifiers [GCC 13.2.1]. #99

Open
dreirund opened this issue Feb 8, 2024 · 1 comment

Comments

@dreirund
Copy link

dreirund commented Feb 8, 2024

With GCC 13.2.1, it fails to build for me:

g++ -march=native -mtune=native -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -fstack-clash-protection -fcf-protection -flto=auto -O3 -Wno-unused-result -I/opt/cuda/include -std=c++11 -c gpu_burn-drv.cpp
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/opt/android-sdk/emulator:/opt/android-sdk/cmdline-tools/latest/bin:/opt/android-sdk/platform-tools:/usr/lib/jvm/default/bin:/opt/rocm-6.0.2/bin:/opt/rocm-6.0.2/hip/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/local/bin:/usr/local/sbin:/home/felics/bin::." /opt/cuda/bin/nvcc -I/opt/cuda/include -arch=compute_50 -ptx compare.cu -o compare.ptx
/usr/include/bits/floatn.h(86): error: invalid combination of type specifiers
  typedef __float128 _Float128;
                     ^

/usr/include/bits/floatn-common.h(214): error: invalid combination of type specifiers
  typedef float _Float32;
                ^

/usr/include/bits/floatn-common.h(251): error: invalid combination of type specifiers
  typedef double _Float64;
                 ^

/usr/include/bits/floatn-common.h(268): error: invalid combination of type specifiers
  typedef double _Float32x;
                 ^

/usr/include/bits/floatn-common.h(285): error: invalid combination of type specifiers
  typedef long double _Float64x;
                      ^

5 errors detected in the compilation of "compare.cu".
make: *** [Makefile:46: compare.ptx] Error 1

Regards!

@blob42
Copy link

blob42 commented Feb 25, 2024

same for me

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