[Bug 265684] net/mpich: Fails to build when devel/uthash is installed

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 07 Aug 2022 07:27:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265684

            Bug ID: 265684
           Summary: net/mpich: Fails to build when devel/uthash is
                    installed
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: lantw44@gmail.com
                CC: zi@FreeBSD.org
                CC: zi@FreeBSD.org

It seems that the uthash bundled by mpich is not compatible with the one
installed from ports.

/bin/sh ./libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I.
-I./src/include -I./modules/hwloc/include/private/autogen
-I./modules/hwloc/include/hwloc/autogen  -I./src/include 
-I./src/mpi/coll/allreduce_group/  -I./src/mpi/coll/transports/gentran 
-I./src/mpi/coll/transports/stubtran  -I./src/mpi/coll/transports/common 
-I./src/mpi/coll/algorithms/treealgo  -I./src/mpi/coll/algorithms/recexchalgo 
-I./src/mpi/coll/algorithms/stubalgo  -I./src/mpi/coll/algorithms/common 
-I./src/mpi/coll/include/  -I./src/mpi/datatype/typerep/dataloop 
-I./src/mpi/datatype -I./src/mpi/spawn  -I./src/util -I./src/binding/cxx
-I/wrkdirs/usr/ports/net/mpich/work/mpich-3.4.3/src/binding/fortran/mpif_h 
-Isrc/binding/fortran/use_mpi   -I./src/mpid/include      
-I./src/mpid/ch4/include  -I./src/mpid/ch4/include  -I./src/mpid/ch4/src 
-I./src/mpid/ch4/generic/am  -I./src/mpid/ch4/netmod/include
-I./src/mpid/ch4/shm/include  -I./src/mpid/ch4/shm/posix 
-I./src/mpid/ch4/shm/src -I./src/mpid/ch4/shm/posix/release_gather 
-I./src/mpid/ch4/shm/posix/eager/include 
-I./src/mpid/ch4/shm/posix/eager/include  -I./src/mpid/ch4/shm/ipc/src
-I./src/mpid/common/sched -I./src/mpid/common/thread 
-I./src/mpid/common/timers -I./src/mpid/common/shm  -I./src/mpid/common/bc
-I./src/mpid/common/genq   -I./src/pmi/simple  -I./src/pmi/include 
-I/usr/local/include -DNETMOD_INLINE=__netmod_inline_ofi__
-I/wrkdirs/usr/ports/net/mpich/work/mpich-3.4.3/src/mpl/include
-I/wrkdirs/usr/ports/net/mpich/work/mpich-3.4.3/src/mpl/include
-I/wrkdirs/usr/ports/net/mpich/work/mpich-3.4.3/modules/yaksa/src/frontend/include
-I/wrkdirs/usr/ports/net/mpich/work/mpich-3.4.3/modules/yaksa/src/frontend/include
-I/usr/local/include -D_REENTRANT
-I/wrkdirs/usr/ports/net/mpich/work/mpich-3.4.3/src/mpi/romio/include
-fvisibility=hidden -I/usr/local/include/json-c -O2 -pipe 
-fstack-protector-strong -fno-strict-aliasing -MT
src/mpi/attr/lib_libmpi_la-attr_delete.lo -MD -MP -MF
src/mpi/attr/.deps/lib_libmpi_la-attr_delete.Tpo -c -o
src/mpi/attr/lib_libmpi_la-attr_delete.lo `test -f 'src/mpi/attr/attr_delete.c'
|| echo './'`src/mpi/attr/attr_delete.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I./src/include
-I./modules/hwloc/include/private/autogen
-I./modules/hwloc/include/hwloc/autogen -I./src/include
-I./src/mpi/coll/allreduce_group/ -I./src/mpi/coll/transports/gentran
-I./src/mpi/coll/transports/stubtran -I./src/mpi/coll/transports/common
-I./src/mpi/coll/algorithms/treealgo -I./src/mpi/coll/algorithms/recexchalgo
-I./src/mpi/coll/algorithms/stubalgo -I./src/mpi/coll/algorithms/common
-I./src/mpi/coll/include/ -I./src/mpi/datatype/typerep/dataloop
-I./src/mpi/datatype -I./src/mpi/spawn -I./src/util -I./src/binding/cxx
-I/wrkdirs/usr/ports/net/mpich/work/mpich-3.4.3/src/binding/fortran/mpif_h
-Isrc/binding/fortran/use_mpi -I./src/mpid/include -I./src/mpid/ch4/include
-I./src/mpid/ch4/include -I./src/mpid/ch4/src -I./src/mpid/ch4/generic/am
-I./src/mpid/ch4/netmod/include -I./src/mpid/ch4/shm/include
-I./src/mpid/ch4/shm/posix -I./src/mpid/ch4/shm/src
-I./src/mpid/ch4/shm/posix/release_gather
-I./src/mpid/ch4/shm/posix/eager/include
-I./src/mpid/ch4/shm/posix/eager/include -I./src/mpid/ch4/shm/ipc/src
-I./src/mpid/common/sched -I./src/mpid/common/thread -I./src/mpid/common/timers
-I./src/mpid/common/shm -I./src/mpid/common/bc -I./src/mpid/common/genq
-I./src/pmi/simple -I./src/pmi/include -I/usr/local/include
-DNETMOD_INLINE=__netmod_inline_ofi__
-I/wrkdirs/usr/ports/net/mpich/work/mpich-3.4.3/src/mpl/include
-I/wrkdirs/usr/ports/net/mpich/work/mpich-3.4.3/src/mpl/include
-I/wrkdirs/usr/ports/net/mpich/work/mpich-3.4.3/modules/yaksa/src/frontend/include
-I/wrkdirs/usr/ports/net/mpich/work/mpich-3.4.3/modules/yaksa/src/frontend/include
-I/usr/local/include -D_REENTRANT
-I/wrkdirs/usr/ports/net/mpich/work/mpich-3.4.3/src/mpi/romio/include
-fvisibility=hidden -I/usr/local/include/json-c -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing -MT
src/mpi/attr/lib_libmpi_la-attr_delete.lo -MD -MP -MF
src/mpi/attr/.deps/lib_libmpi_la-attr_delete.Tpo -c src/mpi/attr/attr_delete.c 
-fPIC -DPIC -o src/mpi/attr/.libs/lib_libmpi_la-attr_delete.o
In file included from src/mpi/attr/attr_delete.c:6:
In file included from ./src/include/mpiimpl.h:241:
In file included from ./src/mpid/ch4/include/mpidpost.h:10:
In file included from ./src/mpid/ch4/include/mpidch4.h:310:
In file included from ./src/mpid/ch4/src/ch4_request.h:9:
./src/mpid/ch4/src/ch4_impl.h:134:84: error: too many arguments provided to
function-like macro invocation
    HASH_ADD(hash_handle, MPIDIG_WIN(win, targets), rank, sizeof(int),
target_ptr, MPL_MEM_RMA);
                                                                               
   ^
/usr/local/include/uthash.h:428:9: note: macro 'HASH_ADD' defined here
#define HASH_ADD(hh,head,fieldname,keylen_in,add)                              
 \
        ^
In file included from src/mpi/attr/attr_delete.c:6:
In file included from ./src/include/mpiimpl.h:241:
In file included from ./src/mpid/ch4/include/mpidpost.h:10:
In file included from ./src/mpid/ch4/include/mpidch4.h:310:
In file included from ./src/mpid/ch4/src/ch4_request.h:9:
./src/mpid/ch4/src/ch4_impl.h:134:5: error: use of undeclared identifier
'HASH_ADD'
    HASH_ADD(hash_handle, MPIDIG_WIN(win, targets), rank, sizeof(int),
target_ptr, MPL_MEM_RMA);
    ^
./src/mpid/ch4/src/ch4_impl.h:888:63: error: too many arguments provided to
function-like macro invocation
    HASH_ADD(hh, map->head, key, sizeof(uint64_t), map_entry, class);
                                                              ^
/usr/local/include/uthash.h:428:9: note: macro 'HASH_ADD' defined here
#define HASH_ADD(hh,head,fieldname,keylen_in,add)                              
 \
        ^
In file included from src/mpi/attr/attr_delete.c:6:
In file included from ./src/include/mpiimpl.h:241:
In file included from ./src/mpid/ch4/include/mpidpost.h:10:
In file included from ./src/mpid/ch4/include/mpidch4.h:310:
In file included from ./src/mpid/ch4/src/ch4_request.h:9:
./src/mpid/ch4/src/ch4_impl.h:888:5: error: use of undeclared identifier
'HASH_ADD'
    HASH_ADD(hh, map->head, key, sizeof(uint64_t), map_entry, class);
    ^
In file included from src/mpi/attr/attr_delete.c:6:
In file included from ./src/include/mpiimpl.h:241:
In file included from ./src/mpid/ch4/include/mpidpost.h:10:
In file included from ./src/mpid/ch4/include/mpidch4.h:322:
In file included from ./src/mpid/ch4/netmod/include/netmod_impl.h:1644:
In file included from ./src/mpid/ch4/netmod/include/../ofi/netmod_inline.h:9:
In file included from ./src/mpid/ch4/include/../netmod/ofi/ofi_am.h:9:
./src/mpid/ch4/include/../netmod/ofi/ofi_am_impl.h:169:62: error: too many
arguments provided to function-like macro invocation
                  MPIDI_OFI_global.cq_buffered_dynamic_tail, list_entry);
                                                             ^
/usr/local/include/utlist.h:338:9: note: macro 'LL_APPEND' defined here
#define LL_APPEND(head,add)                                                    
               \
        ^
In file included from src/mpi/attr/attr_delete.c:6:
In file included from ./src/include/mpiimpl.h:241:
In file included from ./src/mpid/ch4/include/mpidpost.h:10:
In file included from ./src/mpid/ch4/include/mpidch4.h:322:
In file included from ./src/mpid/ch4/netmod/include/netmod_impl.h:1644:
In file included from ./src/mpid/ch4/netmod/include/../ofi/netmod_inline.h:9:
In file included from ./src/mpid/ch4/include/../netmod/ofi/ofi_am.h:9:
./src/mpid/ch4/include/../netmod/ofi/ofi_am_impl.h:168:9: error: use of
undeclared identifier 'LL_APPEND'
        LL_APPEND(MPIDI_OFI_global.cq_buffered_dynamic_head,
        ^
In file included from src/mpi/attr/attr_delete.c:6:
In file included from ./src/include/mpiimpl.h:241:
In file included from ./src/mpid/ch4/include/mpidpost.h:10:
In file included from ./src/mpid/ch4/include/mpidch4.h:324:
In file included from ./src/mpid/ch4/shm/src/shm_impl.h:18:
In file included from ./src/mpid/ch4/shm/src/shm_coll.h:10:
In file included from ./src/mpid/ch4/shm/src/../posix/shm_inline.h:16:
In file included from ./src/mpid/ch4/shm/posix/posix_coll.h:11:
In file included from ./src/mpid/ch4/shm/posix/posix_coll_release_gather.h:30:
./src/mpid/ch4/shm/posix/release_gather/release_gather.h:344:17: error: invalid
operands to binary expression ('void' and 'int')
               
MPIDI_POSIX_RELEASE_GATHER_GATHER_FLAG_ADDR(*utarray_eltptr(children, i));
               
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./src/mpid/ch4/shm/posix/release_gather/release_gather.h:35:12: note: expanded
from macro 'MPIDI_POSIX_RELEASE_GATHER_GATHER_FLAG_ADDR'
    ((rank * MPIDI_POSIX_RELEASE_GATHER_FLAG_SPACE_PER_RANK +
MPIDI_POSIX_RELEASE_GATHER_GATHER_FLAG_OFFSET)/(MPIDI_POSIX_RELEASE_GATHER_FLAG_SIZE)))
      ~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 errors generated.
*** Error code 1

Stop.
make[3]: stopped in /wrkdirs/usr/ports/net/mpich/work/mpich-3.4.3
*** Error code 1

Stop.
make[2]: stopped in /wrkdirs/usr/ports/net/mpich/work/mpich-3.4.3
*** Error code 1

Stop.
make[1]: stopped in /wrkdirs/usr/ports/net/mpich/work/mpich-3.4.3
*** Error code 1

Stop.
make: stopped in /usr/ports/net/mpich

-- 
You are receiving this mail because:
You are the assignee for the bug.