Issue 97866
Summary [Cuda] Fails to build anything with error: __float128 is not supported on this target
Labels new issue
Assignees
Reporter russeree
    Hey currently I am having difficulty getting the Clang++ Cuda compiler to build anything on my instance of Arch Linux. The primary error being ``` error: __float128 is not supported on this target```

### System Specs
- Arch Linux - Up to date
- [Cuda 12.5](https://archlinux.org/packages/extra/x86_64/cuda/)
- LLVM 14.0.6, 16.0.6, 18.x.x 

I have tried multiple versions of Clang and they all have the same behavior.

### My Code
https://gist.github.com/russeree/4756646281b36fcf1825eaf28330136b

### My Command
```
clang++ -x cuda --cuda-gpu-arch=sm_61 -I/opt/cuda/lib64 axpy.cu -o axpy -L/opt/cuda/lib32 -lcudart_static -ldl -lrt -pthread
```
I have tried the other flags such as 
```
 --std=c++17 -D__STRICT_ANSI__ 
```

These do not help at all

### Errors
```
/usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/limits:2089:27: error: __float128 is not supported on this target
 2089 |     struct numeric_limits<__float128>
      | ^
/usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/limits:2093:33: error: __float128 is not supported on this target
 2093 |       static _GLIBCXX_CONSTEXPR __float128
      | ^
/usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/limits:2104:33: error: __float128 is not supported on this target
 2104 |       static _GLIBCXX_CONSTEXPR __float128
      | ^
/usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/limits:2118:33: error: __float128 is not supported on this target
 2118 |       static _GLIBCXX_CONSTEXPR __float128
      | ^
/usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/limits:2132:33: error: __float128 is not supported on this target
 2132 |       static _GLIBCXX_CONSTEXPR __float128
      | ^
/usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/limits:2136:33: error: __float128 is not supported on this target
 2136 |       static _GLIBCXX_CONSTEXPR __float128
      | ^
/usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/limits:2156:33: error: __float128 is not supported on this target
 2156 |       static _GLIBCXX_CONSTEXPR __float128
      | ^
/usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/limits:2160:33: error: __float128 is not supported on this target
 2160 |       static _GLIBCXX_CONSTEXPR __float128
      | ^
/usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/limits:2164:33: error: __float128 is not supported on this target
 2164 |       static _GLIBCXX_CONSTEXPR __float128
      | ^
/usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/limits:2176:33: error: __float128 is not supported on this target
 2176 |       static _GLIBCXX_CONSTEXPR __float128
      | ^
/usr/lib64/gcc/x86_64-pc-linux-gnu/14.1.1/../../../../include/c++/14.1.1/limits:2170:28: error: __float128 is not supported on this target
```

Full log in this gist
https://gist.github.com/russeree/b77db6865093ee452f01ff797098a9fe



_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to