From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (NAM11-DM6-obe.outbound.protection.outlook.com [40.92.19.52]) by mx.groups.io with SMTP id smtpd.web10.6301.1589945819077449697 for ; Tue, 19 May 2020 20:36:59 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@outlook.com header.s=selector1 header.b=jUESC1Y/; spf=pass (domain: outlook.com, ip: 40.92.19.52, mailfrom: spbrogan@outlook.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZIuzpaxYuyPhlxP+/kBdozlsojIdypHBI3ykntl+fT6eiKLY/ieXlNTVpIqZkBcSkktafiBT+HE7WBlvm0vqhTFCm8IUTc5hwBqBUIaGQMBBZJjjFAbcemIST5mBK4Kurs38GCL8P/iCPcozERdr5y7NvS+nNFYcG0YpGOWLmADMRrWOroS4JACepqy57rcKKliBT5FVr3Du3vx4d4D8sMd3AZsbq5+AwsBk+0oF4TOFBP0oaqJ18gDO3jLbL2gwHojLoZCqjwudoRZkwPWJ97Y6oq2aemQ4Mva2GHwUvJImrG/+6QmGB8cioF+jAdkT3L2FUCJMGNPbUC/4ahm4nA== 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-SenderADCheck; bh=HWQb+BI4bcDbij50KSNi1wGO00urCpblAov9mOwclC8=; b=NlFRg5JOblYs0lm4KhD/CXUptdVU2M9w2wLixQfrWeR2oZ3dsfPHwZAclz5KlD6T7xRxBNhdv9tccSIAUpkGoNHT0/wJ0kZcooHysnX+poQcvX+Bp4HeZrJj7ntjamW6O1h+XW1A+E9qrNknEAvwocJS2AR+zrL+6WuOIg7Ie6kxv73QuuHZ89PjeGD2YiNE0dJJEXs2A1p64HDKd/63+nbKChe0mol6U9vzUAG67iRqLQntix/yzhqwXSLPVlsODJpibAYOCXv0WvZ252CkgdWrYGOhr97SdbeAV1Mih24CH9/IqyOSSGLhFYQ13g/JngtQVhIx1CzgAf3JOAjPrA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HWQb+BI4bcDbij50KSNi1wGO00urCpblAov9mOwclC8=; b=jUESC1Y/8JKHsbZo8sDYV0ZrhDzJPB+ssBBeeTPqZnnjyDK7zkf5lf1kdzMqEWemAdnzwgaFdm3Euv5JYPG2G66IdpH6z9sxQNQyLHg39w4slmK1P10QUM2wXowxK2p+USlgf3qakDolUYGOgNH30J2e3Q/O6Uas01+upvFW951Du60xIWkP2bBX++H29Z+Qq3EFqjuLleuOGmYdx6TngJ5V+hMtrRPW7ZgcHm5SF0c6JUked3tPMypHGueGwmUR+l0SgHvtn9gYREd31yHE8RbdGbFso9JdPFo7AfdQy5e+negpOlMaDe5f6pkOgKRyKSmdTXqbKX3YuPhlRPVovg== Received: from DM6NAM11FT057.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4d::40) by DM6NAM11HT021.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4d::81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19; Wed, 20 May 2020 03:36:58 +0000 Received: from BN8PR07MB6962.namprd07.prod.outlook.com (2a01:111:e400:fc4d::4b) by DM6NAM11FT057.mail.protection.outlook.com (2a01:111:e400:fc4d::252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23 via Frontend Transport; Wed, 20 May 2020 03:36:58 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:B362F47B081608BF67A8AD19CE6602B674BBDEDB15F00259B73EF2780D69453F;UpperCasedChecksum:DA987E5E13334D749E53CD98874A8904A551534950E5B2EFF7B773AD53EE9446;SizeAsReceived:8766;Count:49 Received: from BN8PR07MB6962.namprd07.prod.outlook.com ([fe80::edbc:7122:7dd9:1403]) by BN8PR07MB6962.namprd07.prod.outlook.com ([fe80::edbc:7122:7dd9:1403%9]) with mapi id 15.20.3000.034; Wed, 20 May 2020 03:36:58 +0000 Subject: Re: [edk2-devel] Official way to build BaseTools - Edk2ToolsBuild.py? To: devel@edk2.groups.io, rebecca@bsdio.com References: <5eed935b-7a4c-dffb-0643-d7bcf8499202@bsdio.com> From: "Sean" Message-ID: Date: Tue, 19 May 2020 20:36:55 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 In-Reply-To: <5eed935b-7a4c-dffb-0643-d7bcf8499202@bsdio.com> X-ClientProxiedBy: MWHPR04CA0060.namprd04.prod.outlook.com (2603:10b6:300:6c::22) To BN8PR07MB6962.namprd07.prod.outlook.com (2603:10b6:408:d6::11) Return-Path: spbrogan@outlook.com X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.2.78] (50.47.113.221) by MWHPR04CA0060.namprd04.prod.outlook.com (2603:10b6:300:6c::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23 via Frontend Transport; Wed, 20 May 2020 03:36:57 +0000 X-Microsoft-Original-Message-ID: X-TMN: [rHYKZsiVGhZB0M8TzpG63oU4CPEpBv1/] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 49 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: a89c1862-93cc-48d6-55be-08d7fc6f0cb1 X-MS-TrafficTypeDiagnostic: DM6NAM11HT021: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fy4/3bXU0wE7cIOgzPnumi0vm6imknL4yacHeH1hrj0GGpiZyZ65Pk4iywpdhLQDlncHeOmVNKBmpr1zTcOvgto3dLHRUcqakBF9Im6EQYQBerHgxgn7gnLrKWUZP1Avk3f33mNqo9Pk0OXKH/bvp83QuVxIFYvJ57DRqzu1KkQb6TNBbqptu6xi3JZd2UboX/tyfoq/seFGAbCa/w+iPA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:0;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR07MB6962.namprd07.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:;DIR:OUT;SFP:1901; X-MS-Exchange-AntiSpam-MessageData: a4TcnGU6hxuWrcCRzU9RIGSDGOtuXJRniRUtoaNrNj1j/wlKnBk3xRqRz9FrMD9oeRlI2kref8CFxdtDz4JjwHkGjQbWB6hwEKUgawagc5ig8S+x8Wru4EWZ224NlqFXQFawtYsszmjGSZBhVA7YBw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a89c1862-93cc-48d6-55be-08d7fc6f0cb1 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2020 03:36:58.2544 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6NAM11HT021 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit I am not sure what the community wants to do with it. It was created for the CI build so it is tailored to the needs of the CI build but I have no problem with updates. I agree with your feedback and see no reason either of those would be a problem for the CI use case. Although not convenient for local builds it does currently output full build log to BaseTools/BaseToolsBuild/BASETOOLS_BUILD.txt. Thanks Sean On 5/19/2020 8:23 PM, Rebecca Cran wrote: > I'm wondering if using BaseTools/Edk2ToolsBuild.py will become the > official/standard way users are expected to build BaseTools? If so, > there are a few problems that I'd like to see fixed, which I'll see if I > can find some time to work on. > > > For example: on Linux, running it without arguments gives "ValueError: > Bad VC" - because it defaults to the VS2017 toolchain. > > If you break something in BaseTools and so it fails to build, it prints > "Exception: Failed to build." with no further details. > > > I'd like to improve it so it detects being run on a non-Windows platform > and tries to use GCC, Clang etc. - and perhaps also to add a '--verbose' > argument that can be used to give a more specific error message when it > fails. > >