From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8E6873858D28; Sat, 9 Oct 2021 22:26:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8E6873858D28 From: "gerald at pfeifer dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/102675] New: [12 regression] Bootstrap fails in libsanitizer: 'MD5_DIGEST_STRING_LENGTH' was not declared in this scope Date: Sat, 09 Oct 2021 22:26:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: gerald at pfeifer dot com 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcchost cf_gcctarget cf_gccbuild Message-ID: 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, 09 Oct 2021 22:26:01 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102675 Bug ID: 102675 Summary: [12 regression] Bootstrap fails in libsanitizer: 'MD5_DIGEST_STRING_LENGTH' was not declared in this scope Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: gerald at pfeifer dot com CC: hjl.tools at gmail dot com Target Milestone: --- Host: *-*-freebsd* Target: *-*-freebsd* Build: *-*-freebsd* This happens on all FreeBSD platforms and versions: CC-HEAD/libsanitizer/sanitizer_common/sanitizer_platform_limits_freebsd.cpp= :370 :36: error: 'MD5_CTX' was not declared in this scope 370 | const unsigned MD5_CTX_sz =3D sizeof(MD5_CTX); | ^~~~~~~ GCC-HEAD/libsanitizer/sanitizer_common/sanitizer_platform_limits_freebsd.cp= p:371 :36: error:=20 'MD5_DIGEST_STRING_LENGTH' was not declared in this scope; did you mean=20 'SHA256_DIGEST_STRING_LENGTH'? 371 | const unsigned MD5_return_length =3D MD5_DIGEST_STRING_LENGTH; | ^~~~~~~~~~~~~~~~~~~~~~~~ | SHA256_DIGEST_STRING_LENGTH It was introduced by commit 2e3d50c09519d1b4899845b21843bae66ecffc2f Author: H.J. Lu Date: Wed Oct 6 10:24:24 2021 -0700 libsanitizer: Merge with upstream Merged revision: fdf4c035225de52f596899931b1f6100e5e3e928 I believe the problem is that this adds #include and some dependencies on constants defined in FreeBSD's /usr/include/md5.h, where GCC features it's on $GCC_SOURCE/include/md5.h which does not provide the required constants and types.=