* Re: Building UDK2017 with VS2015 fails - please help
[not found] <CAHVi0GvAE_nZgUGi2E_TU+wEYpEm4cDkeu1Gy0Rn5S+_2QNcLQ@mail.gmail.com>
@ 2017-08-03 20:45 ` Kinney, Michael D
0 siblings, 0 replies; only message in thread
From: Kinney, Michael D @ 2017-08-03 20:45 UTC (permalink / raw)
To: Tahnia Lichtenstein, edk2-devel@lists.01.org, Kinney, Michael D
Tahnia,
My guess is that you are not using NASM.
It appears that InternalMemIsZeroBuffer is only implemented for NASM and not ASM.
Which is a bug since building with ASM results in a missing function.
Your tools_def.txt file is missing this statement. Please make sure this statement
is present in yours and install NASM and try again.
#################
# Build rule order
#################
*_*_*_*_BUILDRULEORDER = nasm asm Asm ASM S s
Thanks,
Mike
From: Tahnia Lichtenstein [mailto:unlich@gmail.com]
Sent: Thursday, August 3, 2017 9:27 AM
To: edk2-devel@lists.01.org
Subject: Building UDK2017 with VS2015 fails - please help
Hi,
I am new to Tianocore and EDK II. Not sure if this is the right place to ask my question, please advise if there is a more suitable forum.
I am trying to build the UDK2017 on Windows 10 x64, using Visual Studio 2015 (configured for AMD64 compiler).
I followed the procedure documented in UDK2017 How-to-Build<https://github.com/tianocore/tianocore.github.io/wiki/UDK2017-How-to-Build>. I copied the source .zip and cloned Basetools, checking out the specified version. I have not changed any source files, but added the VS2015x86 toolchain to tools_def.txt (attached), and also modified targets.txt with the following:
TOOL_CHAIN_TAG = VS2015x86
ACTIVE_PLATFORM = MdeModulePkg/MdeModulePkg.dsc
When I open the VS2015 command prompt, and run:
edksetup --nt32
build -t VS2015x86
It builds MdeModulePkg successfully (build log attached).
But when I run:
edksetup --nt32
edk2setup --nt32
build -p Nt32Pkg\Nt32Pkg.dsc
I get the following error (build log attached):
Creating library c:\projects\edk\udk2017\Build\NT32IA32\DEBUG_VS2015x86\IA32\MdeModulePkg\Application\UiApp\UiApp\DEBUG\UiApp.lib and object c:\projects\edk\udk2017\Build\NT32IA32\DEBUG_VS2015x86\IA32\MdeModulePkg\Application\UiApp\UiApp\DEBUG\UiApp.exp
BaseMemoryLibOptDxe.lib(IsZeroBufferWrapper.obj) : error LNK2001: unresolved external symbol _InternalMemIsZeroBuffer
c:\projects\edk\udk2017\Build\NT32IA32\DEBUG_VS2015x86\IA32\MdeModulePkg\Application\UiApp\UiApp\DEBUG\UiApp.dll : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\link.exe"' : return code '0x460'
Stop.
build...
: error 7000: Failed to execute command
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe /nologo tbuild [c:\projects\edk\udk2017\Build\NT32IA32\DEBUG_VS2015x86\IA32\MdeModulePkg\Application\UiApp\UiApp]
build...
: error F002: Failed to build module
c:\projects\edk\udk2017\MdeModulePkg\Application\UiApp\UiApp.inf [IA32, VS2015x86, DEBUG]
Also when I run:
edksetup --nt32
build -a IA32 -a X64 -p CorebootPayloadPkg\CorebootPayloadPkgIa32X64.dsc -b DEBUG
I get a different error (build log attached):
Building ... c:\projects\edk\udk2017\CorebootModulePkg\SecCore\SecCore.inf [IA32]
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\link.exe" /OUT:c:\projects\edk\udk2017\Build\CorebootPayloadPkgX64\DEBUG_VS2015x86\IA32\CorebootModulePkg\SecCore\SecCore\DEBUG\SecCore.dll /NOLOGO /NODEFAULTLIB /IGNORE:4001 /OPT:REF /OPT:ICF=10 /MAP /ALIGN:32 /SECTION:.xdata,D /SECTION:.pdata,D /MACHINE:X86 /LTCG /DLL /ENTRY:_ModuleEntryPoint /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER /SAFESEH:NO /BASE:0 /DRIVER /DEBUG @c:\projects\edk\udk2017\Build\CorebootPayloadPkgX64\DEBUG_VS2015x86\IA32\CorebootModulePkg\SecCore\SecCore\OUTPUT\static_library_files.lst
LINK : error LNK2001: unresolved external symbol __ModuleEntryPoint
c:\projects\edk\udk2017\Build\CorebootPayloadPkgX64\DEBUG_VS2015x86\IA32\CorebootModulePkg\SecCore\SecCore\DEBUG\SecCore.dll : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\link.exe"' : return code '0x460'
Stop.
build...
: error 7000: Failed to execute command
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe /nologo tbuild [c:\projects\edk\udk2017\Build\CorebootPayloadPkgX64\DEBUG_VS2015x86\IA32\CorebootModulePkg\SecCore\SecCore]
build...
: error F002: Failed to build module
c:\projects\edk\udk2017\CorebootModulePkg\SecCore\SecCore.inf [IA32, VS2015x86, DEBUG]
Please can you help me to get Nt32Pkg and CorebootPayloadPkg to build? Is there any additional changes I need to make to my build environment, other than listed in UDK2017 How-to-Build<https://github.com/tianocore/tianocore.github.io/wiki/UDK2017-How-to-Build>? Or is my tools_def.txt wrong? Or do I need to dig a bit in the UDK2017 source to fix the errors I am getting?
Best regards,
Tahnia
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-08-03 20:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAHVi0GvAE_nZgUGi2E_TU+wEYpEm4cDkeu1Gy0Rn5S+_2QNcLQ@mail.gmail.com>
2017-08-03 20:45 ` Building UDK2017 with VS2015 fails - please help Kinney, Michael D
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox