<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Compiling the runtime on Cygwin in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Compiling-the-runtime-on-Cygwin/m-p/1070393#M57989</link>
    <description>&lt;P&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;Hi,&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;" /&gt;
	&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;I tried compiling the runtime on latest Cygwin w/ GCC 5.3, but ran&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;into some errors which are solved with&lt;/SPAN&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;&amp;nbsp;the patch below.&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;" /&gt;
	&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;A few of the code samples do work well under Cygwin (e.g.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;Fibonacci), but some don't (cilk-reducers-demo never finishes).&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;Unfortunately I'm at the limit of my debugging skills and time to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;figure out why.&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;" /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;diff -Naur cilkplus-rtl-src-004420/runtime/os-unix.c
cilkplus-rtl-src-004420_cygwin/runtime/os-unix.c
--- cilkplus-rtl-src-004420/runtime/os-unix.c      2015-11-09
22:27:52.000000000 +0100
+++ cilkplus-rtl-src-004420_cygwin/runtime/os-unix.c  2016-02-11
11:54:05.473915000 +0100
@@ -432,7 +432,8 @@
 #elif defined(__MIC__)
     _mm_delay_32(1024);
 #elif defined(__linux__) || \
-      defined(__APPLE__)
+      defined(__APPLE__) || \
+      defined(__CYGWIN__)
     usleep(10000);
 #else
 # error "Unsupported architecture"
@@ -452,6 +453,7 @@
 {
 #if defined(__ANDROID__)  || \
     defined(__APPLE__)    || \
+    defined(__CYGWIN__)   || \
     defined(__FreeBSD__)  || \
     defined(__VXWORKS__)  || \
     (defined(__sun__) &amp;amp;&amp;amp; defined(__svr4__))
diff -Naur /cygdrive/d/Downloads/cilk/cilkplus-rtl-src-004420/runtime/sysdep-unix.c
cilkplus-rtl-src-004420/runtime/sysdep-unix.c
--- cilkplus-rtl-src-004420/runtime/sysdep-unix.c
2015-11-09 22:27:54.000000000 +0100
+++ cilkplus-rtl-src-004420_cygwin/runtime/sysdep-unix.c
2016-02-10 18:08:51.610235700 +0100
@@ -568,7 +568,7 @@
 {
     // dladdr is a glibc extension. If it's available, use it to find the path
     // for libcilkrts.so
-#ifdef _GNU_SOURCE
+#if defined(_GNU_SOURCE) &amp;amp;&amp;amp; !defined(__CYGWIN__)
     Dl_info info;
     if (0 != dladdr(dummy_function, &amp;amp;info))
         return info.dli_fname;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Feb 2016 14:07:13 GMT</pubDate>
    <dc:creator>kmilos</dc:creator>
    <dc:date>2016-02-12T14:07:13Z</dc:date>
    <item>
      <title>Compiling the runtime on Cygwin</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiling-the-runtime-on-Cygwin/m-p/1070393#M57989</link>
      <description>&lt;P&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;Hi,&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;" /&gt;
	&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;I tried compiling the runtime on latest Cygwin w/ GCC 5.3, but ran&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;into some errors which are solved with&lt;/SPAN&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;&amp;nbsp;the patch below.&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;" /&gt;
	&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;" /&gt;
	&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;A few of the code samples do work well under Cygwin (e.g.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;Fibonacci), but some don't (cilk-reducers-demo never finishes).&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;Unfortunately I'm at the limit of my debugging skills and time to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;"&gt;figure out why.&lt;/SPAN&gt;&lt;BR style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; line-height: normal;" /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;diff -Naur cilkplus-rtl-src-004420/runtime/os-unix.c
cilkplus-rtl-src-004420_cygwin/runtime/os-unix.c
--- cilkplus-rtl-src-004420/runtime/os-unix.c      2015-11-09
22:27:52.000000000 +0100
+++ cilkplus-rtl-src-004420_cygwin/runtime/os-unix.c  2016-02-11
11:54:05.473915000 +0100
@@ -432,7 +432,8 @@
 #elif defined(__MIC__)
     _mm_delay_32(1024);
 #elif defined(__linux__) || \
-      defined(__APPLE__)
+      defined(__APPLE__) || \
+      defined(__CYGWIN__)
     usleep(10000);
 #else
 # error "Unsupported architecture"
@@ -452,6 +453,7 @@
 {
 #if defined(__ANDROID__)  || \
     defined(__APPLE__)    || \
+    defined(__CYGWIN__)   || \
     defined(__FreeBSD__)  || \
     defined(__VXWORKS__)  || \
     (defined(__sun__) &amp;amp;&amp;amp; defined(__svr4__))
diff -Naur /cygdrive/d/Downloads/cilk/cilkplus-rtl-src-004420/runtime/sysdep-unix.c
cilkplus-rtl-src-004420/runtime/sysdep-unix.c
--- cilkplus-rtl-src-004420/runtime/sysdep-unix.c
2015-11-09 22:27:54.000000000 +0100
+++ cilkplus-rtl-src-004420_cygwin/runtime/sysdep-unix.c
2016-02-10 18:08:51.610235700 +0100
@@ -568,7 +568,7 @@
 {
     // dladdr is a glibc extension. If it's available, use it to find the path
     // for libcilkrts.so
-#ifdef _GNU_SOURCE
+#if defined(_GNU_SOURCE) &amp;amp;&amp;amp; !defined(__CYGWIN__)
     Dl_info info;
     if (0 != dladdr(dummy_function, &amp;amp;info))
         return info.dli_fname;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 14:07:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiling-the-runtime-on-Cygwin/m-p/1070393#M57989</guid>
      <dc:creator>kmilos</dc:creator>
      <dc:date>2016-02-12T14:07:13Z</dc:date>
    </item>
    <item>
      <title>I had no clue it might be as</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiling-the-runtime-on-Cygwin/m-p/1070394#M57990</link>
      <description>&lt;P&gt;I had no clue it might be as simple as this to take a step forward.&amp;nbsp; I assumed the cilkplus project had no intention of supporting cygwin.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 23:30:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiling-the-runtime-on-Cygwin/m-p/1070394#M57990</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2016-02-12T23:30:08Z</dc:date>
    </item>
    <item>
      <title>Correct. We did get the</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiling-the-runtime-on-Cygwin/m-p/1070395#M57991</link>
      <description>&lt;P&gt;Correct. We did get the runtime building for Cygwin at one point, with GCC 4.8 or so, but that was more to demonstrate that it could be done. We had no plans to support Cygwin as a target platform. But we did leave the #ifdef's in the code. :o)&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; - Barry&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2016 19:02:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiling-the-runtime-on-Cygwin/m-p/1070395#M57991</guid>
      <dc:creator>Barry_T_Intel</dc:creator>
      <dc:date>2016-02-13T19:02:12Z</dc:date>
    </item>
    <item>
      <title>When I try to build gcc trunk</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiling-the-runtime-on-Cygwin/m-p/1070396#M57992</link>
      <description>&lt;P&gt;When I try to build gcc trunk on cygwin with --enable-libcilkrts, I still get the configure not supported message.&lt;/P&gt;

&lt;P&gt;I tried to test the recent release of gcc 5.3 including cilkplus, but there are still previously reported failures associated with apparent non-support of reducers etc and additional difficult to diagnose run-time segfaults which vary with compile flags.&amp;nbsp; Few cases are running successfully.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2016 16:34:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiling-the-runtime-on-Cygwin/m-p/1070396#M57992</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2016-02-20T16:34:26Z</dc:date>
    </item>
  </channel>
</rss>

