Trouble building gcc11 on RPi2

From: bob prohaska <>
Date: Fri, 02 Dec 2022 03:42:39 UTC
While trying to build lang/gcc11 on an PPi2 (armv7) running -current
the process keeps stopping with:

===>  Configuring for help2man-1.49.2
configure: loading site script /usr/ports/Templates/
checking for perl... perl
checking for module Locale::gettext... no
checking for msgfmt... /usr/local/bin/msgfmt
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether cc accepts -g... yes
checking for cc option to enable C11 features... none needed
checking for library containing dlsym... none required
checking for library containing bindtextdomain... -lintl
configure: error: perl module Locale::gettext required
===>  Script "configure" failed unexpectedly.
Rebuild lang/perl5.32 and devel/p5-Locale-gettext manually before contacting
*** Error code 1

make[4]: stopped in /usr/ports/misc/help2man
*** Error code 1

make[3]: stopped in /usr/ports/print/texinfo
*** Error code 1

make[2]: stopped in /usr/ports/math/gmp
*** Error code 1

make[1]: stopped in /usr/ports/devel/binutils
*** Error code 1

make: stopped in /usr/ports/lang/gcc11

Updating the ports tree, cleaning and trying to (re)build
dependencies one at a time always comes to the same end.

By contrast, a Pi3 running -current had no such problems,
a Pi3 running stable/13 got bogged down with excessive
swap use. Neither made complaints such as seen on armv7.

In case it matters, the motive is to build sysutils/u-boot-rpi2,

Thanks for reading,

bob prohaska