<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/97866>97866</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [Cuda] Fails to build anything with error: __float128 is not supported on this target
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          russeree
      </td>
    </tr>
</table>

<pre>
    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



</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUmG-Po7YTx1-N82QEMjYYeJAHu8ny-0Xau1a32-qeIWMMuDV_ZJu95N1XJtndbBtV6l2kNggZgvkOns_MCCbcWtUOUq5Rco-S7YrPrhvN2szWSiPlqhrrw_r_8gBiNkYOTh9gB7yHjr-ooYVaNY0Ss3YHaKVz_pLrJGw0H1pE7hG5h81ccxBjPyktDbgRqlnpGvhwcJ2_fxygP4AarOODkDA2cGdEB49qmPchPHcSJqN6bg4gjRkNVNKrEMPH_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