From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (NAM02-SN1-obe.outbound.protection.outlook.com [40.107.96.78]) by mx.groups.io with SMTP id smtpd.web09.15854.1639423764892856464 for ; Mon, 13 Dec 2021 11:29:25 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=MZxlYhf2; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.96.78, mailfrom: brijesh.singh@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Oc9WRXlmIgDRnFr8FEcLkD7AztfWRA3kxWgkZMfeVXNS5xTVbPoq1wFWR53Q0CLxcDGTTKSgH/aSFPfOCH7kVv8hpFyQTSW5+gkO69goBqCFLP2TxBW6a3rRxgpZuQcqjw53bZsPcxBRp9ZK216hpsQGmenEA9mRa6u3qSN83DSdneUxg91EpTbG7icgRqThKNnGfO5oOfh1ucfN5mhCYHaRyav760ByXwbOtsVjvTVz46177OqY7b/Tvrfd0CEVQ1qvLc+0Y+Vti7I3tim9F85sr1N3TnQrfYx3v/emsurI7OvhLuyRUU01JFWj1AUfsuj9ng5sEKYcozItIe6pZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WOF9vcqMZO7ifLutijR0VG70HZx9dMm/69WtXeR5C3c=; b=kl1qDuWJ5+ExeFm9uR8VqpEtHgX4jI4i1wYT4E57d7ToU/kO1ZWr9kcCQb7opXIJcwPL4g7IiLCEsq+iLRVejAqRwsX29PFQbAhekOzztqeLu7ppsqsdp/CYLe7fXbkv0M3K6ltm4FpNJ6ECPrg3k09Q+dnLUqifa/5eXalyUzZZfpDlWIfwj6HlgSWDznvx7tQx4hl7MlE/M8gQD7Qwvwugz7jr4MedtlPpdH7WhopRvllEDsE2DnXAJqMHvTzcmQS3X5LpSO6/EyrQTs20pbGpNrne3ggVETP3oNjwv4wDbWHZvvXCkuOLXBPgGf/0Mtb4Pl5KvbMxANmQ29+SBQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WOF9vcqMZO7ifLutijR0VG70HZx9dMm/69WtXeR5C3c=; b=MZxlYhf2hXvQLYehj8NXPFmUiudkcQ06mC9QdeuZVj7Q9uKdL+OPnm3F1zlLqB5WyRcsZXZZk4VQPr3erPZB1GQ9lSj6LBKvbtcB7VmuRFIAAgM67qxOwanaszCTlYgdnKc2ToPQtvyN7po46KDYNriMj9iQsAlGD2X7vyvDRa0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from SN6PR12MB2718.namprd12.prod.outlook.com (2603:10b6:805:6f::22) by SN1PR12MB2368.namprd12.prod.outlook.com (2603:10b6:802:32::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4778.11; Mon, 13 Dec 2021 19:29:17 +0000 Received: from SN6PR12MB2718.namprd12.prod.outlook.com ([fe80::35:281:b7f8:ed4c]) by SN6PR12MB2718.namprd12.prod.outlook.com ([fe80::35:281:b7f8:ed4c%6]) with mapi id 15.20.4778.018; Mon, 13 Dec 2021 19:29:17 +0000 CC: brijesh.singh@amd.com Subject: Re: Building OvmfPkgX64.dsc with XCODE5 (Apple clang 12.0.5) fails in VmgExitLib To: Rebecca Cran , "devel@edk2.groups.io" , Jiewen Yao , Jordan Justen , Gerd Hoffmann , Erdem Aktas , Min Xu , Tom Lendacky References: From: "Brijesh Singh" Message-ID: <6afe4adf-928e-d1f8-c3dc-7d174ef9c73e@amd.com> Date: Mon, 13 Dec 2021 13:29:15 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 In-Reply-To: X-ClientProxiedBy: CH2PR14CA0049.namprd14.prod.outlook.com (2603:10b6:610:56::29) To SN6PR12MB2718.namprd12.prod.outlook.com (2603:10b6:805:6f::22) Return-Path: brijesh.singh@amd.com MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 649f73f0-246f-4f3a-3d6f-08d9be6edaa7 X-MS-TrafficTypeDiagnostic: SN1PR12MB2368:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5516; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 94VSdM0blPMb1VoaT7F4ii2o0IJ2AqqYj0eTaSwi5jpqTIiDtPTNQRy25bbvPOu/Qzfj1Ua1s6DO1FJH3CghGiubUX4raqR2Glk91oorKzeV2ANBImbujUJtevEFBlt30Jy6tQFmKyOn0muUpN3wW/xIpggjHST1qtTmcn+hkEwYZIf/aZAOq3f+QUubiSLapcUMkQ42FEEcy1t2Zmlh3LZSyyftbOXQyA78++GkUYziTuLOIlKaiN8b8okVS5hcNo4fukEUojhHbBE1fa58v921eyYECtzvuu8ty1h2DjZYE3gJHbHPKzECTW405aQA0VFP3Mpq3gSSq1M5AYIq469QA+4jb8yktSiDhyJne9m/3C4nEPqjmy7ks8ObPo+O+va/O4N0OkritGlNlUM/1+2X9aen0OSw5yojFgmS7fT9TZ5FgrjyguGdN5RJI/gIvyw15OsAdII9dpk/+JwSFXX7zsmeHHZWuzeTBQtugRHRpf74Vh9atTMp2MEg8EuHS6SSk5DFLSMBgYzK+nyE5fhsIPNGdwRCg5lxuWibBZAqdlhWHF2y/OViIcakvux5NB5gte8Yj7ByZvOFzA8xEejNTNOIfGNrgaWTN0in2bF9ymcmfM3ZWNm054hh3xknInWAuchlrJuHI7jRisS7gkpPZ10kpg0Sb+A3KJejnqeyWV+vZNDWSLs/wk1iiPlROdPDso0qna8F1z8C9qJ3DIUMn13Q9VlrUjH0MYv+QB1ktws1swhQU6UBIqSDl5L1WAyM1/3Xv4UZ6HEblpc4XA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR12MB2718.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(47660400002)(6636002)(6506007)(186003)(26005)(19627235002)(53546011)(38100700002)(31696002)(4326008)(508600001)(2616005)(44832011)(5660300002)(66556008)(66946007)(6486002)(31686004)(6512007)(66476007)(2906002)(36756003)(83380400001)(8936002)(316002)(110136005)(8676002)(86362001)(46800400005)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ChGYqnLVrt2fSSm/vic47CbVKdFFdhUf1aofmMBmygdeL0nJpy7iqpdsHIcO?= =?us-ascii?Q?4RR3+5S3dHtgq1d+OxYqiuEk8XWE3riRHgQvAYAGUWlzb+9TrDSqU6tQO9uW?= =?us-ascii?Q?akefUoMKYAmTxP3YJjCw92puP4YtT1xehD2WdK7GJ2tfbEVk+EI8ZxSGS63C?= =?us-ascii?Q?pWBXs4cLQIddB5HeTfEsHMXtYnW/syCkyvg737qsWWi6wzSVtD+bQVXs6mS6?= =?us-ascii?Q?7ieGUfz1JU0HT/O5Gs8WjNBKRdHJxb89iYJeXViy7sT8qnmZ+Uj0o6kThT9x?= =?us-ascii?Q?JhfHTup0eD/dzgZ0oZrBDOdgv59KIGJ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?qPt2A+nkh0k5GVGFzP57iILKzf8C+hZzGC4pUpwFCBZW2+zax9SAmonWsWp1?= =?us-ascii?Q?2XEz3REHH2aVKlc1Z9tkp+HtC/tO6jr6bqHHOP4rh5MyzfSMLNwM0MyEWo7v?= =?us-ascii?Q?bzqvYdyEPKKRJJcqfyl8pcxZNJiUb+tk4jRSd7OiF4ebfmBesVerMl+oXvM8?= =?us-ascii?Q?y8g8qVb5mgjf9Cpx8wezY8gPkhZ9Z8gT/fZ0NWZoifV28JFkU/PRvnPupQg3?= =?us-ascii?Q?zYGscn7DE3IneukOJ2gHZlPLLL/gMWOZbJqCgiOY9e06BeAsNEL14IhMeupu?= =?us-ascii?Q?9I4ubkxpRfVCNHwGrXTuCz73ZJix3QJOcC1SEacIf38wF8smvp13zN5rik/X?= =?us-ascii?Q?I2FMJU4kMiGJ6TRe4PTSDSWjLcmTfKatA8eNBp+1BP9rGsSDcEdU9owUbcP8?= =?us-ascii?Q?gdIktaZO46IQAT07NTxTUmo=3D?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 649f73f0-246f-4f3a-3d6f-08d9be6edaa7 X-MS-Exchange-CrossTenant-AuthSource: SN6PR12MB2718.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2021 19:29:17.6487 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: o7wrSkfk0mbhjdidirki2HkIDTeRjex+xCVB3r6gmVW4isvU8VkQZTqjf+VDo7Bz9PXeaJ/DSravQv/G3I+7zg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB2368 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 12/13/21 11:48 AM, Rebecca Cran wrote: > I tried building OvmfPkg/OvmfPkgX64.dsc with XCODE5 (with Apple Clang=20 > 12.0.5 from XCode 13.1) and it failed with the following error: >=20 >=20 > /Users/bcran/src/uefi/edk2/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c:= 1875:9:=20 > error: variable 'Compacted' is used uninitialized whenever 'if'=20 > condition is false [-Werror,-Wsometimes-uninitialized] > =C2=A0=C2=A0=C2=A0 if (EcxIn =3D=3D 1) { > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~ > /Users/bcran/src/uefi/edk2/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c:= 1895:12:=20 > note: uninitialized use occurs here > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Compacted > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~ > /Users/bcran/src/uefi/edk2/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c:= 1875:5:=20 > note: remove the 'if' if its condition is always true > =C2=A0=C2=A0=C2=A0 if (EcxIn =3D=3D 1) { > =C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~~~~~~ > /Users/bcran/src/uefi/edk2/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c:= 1871:37:=20 > note: initialize the variable 'Compacted' to silence this warning > =C2=A0=C2=A0=C2=A0 BOOLEAN=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Compacted; > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^ > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D '= \0' >=20 Thanks for reporting, I will submit a patch sooner to resolve this warning. -Brijesh