<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64247>64247</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
SingleSource/Regression/C/Regression-C-float16-smoke FAILs to link
</td>
</tr>
<tr>
<th>Labels</th>
<td>
test-suite
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
TNorthover
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
rorth
</td>
</tr>
</table>
<pre>
When building LLVM 17.0.0 rc1 on both Linux/x86_64 (Ubuntu 20.04) and Solaris 11.4/amd64, the `SingleSource/Regression/C/Regression-C-float16-smoke` test `FAIL`ed to link:
```
FAILED: SingleSource/Regression/C/Regression-C-float16-smoke
[...]
Undefined first referenced
symbol in file
__extendhfsf2 SingleSource/Regression/C/CMakeFiles/Regression-C-float16-smoke.dir/float16-smoke.c.o
__truncsfhf2 SingleSource/Regression/C/CMakeFiles/Regression-C-float16-smoke.dir/float16-smoke.c.o
ld: fatal: symbol referencing errors
```
The issue is the same, although the root cause is different in both cases. Those functions live in `libgcc` and were only introduced in GCC 12.
- However, on Ubuntu 20.04 the newest available version of GCC is 10.
- On Solaris 11.4, several versions of GCC are bundled in parallel, up to and including GCC 12 (which would be enough). However, there's a bug in `clang` that doesn't select the **newest** version of GCC available but a random one (first in directory order), so on the build machine GCC 10 was chosen.
This test somehow needs to check for the availability of those functions. This `test-suite` build failure is a regression from LLVM 16.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8VV9v47YT_DT0y8ICRcty9KAHn_PTrwVyLdDk2seAIlciG4oM-CdOvn1Byr5LDkULtEABw5ZocnZ2NLPiIejZIvZk_4kw9vCT81G5F_SEMbK_3fAUlfO9z8ub0cm3_jeFFsakjdR2hru7Xz9DfahoRcGLGpyF0UUFd9qmV8KG15v2sW2AsJsvY7IxAaMVbQjrgFsJ985wrwPUddUQNvBFtg1hJ4gKgbT0XtvZ4L1LXiBhwy84ewxBO0vYcP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