Bug 1453092

Summary: gasnet-1.28.2-1.fc27 FTBFS on s390x: gasnet_membar.h:264:3: error: #error unknown CPU
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: gasnetAssignee: Christoph Junghans <junghans>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: junghans
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: s390x   
OS: Unspecified   
URL: https://apps.fedoraproject.org/koschei/build/2909012
See Also: https://upc-bugs.lbl.gov/bugzilla/show_bug.cgi?id=3523
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-03 23:25:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 485231    

Description Petr Pisar 2017-05-22 06:52:04 UTC
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

Comment 1 Christoph Junghans 2017-05-22 19:09:19 UTC
Upstream: "GASNet does not support the s390 platform and has no plans to do so."

So I am just going to exclude s390x.

Comment 3 Christoph Junghans 2017-08-03 16:55:28 UTC
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.