I have successfully built gcc 4.9 after using you patch. Thank you. The patch did not apply cleanly. Probably the inline was altered by outlook, so I just manually added the brackets to the makefile patch.
Jeremie, the rampage ain't over till it's over! -----Original Message----- From: owner-po...@openbsd.org <owner-po...@openbsd.org> On Behalf Of Markus Hennecke Sent: April 27, 2018 3:24 PM To: s_g...@telus.net Cc: ports@openbsd.org; 'Jeremie Courreges-Anglas' <j...@wxcvbn.org> Subject: Re: still failing to build gcc on arm - fbracket On Fri, 27 Apr 2018, s_g...@telus.net wrote: > > > I loaded the latest ports and src this morning. Do some other > packages need to be rebuilt also? I should have checked but didn't have the time. And at first glance everything looked ok. But Makefile is different to the configure shell script. The problem is fixed by using $(CC) instead of $CC in the shell expression: Index: patches/patch-gcc_Makefile_in =================================================================== RCS file: /cvs/ports/lang/gcc/4.9/patches/patch-gcc_Makefile_in,v retrieving revision 1.2 diff -u -p -r1.2 patch-gcc_Makefile_in --- patches/patch-gcc_Makefile_in 25 Apr 2018 12:56:56 -0000 1.2 +++ patches/patch-gcc_Makefile_in 27 Apr 2018 22:16:34 -0000 @@ -9,7 +9,7 @@ Index: gcc/Makefile.in CFLAGS-gcc.o += $(DRIVER_DEFINES) -+ISCLANG = $(shell $CC --version | grep -c clang) ++ISCLANG = $(shell $(CC) --version | grep -c clang) + +ifeq ($(ISCLANG),1) +CFLAGS-insn-attrtab.o += -fbracket-depth=512