From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by sourceware.org (Postfix) with ESMTPS id 862513858409 for ; Sun, 28 May 2023 02:00:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 862513858409 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-51475e981f0so3408692a12.1 for ; Sat, 27 May 2023 19:00:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685239228; x=1687831228; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=hzn/rQ6iJzzrX/dCasx9DJlM5E70qiDfADDfF7Lyo2g=; b=Cn+bZbnc3RftG6HYXZ+/gCtknHWLUJIkLSx9sD9A3Hh5A7hUqqHmX1Zehpu11JNt7Q Bjvo0QnoegDRvsqEJrCWe0z9haDJThg7Oeo4vEZlnH4al1O4CKSE2hsuOFIWKrpu6O1+ CPgUdZjQheqnTsnyIv21rDNA7r0t2CRdGCM1f7piPlPpJqvoCloAappvHD+vqAwocX2o tlZzPy4Y40xXKgLueKPY/0rZkfW1o1eyrtVewemIKVzfC9X81uhsz0HDULAz85qawruT MKpRDwH0A21XrLzjRpwYMr5D4zrWqVZxK+8Rm94OtC7LrHHA6QWLDNnTdm6HhwoambXS pJpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685239228; x=1687831228; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hzn/rQ6iJzzrX/dCasx9DJlM5E70qiDfADDfF7Lyo2g=; b=dBLHgTVihcWixXynb94xa2lcn6vleTk7bewaH88n1iRrDt4x1KmK53DeA5ySDGEvIn b2ztjsuHyxb+AiXoRh3CalBxL0rkjjx1RK+gl1My9gWCOeHlRXIIFPiKFvr+XHo+IzlV 8PleuFSMuvp4K34b7vLXRAa45lGduoioRQ3nb69Cjxgf4xcIE8w6qa3WUeLLdxPKib+t 8lO3MIkYTgx1TyipD6NNrBEb8cJYl2pPFfXuu5ic9fOpdS9F/4JiMZuWUQv3VFNJ00rA keJZJV9IAbN0B4FFLG2yOTrVsaiEP9szRYR7ykLgNbwhswkdHi7pZxQ3dZAe7DX9RuTe /XJA== X-Gm-Message-State: AC+VfDxuTqiGHfN3PcYu+Py7L5Q63pycV8OqlfplHM/J/FNl8vsOPjSY pvkrPRmQRrE7CeoDVqTBGSX51MyZX5hJ+U9+UX8J2oV91X4MkQ== X-Google-Smtp-Source: ACHHUZ5ihIHALkh/CplosJqFrTdBfi4FZkB/cx86Ds9+XcJkPUrH4vOeegLja5sALzC9rQNr8aDBjX07qIc8gsIAcJM= X-Received: by 2002:a17:907:9289:b0:973:8198:bbfb with SMTP id bw9-20020a170907928900b009738198bbfbmr6844942ejc.31.1685239227795; Sat, 27 May 2023 19:00:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Chris Packham Date: Sun, 28 May 2023 14:00:15 +1200 Message-ID: Subject: Re: Build error with GCC13 + newlib 4.1.0 - error: 'float_t' undeclared To: joel@rtems.org Cc: Newlib Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Sun, May 28, 2023 at 12:28=E2=80=AFPM Joel Sherrill wro= te: > > > > On Sat, May 27, 2023, 7:02 PM Chris Packham wro= te: >> >> Hello from CT-NG, >> >> I user reported the following build error with newlib after GCC13.1 >> was added recently > > > By any chance did the default version of C change in 13 versus what worke= d.before? > > FWIW It looks.like the bleeding edge RTEMS tool builds in our farm have s= ome issue with gdb. So I don't have a handy case to compare. > https://gcc.gnu.org/gcc-13/changes.html doesn't mention it explicitly but I wouldn't be surprised if it has. >> >> src/newlib/newlib/libm/math/wf_log2.c:34:22: error: 'float_t' >> undeclared (first use in this function); did you mean 'float'? >> 34 | return (logf(x) / (float_t) M_LN2); >> | ^~~~~~~ >> | float >> >> From what I've been able to follow so far this may have something to >> do with how FLT_EVAL_METHOD is defined. It's not really mentioned in >> the GCC docs as something that has changed but I wonder if it is >> perhaps implied by a C standard the default of which probably has >> changed. >> >> Does this ring any bells for anyone? I'll also add that I've now double checked the same configuration works with GCC 12.2