This is only an issue with clang on Linux, right? (I couldn't quite tell from the email chain). On Mac OS/X, we already disable weak symbols, so this shouldn't occur. Can someone remind me why we didn't simply add a check in our configure to say if compiler == clang, then disable weak symbols? -- Pavan On 9/2/15, 4:57 PM, "Rob Latham" <[email protected]> wrote:
On 09/02/2015 02:29 AM, Torbjörn Klatt wrote:
Hello,
I'm trying to use MPICH 3.1.4 with Clang and tried Clang 3.6.1 and 3.7. With both versions Clang segfaults at the same point:
pt2pt/greq_start.c:239:62: error: alias must point to a defined variable or function MPIX_Grequest_class *greq_class) __attribute__((weak,alias("MPIX_Grequest_class_create")));
I've filed a LLVM bug [1] with more details, however without response yet.
MPICH was configured with:
CC=clang CXX=clang++ /opt/toolchains/src/mpi/mpich/3.1.4/configure -- srcdir=/opt/toolchains/src/mpi/mpich/3.1.4 -- prefix=/opt/toolchains/clang/3.7/libraries/mpi/mpich/3.1.4 --enable-g=most -- enable-fast=all --enable-fortran=all --enable-cxx
Is this a known MPICH problem or am I doing something wrong?
It's been a long-standing annoyance on our end as well:
We sort of fixed this two+ years ago: http://trac.mpich.org/projects/mpich/ticket/1815
then something happened about 6-ish months ago: http://trac.mpich.org/projects/mpich/ticket/2236
My ubuntu bug report appears to have garnered exactly zero attention: https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-snapshot/+bug/14398...
As it's a clang compiler error, it's hard to know what the workaround would be. Thanks for trying 3.6.1 and 3.7. At least we can rule out "fixed in newer versions"
You will find this same segfault in mpich-master: we haven't done anything on our end to work around it, unfortunately.
==rob
-- Rob Latham Mathematics and Computer Science Division Argonne National Lab, IL USA _______________________________________________ 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