mpich FTBFS on sh4: MPIUI_Thread TLS definition mismatches tbss

Drew Parsons <[email protected]>
Newsgroups gmane.linux.debian.ports.amd64
Organization The Debian Project
Message-ID <1496749277.10486.54.camel__49668.9161904671$1496749662$gmane$org@debian.org>
mpich has been consistently failing to build on sh4.
The error occurs when linking the static library with the message:

/usr/bin/ld: MPIUI_Thread: TLS definition in lib/.libs/libmpich.a(lib_libmpich_la-mpiu_thread.o) section .tbss mismatches non-TLS reference in lib/.libs/libmpich.a(lib_libmpich_la-comm_rank.o)
lib/.libs/libmpich.a: error adding symbols: Bad value

I'm not familiar with TLS or tbss.  Is there a straightforward way to
fix it?

The compilation of src/util/thread/mpiu_thread.c and
src/mpi/comm/comm_rank.c doesn't report anything odd.

The link error suggests 2 different versions of MPIUI_Thread are used. 
But I can only see a definition in src/util/thread/mpiu_thread.c.
src/mpi/comm does not refer to it, and comm_rank.c does not use any
MPIU object. So the error message doesn't make sense to me.

Can anyone make sense of it?


Drew
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.