<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56348>56348</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Build OpenMPI using LLVM Flang
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
PeixinQiao
</td>
</tr>
</table>
<pre>
Step 1: Run configure
`CC=clang CXX=clang++ FC="flang-new -flang-experimental-exec" ../configure --prefix=$PWD/../install`
Step 2: Change libtool
`wl=""` -> `wl="-Wl,"` in the following
```
# A language specific compiler.
CC="flang-new -flang-experimental-exec"
# Is the compiler the GNU compiler?
with_gcc=no
# Compiler flag to turn off builtin functions.
no_builtin_flag=""
# Additional compiler flags for building library objects.
pic_flag=""
# How to pass a linker flag through the compiler.
wl="-Wl,"
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVUstu2zAQ_BrqQlhgKEu2Dzo4St0GSNo0RZvcAkpaSWwZUuCjTv6-S9lyHgUKFCAkkrs7Mzvc2rTP5TcPIz0j2ZbeBk0bozvZBwuEXRC2JQWrKpJdNEronlb39_Oe8HNcdBeDhPMu3i007OnisIWnEax8BO2FwgM0mETTlPDdiYEuFqOFTj5NEMubO_zuphSpHZYpJD-qmL6TUB6FVgNSAFWy9saok9K9OoiJq2B0QbIP9NX14k4RXh2DUlM_AO2MUmYvsZ8Z5LgOR57RLY39BIF8boRGdrJBkx5HqcCmh7Tqf0x43VHEv3STkBlyOnz8_P10QbLdIXkv_fDQNw1yafMepZrLkbin3lAfrKam62gdpPLYbRd046XR7iham4dj6CHWvDj3DnnbtjLWCfWiMRY49M5O6C3aF9_CCvtMTf0TGj-TjLL5N_ons49qR-EcFQiif516GKwJ_fDGnCPq3w_69vGStszaTbYRiZdeQXkeRdIvI-jrm0saXNR7dfXjmu6mqU6CVeXg_ehwtnD6cPXodahT5MWDUr_nHw6sif3FGXUugMNNXmTLdTKUvChWmzpbCtiInG9Y0XWsywrYrNgZY5AnStSgXEnyc5JfJLLkjHO2YpwVvMjydJWLHFi-FmvgnLdrsmTwKKRKI3FqbJ_YctJQh95hUEmHPp-C6KDsNcCML4IfjC1vQD5J_VUKk0yKy0nuH_3ONbE">