Hengyan,

XCODE32 == Xcode 3.2 so the move to clang. 
XCODE5 == Xcode 5.0 was the last time clang command line arguments change. That 
is probably what you should be using. 

So try:
>git diff
diff --git a/EmulatorPkg/build.sh b/EmulatorPkg/build.sh
index 339c6b3..4f653d2 100755
--- a/EmulatorPkg/build.sh
+++ b/EmulatorPkg/build.sh
@@ -63,17 +63,8 @@ case `uname` in
         echo UnixPkg requires Snow Leopard or later OS
         exit 1
       else
-        CLANG_VER=$(clang -ccc-host-triple x86_64-pc-win32-macho 2>&1 
>/dev/null) || true
-        if [[ "$CLANG_VER" == *-ccc-host-triple* ]]
-        then
-        # only older versions of Xcode support -ccc-host-tripe, for newer 
versions
-        # it is -target
-          HOST_TOOLS=XCODE32
-          TARGET_TOOLS=XCODE5
-        else
-          HOST_TOOLS=XCODE32
-          TARGET_TOOLS=XCLANG
-        fi
+        HOST_TOOLS=XCODE5
+        TARGET_TOOLS=XCODE5
       fi
       BUILD_NEW_SHELL="-D BUILD_NEW_SHELL"
       BUILD_FAT="-D BUILD_FAT"

Thanks,

Andrew Fish

> On Jun 21, 2017, at 10:25 AM, Hengyan Tao <[email protected]> wrote:
> 
> Hi Dear EmulatorPkg Maintainer,
> 
> I am having the below issue when building EmulatorPkg. Any help will be
> appreciated!
> 
> Initializing workspace
> 
> /Users/local/Documents/edk2/BaseTools
> 
> Loading previous configuration from
> /Users/local/Documents/edk2/Conf/BuildEnv.sh
> 
> WORKSPACE: /Users/local/Documents/edk2
> 
> EDK_TOOLS_PATH: /Users/local/Documents/edk2/BaseTools
> 
> CONF_PATH: /Users/local/Documents/edk2/Conf
> 
> using prebuilt tools
> 
> Build environment: Darwin-15.4.0-x86_64-i386-64bit
> 
> Build start time: 13:13:43, Jun.19 2017
> 
> 
> WORKSPACE        = /Users/local/Documents/edk2
> 
> ECP_SOURCE       = /Users/local/Documents/edk2/EdkCompatibilityPkg
> 
> EDK_SOURCE       = /Users/local/Documents/edk2/EdkCompatibilityPkg
> 
> EFI_SOURCE       = /Users/local/Documents/edk2/EdkCompatibilityPkg
> 
> EDK_TOOLS_PATH   = /Users/local/Documents/edk2/BaseTools
> 
> CONF_PATH        = /Users/local/Documents/edk2/Conf
> 
> 
> 
> Architecture(s)  = X64
> 
> Build target     = DEBUG
> 
> Toolchain        = XCODE32
> 
> 
> Active Platform          =
> /Users/local/Documents/edk2/EmulatorPkg/EmulatorPkg.dsc
> 
> Flash Image Definition   =
> /Users/local/Documents/edk2/EmulatorPkg/EmulatorPkg.fdf
> 
> 
> Processing meta-data .
> 
> 
> build.py...
> 
> : error F001: Module
> /Users/local/Documents/edk2/MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
> NOT found in DSC file; Is it really a binary module?
> 
> 
> 
> 
> - Failed -
> 
> Build end time: 13:13:45, Jun.19 2017
> 
> Build total time: 00:00:02
> 
> 
> Command ./XcodeBuild.sh failed with exit code 1
> 
> 
> Thanks,
> Hengyan
> _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.01.org/mailman/listinfo/edk2-devel

_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to