Bug 1453092 - gasnet-1.28.2-1.fc27 FTBFS on s390x: gasnet_membar.h:264:3: error: #error unknown CPU
Summary: gasnet-1.28.2-1.fc27 FTBFS on s390x: gasnet_membar.h:264:3: error: #error unk...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gasnet
Version: rawhide
Hardware: s390x
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Christoph Junghans
QA Contact: Fedora Extras Quality Assurance
URL: https://apps.fedoraproject.org/kosche...
Whiteboard:
Depends On:
Blocks: F-ExcludeArch-s390x
TreeView+ depends on / blocked
 
Reported: 2017-05-22 06:52 UTC by Petr Pisar
Modified: 2017-08-03 23:25 UTC (History)
1 user (show)

See Also:
Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-08-03 23:25:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1477749 0 unspecified CLOSED legion won't build on s390x 2021-02-22 00:41:40 UTC

Internal Links: 1477749

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.


Note You need to log in before you can comment on or make changes to this bug.