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

    <tr>
        <th>Summary</th>
        <td>
            Parallel build error in compile-rt on x86 FreeBSD 13.1
        </td>
    </tr>

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

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

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

<pre>
    llvm release/15.x af3707c3b89f80ab7b43feb1345af24080105254 on FreeBSD 13.1 (native compiler clang 14), amd64.

A parallel build with make sometimes fails in compiler-rt with an error that 16 bit float is not supported.

```
In file included from /data/llvm/llvm-project/compiler-rt/lib/builtins/extendhfsf2.c:11:
In file included from /data/llvm/llvm-project/compiler-rt/lib/builtins/fp_extend_impl.inc:38:
/data/llvm/llvm-project/compiler-rt/lib/builtins/fp_extend.h:44:9: error: _Float16 is not supported on this target
typedef _Float16 src_t;
        ^
1 error generated.
--- CMakeFiles/clang_rt.builtins-i386.dir/extendhfsf2.c.o ---
*** [CMakeFiles/clang_rt.builtins-i386.dir/extendhfsf2.c.o] Error code 1
```

This is a build of an i386 (32 bit) object on an x86_64 host.  i386 does not support 16 bit float unless you use -msse2 or better.

This is probably a race.  It happens for me in most builds but not all.

Configured with:

```
cmake -DLLVM_ENABLE_PROJECTS="clang;flang;lldb;lld" -DLLVM_ENABLE_RUNTIMES=compiler-rt -DLLVM_TARGETS_TO_BUILD="AArch64;ARM;Mips;PowerPC;RISCV;Sparc;X86" -DLLVM_ENABLE_ASSERTIONS=On -DCMAKE_BUILD_TYPE=Release -DLLVM_OPTIMIZED_TABLEGEN=On /data/llvm/llvm-project/llvm
```

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1VV2PqzYQ_TXkZRTEd8gDDyQhV2k3u1GSu2r7ggyY4NZgZJu7u_--Y8je3Gy3qlS1keMxHmb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