From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 89F7D3858D20; Wed, 15 Nov 2023 14:27:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 89F7D3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700058421; bh=JAma09dd0l54Azzw5y+h9kOb0FctbLLzTFbaRidPQSQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=uMd6PhJ2BzyDwLOGIOWGJQso3lMUfWagwIQHvoBb3SSIRV90rhgJjeZlG4BwSMhVs l0qT7/8xKLUBF2ozw79yysd8M0+jMkhkk3Bvg292CZoEgA44oW4oufpxAcZ0SfxbKN 94Ta2gd85418gFmuMi16zM2Zr6lY3ntxewg3lQd0= From: "arsen at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/112534] [14 regression] build failure after r14-5424-gdb50aea6259545 using gcc 4.8.5 Date: Wed, 15 Nov 2023 14:27:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: arsen at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112534 --- Comment #4 from Arsen Arsenovi=C4=87 --- (In reply to Bruno Haible from comment #2) > > gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)=20 > > gcc -std=3Dgnu99 ... > > error: unknown type name 'max_align_t' >=20 > The type 'max_align_t' exists in C11, but not in C99, as can be seen from > these uses of gcc 4.8.5: > $ cat foo.c > #include > max_align_t x; > $ gcc -std=3Dc11 -c foo.c > $ gcc -std=3Dgnu11 -c foo.c > $ gcc -std=3Dc99 -c foo.c > foo.c:2:1: error: unknown type name =E2=80=98max_align_t=E2=80=99 > max_align_t x; > ^ > $ gcc -std=3Dgnu99 -c foo.c > foo.c:2:1: error: unknown type name =E2=80=98max_align_t=E2=80=99 > max_align_t x; > ^ >=20 > But this occurs in the build tree of gettext-runtime, and this package us= es > AC_PROG_CC, which adds option -std=3Dgnu11 if supported (this is in GNU > Autoconf since version 2.70). >=20 > Maybe some configure file was built with Autoconf 2.69 and older and thus > does not add -std=3Dgnu11 ? The toolchain tree is generated with AC2.69, indeed. The gettext-runtime f= iles should be unaltered from the release gettext tarball, though. > Or some other configure in the build tree has determined CC=3D"gcc > -std=3Dgnu99", and this setting has been propagated into gettext-runtime, > overriding the findings from gettext-runtime/configure ?=