Re: GCC 14 Build Failure

Dimitry Andric <[email protected]>
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <[email protected]>
On 17 Aug 2026, at 16:39, Cy Schubert <[email protected]> wrote:
> 
> Has anyone seen this on 16-CURRENT?
> 
> /export/wrkdir/amd64/export/freebsd/git/ports/lang/gcc14/work/gcc-14.2.0/gcc/tree-ssa-loop-niter.cc:1955:7: error: 
>      use of undeclared identifier '__gmpz_out_str'
> 1955 |       mpz_out_str (dump_file, 10, bnds.below);
>      |       ^~~~~~~~~~~
> /usr/local/include/gmp.h:962:21: note: expanded from macro
>      'mpz_out_str'
>  962 | #define mpz_out_str __gmpz_out_str
>      |                     ^~~~~~~~~~~~~~
> /export/wrkdir/amd64/export/freebsd/git/ports/lang/gcc14/work/gcc-14.2.0/gcc/tree-ssa-loop-niter.cc:1957:7: error: 
>      use of undeclared identifier '__gmpz_out_str'
> 1957 |       mpz_out_str (dump_file, 10, bnds.up);
>      |       ^~~~~~~~~~~
> /usr/local/include/gmp.h:962:21: note: expanded from macro
>      'mpz_out_str'
>  962 | #define mpz_out_str __gmpz_out_str
>      |                     ^~~~~~~~~~~~~~
> 
> 
> I suspect, though haven't fully followed the trail, that gmp.h (from math/gmp) is
> not included by some header file. Or possibly not detected properly during
> ./configure.

See https://bugs.freebsd.org/297562, this is a problem after base
cd0727ec709b, causing gmp to fail to detect the inclusion of stdio.h.

-Dimitry
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.