https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102675

            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 = sizeof(MD5_CTX);
      |                                    ^~~~~~~


GCC-HEAD/libsanitizer/sanitizer_common/sanitizer_platform_limits_freebsd.cpp:371
:36: error: 
'MD5_DIGEST_STRING_LENGTH' was not declared in this scope; did you mean 
'SHA256_DIGEST_STRING_LENGTH'?
  371 | const unsigned MD5_return_length = MD5_DIGEST_STRING_LENGTH;
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~
      |                                    SHA256_DIGEST_STRING_LENGTH


It was introduced by commit 2e3d50c09519d1b4899845b21843bae66ecffc2f
Author: H.J. Lu <hjl.to...@gmail.com>
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 <md5.h> 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.

Reply via email to