From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.88; helo=mga01.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6F5F2211ACEAB for ; Tue, 1 Jan 2019 17:25:23 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Jan 2019 17:25:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,429,1539673200"; d="scan'208,217";a="306713449" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga006.fm.intel.com with ESMTP; 01 Jan 2019 17:25:22 -0800 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 1 Jan 2019 17:25:22 -0800 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 1 Jan 2019 17:25:21 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.45]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.46]) with mapi id 14.03.0415.000; Wed, 2 Jan 2019 09:25:20 +0800 From: "Gao, Liming" To: "Wang, Cloud" , Ard Biesheuvel , Leif Lindholm CC: "edk2-devel@lists.01.org" , "Belomorski, Plamen" , "Huang, James" Thread-Topic: Udk2018 windows GCC build errors with echo Thread-Index: AdSejKKOGOcfbrF1QfOZCO0whX8WdADrRMPg Date: Wed, 2 Jan 2019 01:25:19 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E39FB57@SHSMSX104.ccr.corp.intel.com> References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: Udk2018 windows GCC build errors with echo 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: Wed, 02 Jan 2019 01:25:23 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Please copy echo.exe into C:\p4\stg\uefi\gnutools\GNUMake-3.81_win32 direct= ory. It should in C:\soft\gcc-linaro-7.3.1\ directory. Thanks Liming From: Wang, Cloud [mailto:Cloud.Wang@amd.com] Sent: Friday, December 28, 2018 5:14 PM To: Ard Biesheuvel ; Gao, Liming ; Leif Lindholm Cc: edk2-devel@lists.01.org; Belomorski, Plamen = ; Huang, James Subject: Udk2018 windows GCC build errors with echo HI Edk2 Basetool owners, I meet an build error when updating our efi driver tree to UDK2018. The is= sue exists only for AARCH64 build , X64 build is ok. I do a simple test to build MdeModulePkg package in Window10 with gcc-lina= ro-7.3.1-2018.05-win32 The following is my simply script: set GCC5_AARCH64_PREFIX=3DC:\soft\gcc-linaro-7.3.1\bin\aarch64-linux-gnu- set WORKSPACE=3DC:\code\udk201811 set PATH=3DC:\p4\stg\uefi\gnutools\GNUMake-3.81_win32;%PATH% call edksetup.bat build -a AARCH64 -p MdeModulePkg\MdeModulePkg.dsc -t GCC5 -b DEBUG The tool will have error when tring to link dll, it says "echo" objcopy = not needed *.dll '"echo"' is not recognized as an internal or external command, Do anyone meet this issue before? Any advice to solve this issue? A strange thing is if I rerun the build script again , the first dll will= pass , and the second dll will meet same error . "C:\soft\gcc-linaro-7.3.1\bin\aarch64-linux-gnu-gcc" -o c:\code\udk201811\B= uild\MdeModule\DEBUG_GCC5\AARCH64\MdeModulePkg\Universal\Network\UefiPxeBcD= xe\UefiPxeBcDxe\DEBUG\UefiPxe4BcDxe.dll -Wl,--emit-relocs -nostdlib -Wl,--g= c-sections -u _ModuleEntryPoint -Wl,-e,_ModuleEntryPoint,-Map,c:\code\udk20= 1811\Build\MdeModule\DEBUG_GCC5\AARCH64\MdeModulePkg\Universal\Network\Uefi= PxeBcDxe\UefiPxeBcDxe\DEBUG/UefiPxe4BcDxe.map -z common-page-size=3D0x20 -z= common-page-size=3D0x1000 -flto -Os -Lc:\code\udk201811/ArmPkg/Library/Gcc= Lto -llto-aarch64 -Wl,-plugin-opt=3D-pass-through=3D-llto-aarch64 -Wno-lto-= type-mismatch -mcmodel=3Dsmall -Wl,--start-group,@c:\code\udk201811\Build\M= deModule\DEBUG_GCC5\AARCH64\MdeModulePkg\Universal\Network\UefiPxeBcDxe\Uef= iPxeBcDxe\OUTPUT\static_library_files.lst,--end-group -g -fshort-wchar -f= no-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -ffunction-= sections -fdata-sections -include AutoGen.h -fno-common -DSTRING_ARRAY_NAME= =3DUefiPxe4BcDxeStrings -g -Os -fshort-wchar -fno-builtin -fno-strict-alias= ing -Wall -Werror -Wno-missing-braces -Wno-array-bounds -include AutoGen.h = -fno-common -mlittle-endian -fno-short-enums -fverbose-asm -funsigned-char = -ffunction-sections -fdata-sections -Wno-address -fno-asynchronous-unwind-t= ables -fno-pic -fno-pie -ffixed-x18 -flto -Wno-unused-but-set-variable -Wno= -unused-const-variable -mcmodel=3Dsmall -D DISABLE_NEW_DEPRECATED_INTERFACE= S -Wl,--script=3Dc:\code\udk201811\basetools/Scripts/GccBase.lds -Wl,--defs= ym=3DPECOFF_HEADER_SIZE=3D0x228 -Wno-error "echo" objcopy not needed for c:\code\udk201811\Build\MdeModule\DEBUG_GCC5\= AARCH64\MdeModulePkg\Application\HelloWorld\HelloWorld\DEBUG\HelloWorld.dll '"echo"' is not recognized as an internal or external command, operable program or batch file. make: *** [c:\code\udk201811\Build\MdeModule\DEBUG_GCC5\AARCH64\MdeModulePk= g\Application\HelloWorld\HelloWorld\DEBUG\HelloWorld.dll] Error 1