From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::52d; helo=mail-ed1-x52d.google.com; envelope-from=perry.prem@gmail.com; receiver=edk2-devel@lists.01.org Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C2FBB2117D26C for ; Mon, 5 Nov 2018 02:40:20 -0800 (PST) Received: by mail-ed1-x52d.google.com with SMTP id w19-v6so7063211eds.1 for ; Mon, 05 Nov 2018 02:40:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0e36K8s3SiV/bnQav2tsN+SThDv34xR5rWv4bkd5xO8=; b=k8xPtZCu8pQegHOamnFFBjGDgTWKpqWJ/Be62ARtKtICerkvIrshEWLGOberylqw8/ hyABVRRdkaO+n7qpVG9V0CMTddfNQZxhkgl6KMQxs5NJQo0Y/LuRKddYLZYXhwSOC+eT ldpkLRyoRVoYBMxDVRYxjOrutbyMoKypljtBYXztHbDwygDRN+IEns5VVbUa/IHuXQTx wGq//2Wp3uwcCPjY1OoPIG1T4Gy2btfZpiy/R7YpaFcDmH9Edn1cFjH7qVwjAYHdsM1q mzVUBHtTEpXsehggxmAQ8iZJ1Y7pWLeZi1mHwbE3ANC82219zuRPdODX9sL+5x4t1U8J ulAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0e36K8s3SiV/bnQav2tsN+SThDv34xR5rWv4bkd5xO8=; b=NUckVTDIk3+h4WRcFErVCiB5vtGnzQV7dzui/u9wEzM+nlpYEGmYOUuz0nZ8ggeQ45 zNjviT2ulqty2MV+zb1S7SJ5SFAJT5ephnkZi6DlcBJ/Y0jZU5fD5kNRT3PEUQiljkdM MScGloTL8JP59zrGg/4DDysEzoCi3jALs77Y62+c+7LO0/vHOEiyG0X/Z9+/uZ+nGuKU s8M798O36UuheC+Vv0MRTw5E7IZaPEstOxA/udx3iNf7rAMEZRV7S5rkh9p+0e1qh3Z7 Lk+lCQfoxNuUZ6tHUf1IM8+Au/hL2ArXKWp8Zud8w3NddZZMFz/HjW9NTgSDQpwtL/Zj C06g== X-Gm-Message-State: AGRZ1gLl0rDkcgCxYQtj4HDh4iCrfFBXyPUPV3mRLb5QZE0wpTRQIk// EVdXRn0csmKlh2+Jt0WQSdUn0KIlM34cFTc+uIplgLXW X-Google-Smtp-Source: AJdET5d+jCwP7KDYTqe+aixlJsRQ6h/AL7tYZebEItGF0pJpJ/z+489s/7N+DQf9Xjro4/O+4nMeipOxAAPSfScCerk= X-Received: by 2002:a50:8144:: with SMTP id 62-v6mr17305526edc.204.1541414419252; Mon, 05 Nov 2018 02:40:19 -0800 (PST) MIME-Version: 1.0 References: <4A89E2EF3DFEDB4C8BFDE51014F606A14E3644F3@SHSMSX104.ccr.corp.intel.com> In-Reply-To: From: Prem Kumar Date: Mon, 5 Nov 2018 16:09:52 +0530 Message-ID: To: Ard Biesheuvel Cc: liming.gao@intel.com, edk2-devel@lists.01.org X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [edk2-buildtools] Configuration changes for building EDK2 for AARCH64 using LLVM X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2018 10:40:21 -0000 Content-Type: text/plain; charset="UTF-8" Hi Ard Biesheuvel, Thanks for your reply. I've windows environment and LLVM tools chain installed. I'd like to build EDK2 project for ARM and AARCH64. Just a simple try I've tried CLANG38 tool chain to build MdeModulePkg.dsc like below, *build -t CLANG38 -a AARCH64 -p MdeModulePkg\MdeModulePkg.dsc* Below is the error for above command used, C:\UEFIWorkspace\edk2-master_2018_Latest>build -t CLANG38 -a AARCH64 -p MdeModulePkg\MdeModulePkg.dsc Build environment: Windows-10-10.0.16299 Build start time: 16:08:38, Nov.05 2018 WORKSPACE = c:\uefiworkspace\edk2-master_2018_latest ECP_SOURCE = c:\uefiworkspace\edk2-master_2018_latest\edkcompatibilitypkg EDK_SOURCE = c:\uefiworkspace\edk2-master_2018_latest\edkcompatibilitypkg EFI_SOURCE = c:\uefiworkspace\edk2-master_2018_latest\edkcompatibilitypkg EDK_TOOLS_PATH = c:\uefiworkspace\edk2-master_2018_latest\basetools EDK_TOOLS_BIN = c:\uefiworkspace\edk2-master_2018_latest\basetools\bin\win32 CONF_PATH = c:\uefiworkspace\edk2-master_2018_latest\conf Architecture(s) = AARCH64 Build target = DEBUG Toolchain = CLANG38 Active Platform = c:\uefiworkspace\edk2-master_2018_latest\MdeModulePkg\MdeModulePkg.dsc Processing meta-data ...... done! Building ... c:\uefiworkspace\edk2-master_2018_latest\MdePkg\Library\BaseStackCheckLib\BaseStackCheckLib.inf [AARCH64] Building ... c:\uefiworkspace\edk2-master_2018_latest\ArmPkg\Library\CompilerIntrinsicsLib\CompilerIntrinsicsLib.inf [AARCH64] Building ... c:\uefiworkspace\edk2-master_2018_latest\MdePkg\Library\UefiLib\UefiLib.inf [AARCH64] 'make' is not recognized as an internal or external command, 'make' is not recognized as an internal or external command, Building ... c:\uefiworkspace\edk2-master_2018_latest\MdePkg\Library\UefiApplicationEntryPoint\UefiApplicationEntryPoint.inf [AARCH64] operable program or batch file. operable program or batch file. build.py... : error 7000: Failed to execute command make tbuild [c:\uefiworkspace\edk2-master_2018_latest\Build\MdeModule\DEBUG_CLANG38\AARCH64\MdePkg\Library\BaseStackCheckLib\BaseStackCheckLib] 'make' is not recognized as an internal or external command, build.py... : error 7000: Failed to execute command make tbuild [c:\uefiworkspace\edk2-master_2018_latest\Build\MdeModule\DEBUG_CLANG38\AARCH64\ArmPkg\Library\CompilerIntrinsicsLib\CompilerIntrinsicsLib] build.py... : error 7000: Failed to execute command make tbuild [c:\uefiworkspace\edk2-master_2018_latest\Build\MdeModule\DEBUG_CLANG38\AARCH64\MdePkg\Library\UefiLib\UefiLib] build.py... : error 7000: Failed to execute command make tbuild [c:\uefiworkspace\edk2-master_2018_latest\Build\MdeModule\DEBUG_CLANG38\AARCH64\MdePkg\Library\UefiApplicationEntryPoint\UefiApplicationEntryPoint] build.py... : error 7000: Failed to execute command make tbuild [c:\uefiworkspace\edk2-master_2018_latest\Build\MdeModule\DEBUG_CLANG38\AARCH64\MdePkg\Library\UefiDevicePathLib\UefiDevicePathLib] build.py... : error F002: Failed to build module c:\uefiworkspace\edk2-master_2018_latest\MdePkg\Library\BaseStackCheckLib\BaseStackCheckLib.inf [AARCH64, CLANG38, DEBUG] - Failed - Build end time: 16:08:52, Nov.05 2018 -- Thanks, Prem. On Mon, Nov 5, 2018 at 3:52 PM Ard Biesheuvel wrote: > On 5 November 2018 at 09:51, Prem Kumar wrote: > > Hi All, > > > > I'm trying to build EDK2 for AARCH64 using LLVM tool chain under Windows > > environment. > > > > > > > > Kindly provide any pointers > > > > - To configure tools chain, > > > > - Modify Conf folder for LLVM > > > > - Configure for building ARM and AARCH64 > > > > > > Any pointers are welcome to proceed further. > > > > I'm sorry - I don't have access to a Windows machine, but I am not > aware of any reasons why clang for windows wouldn't work with the > CLANG38 toolchain profile to build AARCH64 targets. > > However, GCC5 is by far the best supported one, so if you're after the > ability to build AARCH64 targets using whichever toolchain, that is > what I would recommend instead. >