无法在OS X Yosemite上构建Tianocore

时间:2014-11-02 19:23:51

标签: macos gcc clang efi

我正在尝试在OS X Yosemite上构建EFI开发工具包(EDK2)。我有最新的开发工具。我完全按照此处所述的说明进行操作,直至构建UnixPkg。然后我尝试按照文档的建议构建EmulatorPkg;我必须通过Homebrew安装nasm以通过错误消息支持Apple发送nasm不支持所需格式。

现在,它超过了nasm的错误,但构建失败并出现此错误:

Initializing workspace
/Users/user/Code/EFI/edk2/BaseTools
Loading previous configuration from $WORKSPACE/Conf/BuildEnv.sh
WORKSPACE: /Users/user/Code/EFI/edk2
EDK_TOOLS_PATH: /Users/user/Code/EFI/edk2/BaseTools
using prebuilt tools
Build environment: Darwin-14.0.0-x86_64-i386-32bit
Build start time: 13:46:37, Nov.02 2014

WORKSPACE        = /Users/user/Code/EFI/edk2
ECP_SOURCE       = /Users/user/Code/EFI/edk2/EdkCompatibilityPkg
EDK_SOURCE       = /Users/user/Code/EFI/edk2/EdkCompatibilityPkg
EFI_SOURCE       = /Users/user/Code/EFI/edk2/EdkCompatibilityPkg
EDK_TOOLS_PATH   = /Users/user/Code/EFI/edk2/BaseTools


Architecture(s)  = X64
Build target     = DEBUG
Toolchain        = XCODE32

Active Platform          =   /Users/user/Code/EFI/edk2/EmulatorPkg/EmulatorPkg.dsc
Flash Image Definition   = /Users/user/Code/EFI/edk2/EmulatorPkg/EmulatorPkg.fdf

Processing meta-data .. done!
Generating code . done!
Generating makefile . done!
Building ... /Users/user/Code/EFI/edk2/MdePkg/Library/BaseLib/BaseLib.inf [X64]
Building ...  /Users/user/Code/EFI/edk2/MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf [X64]
Building ... /Users/user/Code/EFI/edk2/MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf [X64]
Building ... /Users/user/Code/EFI/edk2/MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf [X64]
Building ... /Users/user/Code/EFI/edk2/MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf [X64]
Building ... /Users/user/Code/EFI/edk2/EmulatorPkg/Library/SecPpiListLib/SecPpiListLib.inf [X64]
Building ... /Users/user/Code/EFI/edk2/MdePkg/Library/BasePrintLib/BasePrintLib.inf  [X64]
Building ... /Users/user/Code/EFI/edk2/MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf [X64]
Building ... /Users/user/Code/EFI/edk2/EmulatorPkg/Library/ThunkPpiList/ThunkPpiList.inf [X64]
Building ... /Users/user/Code/EFI/edk2/EmulatorPkg/Library/ThunkProtocolList/ThunkProtocolList.inf [X64]
Building ... /Users/user/Code/EFI/edk2/EmulatorPkg/Library/SecPeiServicesLib/SecPeiServicesLib.inf [X64]
 Building ... /Users/user/Code/EFI/edk2/MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf [X64]

 Building ... /Users/user/Code/EFI/edk2/EmulatorPkg/Unix/Host/Host.inf [X64]
 "gcc" -arch x86_64 -save-temps -g -O0 -mms-bitfields -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-missing-braces -Wno-address -fomit-frame-pointer -static -c -include AutoGen.h -fno-stack-protector -I/Users/user/Code/EFI/edk2/EmulatorPkg/Unix/Host/X11IncludeHack -o /Users/user/Code/EFI/edk2/Build/Emulator/DEBUG_XCODE32/X64/EmulatorPkg/Unix/Host/Host/OUTPUT/./BerkeleyPacketFilter.obj -I/Users/user/Code/EFI/edk2/EmulatorPkg/Unix/Host/X64 -I/Users/user/Code/EFI/edk2/EmulatorPkg/Unix/Host -I/Users/user/Code/EFI/edk2/Build/Emulator/DEBUG_XCODE32/X64/EmulatorPkg/Unix/Host/Host/DEBUG -I/Users/user/Code/EFI/edk2/MdePkg -I/Users/user/Code/EFI/edk2/MdePkg/Include -I/Users/user/Code/EFI/edk2/MdePkg/Include/X64 -I/Users/user/Code/EFI/edk2/MdeModulePkg -I/Users/user/Code/EFI/edk2/MdeModulePkg/Include -I/Users/user/Code/EFI/edk2/EmulatorPkg -I/Users/user/Code/EFI/edk2/EmulatorPkg/Include /Users/user/Code/EFI/edk2/EmulatorPkg/Unix/Host/BerkeleyPacketFilter.c
In file included from /Users/user/Code/EFI/edk2/EmulatorPkg/Unix/Host/BerkeleyPacketFilter.c:26:
/Users/user/Code/EFI/edk2/MdeModulePkg/Include/Library/NetLib.h:193:9: error: 'NTOHLL' macro redefined [-Werror]
#define NTOHLL(x)  SwapBytes64 (x)
        ^
/usr/include/sys/_endian.h:145:9: note: previous definition is here
#define NTOHLL(x)       (x) = ntohll((__uint64_t)x)
        ^
In file included from    /Users/user/Code/EFI/edk2/EmulatorPkg/Unix/Host/BerkeleyPacketFilter.c:26:
/Users/user/Code/EFI/edk2/MdeModulePkg/Include/Library/NetLib.h:194:9: error: 'HTONLL' macro redefined [-Werror]
#define HTONLL(x)  NTOHLL(x)
        ^
/usr/include/sys/_endian.h:148:9: note: previous definition is here
#define HTONLL(x)       (x) = htonll((__uint64_t)x)
        ^
2 errors generated.
make: ***    [/Users/user/Code/EFI/edk2/Build/Emulator/DEBUG_XCODE32/X64/EmulatorPkg/Unix/Host/Host/OUTPUT/BerkeleyPacketFilter.obj] Error 1


build.py...
  : error 7000: Failed to execute command
make -f   /Users/user/Code/EFI/edk2/Build/Emulator/DEBUG_XCODE32/X64/EmulatorPkg/Unix/Host/Hos   t/GNUmakefile pbuild [/Users/user/Code/EFI/edk2/Build/Emulator/DEBUG_XCODE32/X64]

- Failed -
Build end time: 13:46:41, Nov.02 2014
Build total time: 00:00:04

我需要安装gcc吗?如果是这样,什么版本?运行Xcode 6.1和Apple clang 6.0(基于LLVM 3.5svn)

0 个答案:

没有答案