[Darshan-users] Trouble building 3.2.0

Jeffrey Layton laytonjb at gmail.com
Fri May 15 06:52:22 CDT 2020


Good morning,

I've been trying to build version 3.2.0 using the Ubuntu 18.04 gcc-7.5.0
compiler set along with mpich 3.3.2. My configuration command is,

./configure --with-log-path=/darshan-logs --with-jobid-env=NONE CC=mpicc
--enable-mmap-logs --enable-group-readable-logs --without-mpi

The configure seems to run fine, but when I use "make", I get the following
errors:


$ make
mpicc -DDARSHAN_CONFIG_H=\"darshan-runtime-config.h\" -I . -I. -I./../ -g
-O2  -D_LARGEFILE64_SOURCE -shared -fpic -DPIC -DDARSHAN_PRELOAD -c
lib/darshan-core.c -o lib/darshan-core.po
lib/darshan-core.c: In function ‘darshan_init_mmap_log’:
lib/darshan-core.c:781:5: warning: implicit declaration of function
‘PMPI_Bcast’ [-Wimplicit-function-declaration]
     PMPI_Bcast(&logmod, 1, MPI_UINT64_T, 0, core->mpi_comm);
     ^~~~~~~~~~
lib/darshan-core.c:781:28: error: ‘MPI_UINT64_T’ undeclared (first use in
this function); did you mean ‘__UINT64_C’?
     PMPI_Bcast(&logmod, 1, MPI_UINT64_T, 0, core->mpi_comm);
                            ^~~~~~~~~~~~
                            __UINT64_C
lib/darshan-core.c:781:28: note: each undeclared identifier is reported
only once for each function it appears in
lib/darshan-core.c:781:49: error: ‘struct darshan_core_runtime’ has no
member named ‘mpi_comm’
     PMPI_Bcast(&logmod, 1, MPI_UINT64_T, 0, core->mpi_comm);
                                                 ^~
Makefile:120: recipe for target 'lib/darshan-core.po' failed
make: *** [lib/darshan-core.po] Error 1


I've tried a few alternatives:

- CC=gcc instead of CC=mpicc
- not using the "--with-out-mpi" option and using CC=mpicc
- Running "make clean" a few times

I'm curious why, despite the "--without-mpi" option, it appears to
want/need an MPI implementation (but I may be way off base here).

Thanks!

Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-users/attachments/20200515/21cb06fa/attachment.html>


More information about the Darshan-users mailing list