Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Mar 2020 09:48:01 -0700
From:      John Baldwin <jhb@FreeBSD.org>
To:        Mark Millard <marklmi@yahoo.com>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org>, freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: head -r358966 on aarch64 fails to build base/gcc6: fatal error: bracket nesting level exceeded maximum of 256
Message-ID:  <e479539b-6ad9-d154-e384-9536a2158e26@FreeBSD.org>
In-Reply-To: <879B19CB-5EBB-4114-8C13-199E1C2E491D@yahoo.com>
References:  <879B19CB-5EBB-4114-8C13-199E1C2E491D.ref@yahoo.com> <879B19CB-5EBB-4114-8C13-199E1C2E491D@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 3/20/20 11:02 PM, Mark Millard wrote:
> While trying to build base/gcc6 on aarch64 (implicitly targeting aarch64:
> self hosted), it failed with:
> 
> . . .
> c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
> /wrkdirs/usr/ports/base/gcc6/work/gcc-6.5.0/gcc/config/aarch64/aarch64.md:817:10873: fatal error: bracket nesting level exceeded maximum of 256
> /wrkdirs/usr/ports/base/gcc6/work/gcc-6.5.0/gcc/config/aarch64/aarch64.md:817:10873: note: use -fbracket-depth=N to increase maximum nesting level
> 116 warnings and 1 error generated.
> gmake[2]: *** [Makefile:1086: insn-attrtab.o] Error 1
> gmake[2]: *** Waiting for unfinished jobs....
> . . .
> 
> amd64 (implicitly targeting amd64: self hosted) did not have the problem.
> 
> (These were just build-ability tests, no intent to install as stands.)
> 
> base/binutils did not have such problems. (Actually installed on 32-bit
> powerpc so more ports can build.)

I think the devel/freebsd-gcc* ports have a workaround for this when being built
on aarch64.  We probably need the same fix for base/gcc when the build host is
aarch64.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e479539b-6ad9-d154-e384-9536a2158e26>