From b562c7fe0ca26d5841ac1047abd421d644953e8a Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Wed, 19 Aug 2020 14:26:05 +0000 Subject: [PATCH] net/glusterfs: fix build on GCC architectures Use newer GCC to workaround base GCC bug: libtool: compile: cc -DHAVE_CONFIG_H -I. -I../../../.. -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DGF_BSD_HOST_OS -include ../../../../config.h -include ../../../../site.h -I../../../../libglusterfs/src -I../../../../libglusterfs/src -I../../../../libglusterfs/src -I../../../../rpc/xdr/src -I../../../../rpc/xdr/src -I/usr/local/include -I/usr/local/include -Wall -I/usr/local/include/uuid -I/usr/local/include -Wformat -Werror=format-security -Werror=implicit-function-declaration -DO_DSYNC=0 -Dxdr_quad_t=xdr_longlong_t -Dxdr_u_quad_t=xdr_u_longlong_t -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -isystem /usr/local/include -MT write-behind.lo -MD -MP -MF .deps/write-behind.Tpo -c write-behind.c -fPIC -DPIC -o .libs/write-behind.o write-behind.c: In function 'wb_readdirp_cbk': write-behind.c:2585: error: unrecognizable insn: (insn 92 91 93 13 (parallel [ (set (reg:SI 189) (ior:SI (and:SI (plus:SI (mem/v:QI (plus:DI (reg/v/f:DI 140 [ wb_inode ]) (const_int 168 [0xa8])) [-1 S1 A64]) (reg:SI 185)) (reg:SI 187)) (and:SI (not:SI (reg:SI 187)) (mem/v:QI (plus:DI (reg/v/f:DI 140 [ wb_inode ]) (const_int 168 [0xa8])) [-1 S1 A64])))) (set (reg:SI 188) (mem/v:QI (plus:DI (reg/v/f:DI 140 [ wb_inode ]) (const_int 168 [0xa8])) [-1 S1 A64])) (set (mem/v:QI (plus:DI (reg/v/f:DI 140 [ wb_inode ]) (const_int 168 [0xa8])) [-1 S1 A64]) (unspec:SI [ (ior:SI (and:SI (plus:SI (mem/v:QI (plus:DI (reg/v/f:DI 140 [ wb_inode ]) (const_int 168 [0xa8])) [-1 S1 A64]) (reg:SI 185)) (reg:SI 187)) (and:SI (not:SI (reg:SI 187)) (mem/v:QI (plus:DI (reg/v/f:DI 140 [ wb_inode ]) (const_int 168 [0xa8])) [-1 S1 A64]))) ] 40)) (clobber (scratch:CC)) (clobber (scratch:SI)) ]) -1 (nil) (nil)) write-behind.c:2585: internal compiler error: in extract_insn, at recog.c:2077 --- net/glusterfs/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/glusterfs/Makefile b/net/glusterfs/Makefile index 2544a192a9fb..5b5a4fd0e948 100644 --- a/net/glusterfs/Makefile +++ b/net/glusterfs/Makefile @@ -20,8 +20,8 @@ RUN_DEPENDS= bash:shells/bash BROKEN_SSL= libressl -USES= autoreconf bison gettext gnome libtool pkgconfig python \ - readline shebangfix sqlite ssl +USES= autoreconf bison compiler:c11 gettext gnome libtool pkgconfig \ + python readline shebangfix sqlite ssl SHEBANG_FILES= events/src/glustereventsd.py events/src/peer_eventsapi.py \ events/tools/eventsdash.py extras/ganesha/ocf/ganesha_grace \