[mvapich-discuss] build error with --enable-thread-cs=per-object

Jonathan Perkins perkinjo at cse.ohio-state.edu
Wed Aug 21 12:08:11 EDT 2013


Thank you for your report Jan.  I've reproduced the issue by only using
--enable-thread-cs=per-object during configure.  We'll resolve this
issue in one of our upcoming releases.

On Wed, Aug 21, 2013 at 03:04:45PM +0200, Jan David Mol wrote:
> Hi,
> 
> I'm experiencing build errors (both v1.9 release and svn trunk
> r6510) when enabling per-object locking (see information attached
> below).
> 
> It seems that the function MPIU_Thread_CS_enter_lockname_impl_ is
> used in mpiimpl.h before it is defined (in mpiimplthreadpost.h).
> 
> Cheers,
>   Jan David Mol
> 
> In file included from ./src/include/mpiimpl.h:3821:0,
>                  from ./src/mpid/ch3/include/mpidimpl.h:36,
>                  from
> /src/mpid/ch3/channels/mrail/include/mpidi_ch3_impl.h:23,
>                  from
> src/mpid/ch3/channels/common/src/affinity/hwloc_bind.c:13:
> /src/include/mpiimplthreadpost.h:27:1: warning: conflicting types
> for 'MPIU_Thread_CS_enter_lockname_impl_' [enabled by default]
> /src/include/mpiimplthreadpost.h:27:1: error: static declaration of
> 'MPIU_Thread_CS_enter_lockname_impl_' follows non-static declaration
> /src/include/mpiimpl.h:1319:1: note: previous implicit declaration
> of 'MPIU_Thread_CS_enter_lockname_impl_' was here
> /src/include/mpiimplthreadpost.h:46:1: warning: conflicting types
> for 'MPIU_Thread_CS_exit_lockname_impl_' [enabled by default]
> /src/include/mpiimplthreadpost.h:46:1: error: static declaration of
> 'MPIU_Thread_CS_exit_lockname_impl_' follows non-static declaration
> /src/include/mpiimpl.h:1319:1: note: previous implicit declaration
> of 'MPIU_Thread_CS_exit_lockname_impl_' was here
> 
> I'm building with:
> 
> /configure --prefix=/globalhome/mol/root-cobalt
> --with-cuda=/usr/local/cuda-5.5
> --with-cuda-include=/usr/local/cuda-5.5/targets/x86_64-linux/include/
> --enable-shared --with-ib-libpath=/usr/lib64
> --enable-threads=runtime --enable-handle-allocation=tls --with-hwloc
> --enable-thread-cs=per-object -enable-ref-count=lock-free
> --enable-cuda --with-atomic-primitives --enable-fast=all,O3 && make
> -j 32
> 
> Using
> 
> gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
> 
> _______________________________________________
> mvapich-discuss mailing list
> mvapich-discuss at cse.ohio-state.edu
> http://mail.cse.ohio-state.edu/mailman/listinfo/mvapich-discuss
> 

-- 
Jonathan Perkins
http://www.cse.ohio-state.edu/~perkinjo


More information about the mvapich-discuss mailing list