From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CAA13385803D; Sat, 2 Jul 2022 15:35:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CAA13385803D From: "slyfox at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libcc1/104799] Header issue with x86_64-linux-musl based cross-compiler Date: Sat, 02 Jul 2022 15:35:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libcc1 X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution target_milestone bug_status 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jul 2022 15:35:35 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104799 Sergei Trofimovich changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Target Milestone|--- |12.2 Status|UNCONFIRMED |RESOLVED --- Comment #4 from Sergei Trofimovich --- > libcc1/libcc1plugin.cc (In reply to Mos=C3=A8 Giordano from comment #2) > Created attachment 52568 [details] > Patch for poisoned calloc on Musl systems >=20 > Following the example of > https://git.alpinelinux.org/aports/tree/main/gcc/0042-Fix-attempt-to-use- > poisoned-calloc-error-in-libgccji.patch, reported in > https://bugs.gentoo.org/828580, I wrote the attached patch for libcc1, wh= ich > seems to solve the issue for me. I think the change looks reasonable. Should be fixed by "c++: avoid poisoning on musl [PR106102]" patch from PR106102 in master and gcc-12 branches. Can you give it a try?=