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

    <tr>
        <th>Summary</th>
        <td>
            [riscv][openmp] libomp build fails on risc-v
        </td>
    </tr>

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

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

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

<pre>
    Basic OpenMP build fails on RISC-V. I have tried two ways, both on MilkV Pioneer machine:

In tree, via `-DLLVM_ENABLE_RUNTIMES="openmp"`. It fails with "cannot find Threads" error during CMake config phase of (external from point of view of main build) openmp build. Main build locates threads just fine, at the very least there is a build config bug.

Standalone, following instructions in openmp/README.rst. It fails to find `FindBin.pm` during compilation phase (config succeeds), which is a Perl error, which is pretty odd.

I haven't tried to figure out if I can cross-compile libomp.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxck01vszgQgH-NuYyCiAkQDhyakkiRmner9t1eK2MGmNbYyDbJZn_9io_utnvBssYeP_MwI5yjViMWLDmwpAzE6Dtji2FA_TfpoDL1vTgIRxL-GFBfnqEaSdXQCFIOjIaX8-vj5i2EM3TiiuAtYQ3-ZuAm7o7xR6iM76aDF1Kfb_BMRiNa6IXsSCOLH1hUsmj9njV4izhdu5IAlkab8unp7fJ-_PVweDq-v_z56_f5cnxlcck4NwPqfmCcszQK4exXqBv5DhjnUmhtPDSka_jdWRS1Y5wDWmss1KMl3cLjRXwiSKMbamHohEMwDTC-x788Wi0UNNb0MBjSfopcCW_T2gvSiwnGc1hAln0Il39joIwUHh345Xn4GN0MNFcoPPgO4Yr2DgqFm7cWgRyI9f4KVo1t-F3Tqxe6FsoseRqjlLlN1ZB23o7Sk9EOSMOXoNPL8aG8HEPr_DdP3ixuWBqdSNcH0uHQszT6ciNNP5ASU7ZVDeP7lciNUiJOQvMJ4daR7BbwZ7RqcfwjMFj0_g6mrn9UsnSNZjzzX60zUbWjRTCjB2rgDFJokNY4t1mQEBRVph_CoC7iOo9zEWCxzbbbNIviNAq6IuWJqHb7HeZZk4mmzmuZRfE24U3GYxRxQAWP-C6K-Z7HSc6jUO4qnmOSJs1-l-V1xXYR9oJUqNS1D41tA3JuxGKfRTwNlKhQuXlkONd4gzk4dWJSBraY7myqsXVsFyly3v2XxZNX86xZcvLKkpIlh_U3JeVa1_9HbDq6uQajVUXn_eCmoeEnxk8t-W6sQml6xk_TE-uyGaz5QOkZP81gjvHTDP5PAAAA__8SjUsv">