<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/69865>69865</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[flang] Not able to build on OpenBSD/amd64
</td>
</tr>
<tr>
<th>Labels</th>
<td>
flang:build
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
brad0
</td>
</tr>
</table>
<pre>
Tried to build Flang on OpenBSD/amd64.
```
[1/923] cd /home/brad/llvm/llvm-build/tools/flang/tools/f18 && /usr/local/bin/cmake -E make_directory /home/brad/llvm/llvm-build/include/flang && /home/brad/llvm/llvm-build/bin/flang-new -cpp -fsyntax-only -module-dir /home/brad/llvm/llvm-build/include/flang /home/brad/llvm/llvm-brad/flang/module/__fortran_type_info.f90
FAILED: include/flang/__fortran_type_info.mod /home/brad/llvm/llvm-build/include/flang/__fortran_type_info.mod
cd /home/brad/llvm/llvm-build/tools/flang/tools/f18 && /usr/local/bin/cmake -E make_directory /home/brad/llvm/llvm-build/include/flang && /home/brad/llvm/llvm-build/bin/flang-new -cpp -fsyntax-only -module-dir /home/brad/llvm/llvm-build/include/flang /home/brad/llvm/llvm-brad/flang/module/__fortran_type_info.f90
error: Semantic errors in /home/brad/llvm/llvm-brad/flang/module/__fortran_type_info.f90
/home/brad/llvm/llvm-brad/flang/module/__fortran_type_info.f90:16:21: error: Cannot read module file for module '__fortran_builtins': Source file '__fortran_builtins.mod' was not found
use, intrinsic :: __Fortran_builtins, only: __builtin_c_ptr, __builtin_c_funptr
^^^^^^^^^^^^^^^^^^
/home/brad/llvm/llvm-brad/flang/module/__fortran_type_info.f90:52:10: error: Derived type '__builtin_c_funptr' not found
type(__builtin_c_funptr) :: proc
^^^^^^^^^^^^^^^^^^
/home/brad/llvm/llvm-brad/flang/module/__fortran_type_info.f90:91:10: error: Derived type '__builtin_c_ptr' not found
type(__builtin_c_ptr) :: initialization
^^^^^^^^^^^^^^^
/home/brad/llvm/llvm-brad/flang/module/__fortran_type_info.f90:97:10: error: Derived type '__builtin_c_funptr' not found
type(__builtin_c_funptr) :: initialization
^^^^^^^^^^^^^^^^^^
/home/brad/llvm/llvm-brad/flang/module/__fortran_type_info.f90:114:10: error: Derived type '__builtin_c_funptr' not found
type(__builtin_c_funptr) :: proc
^^^^^^^^^^^^^^^^^^
ninja: build stopped: subcommand failed.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsVk1v4zYQ_TXUhZBBjb6sgw5OHAEFivaQ3gVKpGymFCmQVFL31xeU5DqJ0643G-_msIYggUPOe8M3Y8xQa8VOcV6i9Aal24CObq9N2RjKSNBodij_MIIz7DRuRiEZriRVO6wV_n3g6uZ-i6CiPcuSFSJbRDbLOyPLMy_TmwhBVUCM0i1uGUZQ7XXPEVSeCEEl5WO_fMKJB0HltJYWQdV5xufraI0RZAgyjzNa4x11S6WHEwpB1fb0T47DO-y_NROGt06bw2W0QrVyZPxI_Izqy74z_eQXKv6Ew3YYcNjZg3L0r1ArecBhr9koeciEeW88_-c0m46SzVwIqrrutHGGqtodBl4L1elVVyzpqTa__Hq3RfEGv-L6D8deX5jBi-HmOH4WxicrDG6MNr4u7nlPlRMtniwWC3UFtg9FjDdRhuINRD78f-9xS5XSDhtOGZ4hcCf8S5vjGkF-wvRSO6EsgnySQY-mXVzePDfVMuT4iVrsiTo9qqW4McZ4tBzBLRbKGaGsaDGKNx63rqszwlvsq2LeXax1Ww_O-K3npm5U3jqToPTuPc819E_BJ4G80H_LjXj03eQwLAqe3QPyM-X8aQTrtw4XRwkHo9vPp0ERfZ0Glwvw8vZCCSeoFH9TJ7R6lw5XuX7-PUvgA0S4qhpRlPygf8Tp9y1yKKEeqEeeB0Hr9DBw5g12bFrd91Qx3FEhOVu9GgMDVsasiAsa8DLKirxI8gySYF-yNCJNRHnXEALRus2Tdc7zNYmTNM2TPApECQTiiACQhOQkWXWQJjTL12nDaNR1BUoI76mQK5-VlTa7QFg78jIr1lkaSNpwaafhFmDOVbxZGij4edeUS0_dWZQQKayzJyQnnJwm49kz3eLftMO0kfw0D59PwsFoZLl3brA-E1AhqHbC7cdm1er-VRUNRj_w1vlu7qP2U8wU-D8BAAD__wIGo6w">