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

    <tr>
        <th>Summary</th>
        <td>
            [flang] [packaging] cannot find -lflang_rt.runtime with newly packaged flang 21
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            flang
      </td>
    </tr>

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

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

<pre>
    Installing latest flang 21 from apt.llvm.org seems to bring a non functional compiler, as a (new?) runtime library is reported as not found (and I don't find it)
Tested on ubuntu plucky and noble, it was not a problem with 20 or some recent 21.


```
 flang-21 interface.f90 -o interface_flang21
/usr/bin/ld: cannot find -lflang_rt.runtime: No such file or directory
```

total installed packages were clang-21 clang-tools-21 libclang-common-21-dev libclang-cpp21 libclang-rt-21-dev libclang1-21 libllvm21 llvm-21 llvm-21-dev llvm-21-linker-tools llvm-21-runtime llvm-21-tools
and for flang flang-21 libflang-21-dev libmlir-21
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8U8uOqzgQ_RqzKRGZApKwYJE7V5HuZlazb9m4IJ72A9kmUf5-ZCDpVi9GQnK5OKdcj1MiRj05op61v1j7uxBLuvnQC0WTt5YK6dWz_-NiEsZoN4ERiWKC0Qg3AVYwBm9BzOlgzN0efJggEtkIyYMMmSDAeQfj4oakvRMGBm9nbSgw_AtEBAEMz44erL4y7CAsLmlLYLQMIjxBRwg0-5BIZbTzCUa_OJVZwin4A8o7hqcEo3YKdGLYMX75h2JmeAeLXFxaYDbL8PmETHFeGsqv6wSPPaaAOWS3hYdON0AOPkD0liDQQC4BVgfGL_t35PvHL1snSqxAu0RhFAMdxo5D6b8cHysGq0zF6xIDw6vUjuHVKFZfYBBurSsXUJoV_BHSYW9FRvztIS7DDUZtKGemdKAh-fD8kQ3jl-STMKC3iZGCWQyfYqIIDwoEwyvbzUjem5ivRsvNM3hrvSuxKhXdv7nn-TsqpJ-Iao-SZZAtc7fl17lBd9to90lhe_vtfM99v69_Gb_kgY0-7IJ7N9to-bJfaVijQ4lVofpadXUnCuqrU3PE6oxNW9z6hndKSInH7ihrwbujUk1dt6dBnKvuXKlC98ix5S1H5PUJ24McK3lu1YgcT02NA2s4WaHNW-uFjnGhvqrPdcMLIySZuC4S4podQ8w7Ffq1KrlMkTXc6JjiV4ikk1m3b2O0v4G1v7ah6e3-__LYBOvoYZ6vWav3ehZLMP0tpTmyOmuP4XXS6bbIw-Bt1p-5v45yDv5fGhLD61pVZHjdC7v3-F8AAAD__9zJXbk">