<div dir="ltr">Might be relevant: that /usr/include path is resolved within the Xcode SDK that is being built against, which is buried within the Xcode distribution.<div><br></div><div>On my setup, it really comes from here:</div>
<div>Xcode6-Beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk.  (usr/include is under that).</div><div><br></div><div>-Todd</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Jul 23, 2014 at 10:58 AM, Todd Fiala <span dir="ltr"><<a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I could see that being the case.  This is coming from Xcode 6 Beta.  If you were on that, it would be broken.<div><br></div><div>It might be best to have the Apple guys weigh in on their suggestion here since we're getting way out of my area of focus.</div>

<div><br></div><div>Greg/Jim?</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 10:51 AM, Keno Fischer <span dir="ltr"><<a href="mailto:kfischer@college.harvard.edu" target="_blank">kfischer@college.harvard.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">On 10.9.4, my <span style="font-family:arial,sans-serif;font-size:13px">/usr/include/mach/machine.h does not include that constant. </span></div>

<div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 10:48 AM, Todd Fiala <span dir="ltr"><<a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><p style="margin:1.2em 0px!important">Okay - so this patch won’t work on MacOSX Xcode builds - it starts picking up the wrong definition of that symbol (from machine.h):</p>





<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline;background-color:rgb(248,248,248);white-space:pre-wrap;overflow:auto;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important;display:block;padding:0.5em;color:rgb(51,51,51);background:rgb(248,248,255)">Index: source/Host/common/Host.cpp
===================================================================
--- source/Host/common/Host.cpp    (revision 213770)
+++ source/Host/common/Host.cpp    (working copy)
@@ -32,6 +32,8 @@
 #include <sys/sysctl.h>
 #endif

+#include "lldb/Utility/SafeMachO.h"
+
 #if defined (__APPLE__)
 #include <mach/mach_port.h>
 #include <mach/mach_init.h>
@@ -368,7 +370,7 @@
                 // Now we need modify the cpusubtype for the 32 bit slices.
                 uint32_t cpusubtype32 = cpusubtype;
 #if defined (__i386__) || defined (__x86_64__)
-                if (cpusubtype == CPU_SUBTYPE_486 || cpusubtype == CPU_SUBTYPE_X86_64_H)
+                if (cpusubtype == CPU_SUBTYPE_486 || cpusubtype == llvm::MachO::CPU_SUBTYPE_X86_64_H)
                     cpusubtype32 = CPU_SUBTYPE_I386_ALL;
 #elif defined (__arm__) || defined (__arm64__) || defined (__aarch64__)
                 if (cputype == CPU_TYPE_ARM || cputype == CPU_TYPE_ARM64)
</code></pre><p style="margin:1.2em 0px!important">It is picking up this definition:</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline;background-color:rgb(248,248,248);white-space:pre-wrap;overflow:auto;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important;display:block;padding:0.5em;color:rgb(51,51,51);background:rgb(248,248,255)">#define CPU_SUBTYPE_X86_64_H        ((cpu_subtype_t)8)    /* Haswell feature subset */
</code></pre><p style="margin:1.2em 0px!important">from /usr/include/mach/machine.h.</p>
<p style="margin:1.2em 0px!important">I think the path we’ll want to figure out is how to adjust the makefile include paths to better match the Xcode build.</p>
<p style="margin:1.2em 0px!important">I can probably dump out a compile execution of that file in Xcode the figure out what specifically it is using, in which case you can see how the Makefile is building the include path and perhaps adjust that properly for MacOSX?</p>





<p style="margin:1.2em 0px!important">-Todd</p>
<div title="MDH:T2theSAtIHNvIHRoaXMgcGF0Y2ggd29uJ3Qgd29yayBvbiBNYWNPU1ggWGNvZGUgYnVpbGRzIC0g
aXQgc3RhcnRzIHBpY2tpbmcgdXAgdGhlIHdyb25nIGRlZmluaXRpb24gb2YgdGhhdCBzeW1ib2wg
KGZyb20gbWFjaGluZS5oKTo8ZGl2Pjxicj48L2Rpdj48ZGl2PmBgYDwvZGl2PjxkaXY+PGRpdj5J
bmRleDogc291cmNlL0hvc3QvY29tbW9uL0hvc3QuY3BwPC9kaXY+PGRpdj49PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PC9k
aXY+PGRpdj4tLS0gc291cmNlL0hvc3QvY29tbW9uL0hvc3QuY3BwPHNwYW4gY2xhc3M9IiIgc3R5
bGU9IndoaXRlLXNwYWNlOiBwcmU7Ij4JPC9zcGFuPihyZXZpc2lvbiAyMTM3NzApPC9kaXY+PGRp
dj4rKysgc291cmNlL0hvc3QvY29tbW9uL0hvc3QuY3BwPHNwYW4gY2xhc3M9IiIgc3R5bGU9Indo
aXRlLXNwYWNlOiBwcmU7Ij4JP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9IndoaXRlLXNwYWNlOiBwcmU7Ij4JPC9zcGFuPi8qIEhhc3dlbGwgZmVhdHVyZSBzdWJz
ZXQgKi88L2Rpdj48L2Rpdj48ZGl2PmBgYDwvZGl2PjxkaXY+ZnJvbSAvdXNyL2luY2x1ZGUvbWFj
aC9tYWNoaW5lLmguPC9kaXY+PGRpdj48YnI+PC9kaXY+PGRpdj5JIHRoaW5rIHRoZSBwYXRoIHdl
J2xsIHdhbnQgdG8gZmlndXJlIG91dCBpcyBob3cgdG8gYWRqdXN0IHRoZSBtYWtlZmlsZSBpbmNs
dWRlIHBhdGhzIHRvIGJldHRlciBtYXRjaCB0aGUgWGNvZGUgYnVpbGQuPC9kaXY+PGRpdj48YnI+
PC9kaXY+PGRpdj5JIGNhbiBwcm9iYWJseSBkdW1wIG91dCBhIGNvbXBpbGUgZXhlY3V0aW9uIG9m
IHRoYXQgZmlsZSBpbiBYY29kZSB0aGUgZmlndXJlIG91dCB3aGF0IHNwZWNpZmljYWxseSBpdCBp
cyB1c2luZywgaW4gd2hpY2ggY2FzZSB5b3UgY2FuIHNlZSBob3cgdGhlIE1ha2VmaWxlIGlzIGJ1
aWxkaW5nIHRoZSBpbmNsdWRlIHBhdGggYW5kIHBlcmhhcHMgYWRqdXN0IHRoYXQgcHJvcGVybHkg
Zm9yIE1hY09TWD88L2Rpdj48ZGl2Pjxicj48L2Rpdj48ZGl2Pi1Ub2RkPC9kaXY+" style="min-height:0;font-size:0em;padding:0;margin:0">​</div></div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Wed, Jul 23, 2014 at 10:37 AM, Todd Fiala <span dir="ltr"><<a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">No problem, just wanted to make sure I'm using the code you intended :-)  Thanks!</div><div>
<div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 10:34 AM, Keno Fischer <span dir="ltr"><<a href="mailto:kfischer@college.harvard.edu" target="_blank">kfischer@college.harvard.edu</a>></span> wrote:<br>





<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Sorry, yeah it got truncated, basically just prepend <span style="font-family:arial,sans-serif;font-size:13px">llvm::MachO:: to </span><span style="font-family:arial,sans-serif;font-size:13px">CPU_SUBTYPE_X86_64_H. Sorry about that. </span></div>





<div><div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 10:32 AM, Todd Fiala <span dir="ltr"><<a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







<div dir="ltr">Hm is the patch here what you really wanted?  It might be getting truncated?<div><div><br></div><div><div style="font-family:arial,sans-serif;font-size:13px">-                if (cpusubtype == CPU_SUBTYPE_486 || cpusubtype == CPU_SUBTYPE_</div>








<div style="font-family:arial,sans-serif;font-size:13px">+                if (cpusubtype == CPU_SUBTYPE_486 || cpusubtype == llvm::MachO:</div></div><div><br></div></div><div>Seems incomplete.</div></div><div>

<div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 10:24 AM, Todd Fiala <span dir="ltr"><<a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">








<div dir="ltr">I'll go ahead and give it a run on Xcode.  If it doesn't break anything there, sure I'll go ahead and commit it.<div><br></div></div><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 10:22 AM, Keno Fischer <span dir="ltr"><<a href="mailto:kfischer@college.harvard.edu" target="_blank">kfischer@college.harvard.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Does the Xcode build automatically include SafeMachO.h? Also, any harm in just committing that patch, if not would you mind doing that (I don't have commit access)? </div>









<div><div><div class="gmail_extra"><br><br>

<div class="gmail_quote">On Wed, Jul 23, 2014 at 10:17 AM, Todd Fiala <span dir="ltr"><<a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">











<div dir="ltr">Ok.  Sounds like there are header ordering differences between configure/make and the Xcode build.  That might be causing issues.</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Wed, Jul 23, 2014 at 10:14 AM, Keno Fischer <span dir="ltr"><<a href="mailto:kfischer@college.harvard.edu" target="_blank">kfischer@college.harvard.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ok, figured it out. The position of the SafeMachO.h header matters. This works:<div><br></div><div>```</div>












<div><div>diff --git a/source/Host/common/Host.cpp b/source/Host/common/Host.cpp</div><div>index 275b446..3802224 100644</div>

<div>--- a/source/Host/common/Host.cpp</div><div>+++ b/source/Host/common/Host.cpp</div><div>@@ -32,6 +32,8 @@</div><div> #include <sys/sysctl.h></div><div> #endif</div><div><br></div><div>+#include "lldb/Utility/SafeMachO.h"</div>














<div>+</div><div> #if defined (__APPLE__)</div><div> #include <mach/mach_port.h></div><div> #include <mach/mach_init.h></div><div>@@ -368,7 +370,7 @@ Host::GetArchitecture (SystemDefaultArchitecture arch_kind)</div>














<div>                 // Now we need modify the cpusubtype for the 32 bit slices.</div><div>                 uint32_t cpusubtype32 = cpusubtype;</div><div> #if defined (__i386__) || defined (__x86_64__)</div><div>-                if (cpusubtype == CPU_SUBTYPE_486 || cpusubtype == CPU_SUBTYPE_</div>














<div>+                if (cpusubtype == CPU_SUBTYPE_486 || cpusubtype == llvm::MachO:</div><div>                     cpusubtype32 = CPU_SUBTYPE_I386_ALL;</div><div> #elif defined (__arm__) || defined (__arm64__) || defined (__aarch64__)</div>














<div>                 if (cputype == CPU_TYPE_ARM || cputype == CPU_TYPE_ARM64)</div></div><div>```</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 10:04 AM, Keno Fischer <span dir="ltr"><<a href="mailto:kfischer@college.harvard.edu" target="_blank">kfischer@college.harvard.edu</a>></span> wrote:<br>














<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I don't think that file is included from Host.cpp or am I missing something?</div><div>

<div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 9:59 AM, Todd Fiala <span dir="ltr"><<a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>></span> wrote:<br>















<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">It comes from llvm/include/llvm/Support/MachO.h, line 1261.</div><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 9:57 AM, Keno Fischer <span dir="ltr"><<a href="mailto:kfischer@college.harvard.edu" target="_blank">kfischer@college.harvard.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Through which path is that constant supposed to be defined? I can check that all those are picked up correctly.</div>
















<div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 9:55 AM, Todd Fiala <span dir="ltr"><<a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>></span> wrote:<br>


















<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ok.  Definitely sounds worth of opening up a <a href="http://llvm.org/bugs" target="_blank">llvm.org/bugs</a> ticket on.  That way you can attach your make logs and whatnot.<div>


















<br></div><div>Based on what you reported so far, it sounds like perhaps the build is picking up headers from the wrong place (i.e. maybe configure is finding the wrong llvm code, or something that is causing headers from one place to get used with code from another, perhaps between the local lldb and llvm/clang code).</div>


















<span><font color="#888888">
<div><br></div><div>-Todd</div></font></span></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 9:51 AM, Keno Fischer <span dir="ltr"><<a href="mailto:kfischer@college.harvard.edu" target="_blank">kfischer@college.harvard.edu</a>></span> wrote:<br>



















<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">That's not really a great option, because it means I have to maintain three build systems on my side with three different configurations, especially because the rest of llvm/clang builds just fine with Makefiles. I will track down why this fails and submit a patch. Since this is the only issue preventing a clean build of lldb with Makefiles, I think that will be significantly less work than adjusting the rest of the pipeline to work with three build systems. </div>



















<div><div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 9:26 AM, Todd Fiala <span dir="ltr"><<a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





















<div dir="ltr">Ok I did an Xcode and Ubuntu 14.04 build at llvm, clang and lldb r213767 (just a few minutes ago), and those all worked.<div><br></div><div>Are you in a position where you can use the Xcode build on MacOSX?  If so, that's definitely the way to go.  cmake gets little attention there, and frankly I didn't even know the configure/make build on MacOSX even worked.</div>






















<div><br></div><div>At the moment we're struggling with having 3 build systems.  At best we're maintaining the canonical build system for a given platform.  Right now that seems to be Xcode for MacOSX, cmake for Ubuntu and FreeBSD.  make/configure seems to be used by Debian's 'build (maybe FC too?).  I would recommend attempting to use the canonical build system for lldb on a given platform to minimize difficulties since those will tend to get fixed quickly when they do break on the given platform.</div>






















</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 9:13 AM, Todd Fiala <span dir="ltr"><<a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>></span> wrote:<br>






















<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ah shucks, ok.<div><br></div><div>I did fix a build issue that occurred this morning due to some changes in llvm, but I don't think I hit that one.</div>






















<div><br></div><div>I'll do a quick sync now just to see if maybe that crept in over the last hour or two since I came in.</div><span><font color="#888888">
<div><br></div><div>-Todd</div></font></span></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 9:11 AM, Keno Fischer <span dir="ltr"><<a href="mailto:kfischer@college.harvard.edu" target="_blank">kfischer@college.harvard.edu</a>></span> wrote:<br>























<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">No, I'm doing a Makefile build. LLVM/Clang/LLDB are all at latest trunk.</div><div><div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 23, 2014 at 9:06 AM, Todd Fiala <span dir="ltr"><<a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey Keno!<div><br></div><div>Are you doing an Xcode build?</div><div><br></div><div>If so, you may be suffering from what I did when I first started using Xcode builds.  Xcode puts the llvm and llvm/tools/clang directory underneath the lldb directory.  It does a sync the first time for you, but not after that.  So, you may be dealing with an llvm and clang tree that are out of date with respect to your version of llvm.  If that's the case, just do this:</div>


























<div><br></div><div>cd /your/lldb/path</div><div><br></div><div>cd llvm</div><div>svn update</div><div><br></div><div>cd tools/clang</div><div>svn update</div><div><br></div><div># Put you back in the lldb dir</div><div>

























cd ../../..</div>
<div><br></div><div>Then redo your build of lldb.  It will run the auto llvm/clang build step (somewhat long), then get back to building lldb.</div><div><br></div><div>Let me know if that solves your issue!</div><div><br>


























</div><div>-Todd</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Wed, Jul 23, 2014 at 8:43 AM, Keno Fischer <span dir="ltr"><<a href="mailto:kfischer@college.harvard.edu" target="_blank">kfischer@college.harvard.edu</a>></span> wrote:<br>


























</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>While building on OS X I have been sent reports of the following (I<br>
did see it myself at one point as well, but worked around it). I tried<br>
including SafeMachO.h but that caused other problems in the llvm<br>
headers. What's the proper way to get around this other than `#define<br>
CPU_SUBTYPE_X86_64_H 8`?<br>
<br>
lldb/source/Host/common/Host.cpp:371:68: error: use of undeclared<br>
identifier 'CPU_SUBTYPE_X86_64_H'<br>
                if (cpusubtype == CPU_SUBTYPE_486 || cpusubtype ==<br>
CPU_SUBTYPE_X86_64_H)<br>
<br>
Keno<br></div></div>
_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><span><font color="#888888"><br>
</font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'">

























<tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">
<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>


























<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>


























<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">























<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>























<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>























<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">






















<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>






















<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>






















<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">



















<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>



















<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>



















<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">
















<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>
















<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>
















<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">












<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>












<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>












<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">









<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>









<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>









<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">








<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>








<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>








<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">





<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>





<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>





<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">




<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>




<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>




<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">

<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>

<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>

<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">
<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div>