From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by mx.groups.io with SMTP id smtpd.web09.9803.1648575194360756210 for ; Tue, 29 Mar 2022 10:33:14 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=hjGb7BEY; spf=pass (domain: quicinc.com, ip: 199.106.114.38, mailfrom: quic_rcran@quicinc.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1648575194; x=1680111194; h=message-id:date:mime-version:to:from:subject: content-transfer-encoding; bh=prjK0jvPj3A/swTkqbjrymg+C2IHwfJYiBRk9FA3x5w=; b=hjGb7BEYvuD0EajdvQxaMSq1XOwVewhnRtP/FzOVRL60uCxlH/r2XN6I M/wlB0Hw5a5mLD9jkcYuBJksclTldqssvjpRCCk7PVS7+ZbX51UHlHhmN wKSMqrltsHJQxXk2ieDFob5I854SSHjHaaX+13nmcsx75gSkJTqKhecD/ A=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-01.qualcomm.com with ESMTP; 29 Mar 2022 10:33:14 -0700 X-QCInternal: smtphost Received: from nasanex01b.na.qualcomm.com ([10.46.141.250]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2022 10:33:13 -0700 Received: from [10.110.85.148] (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 29 Mar 2022 10:33:13 -0700 Message-ID: <21e51675-a3e5-3956-ec07-adb0a67b284e@quicinc.com> Date: Tue, 29 Mar 2022 11:33:12 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 To: , Jiewen Yao , Jian J Wang , Xiaoyu Lu , Guomin Jiang From: "Rebecca Cran" Subject: CryptoPkg build broken using XCODE5 (Availability.h not found) Return-Path: quic_rcran@quicinc.com X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01b.na.qualcomm.com (10.46.141.250) Content-Language: en-US Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit A build of CryptoPkg with XCODE5 on macOS is now trying to include Availability.h, which isn't found: In file included from /Users/bcran/src/uefi/edk2/CryptoPkg/Library/OpensslLib/openssl/crypto/init.c:13: /Users/bcran/src/uefi/edk2/CryptoPkg/Library/OpensslLib/openssl/include/crypto/rand.h:24:12: fatal error: 'Availability.h' file not found #  include            ^~~~~~~~~~~~~~~~ This is because of the following in CryptoPkg/Library/OpensslLib/openssl/include/crypto/rand.h # if defined(__APPLE__) && !defined(OPENSSL_NO_APPLE_CRYPTO_RANDOM) #  include #  if (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200) || \      (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) #   define OPENSSL_APPLE_CRYPTO_RANDOM 1 #   include #   include #  endif # endif -- Rebecca Cran