<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class="">Actually, I’ve built library on 14.04 but it required some hack’s like adding dummy&nbsp;<font face="Monaco" class="">#define&nbsp;</font>and calling&nbsp;<font face="Monaco" class="">libtool</font>&nbsp;with different arguments after&nbsp;<font face="Monaco" class="">make</font>&nbsp;failed with errors.</div><div class=""><br class=""></div><div class=""><b class="">First try:</b></div><div class=""><br class=""></div><div style="font-size: 10px;" class=""><font face="Monaco" style="font-size: 12px;" class="">user$&nbsp;sudo apt-get install libblocksruntime-dev libkqueue-dev libpthread-workqueue-dev</font></div><div class=""><div style="font-family: Monaco; font-size: 10px;" class="">Reading package lists...</div><div style="font-family: Monaco; font-size: 10px;" class="">Building dependency tree...</div><div style="font-family: Monaco; font-size: 10px;" class="">Reading state information...</div><div style="font-family: Monaco; font-size: 10px;" class="">libblocksruntime-dev is already the newest version.</div><div style="font-family: Monaco; font-size: 10px;" class="">libkqueue-dev is already the newest version.</div><div style="font-family: Monaco; font-size: 10px;" class="">libpthread-workqueue-dev is already the newest version.</div><div style="font-family: Monaco; font-size: 10px;" class="">0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.</div><div style="font-family: Monaco; font-size: 10px;" class=""><br class=""></div><div style="font-family: Monaco;" class="">user$&nbsp;git clone <a href="https://github.com/apple/swift-corelibs-libdispatch" class="">https://github.com/apple/swift-corelibs-libdispatch</a> &amp;&amp; cd swift-corelibs-libdispatch</div><div style="font-family: Monaco;" class="">user$&nbsp;sh autogen.sh</div><div style="font-family: Monaco;" class="">user$&nbsp;./configure --with-blocks-runtime</div><div style="font-family: Monaco; font-size: 10px;" class=""><span style="font-size: 12px;" class="">user$ make</span></div><div class=""><div style="font-size: 10px; font-family: Monaco;" class="">queue.c:216:22: error: use of undeclared identifier 'WORKQ_BG_PRIOQUEUE'</div><div style="font-size: 10px; font-family: Monaco;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .dgq_wq_priority = WORKQ_BG_PRIOQUEUE,</div><div style="font-size: 10px; font-family: Monaco;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^</div><div style="font-size: 10px; font-family: Monaco;" class="">queue.c:227:22: error: use of undeclared identifier 'WORKQ_BG_PRIOQUEUE'</div><div style="font-size: 10px; font-family: Monaco;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .dgq_wq_priority = WORKQ_BG_PRIOQUEUE,</div><div style="font-size: 10px; font-family: Monaco;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^</div><div style="font-size: 10px; font-family: Monaco;" class="">queue.c:926:18: error: invalid application of 'sizeof' to an incomplete type 'struct dispatch_root_queue_context_s []'</div><div style="font-size: 10px; font-family: Monaco;" class="">&nbsp; &nbsp; &nbsp; &nbsp; dispatch_assert(countof(_dispatch_root_queue_contexts) ==</div><div style="font-size: 10px; font-family: Monaco;" class="">&nbsp; &nbsp; &nbsp; &nbsp; ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div><div style="font-size: 10px; font-family: Monaco;" class=""><br class=""></div><div style="font-size: 10px; font-family: Monaco;" class="">queue.c:926:18: error: invalid application of 'sizeof' to an incomplete type 'struct dispatch_root_queue_context_s []'</div><div style="font-size: 10px; font-family: Monaco;" class="">&nbsp; &nbsp; &nbsp; &nbsp; dispatch_assert(countof(_dispatch_root_queue_contexts) ==</div><div style="font-size: 10px; font-family: Monaco;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^</div><div style="font-size: 10px; font-family: Monaco;" class="">queue.c:926:18: error: invalid application of 'sizeof' to an incomplete type 'struct dispatch_root_queue_context_s []'</div><div style="font-size: 10px; font-family: Monaco;" class="">&nbsp; &nbsp; &nbsp; &nbsp; dispatch_assert(countof(_dispatch_root_queue_contexts) ==</div><div style="font-size: 10px; font-family: Monaco;" class="">&nbsp; &nbsp; &nbsp; &nbsp; ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div><div style="font-size: 10px; font-family: Monaco;" class="">queue.c:926:18: error: invalid application of 'sizeof' to an incomplete type 'struct dispatch_root_queue_context_s []'</div><div style="font-size: 10px; font-family: Monaco;" class="">&nbsp; &nbsp; &nbsp; &nbsp; dispatch_assert(countof(_dispatch_root_queue_contexts) ==</div><div style="font-size: 10px; font-family: Monaco;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^</div><div style="font-size: 10px; font-family: Monaco;" class="">5 warnings and 6 errors generated.</div><div style="font-size: 10px; font-family: Monaco;" class=""><br class=""></div><div style="font-size: 10px; font-family: Monaco;" class=""><br class=""></div><div class=""><b class="">Second try</b>&nbsp;(with manually defined&nbsp;<span style="font-family: Monaco;" class="">WORKQ_BG_PRIOQUEUE&nbsp;</span>macro ;)):</div><div class=""><span style="font-family: Monaco;" class="">user$ make</span></div><div class=""><div style="font-size: 10px;" class=""><font face="Monaco" class="">/bin/bash ../libtool &nbsp;--tag=CXX &nbsp; --mode=link clang++ &nbsp;-g -O2 -avoid-version &nbsp; &nbsp;-o libdispatch.la -rpath /usr/local/lib allocator.lo apply.lo benchmark.lo data.lo introspection.lo init.lo io.lo object.lo once.lo queue.lo semaphore.lo source.lo time.lo transform.lo voucher.lo shims/linux_stubs.lo &nbsp; &nbsp; -lpthread &nbsp;-Lyes -lBlocksRuntime</font></div><div style="font-size: 10px;" class=""><font face="Monaco" class="">../libtool: line 6000: cd: yes: No such file or directory</font></div><div style="font-size: 10px;" class=""><font face="Monaco" class="">libtool: link: cannot determine absolute directory name of `yes'</font></div><div style="font-size: 10px;" class=""><font face="Monaco" class="">make[2]: *** [libdispatch.la] Error 1</font></div><div style="font-size: 10px;" class=""><font face="Monaco" class="">make[2]: Leaving directory `/home/user/code/libs/tmp/swift-corelibs-libdispatch/src'</font></div><div style="font-size: 10px;" class=""><font face="Monaco" class="">make[1]: *** [all] Error 2</font></div><div style="font-size: 10px;" class=""><font face="Monaco" class="">make[1]: Leaving directory `/home/user/code/libs/tmp/swift-corelibs-libdispatch/src'</font></div><div style="font-size: 10px;" class=""><font face="Monaco" class="">make: *** [all-recursive] Error 1</font></div></div><div style="font-size: 10px;" class=""><font face="Monaco" class=""><br class=""></font></div><div style="font-size: 10px;" class=""><b style="font-size: 12px;" class="">Third try</b><span style="font-size: 12px;" class="">&nbsp;(after running&nbsp;<font face="Monaco" class="">libtool</font>&nbsp;without&nbsp;</span><span style="font-family: Monaco; font-size: 12px;" class="">-Lyes&nbsp;</span><span style="font-size: 12px;" class="">option</span><span style="font-size: 12px;" class="">)</span><span style="font-size: 12px;" class="">:</span></div><div style="font-size: 10px;" class=""><span style="font-family: Monaco; font-size: 12px;" class="">user$ make</span></div><div class=""><div style="font-size: 10px;" class=""><font face="Monaco" class="">bsdtests.c:28:10: fatal error: 'crt_externs.h' file not found</font></div><div style="font-size: 10px;" class=""><font face="Monaco" class="">#include &lt;crt_externs.h&gt;</font></div><div style="font-size: 10px;" class=""><font face="Monaco" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^</font></div><div style="font-size: 10px;" class=""><font face="Monaco" class="">1 error generated.</font></div></div><div style="font-size: 10px;" class=""><font face="Monaco" class=""><br class=""></font></div><div style="font-size: 10px;" class=""><font face="Monaco" class=""><br class=""></font></div><div class="">Few… At least libdispatch was built ;)</div></div></div></div><br class=""><div><blockquote type="cite" class=""><div class="">11 дек. 2015 г., в 18:02, David P Grove via swift-corelibs-dev &lt;<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>&gt; написал(а):</div><br class="Apple-interchange-newline"><div class=""><div class=""><p class=""><tt class=""><a href="mailto:swift-corelibs-dev-bounces@swift.org" class="">swift-corelibs-dev-bounces@swift.org</a> wrote on 12/11/2015 03:17:47 AM:<br class=""><br class="">&gt; From: f-dz-f via swift-corelibs-dev &lt;<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>&gt;</tt><br class=""><tt class="">&gt; To: <a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a></tt><br class=""><tt class="">&gt; Date: 12/11/2015 03:18 AM</tt><br class=""><tt class="">&gt; Subject: [swift-corelibs-dev] &nbsp;libdispatch build issue</tt><br class=""><tt class="">&gt; Sent by: <a href="mailto:swift-corelibs-dev-bounces@swift.org" class="">swift-corelibs-dev-bounces@swift.org</a><br class=""><br class="">&gt; PS On ubuntu 14.04 project is also generally unbuildable (despite <br class="">&gt; title of commit:33b735c5330b5a97d029bccfff9a7d78ef1f214 ;)). </tt><br class=""><br class=""><tt class="">Hi,</tt><br class=""><br class=""><tt class="">        Right now the Linux build is assuming you've installed some pre-req packages. &nbsp;In particular,</tt><br class=""><br class=""><tt class=""><font size="4" class="">sudo apt-get install libblocksruntime-dev libkqueue-dev libpthread-workqueue-dev<br class=""></font></tt><br class=""><tt class="">        I've been building on 15.10; &nbsp;haven't tried 14.04 recently. &nbsp;Maybe try install the pre-reqs on 14.04 and see what happens?</tt><br class=""><br class=""><tt class="">        I'll put together a quick check sheet with build pre-reqs and instructions and submit a pull request to include it.</tt><br class=""><br class=""><tt class="">--dave</tt><br class=""><br class="">

<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=ECh8NQLHGUKNqmGhq-2B7eQ8ZJ8Dti8zZU04k8avxHBeN1Urb5ommbNTdS-2FvqA8yuXaHjmDgXFm6C9dCaBsptOHyCrlxhaCCtfuiK7ZukvVQ-2FQ4HdQNxvc2HE9-2BjKzNRTKT4xhXSgSpQejX-2Bcg4l2b7oOi4YbJHJKbrEanjQMiqx8I7ROsTEUeZS2Leffk63Aaf-2Ff3ZXU5GqEmtUqoYO8muukvZr2SS5pQKNOVJ2Lu2k8-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;" class="">
</p></div>

_______________________________________________<br class="">swift-corelibs-dev mailing list<br class=""><a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev<br class=""></div></blockquote></div><br class=""></body></html>