<div dir="ltr"><div class="gmail_extra">Hi,<br><br><div class="gmail_quote">On Sun, Aug 31, 2014 at 3:15 PM, Devon Stewart <span dir="ltr">&lt;<a href="mailto:blast@hardchee.se" target="_blank">blast@hardchee.se</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;m getting a strange compilation failure trying to build webkitgtk 2.4.5 with gcc-4.7 (which is stated as the low-end of the compiler requirement, and is already packaged in Homebrew). The error is as follows:<br>

<br>
&gt; rawrbookpro:webkitgtk-2.4.5 blast$ make<br>
&gt;   CXX      Source/WTF/wtf/libWTF_la-PrintStream.lo<br>
&gt;   CXX      Source/WTF/wtf/libWTF_la-RandomNumber.lo<br>
&gt;   CXX      Source/WTF/wtf/libWTF_la-FastMalloc.lo<br>
&gt;   CXX      Source/WTF/wtf/libWTF_la-RefCountedLeakCounter.lo<br>
&gt;   CXX      Source/WTF/wtf/libWTF_la-RunLoop.lo<br>
&gt;   CXX      Source/WTF/wtf/libWTF_la-SHA1.lo<br>
&gt;   CXX      Source/WTF/wtf/libWTF_la-SixCharacterHash.lo<br>
&gt;   CXX      Source/WTF/wtf/libWTF_la-StackBounds.lo<br>
&gt;   CXX      Source/WTF/wtf/libWTF_la-StringPrintStream.lo<br>
&gt;   CXX      Source/WTF/wtf/libWTF_la-TCSystemAlloc.lo<br>
&gt;   CXX      Source/WTF/wtf/libWTF_la-ThreadIdentifierDataPthreads.lo<br>
&gt; Source/WTF/wtf/FastMalloc.cpp: In member function &#39;void WTF::TCMalloc_PageHeap::initializeScavenger()&#39;:<br>
&gt; Source/WTF/wtf/FastMalloc.cpp:1953:56: error: expected primary-expression before &#39;^&#39; token<br>
&gt; Source/WTF/wtf/FastMalloc.cpp:1953:57: error: expected primary-expression before &#39;{&#39; token<br>
&gt; Source/WTF/wtf/FastMalloc.cpp:1953:80: error: &#39;dispatch_source_set_event_handler&#39; was not declared in this scope<br>
&gt;   CXX      Source/WTF/wtf/libWTF_la-ThreadSpecificWin.lo<br>
&gt;   CXX      Source/WTF/wtf/libWTF_la-Threading.lo<br>
&gt; make: *** [Source/WTF/wtf/libWTF_la-FastMalloc.lo] Error 1<br>
&gt; make: *** Waiting for unfinished jobs....<br>
<br>
Now, I know dispatch.h is being found and used, because line 1952 is<br>
<br>
&gt;     dispatch_source_set_timer(m_scavengeTimer, startTime, scavengeDelayInNanoseconds, scavengeDelayInNanoseconds / 10);<br>
<br>
and dispatch_source_set_timer is defined in the same header as dispatch_source_set_event_handler.<br>
<br>
jfpoole on Freenode&#39;s #macdev suggested gcc-4.7 might not understand blocks, but there doesn&#39;t seem to be anything in gcc-4.7&#39;s configure script that references blocks at all. I&#39;m out of my element here, looking for other ideas.<br>
</blockquote><div><br></div><div>Does GCC also require the -fblocks compiler flag to be specified? The few examples that I found use that flag when compiling code with Clang.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
Thanks!<br>
-Devon<br>
<br>
PS: Apple&#39;s version of clang fails the clang &gt;= 3.3 version test, despite being based on clang 3.4... kind of strange.<br>
<br>
&gt; rawrbookpro:~ blast$ clang --version<br>
&gt; Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)<br>
&gt; Target: x86_64-apple-darwin13.3.0<br>
&gt; Thread model: posix<br></blockquote><div><br></div><div>The __clang_major__ and __clang_minor__ macros are used to check the Clang version in Source/autotools/CheckSystemAndBasicDependencies.m4.</div><div>The logic there is really specific to upstream Clang versions, so it&#39;s obvious why the 5.1 version would fail the check.</div>
<div><br></div><div>Cheers,</div><div>Zan</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>_______________________________________________<br>
webkit-gtk mailing list<br>
<a href="mailto:webkit-gtk@lists.webkit.org">webkit-gtk@lists.webkit.org</a><br>
<a href="https://lists.webkit.org/mailman/listinfo/webkit-gtk" target="_blank">https://lists.webkit.org/mailman/listinfo/webkit-gtk</a><br>
<br></blockquote></div><br></div></div>