head -r358966 on aarch64 fails to build base/gcc6: fatal error: bracket nesting level exceeded maximum of 256

John Baldwin jhb at FreeBSD.org
Mon Mar 23 16:48:02 UTC 2020


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


More information about the freebsd-toolchain mailing list