Compilation with MPICH at Dardel (Sweden)
oloha,
Having some issues compiling SWIFT on one of the Swedish machines (Dardel.
The (many) currently loaded modules in the GCC env are:
Currently Loaded Modules:
1) craype-x86-rome 10) cpe/22.06 19) cpeGNU/22.06 28) gettext/0.21 37) fontconfig/2.13.94 46) libtool/2.4.7
2) libfabric/1.15.0.0 11) PDC/22.06 20) bzip2/1.0.8 29) file/5.40 38) libjpeg-turbo/2.1.1 47) parmetis/4.0.3-cpeGNU-22.06
3) craype-network-ofi 12) craype-accel-host 21) expat/2.4.8 30) util-linux/2.37.1 39) gzip/1.12 48) cray-hdf5-parallel/1.12.1.5
4) xpmem/2.3.2-2.2_9.4__g93dd7ee.shasta 13) atp/3.14.11 22) libreadline/8.1 31) libpng/1.6.37 40) lz4/1.9.3 49) cray-fftw/3.3.10.1
5) snic-env/1.0.0 14) cray-pmi/6.1.3 23) icu/69.1 32) libpciaccess/0.16-cpeGNU-22.06 41) zstd/1.5.0 50) gsl/2.7.1-cpeGNU-22.06
6) systemdefault/1.0.0 (S) 15) craype/2.7.16 24) xz/5.2.5 33) xorg-macros/1.19.3 42) libtiff/4.3.0
7) cray-python/3.9.12.1 16) cray-mpich/8.1.17 25) libxslt/1.1.34 34) x11/22.06-cpeGNU-22.06 43) ghostscript/9.55.0
8) gcc/11.2.0 17) cray-libsci/22.06.1.3 26) libxml2/2.9.9 35) zlib/1.2.11 44) ImageMagick/7.1.0-32
9) perftools-base/22.06.0 18) cray-dsmml/0.2.2 27) ncurses/6.2 36) freetype/2.10.4 45) m4/1.4.19
Getting the error
In function 'proxy_cells_exchange',
inlined from 'engine_exchange_cells' at src/engine.c:482:3,
inlined from 'engine_rebuild' at src/engine.c:1322:3:
src/proxy.c:410:7: error: 'MPI_Waitall' accessing 1 byte in a region of size 0 [-Werror=stringop-overflow=]
410 | if (MPI_Waitall(num_proxies, reqs_out, MPI_STATUSES_IGNORE) != MPI_SUCCESS)
| ^
src/proxy.c: In function 'engine_rebuild':
src/proxy.c:410:7: note: referencing argument 3 of type 'struct MPI_Status *'
/opt/cray/pe/mpich/8.1.17/ofi/gnu/9.1/include/mpi.h:966:5: note: in a call to function 'MPI_Waitall'
966 | int MPI_Waitall(int count, MPI_Request array_of_requests[], MPI_Status array_of_statuses[]) MPICH_API_PUBLIC;
| ^
lto1: all warnings being treated as errors
lto-wrapper: fatal error: /opt/cray/pe/gcc/11.2.0/bin/../snos/bin/gcc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:708: swift_mpi] Error 1
make[2]: *** Waiting for unfinished jobs....
Edited by Stuart McAlpine