gasnet-1.28.2-1.fc27 fails to build in F27 on s390x platform: make[4]: Entering directory '/builddir/build/BUILD/GASNet-1.28.2/serial/other/amudp' /usr/bin/gcc -fPIC -O3 --param max-inline-insns-single=35000 --param inline-unit-growth=10000 --param large-function-growth=200000 -Winline -Wno-unused -Wno-unused-parameter -Wno-address -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -march=zEC12 -mtune=z13 -fPIC -I../../../other/amudp -I. -I../../../other/amudp/.. -D_GNU_SOURCE=1 -DAMUDP_NDEBUG=1 -DSIZEOF_CHAR=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DSIZEOF_LONG_LONG=8 -DSIZEOF_VOID_P=8 -DHAVE_STDINT_H -DCOMPLETE_STDINT_H -DHAVE_INTTYPES_H -DCOMPLETE_INTTYPES_H -DHAVE_SYS_TYPES_H -DAMUDP_ENV_PREFIX=GASNET -I../../../other/amudp/../.. -I../.. -DHAVE_GASNET_TOOLS -o amudprun.o -c `test -e ../../../other/amudp/../../../other/amudp/amudprun.c && echo "../../../other/amudp/"`../../../other/amudp/amudprun.c make[4]: Leaving directory '/builddir/build/BUILD/GASNet-1.28.2/serial/other/amudp' In file included from ../../../other/amudp/../../gasnet_tools.h:72:0, from ../../../other/amudp/amudprun.c:19: ../../../other/amudp/../../gasnet_membar.h:264:3: error: #error unknown CPU - dont know how to do a local memory barrier for your CPU/OS #error unknown CPU - dont know how to do a local memory barrier for your CPU/OS ^~~~~ make[4]: *** [Makefile:899: amudprun.o] Error 1
Upstream: "GASNet does not support the s390 platform and has no plans to do so." So I am just going to exclude s390x.
http://pkgs.fedoraproject.org/cgit/rpms/gasnet.git/commit/?id=11b4268d152f121e58c1a55f67874bc3671c8f4a
OpenSuse made a patch to support s390x, see the upstream bug. Use it, https://koji.fedoraproject.org/koji/taskinfo?taskID=21019013, we now get: /builddir/build/BUILD/GASNet-1.28.2/gasnet_pshm.c:17:4: error: #error "GASNet PSHM support requires Native atomics" #error "GASNet PSHM support requires Native atomics" ^~~~~ which is that same issue as in #1477749.
http://pkgs.fedoraproject.org/cgit/rpms/gasnet.git/commit/?h=s390x&id=dcdb389c16dec011f488f9eca95a6cc3661853a5