From: "Gao, Liming" <liming.gao@intel.com>
To: "Wang, Cloud" <Cloud.Wang@amd.com>,
Ard Biesheuvel <ard.biesheuvel@linaro.org>,
Leif Lindholm <leif.lindholm@linaro.org>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
"Belomorski, Plamen" <Plamen.Belomorski@amd.com>,
"Huang, James" <James.Huang@amd.com>
Subject: Re: Udk2018 windows GCC build errors with echo
Date: Wed, 2 Jan 2019 01:25:19 +0000 [thread overview]
Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E39FB57@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <SN6PR12MB260881B8A430209D51B4081E9DB70@SN6PR12MB2608.namprd12.prod.outlook.com>
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
parent reply other threads:[~2019-01-02 1:25 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <SN6PR12MB260881B8A430209D51B4081E9DB70@SN6PR12MB2608.namprd12.prod.outlook.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A89E2EF3DFEDB4C8BFDE51014F606A14E39FB57@SHSMSX104.ccr.corp.intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox