Re: [mpich-discuss] Building MPICH with Flang
Hi Tarun, Flang is a rather new project. We have tested it some time ago and it failed to build MPICH. Our current stance is that we consider Flang not part of the list of supported compilers (http://www.mpich.org/supported-compilers/). This list might be updated in the future to include Flang but no guarantee and ETA at the moment. Halim http://www.mcs.anl.gov/~aamer On 12/9/17 1:10 AM, Tarun Prabhu wrote:
I have been trying to build MPICH with Clang + Flang. If I build it with clang without Fortran support, it works fine, but if I try to build it with Flang for Fortran, I get an unknown argument error in the final link step.
clang-5.0: error: unsupported option '--whole-archive' clang-5.0: error: unsupported option '--no-whole-archive' clang-5.0: error: unknown argument: '-soname' clang-5.0: error: no such file or directory: 'libmpi.so.12'
This seems to be because --whole-archive is passed to clang without prepending it with -Wl,. So I hacked the libtool script to force it to add the "-Wl".
Now I get another error saying:
usr/bin/ld: src/binding/fortran/mpif_h/.libs/setbotf.o: relocation R_X86_64_32 against undefined symbol `mpipriv1_' can not be used when making a shared object; recompile with -fPIC
Could this be because the build system does not recognize/support flang? If so, is there a way to work around it? If not, I'd appreciate some help in trying to get it built.
Thanks,
Tarun
_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
participants (1)
-
Halim Amer