public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Re: Udk2018 windows GCC build errors with echo
       [not found] <SN6PR12MB260881B8A430209D51B4081E9DB70@SN6PR12MB2608.namprd12.prod.outlook.com>
@ 2019-01-02  1:25 ` Gao, Liming
  0 siblings, 0 replies; only message in thread
From: Gao, Liming @ 2019-01-02  1:25 UTC (permalink / raw)
  To: Wang, Cloud, Ard Biesheuvel, Leif Lindholm
  Cc: edk2-devel@lists.01.org, Belomorski, Plamen, Huang, James

Please copy echo.exe into C:\p4\stg\uefi\gnutools\GNUMake-3.81_win32 directory. 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 <ard.biesheuvel@linaro.org>; Gao, Liming <liming.gao@intel.com>; Leif Lindholm <leif.lindholm@linaro.org>
Cc: edk2-devel@lists.01.org; Belomorski, Plamen <Plamen.Belomorski@amd.com>; Huang, James <James.Huang@amd.com>
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 issue exists only for AARCH64 build , X64 build is ok.
I do a simple test to build MdeModulePkg package in Window10  with gcc-linaro-7.3.1-2018.05-win32

The following is my simply script:
set GCC5_AARCH64_PREFIX=C:\soft\gcc-linaro-7.3.1\bin\aarch64-linux-gnu-
set WORKSPACE=C:\code\udk201811
set PATH=C:\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\Build\MdeModule\DEBUG_GCC5\AARCH64\MdeModulePkg\Universal\Network\UefiPxeBcDxe\UefiPxeBcDxe\DEBUG\UefiPxe4BcDxe.dll -Wl,--emit-relocs -nostdlib -Wl,--gc-sections -u _ModuleEntryPoint -Wl,-e,_ModuleEntryPoint,-Map,c:\code\udk201811\Build\MdeModule\DEBUG_GCC5\AARCH64\MdeModulePkg\Universal\Network\UefiPxeBcDxe\UefiPxeBcDxe\DEBUG/UefiPxe4BcDxe.map -z common-page-size=0x20 -z common-page-size=0x1000 -flto -Os -Lc:\code\udk201811/ArmPkg/Library/GccLto -llto-aarch64 -Wl,-plugin-opt=-pass-through=-llto-aarch64 -Wno-lto-type-mismatch -mcmodel=small -Wl,--start-group,@c:\code\udk201811\Build\MdeModule\DEBUG_GCC5\AARCH64\MdeModulePkg\Universal\Network\UefiPxeBcDxe\UefiPxeBcDxe\OUTPUT\static_library_files.lst,--end-group   -g -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -ffunction-sections -fdata-sections -include AutoGen.h -fno-common -DSTRING_ARRAY_NAME=UefiPxe4BcDxeStrings -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -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-tables -fno-pic -fno-pie -ffixed-x18 -flto -Wno-unused-but-set-variable -Wno-unused-const-variable -mcmodel=small -D DISABLE_NEW_DEPRECATED_INTERFACES -Wl,--script=c:\code\udk201811\basetools/Scripts/GccBase.lds -Wl,--defsym=PECOFF_HEADER_SIZE=0x228 -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\MdeModulePkg\Application\HelloWorld\HelloWorld\DEBUG\HelloWorld.dll] Error 1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-02  1:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <SN6PR12MB260881B8A430209D51B4081E9DB70@SN6PR12MB2608.namprd12.prod.outlook.com>
2019-01-02  1:25 ` Udk2018 windows GCC build errors with echo Gao, Liming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox