• mpich FTBFS on sh4: MPIUI_Thread TLS definition mismatches tbss

    From Aaron M. Ucko@21:1/5 to Drew Parsons on Tue Jun 6 19:10:01 2017
    Drew Parsons <dparsons@debian.org> writes:

    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.

    comm_rank's reference to MPIUI_Thread is also present on at least amd64,
    and presumably due to some macro that (directly or indirectly) calls MPIU_THREADPRIV_FIELD. However, it's not clear why multithreaded build settings would be in effect for mpiu_thread but not also comm_rank. (It
    looks like MPIUI_Thread's thread-locality is conditional on
    MPICH_IS_THREADED, which mpichconf.h defines centrally.)

    I don't have time to dig deeper, but hope that brief analysis helps.

    --
    Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org) http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?amu@monk.mit.edu

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)