On Thursday, February 5th, 2026 at 23:58, Mark Millard <[email protected]> wrote:
> > > https://cgit.freebsd.org/ports/tree/devel/freebsd-gcc15/Makefile > > has (up to whitespace differences for line length limiting): > > USES= compiler:c++11-lang cpe gmake iconv libtool makeinfo tar:xz > > But: > > QUOTE ( of https://gcc.gnu.org/install/prerequisites.html ) > Tools/packages necessary for building GCC > > ISO C++14 compiler > > Necessary to bootstrap GCC. GCC 5.4 or newer has sufficient support for > used C++14 features. > > Versions of GCC prior to 15 allow bootstrapping with an ISO C++11 > compiler, versions prior to 10.5 allow bootstrapping with an ISO C++98 > compiler, and versions prior to 4.8 allow bootstrapping with an ISO C89 > compiler. > > If you need to build an intermediate version of GCC in order to > bootstrap current GCC, consider GCC 9.5: it can build the current D > compiler, and was also the version that declared C++17 support stable. > > To build all languages in a cross-compiler or other configuration where > 3-stage bootstrap is not performed, you need to start with an existing > GCC binary (of a new enough version) because source code for language > frontends other than C might use GCC extensions. > END QUOTE > > > So it seems that a compiler:c++14-lang should be in use instead. > > > (A similar point applies to lang/gcc1[56]* .) For lang/gcc15, lang/gcc15-devel and lang/gcc16-devel I was already aware, but I was focusing on that bug about latest GCC snapshots that prevented us to update lang/gcc16-devel further: I wanted it to be fixed before dealing with this. (I also tested if switching to C++14 was the solution, but it was not...) In GCC ports we also add to CFLAGS a -D__USE_ISOC11: this might be old and unnecessary as well, I still have to look into it. By the way, thanks a lot for your efforts in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123366 ! You really helped me a lot, I had completely missed the issue with the nested if and was investigating in the wrong place. Cheers, Lorenzo Salvadore
