From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 90EB93858D3C; Tue, 21 May 2024 13:57:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 90EB93858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716299845; bh=FBVc5nDsaL5NWs8/dsyhtxRWtRkRDwcEVA7AcmBYsPU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tWrp3kSR+OCkEwbPl2eWJd1x3IciZAZ5dAd4Sxq3eq7VHdI4uPZ8rz9Gw+bafHHBp Nu/25WR5Ct3YEnefVIw73SiEjIdFWIhzmwbczw3s4htGkQ+TcmCBTQGwz/nFJNlAzs VfgpdvQqWwn8VIBWuymME+N+E1klhucOdw7syyps= From: "gaius at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/114529] profiledbootstrap fails to build and m2 causes odr violations during build Date: Tue, 21 May 2024 13:57:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: modula2 X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gaius at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: gaius at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D114529 --- Comment #3 from Gaius Mulley --- As an aid memoir the configure flags are: ../configure --prefix=3D$HOME/opt --enable-bootstrap --with-build-config=3D"bootstrap-O3 bootstrap-lto" --enable-languages=3Dc,c++,m2,lto which provoke the odr violation. m2/gm2-compiler-boot/M2Error.c:421:8: warning: type =E2=80=98struct DynamicStrings_Contents_r=E2=80=99 violates the C++ One Definition Rule [-W= odr] 421 | struct DynamicStrings_Contents_r { | ^ m2/gm2-compiler-boot/M2GCCDeclare.c:708:8: note: a different type is define= d in another translation unit 708 | struct DynamicStrings_Contents_r { | ^ m2/gm2-compiler-boot/M2Error.c:422:55: note: the first difference of corresponding definitions is field =E2=80=98buf=E2=80=99 422 | DynamicStrings__T5 buf;=