public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Andrew Fish <afish@apple.com>
To: Hengyan Tao <hengyan.tao@gmail.com>
Cc: edk2-devel@lists.01.org
Subject: Re: EmulatorPkg build issue
Date: Wed, 21 Jun 2017 10:46:58 -0700	[thread overview]
Message-ID: <CBDBD5CA-9EAC-4A43-8C3E-790897A9311D@apple.com> (raw)
In-Reply-To: <CALwuBRQSngGEqqapi7xm8+J_i42-qC=B3hH+g647vwsEEkyo-Q@mail.gmail.com>

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 <hengyan.tao@gmail.com> 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
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel



  reply	other threads:[~2017-06-21 17:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-21 17:25 EmulatorPkg build issue Hengyan Tao
2017-06-21 17:46 ` Andrew Fish [this message]
2017-06-22  1:48   ` Gao, Liming
2017-06-22  2:15     ` Andrew Fish

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=CBDBD5CA-9EAC-4A43-8C3E-790897A9311D@apple.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