From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::144; helo=mail-it1-x144.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-it1-x144.google.com (mail-it1-x144.google.com [IPv6:2607:f8b0:4864:20::144]) (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 3652021A09130 for ; Mon, 5 Nov 2018 02:43:32 -0800 (PST) Received: by mail-it1-x144.google.com with SMTP id t190-v6so6245002itb.2 for ; Mon, 05 Nov 2018 02:43:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=tN/pr7IcHbEuL1U57xkBCWvVvLWFtmWZQy76G/tJ+qY=; b=cNJhpG0g7kyTqL7LLmbUkcA5JXDSAwfXEK+QYuPh7g0aLl7mhMkslOZOsAMspjDqrj qcE9hdMxeWdoCBv5E887NsjoIaePjIKlk0L4HINXCF6h/eDee6Vk4MjzqUpMqUGivkav zL1AtFNRn9Q6aKMG/bOkJOCerulOc76aKpkDA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=tN/pr7IcHbEuL1U57xkBCWvVvLWFtmWZQy76G/tJ+qY=; b=fbA9HP0wL3hysB/i6BKW9MSQT3PFLlMfafU28he8GWQzIiIxvNLFU74Vt6WdeoXWCM 3rzS9+etZX8yJMpkP3h18zHEXavfYZlX2eUdD+xQ7UTzrJSC8Y7YT9z7+DDYGHBZc9CO LsczuYP+7Ay4vet5NP3XBOLz81K2/02Fh7hcWkeGrG90DiHcOqL60tMdSRY+U8QWkVc1 i70mBi/zJ9T3pmdq1sm7iyHyprXbhit8nrc9mF7l+GiCAhXOLHmCHRTlLP+ioSrlgApq 6PNvoGE9p+nrGudqHcy2GGSzkE9F3gQnuBRbq4yQWvuDN4ZdIgrrA9pDEUYHzyAsMg7p IhMg== X-Gm-Message-State: AGRZ1gLzty5cupwKePNeW2np2cgDLOQzYjmBTv5PcAcvn3+GYbdBNbz3 qdUqP6AX3nA97AEHYf0DsOLuVYMumZHCXBU8Gd64EdlW X-Google-Smtp-Source: AJdET5cxns+uYMeC/LixmtsvFtdJoVQl2vop6yn46txlnQtp9L7w7IUYUnhpUmBaYKsUURxyAztVKeyOTwbvoRl005Y= X-Received: by 2002:a24:8347:: with SMTP id d68-v6mr6778159ite.158.1541414612259; Mon, 05 Nov 2018 02:43:32 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a6b:4f16:0:0:0:0:0 with HTTP; Mon, 5 Nov 2018 02:43:31 -0800 (PST) In-Reply-To: References: <4A89E2EF3DFEDB4C8BFDE51014F606A14E3644F3@SHSMSX104.ccr.corp.intel.com> From: Ard Biesheuvel Date: Mon, 5 Nov 2018 11:43:31 +0100 Message-ID: To: Prem Kumar Cc: "Gao, Liming" , "edk2-devel@lists.01.org" 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:43:33 -0000 Content-Type: text/plain; charset="UTF-8" On 5 November 2018 at 11:39, Prem Kumar wrote: > 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, It seems you will need GNU make for Windows > 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.