Boost C++ Libraries: Ticket #7706: cross compiling of threads library - JamFile.v2 https://svn.boost.org/trac10/ticket/7706 <p> Thread's jam file assumes the compile target is the same as the host :-( </p> <p> ie a check for windows should probably be a check for the target being windows: </p> <pre class="wiki">@@ -105,7 +107,7 @@ local rule default_threadapi ( ) { local api = pthread ; - if [ os.name ] = "NT" { api = win32 ; } + if &lt;target-os&gt;windows in $(properties) { api = win32 ; } return $(api) ; } </pre><p> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7706 Trac 1.4.3 tvaneerd@… Fri, 16 Nov 2012 21:10:35 GMT <link>https://svn.boost.org/trac10/ticket/7706#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7706#comment:1</guid> <description> <p> grrr, forgot about <a class="wiki" href="https://svn.boost.org/trac10/wiki/WikiFormatting">WikiFormatting</a> again </p> <pre class="wiki">@@ -105,7 +107,7 @@ local rule default_threadapi ( ) { local api = pthread ; - if [ os.name ] = "NT" { api = win32 ; } + if &lt;target-os&gt;windows in $(properties) { api = win32 ; } return $(api) ; } </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 01 Dec 2012 22:26:16 GMT</pubDate> <title>status, component, description changed; cc, owner set https://svn.boost.org/trac10/ticket/7706#comment:2 https://svn.boost.org/trac10/ticket/7706#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">viboes</span> added </li> <li><strong>owner</strong> set to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">thread</span> </li> <li><strong>description</strong> modified (<a href="/trac10/ticket/7706?action=diff&amp;version=2">diff</a>) </li> </ul> Ticket viboes Sat, 01 Dec 2012 23:00:48 GMT <link>https://svn.boost.org/trac10/ticket/7706#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7706#comment:3</guid> <description> <p> Is target-os a property defined by default? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Jürgen Hunold</dc:creator> <pubDate>Mon, 03 Dec 2012 09:09:26 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7706#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7706#comment:4</guid> <description> <p> Yes, &lt;target-os&gt; and also &lt;host-os&gt; are predefined. Using [ os.name ] is wrong in other Jamfiles as well. The patch looks good. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Wed, 05 Dec 2012 08:25:59 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7706#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7706#comment:5</guid> <description> <p> I've added the patch and a trace </p> <pre class="wiki"> if &lt;target-os&gt;windows in $(properties) { echo "************************************************************" ; echo "windows build." ; echo "************************************************************" ; api = win32 ; } else { echo "************************************************************" ; echo "pthread build." ; echo "************************************************************" ; } </pre><p> and it doesn't works for me on MinGW. It seems the test fails always. </p> <pre class="wiki">$ bjam2 toolset=msvc ************************************************************ pthread build. ************************************************************ ************************************************************ Trying to build Boost.Thread with pthread support. If you need pthread you should specify the paths. You can specify them in site-config.jam, user-config.jam or in the environment. For example: PTW32_INCLUDE=C:\Program Files\ptw32\Pre-built2\include PTW32_LIB=C:\Program Files\ptw32\Pre-built2\lib ************************************************************ ...found 1 target... botet@FRLANN0L014960 /d/boost/trunk/libs/thread/build $ bjam2 toolset=msvc target-os=windows ************************************************************ pthread build. ************************************************************ ************************************************************ Trying to build Boost.Thread with pthread support. If you need pthread you should specify the paths. You can specify them in site-config.jam, user-config.jam or in the environment. For example: PTW32_INCLUDE=C:\Program Files\ptw32\Pre-built2\include PTW32_LIB=C:\Program Files\ptw32\Pre-built2\lib ************************************************************ ...found 1 target... botet@FRLANN0L014960 /d/boost/trunk/libs/thread/build $ </pre><p> Do you have any idea what could be wrong? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 08 Dec 2012 13:52:49 GMT</pubDate> <title>status changed; resolution set; milestone deleted https://svn.boost.org/trac10/ticket/7706#comment:6 https://svn.boost.org/trac10/ticket/7706#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> <li><strong>milestone</strong> <span class="trac-field-deleted">To Be Determined</span> </li> </ul> <p> Duplicated Ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3393" title="#3393: Bugs: Thread compilation skipped when cross compiled from ubuntu to windows (closed: invalid)">#3393</a> </p> Ticket viboes Mon, 10 Dec 2012 23:02:04 GMT <link>https://svn.boost.org/trac10/ticket/7706#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7706#comment:7</guid> <description> <p> Please could you check the patch provided by Jürgen Hunold attached to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3393" title="#3393: Bugs: Thread compilation skipped when cross compiled from ubuntu to windows (closed: invalid)">#3393</a>? </p> </description> <category>Ticket</category> </item> </channel> </rss>