• GCC 14 Build Failure

    From Cy Schubert@Cy.Schubert@cschubert.com to muc.lists.freebsd.ports on Mon Aug 17 07:39:12 2026
    From Newsgroup: muc.lists.freebsd.ports

    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.
    --
    Cheers,
    Cy Schubert <Cy.Schubert@cschubert.com>
    FreeBSD UNIX: <cy@FreeBSD.org> Web: https://FreeBSD.org
    NTP: <cy@nwtime.org> Web: https://nwtime.org

    e**(i*pi)+1=0



    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Dimitry Andric@dim@FreeBSD.org to muc.lists.freebsd.ports on Mon Aug 17 16:44:59 2026
    From Newsgroup: muc.lists.freebsd.ports

    On 17 Aug 2026, at 16:39, Cy Schubert <Cy.Schubert@cschubert.com> 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
    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Cy Schubert@Cy.Schubert@cschubert.com to muc.lists.freebsd.ports on Mon Aug 17 08:34:15 2026
    From Newsgroup: muc.lists.freebsd.ports

    In message <5AEFAA00-AAFA-44B0-82C8-E550D0F3607E@FreeBSD.org>, Dimitry
    Andric w
    rites:
    On 17 Aug 2026, at 16:39, Cy Schubert <Cy.Schubert@cschubert.com> wrote:
    =20
    Has anyone seen this on 16-CURRENT?
    =20
    =
    /export/wrkdir/amd64/export/freebsd/git/ports/lang/gcc14/work/gcc-14.2.0/g= cc/tree-ssa-loop-niter.cc:1955:7: error:=20
    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/g= cc/tree-ssa-loop-niter.cc:1957:7: error:=20
    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
    | ^~~~~~~~~~~~~~
    =20
    =20
    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


    Thank you for the patch.
    --
    Cheers,
    Cy Schubert <Cy.Schubert@cschubert.com>
    FreeBSD UNIX: <cy@FreeBSD.org> Web: https://FreeBSD.org
    NTP: <cy@nwtime.org> Web: https://nwtime.org

    e**(i*pi)+1=0




    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2