From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DAA0C3857C75; Sun, 10 Oct 2021 21:22:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DAA0C3857C75 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/102675] [12 regression] Bootstrap fails in libsanitizer: 'MD5_DIGEST_STRING_LENGTH' was not declared in this scope Date: Sun, 10 Oct 2021 21:22:42 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned 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 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: Sun, 10 Oct 2021 21:22:43 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102675 --- Comment #3 from H.J. Lu --- (In reply to Gerald Pfeifer from comment #2) > (In reply to H.J. Lu from comment #1) > > That file is FreeBSD specific. Can you use a local patch to force > > /usr/include/md5.h, like > >=20 > > #include_next >=20 > I tried replacing #include by #include_next ; that did > not lead to any change. >=20 > Using #include "/usr/include/md5.h" restored bootstrap. >=20 > This confirms my hypothesis that it's GCC's md5.h being picked up that > is the issue for this regression. Does this file use any GCC specific header files? If not, you can filter out GCC specific -Ixxx from CXX and CXXFLAGS for this file. Or can you prepend -Isystem-headr-directory to CXXFLAGS for this file?=