[Flang-dev] Flang and MPICH works...

Jeff Hammond jeff.science at gmail.com
Thu Sep 27 17:52:02 EDT 2018


I built Flang with
https://github.com/jeffhammond/HPCInfo/blob/master/buildscripts/llvm-flang.sh
on Ubuntu 16.04 and then compiled MPICH without error using this:

../configure CC=clang CXX=clang++ FC=/opt/llvm/pgi-flang/bin/flang
F77=/opt/llvm/pgi-flang/bin/flang --enable-cxx --enable-fortran
--with-pm=hydra --prefix=/opt/mpich/dev/clang/default
--enable-wrapper-rpath --enable-static --disable-shared

As reported in https://github.com/pmodels/mpich/issues/3334, something
causes libtool to fail to generate shared objects when Fortran is enabled,
so I just build twice, once without Fortran with shared enabled and once
with Fortran with static enabled.

This isn't a new issue (
https://lists.mpich.org/pipermail/discuss/2017-December/005368.html) but I
don't care enough about having a shared library for libmpifort to debug it.

Jeff

--
Jeff Hammond
jeff.science at gmail.com
http://jeffhammond.github.io/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.flang-compiler.org/pipermail/flang-dev_lists.flang-compiler.org/attachments/20180927/1babee27/attachment.html>


More information about the flang-dev mailing list