FW: still failing to build gcc on arm - fbracket
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 - 1.2 +++ patches/patch-gcc_Makefile_in 27 Apr 2018 22:16:34 - @@ -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
Re: still failing to build gcc on arm - fbracket
On Sat, Apr 28 2018, Markus Henneckewrote: > 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: Committed, thanks. > 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 - > 1.2 > +++ patches/patch-gcc_Makefile_in 27 Apr 2018 22:16:34 - > @@ -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 > -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE
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 - 1.2 +++ patches/patch-gcc_Makefile_in 27 Apr 2018 22:16:34 - @@ -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
still failing to build gcc on arm - fbracket
I loaded the latest ports and src this morning. Do some other packages need to be rebuilt also? /usr/ports/pobj/gcc-4.9.4/gcc-4.9.4/gcc/config/arm/arm.md:97:16: note: use '=' to turn this equality comparison into an assignment (thumb1_code)) == ( ^~ = /usr/ports/pobj/gcc-4.9.4/gcc-4.9.4/gcc/config/arm/neon.md:3486:10917: fatal error: bracket nesting level exceeded maximum of 256 /usr/ports/pobj/gcc-4.9.4/gcc-4.9.4/gcc/config/arm/neon.md:3486:10917: note: use -fbracket-depth=N to increase maximum nesting level 33 warnings and 1 error generated. gmake[3]: *** [Makefile:1058: insn-attrtab.o] Error 1 gmake[3]: Leaving directory '/usr/ports/pobj/gcc-4.9.4/build-arm/gcc' gmake[2]: *** [Makefile:4217: all-stage1-gcc] Error 2 gmake[2]: Leaving directory '/usr/ports/pobj/gcc-4.9.4/build-arm' gmake[1]: *** [Makefile:17735: stage1-bubble] Error 2 gmake[1]: Leaving directory '/usr/ports/pobj/gcc-4.9.4/build-arm' gmake: *** [Makefile:17872: bootstrap2] Error 2 *** Error 2 in /usr/ports/lang/gcc/4.9 (/usr/ports/infrastructure/mk/bsd.port.mk:2752 '/usr/ports/pobj/gcc-4.9.4/build-arm/.build_done') *** Error 1 in /usr/ports/lang/gcc/4.9 (/usr/ports/infrastructure/mk/bsd.port.mk:1939 '/usr/ports/packages/arm/all/gcc-4.9.4p8.tgz') *** Error 1 in /usr/ports/lang/gcc/4.9 (/usr/ports/infrastructure/mk/bsd.port.mk:2450 '_internal-package') *** Error 1 in /usr/ports/lang/gcc/4.9 (/usr/ports/infrastructure/mk/bsd.port.mk:2429 'package') *** Error 1 in /usr/ports/lang/gcc/4.9 (/usr/ports/infrastructure/mk/bsd.port.mk:1957 '/var/db/pkg/gcc-4.9.4p8/+CONTENTS') *** Error 1 in /usr/ports/lang/gcc/4.9 (/usr/ports/infrastructure/mk/bsd.port.mk:2429 'install') *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2074 '/usr/ports/pobj/php-7.0.29/.dep-STEM-ge-4.9,lt-4.10-lang-gcc-4.9') *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2518 '/usr/ports/pobj/php-7.0.29/.extract_done') *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1939 '/usr/ports/packages/arm/all/php-7.0.29.tgz') *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2450 '_internal-package') *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2429 'package') *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1957 '/var/db/pkg/php-7.0.29/+CONTENTS') *** Error 1 in /usr/ports/lang/php/7.0 (/usr/ports/infrastructure/mk/bsd.port.mk:2429 'install')