<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-30600</id>
	<title>Nabble - stdcxx-user</title>
	<updated>2009-05-03T05:31:49Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/stdcxx-user-f30600.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/stdcxx-user-f30600.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-23355343</id>
	<title>Re: Where to find a list of projects using STDXX ?</title>
	<published>2009-05-03T05:31:49Z</published>
	<updated>2009-05-03T05:31:49Z</updated>
	<author>
		<name>Peter Lee-9</name>
	</author>
	<content type="html">Martin,
&lt;br&gt;&lt;br&gt;Thanks for the reply.
&lt;br&gt;P
&lt;br&gt;&lt;br&gt;On Sun, May 3, 2009 at 9:31 AM, Martin Sebor &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23355343&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msebor@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sun, Apr 26, 2009 at 11:28 PM, Peter Lee &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23355343&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;peter.lee.cpp@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hello guys,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I would like to know where/how the information about, which projects are
&lt;br&gt;&amp;gt; &amp;gt; based on STDXX, can be gained.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Regards
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; P
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We don't have such a list. I would certainly be interested in finding out
&lt;br&gt;&amp;gt; what projects use stdcxx.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Of the big projects, AFAIK, OpenSolaris either ships or plans to ship
&lt;br&gt;&amp;gt; stdcxx as an alternative to the library that comes with Sun C++.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Martin
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Where-to-find-a-list-of-projects-using-STDXX---tp23250339p23355343.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23351255</id>
	<title>Re: Where to find a list of projects using STDXX ?</title>
	<published>2009-05-02T16:31:45Z</published>
	<updated>2009-05-02T16:31:45Z</updated>
	<author>
		<name>Martin Sebor-2</name>
	</author>
	<content type="html">On Sun, Apr 26, 2009 at 11:28 PM, Peter Lee &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23351255&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;peter.lee.cpp@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hello guys,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I would like to know where/how the information about, which projects are
&lt;br&gt;&amp;gt; based on STDXX, can be gained.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; P
&lt;br&gt;&lt;br&gt;We don't have such a list. I would certainly be interested in finding out
&lt;br&gt;what projects use stdcxx.
&lt;br&gt;&lt;br&gt;Of the big projects, AFAIK, OpenSolaris either ships or plans to ship
&lt;br&gt;stdcxx as an alternative to the library that comes with Sun C++.
&lt;br&gt;&lt;br&gt;Martin
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Where-to-find-a-list-of-projects-using-STDXX---tp23250339p23351255.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23250339</id>
	<title>Where to find a list of projects using STDXX ?</title>
	<published>2009-04-26T22:28:38Z</published>
	<updated>2009-04-26T22:28:38Z</updated>
	<author>
		<name>Peter Lee-9</name>
	</author>
	<content type="html">Hello guys,
&lt;br&gt;&lt;br&gt;I would like to know where/how the information about, which projects are
&lt;br&gt;based on STDXX, can be gained.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&lt;br&gt;P
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Where-to-find-a-list-of-projects-using-STDXX---tp23250339p23250339.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-21658075</id>
	<title>Re: Documentation User's Guide: 44.1 Multithread-Safe: Level 2</title>
	<published>2009-01-25T15:04:32Z</published>
	<updated>2009-01-25T15:04:32Z</updated>
	<author>
		<name>Martin Sebor-2</name>
	</author>
	<content type="html">Hey Keith,
&lt;br&gt;&lt;br&gt;You're right, the documentation is confusing. In fact, I'd say
&lt;br&gt;the documentation is downright wrong: when ios::nolock is *set*
&lt;br&gt;the stream does not get locked and thus is *not thread safe*,
&lt;br&gt;while when it's *clear*, it does get locked and the stream is
&lt;br&gt;*thread safe*. I filed STDCXX-1030 to correct the docs:
&lt;br&gt;&lt;a href=&quot;https://issues.apache.org/jira/browse/STDCXX-1030&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/STDCXX-1030&lt;/a&gt;&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;Martin
&lt;br&gt;&lt;br&gt;khoaglin wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This is a documentation issue in the multi-thread safe section of the users
&lt;br&gt;&amp;gt; guide for the stdcxx iostreams.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In addition, I am posting the error we observed so others can search for
&lt;br&gt;&amp;gt; similar errors.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The following is the error that was observed. However, the error only showed
&lt;br&gt;&amp;gt; up intermittently when the system was under sufficient load:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; stopped in __rw::__rw_sputn&amp;lt;char,std::char_traits&amp;lt;char&amp;gt; &amp;gt; at 0x84028
&lt;br&gt;&amp;gt; 0x00084028: __rw_sputn+0x00e0: &amp;nbsp;stb &amp;nbsp; &amp;nbsp; &amp;nbsp;%l1, [%l0]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; We were able to solve the problem using the information in the users guide,
&lt;br&gt;&amp;gt; but the section was a little confusing in regards to applying the code
&lt;br&gt;&amp;gt; change.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; When it became obvious this was a multi-thread issue with the standard
&lt;br&gt;&amp;gt; stdcxx C++ library iostreams. Searching the documentation we found the
&lt;br&gt;&amp;gt; following in the Stdcxx Library User's Guide section 44.1 Multithread-Safe:
&lt;br&gt;&amp;gt; Level 2
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The part that is a little confusing is the following:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thread safety is controlled by two bits, ios_base::nolock and
&lt;br&gt;&amp;gt; ios_base::nolockbuf. These bits can be set on an iostream object (such as
&lt;br&gt;&amp;gt; std::cout) using the public member function std::ios_base::setf(). When the
&lt;br&gt;&amp;gt; bits are set, the object behaves in a thread-safe way as described above.
&lt;br&gt;&amp;gt; The public member function std::ios_base::unsetf() clears both bits. When
&lt;br&gt;&amp;gt; the bits are not set, the object is not thread-safe. It is also possible to
&lt;br&gt;&amp;gt; set the bits individually to allow the stream thread-unsafe access on the
&lt;br&gt;&amp;gt; stream data (nolock), or to prevent the stream from locking prior to
&lt;br&gt;&amp;gt; accessing the stream buffer (nolockbuf).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Particularly the part that reads as follows:
&lt;br&gt;&amp;gt; &amp;quot;These bits can be set on an iostream object (such as std::cout) using the
&lt;br&gt;&amp;gt; public member function std::ios_base::setf(). When the bits are set, the
&lt;br&gt;&amp;gt; object behaves in a thread-safe way as described above. &amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; And in the following sentence as well:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;quot;When the bits are not set, the object is not thread-safe.&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If you want thread-safe iostreams you would do the following:
&lt;br&gt;&amp;gt; std::ios_base::unsetf( &amp;nbsp;std::ios_base::nolock | std::ios_base::nolockbuf )
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If you do not want a thread-safe iostreams you would do the following:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; std::ios_base::setf( &amp;nbsp;std::ios_base::nolock | std::ios_base::nolockbuf )
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The documentation is rather confusing on exactly how this needs to be set
&lt;br&gt;&amp;gt; for thread-safe or the default with no thread-safe behavior.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -Keith
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Documentation-User%27s-Guide%3A-44.1-Multithread-Safe%3A-Level-2-tp21587519p21658075.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-21657837</id>
	<title>[Fwd: [Travel Assistance] Applications for ApacheCon EU 2009 - Now Open]</title>
	<published>2009-01-25T14:43:24Z</published>
	<updated>2009-01-25T14:43:24Z</updated>
	<author>
		<name>sebor-2</name>
	</author>
	<content type="html">-------- Original Message --------
&lt;br&gt;Subject: [Travel Assistance] Applications for ApacheCon EU 2009 - Now Open
&lt;br&gt;Date: Fri, 23 Jan 2009 13:28:19 +0000
&lt;br&gt;From: Tony Stevenson &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=21657837&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pctony@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=21657837&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;travel-assistance@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;The Travel Assistance Committee is now accepting applications for those
&lt;br&gt;wanting to attend ApacheCon EU 2009 between the 23rd and 27th March 2009
&lt;br&gt;in Amsterdam.
&lt;br&gt;&lt;br&gt;The Travel Assistance Committee is looking for people who would like to
&lt;br&gt;be able to attend ApacheCon EU 2009 who need some financial support in
&lt;br&gt;order to get there. There are very few places available and the criteria
&lt;br&gt;is high, that aside applications are open to all open source developers
&lt;br&gt;who feel that their attendance would benefit themselves, their
&lt;br&gt;project(s), the ASF or open source in general.
&lt;br&gt;&lt;br&gt;Financial assistance is available for travel, accommodation and entrance
&lt;br&gt;fees either in full or in part, depending on circumstances. It is
&lt;br&gt;intended that all our ApacheCon events are covered, so it may be prudent
&lt;br&gt;for those in the United States or Asia to wait until an event closer to
&lt;br&gt;them comes up - you are all welcome to apply for ApacheCon EU of course,
&lt;br&gt;but there must be compelling reasons for you to attend an event further
&lt;br&gt;away that your home location for your application to be considered above
&lt;br&gt;those closer to the event location.
&lt;br&gt;&lt;br&gt;More information can be found on the main Apache website at
&lt;br&gt;&lt;a href=&quot;http://www.apache.org/travel/index.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.apache.org/travel/index.html&lt;/a&gt;&amp;nbsp;- where you will also find a
&lt;br&gt;link to the online application form.
&lt;br&gt;&lt;br&gt;Time is very tight for this event, so applications are open now and will
&lt;br&gt;end on the 4th February 2009 - to give enough time for travel
&lt;br&gt;arrangements to be made.
&lt;br&gt;&lt;br&gt;Good luck to all those that apply.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;The Travel Assistance Committee
&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------
&lt;br&gt;Tony Stevenson
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=21657837&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tony@...&lt;/a&gt; &amp;nbsp;// &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=21657837&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pctony@...&lt;/a&gt; &amp;nbsp;// &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=21657837&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pctony@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://blog.pc-tony.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.pc-tony.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;1024D/51047D66 ECAF DC55 C608 5E82 0B5E &amp;nbsp;3359 C9C7 924E 5104 7D66
&lt;br&gt;------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Fwd%3A--Travel-Assistance--Applications-for-ApacheCon-EU-2009---Now-Open--tp21657837p21657837.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-21587519</id>
	<title>Documentation User's Guide: 44.1 Multithread-Safe: Level 2</title>
	<published>2009-01-21T09:05:20Z</published>
	<updated>2009-01-21T09:05:20Z</updated>
	<author>
		<name>khoaglin</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;This is a documentation issue in the multi-thread safe section of the users guide for the stdcxx iostreams.
&lt;br&gt;&lt;br&gt;In addition, I am posting the error we observed so others can search for similar errors.
&lt;br&gt;&lt;br&gt;The following is the error that was observed. However, the error only showed up intermittently when the system was under sufficient load:
&lt;br&gt;&lt;br&gt;stopped in __rw::__rw_sputn&amp;lt;char,std::char_traits&amp;lt;char&amp;gt; &amp;gt; at 0x84028
&lt;br&gt;0x00084028: __rw_sputn+0x00e0: &amp;nbsp;stb &amp;nbsp; &amp;nbsp; &amp;nbsp;%l1, [%l0]
&lt;br&gt;&lt;br&gt;We were able to solve the problem using the information in the users guide, but the section was a little confusing in regards to applying the code change.
&lt;br&gt;&lt;br&gt;When it became obvious this was a multi-thread issue with the standard stdcxx C++ library iostreams. Searching the documentation we found the following in the Stdcxx Library User's Guide section 44.1 Multithread-Safe: Level 2
&lt;br&gt;&lt;br&gt;&lt;br&gt;The part that is a little confusing is the following:
&lt;br&gt;&lt;br&gt;Thread safety is controlled by two bits, ios_base::nolock and ios_base::nolockbuf. These bits can be set on an iostream object (such as std::cout) using the public member function std::ios_base::setf(). When the bits are set, the object behaves in a thread-safe way as described above. The public member function std::ios_base::unsetf() clears both bits. When the bits are not set, the object is not thread-safe. It is also possible to set the bits individually to allow the stream thread-unsafe access on the stream data (nolock), or to prevent the stream from locking prior to accessing the stream buffer (nolockbuf).
&lt;br&gt;&lt;br&gt;&lt;br&gt;Particularly the part that reads as follows:
&lt;br&gt;&amp;quot;These bits can be set on an iostream object (such as std::cout) using the public member function std::ios_base::setf(). When the bits are set, the object behaves in a thread-safe way as described above. &amp;quot;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;And in the following sentence as well:
&lt;br&gt;&lt;br&gt;&amp;quot;When the bits are not set, the object is not thread-safe.&amp;quot;
&lt;br&gt;&lt;br&gt;If you want thread-safe iostreams you would do the following:
&lt;br&gt;std::ios_base::unsetf( &amp;nbsp;std::ios_base::nolock | std::ios_base::nolockbuf )
&lt;br&gt;&lt;br&gt;If you do not want a thread-safe iostreams you would do the following:
&lt;br&gt;&lt;br&gt;std::ios_base::setf( &amp;nbsp;std::ios_base::nolock | std::ios_base::nolockbuf )
&lt;br&gt;&lt;br&gt;The documentation is rather confusing on exactly how this needs to be set for thread-safe or the default with no thread-safe behavior.
&lt;br&gt;&lt;br&gt;-Keith</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Documentation-User%27s-Guide%3A-44.1-Multithread-Safe%3A-Level-2-tp21587519p21587519.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20859297</id>
	<title>Re: [SUCCESS] Building stdcxx-4.2.2 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-12-05T09:52:07Z</published>
	<updated>2008-12-05T09:52:07Z</updated>
	<author>
		<name>Steve Petrie</name>
	</author>
	<content type="html">[MS]
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Steve Petrie, P.Eng. wrote:
&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt;&amp;gt; I use the following MSYS console shell command, to compile the
&lt;br&gt;&amp;gt;&amp;gt; test_stdcxx_1.cpp program:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;g++.exe -I./include -nostdinc++ -nostdinc -nostdlib -c -o
&lt;br&gt;&amp;gt;&amp;gt; test_stdcxx_1.o
&lt;br&gt;&amp;gt;&amp;gt; test_stdcxx_1.cpp
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You also need -I./include/ansi. Its also a good idea to avoid
&lt;br&gt;&amp;gt; using the g++ command and use gcc instead just to make it 100%
&lt;br&gt;&amp;gt; clear that the native C++ Standard Library should not be linked
&lt;br&gt;&amp;gt; (unless you know better , I don't think you want -nostdlib as
&lt;br&gt;&amp;gt; it normally prevents linking with files you want to link with).
&lt;/div&gt;[...]
&lt;br&gt;&amp;gt; That's because you're missing -Iinlude/ansi -- that's where
&lt;br&gt;&amp;gt; our cwchar lives. All the errors after this one should clear
&lt;br&gt;&amp;gt; up after you add it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;[SP]
&lt;br&gt;OK -- I now have a test program that compiles, links and runs using stdcxx
&lt;br&gt;under MinGW+MSYS.
&lt;br&gt;&lt;br&gt;There's more to it than adding -I./include/ansi to the compile as Martin
&lt;br&gt;suggested, but the -I./include/ansi is definitely necessary.
&lt;br&gt;&lt;br&gt;Here's the test program (it's based on the sample that Farid provided at my
&lt;br&gt;request, designed to conclusively PROVE that it's using stdcxx and not only
&lt;br&gt;the standard library shipped with MinGW+MSYS (The __rw_atomic_add32()
&lt;br&gt;function is SPECIFIC to stdcxx, there's no _atomic-x86.h in MinGW) :
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;// test_stdcxx_2.cpp ...
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;// standard library includes...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #include &amp;lt;iostream&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;// ...standard library includes.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;using std::cout;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;// app includes...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#include &amp;quot;rw/_atomic-x86.h&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp;//... &amp;nbsp;app includes.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;using __rw::__rw_atomic_add32;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;int main (void)
&lt;br&gt;&amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cout &amp;lt;&amp;lt; &amp;quot;Hello from test_stdcxx_2.cpp!\n&amp;quot;;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int ret = -1;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;// dependency on stdcxx library
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ret = __rw::__rw_atomic_add32 (&amp;ret, 1);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return ret;
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;// ... test_stdcxx_2.cpp.
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;Here is an MSYS console shell command that successfully compiles the
&lt;br&gt;test_stdcxx_2.cpp program:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;gcc.exe -D_RWSTDDEBUG -I./include -I./include/ansi -c -o test_stdcxx_2.o
&lt;br&gt;test_stdcxx_2.cpp
&lt;br&gt;&lt;br&gt;I use the -D_RWSTDDEBUG parameter, because my stdcxx library was built for
&lt;br&gt;debugging.
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;The link is more complicated.
&lt;br&gt;&lt;br&gt;I could NOT find any way to use gcc.exe or g++.exe, to get a successful
&lt;br&gt;link. So I analyzed the various forms of the parameters used with the
&lt;br&gt;following intermediate command (generated by gcc.exe and g++.exe from my
&lt;br&gt;parameters used with them):
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/mingw/bin/../libexec/gcc/mingw32/3.4.5/collect2.exe ...
&lt;br&gt;parameters ...
&lt;br&gt;&lt;br&gt;Here is the MSYS console shell command, that successfully links the
&lt;br&gt;test_stdcxx_2.o object file (the key items are flagged &amp;quot;**n&amp;quot; here for
&lt;br&gt;convenient reference below):
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;ld.exe \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-Bstatic \ &amp;nbsp; **1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-o test_stdcxx_2.exe \ **2
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;i:/apps/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../crt2.o \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;i:/apps/mingw/bin/../lib/gcc/mingw32/3.4.5/crtbegin.o \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-L./lib \ **3
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-Li:/apps/mingw/bin/../lib/gcc/mingw32/3.4.5 \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-Li:/apps/mingw/bin/../lib/gcc \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-Li:/apps/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../mingw32/lib \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-Li:/apps/mingw/bin/../lib/gcc/mingw32/3.4.5/../../.. \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;test_stdcxx_2.o \ **4
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-lstd11s \ **5
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-lstdc++ \ **6
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-lmingw32 \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-lgcc \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-lmoldname \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-lmingwex \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-lmsvcrt \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-luser32 \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-lkernel32 \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-ladvapi32 \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-lshell32 \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-lmingw32 \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-lgcc \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-lmoldname \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-lmingwex \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-lmsvcrt \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;i:/apps/mingw/bin/../lib/gcc/mingw32/3.4.5/crtend.o
&lt;br&gt;&lt;br&gt;The key points in the above are:
&lt;br&gt;&lt;br&gt;&amp;nbsp; **1 =&amp;gt; either -Bstatic or -Bdynamic works (omitting the -B parameter
&lt;br&gt;entirely also works).
&lt;br&gt;&lt;br&gt;&amp;nbsp; **2 =&amp;gt; -o test_stdcxx_2.exe is the executable to be generated.
&lt;br&gt;&lt;br&gt;&amp;nbsp; **3 =&amp;gt;-L./lib is the directory containing the libstd11s.a build of Apache
&lt;br&gt;stdcxx, built with MinGW_MSYS
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(it's FIRST in the list of -L parameters, as I assume this
&lt;br&gt;will give it search priority).
&lt;br&gt;&lt;br&gt;&amp;nbsp; **4=&amp;gt; test_stdcxx_2.o is the object input (it MUST precede the -lstd11s
&lt;br&gt;parameter).
&lt;br&gt;&lt;br&gt;&amp;nbsp; **5 =&amp;gt; -lstd11s is the reference to the libstd11s.a build of Apache stdcxx
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (it's FIRST in the list of -l parameters, as I assume this
&lt;br&gt;will give it search priority).
&lt;br&gt;&lt;br&gt;&amp;nbsp; **6 =&amp;gt; -lstdc++ &amp;nbsp;is the reference to the standard library shipped with
&lt;br&gt;MinGW
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (it's NECESSARY to resolve references in some of the
&lt;br&gt;MinGW-supplied object modules)
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;I have a shell script file, that compiles, links and runs the C++ test
&lt;br&gt;program. If you would like to have the script file, and the C++ source file,
&lt;br&gt;just let me know.
&lt;br&gt;&lt;br&gt;For purposes of performing this test, the MSYS console current directory is
&lt;br&gt;where the source program test_stdcxx_2.cpp is:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/USR/ASP/stdcxx/
&lt;br&gt;&lt;br&gt;&amp;nbsp;and the libstdcxx.a library is in:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/USR/ASP/stdcxx/lib/
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;There are now only two OUTSTANDING ISSUES:
&lt;br&gt;&lt;br&gt;&amp;nbsp; (1) The link produces a HUGE (4.9 MB) test_stdcxx_2.exe executable:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(1.1) I've tried the ld &amp;quot;--gc-sections&amp;quot; parameter, which the
&lt;br&gt;ld --help says will &amp;quot;Remove unused sections (on some targets)&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;but it doesn't shrink the executable.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(1.2) compiling without the &amp;quot;-D_RWSTDDEBUG&amp;quot; parameter, doesn't help
&lt;br&gt;to shrink the executable.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(1.3) Removing the &amp;quot;__rw_atomic_add32()&amp;quot; function call, doesn't help
&lt;br&gt;to shrink the executable.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(1.4) By contrast with stdcxx, a similar test program (minus the
&lt;br&gt;__rw_atomic_add32() function call)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; compiled and linked using g++.exe and the MinGW_MSYS
&lt;br&gt;standard library, produces
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;an executable ONLY 486 KB in size.
&lt;br&gt;&lt;br&gt;&amp;nbsp; (2) I will now proceed to work on getting my NetBeans 6.5 IDE (with C++
&lt;br&gt;plugin) to use the Apache stdcxx.
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;Any suggestions, for how to shrink the sixe of executable files, would be
&lt;br&gt;greatly appreciated.
&lt;br&gt;&lt;br&gt;Although I have used open source &amp;quot;products&amp;quot; before, this is my first time
&lt;br&gt;working actively with an open source community, and it's proving to be a
&lt;br&gt;very pleasant and productive experience.
&lt;br&gt;&lt;br&gt;Thanks to Farid and Martin, for all your help.
&lt;br&gt;&lt;br&gt;Steve
&lt;br&gt;&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;Martin Sebor&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20859297&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msebor@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20859297&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Thursday, December 04, 2008 5:29 PM
&lt;br&gt;Subject: Re: Building stdcxx-4.2.2 Using MinGW+MSYS On Windows XP (SP2)
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Steve Petrie, P.Eng. wrote:
&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt;&amp;gt; I use the following MSYS console shell command, to compile the
&lt;br&gt;&amp;gt;&amp;gt; test_stdcxx_1.cpp program:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;g++.exe -I./include -nostdinc++ -nostdinc -nostdlib -c -o
&lt;br&gt;&amp;gt;&amp;gt; test_stdcxx_1.o
&lt;br&gt;&amp;gt;&amp;gt; test_stdcxx_1.cpp
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You also need -I./include/ansi. Its also a good idea to avoid
&lt;br&gt;&amp;gt; using the g++ command and use gcc instead just to make it 100%
&lt;br&gt;&amp;gt; clear that the native C++ Standard Library should not be linked
&lt;br&gt;&amp;gt; (unless you know better , I don't think you want -nostdlib as
&lt;br&gt;&amp;gt; it normally prevents linking with files you want to link with).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; (Note the dot &amp;quot;.&amp;quot; between &amp;quot;-I&amp;quot; and &amp;quot;/include&amp;quot;. I have an stdcxx &amp;quot;include&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; directory, with all its sub-directories, as a sub-directory of the
&lt;br&gt;&amp;gt;&amp;gt; directory
&lt;br&gt;&amp;gt;&amp;gt; where the test_stdcxx_1.cpp source program is located, because I haven't
&lt;br&gt;&amp;gt;&amp;gt; yet
&lt;br&gt;&amp;gt;&amp;gt; been able to figure out how to get g++.exe to respect a &amp;quot;-I&amp;quot; parameter
&lt;br&gt;&amp;gt;&amp;gt; pointing to a more complex path description. The &amp;quot;include&amp;quot; directory,
&lt;br&gt;&amp;gt;&amp;gt; with
&lt;br&gt;&amp;gt;&amp;gt; all its sub-directories, is a copy of what is shipped with stdcxx-4.2.2.)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; g++.exe displays the following compile errors on the MSYS console:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; In file included from ./include/rw/_traits.h:40,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from ./include/rw/_strref.h:48,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from ./include/string:43,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from ./include/loc/_locale.h:36,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from ./include/rw/_iosbase.h:36,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from ./include/streambuf:39,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from ./include/ostream:39,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from ./include/istream:38,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from ./include/iostream:33,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from test_stdcxx_1.cpp:4:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; ./include/rw/_mbstate.h:195:27: cwchar: No such file or directory
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That's because you're missing -Iinlude/ansi -- that's where
&lt;br&gt;&amp;gt; our cwchar lives. All the errors after this one should clear
&lt;br&gt;&amp;gt; up after you add it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Martin
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20859297.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20843952</id>
	<title>Re: Building stdcxx-4.2.2 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-12-04T14:29:15Z</published>
	<updated>2008-12-04T14:29:15Z</updated>
	<author>
		<name>Martin Sebor-2</name>
	</author>
	<content type="html">Steve Petrie, P.Eng. wrote:
&lt;br&gt;[...]
&lt;br&gt;&amp;gt; I use the following MSYS console shell command, to compile the
&lt;br&gt;&amp;gt; test_stdcxx_1.cpp program:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;g++.exe -I./include -nostdinc++ -nostdinc -nostdlib -c -o test_stdcxx_1.o
&lt;br&gt;&amp;gt; test_stdcxx_1.cpp
&lt;br&gt;&lt;br&gt;You also need -I./include/ansi. Its also a good idea to avoid
&lt;br&gt;using the g++ command and use gcc instead just to make it 100%
&lt;br&gt;clear that the native C++ Standard Library should not be linked
&lt;br&gt;(unless you know better , I don't think you want -nostdlib as
&lt;br&gt;it normally prevents linking with files you want to link with).
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; (Note the dot &amp;quot;.&amp;quot; between &amp;quot;-I&amp;quot; and &amp;quot;/include&amp;quot;. I have an stdcxx &amp;quot;include&amp;quot;
&lt;br&gt;&amp;gt; directory, with all its sub-directories, as a sub-directory of the 
&lt;br&gt;&amp;gt; directory
&lt;br&gt;&amp;gt; where the test_stdcxx_1.cpp source program is located, because I haven't 
&lt;br&gt;&amp;gt; yet
&lt;br&gt;&amp;gt; been able to figure out how to get g++.exe to respect a &amp;quot;-I&amp;quot; parameter
&lt;br&gt;&amp;gt; pointing to a more complex path description. The &amp;quot;include&amp;quot; directory, with
&lt;br&gt;&amp;gt; all its sub-directories, is a copy of what is shipped with stdcxx-4.2.2.)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; g++.exe displays the following compile errors on the MSYS console:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; In file included from ./include/rw/_traits.h:40,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from ./include/rw/_strref.h:48,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from ./include/string:43,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from ./include/loc/_locale.h:36,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from ./include/rw/_iosbase.h:36,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from ./include/streambuf:39,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from ./include/ostream:39,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from ./include/istream:38,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from ./include/iostream:33,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from test_stdcxx_1.cpp:4:
&lt;br&gt;&amp;gt; &amp;nbsp; ./include/rw/_mbstate.h:195:27: cwchar: No such file or directory
&lt;/div&gt;&lt;br&gt;That's because you're missing -Iinlude/ansi -- that's where
&lt;br&gt;our cwchar lives. All the errors after this one should clear
&lt;br&gt;up after you add it.
&lt;br&gt;&lt;br&gt;Martin
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20843952.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20843620</id>
	<title>Re: Building stdcxx-4.2.2 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-12-04T14:12:14Z</published>
	<updated>2008-12-04T14:12:14Z</updated>
	<author>
		<name>Steve Petrie</name>
	</author>
	<content type="html">Hi Farid:
&lt;br&gt;&lt;br&gt;[FZ]
&lt;br&gt;&amp;nbsp; It's ok. The rwstderr.cat catalog file is used for overriding standard
&lt;br&gt;exceptions
&lt;br&gt;what() messages (i.e. to have localized messages). On MinGW (as well as on
&lt;br&gt;entire Windows) stdcxx doesn't using rwstderr.cat, but using rwstderr.dll
&lt;br&gt;instead.
&lt;br&gt;Actually if you're fine with english messages, you don't need
&lt;br&gt;rwstderr.{cat|dll}
&lt;br&gt;because of the english messages are hardcoded in library sources.
&lt;br&gt;&lt;br&gt;[SP]
&lt;br&gt;Thanks to your previous assistance, I did succeed in using the GNUmakefile
&lt;br&gt;under MinGW+MSYS, to build a stdcxx libnary libstd11s.a.
&lt;br&gt;&lt;br&gt;HOWEVER, I've been trying without success, to compile a minimal C++ program
&lt;br&gt;under MinGW+MSYS, using the Apache C++ Standard Library (stdcxx), instead of
&lt;br&gt;the Standard Library that is shipped with MinGW+MSYS.
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;The MinGW_MSYS environment, will compile, link and run the following test
&lt;br&gt;program, using the Standard Library shipped with MinGW_MSYS:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;// test_mingw.cpp ...
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;// standard library includes...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #include &amp;lt;iostream&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;// ...standard library includes.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;using std::cout;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;int main (void)
&lt;br&gt;&amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cout &amp;lt;&amp;lt; &amp;quot;Hello from test_mingw.cpp!\n&amp;quot;;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;// ... test_mingw.cpp.
&lt;br&gt;&lt;br&gt;I use the following MSYS console shell commands to compile and link the
&lt;br&gt;test_mingw.cpp program:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;g++ &amp;nbsp;-c &amp;nbsp;-o test_mingw.o &amp;nbsp;test_mingw.cpp &amp;nbsp;# compiles ok.
&lt;br&gt;&amp;nbsp; &amp;nbsp;g++ &amp;nbsp;-o test_mingw test_mingw.o &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # links ok.
&lt;br&gt;&lt;br&gt;The test_mingw.exe program produce by ld, runs fine and displays the
&lt;br&gt;following on the MSYS console:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Hello from test_mingw.cpp!.
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;HOWEVER, so far I have not found a way to compile a similar minimal C++
&lt;br&gt;program under MinGW+MSYS, using the Apache C++ Standard Library (stdcxx),
&lt;br&gt;instead of the Standard Library that is shipped with MinGW+MSYS.
&lt;br&gt;&lt;br&gt;The minimal C++ program I'm trying to compile is:
&lt;br&gt;&lt;br&gt;&amp;nbsp; // test_stdcxx_1.cpp ...
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;// standard library includes...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #include &amp;lt;iostream&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;// ...standard library includes.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;using std::cout;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;int main (void)
&lt;br&gt;&amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cout &amp;lt;&amp;lt; &amp;quot;Hello from test_stdcxx_1.cpp!\n&amp;quot;;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;// ... test_stdcxx_1.cpp.
&lt;br&gt;&lt;br&gt;I use the following MSYS console shell command, to compile the
&lt;br&gt;test_stdcxx_1.cpp program:
&lt;br&gt;&lt;br&gt;&amp;nbsp; g++.exe -I./include -nostdinc++ -nostdinc -nostdlib -c -o test_stdcxx_1.o
&lt;br&gt;test_stdcxx_1.cpp
&lt;br&gt;&lt;br&gt;(Note the dot &amp;quot;.&amp;quot; between &amp;quot;-I&amp;quot; and &amp;quot;/include&amp;quot;. I have an stdcxx &amp;quot;include&amp;quot;
&lt;br&gt;directory, with all its sub-directories, as a sub-directory of the directory
&lt;br&gt;where the test_stdcxx_1.cpp source program is located, because I haven't yet
&lt;br&gt;been able to figure out how to get g++.exe to respect a &amp;quot;-I&amp;quot; parameter
&lt;br&gt;pointing to a more complex path description. The &amp;quot;include&amp;quot; directory, with
&lt;br&gt;all its sub-directories, is a copy of what is shipped with stdcxx-4.2.2.)
&lt;br&gt;&lt;br&gt;&amp;nbsp;g++.exe displays the following compile errors on the MSYS console:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;In file included from ./include/rw/_traits.h:40,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/rw/_strref.h:48,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/string:43,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/loc/_locale.h:36,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/rw/_iosbase.h:36,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/streambuf:39,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/ostream:39,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/istream:38,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/iostream:33,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from test_stdcxx_1.cpp:4:
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_mbstate.h:195:27: cwchar: No such file or directory
&lt;br&gt;&amp;nbsp; &amp;nbsp;In file included from ./include/rw/_strref.h:48,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/string:43,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/loc/_locale.h:36,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/rw/_iosbase.h:36,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/streambuf:39,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/ostream:39,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/istream:38,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/iostream:33,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from test_stdcxx_1.cpp:4::
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:104:51: cstring: No such file or directory
&lt;br&gt;&amp;nbsp; &amp;nbsp;In file included from ./include/rw/_strref.h:48,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/string:43,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/loc/_locale.h:36,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/rw/_iosbase.h:36,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/streambuf:39,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/ostream:39,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/istream:38,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/iostream:33,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from test_stdcxx_1.cpp:4:
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:302: error: expected `;' before &amp;quot;state_type&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:303: error: `state_type' was not declared in this
&lt;br&gt;scope
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:303: error: template argument 1 is invalid
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h: In static member function `static _CharT*
&lt;br&gt;std::char_traits&amp;lt;_CharT&amp;gt;::move(_CharT*, const _CharT*, unsigned int)':
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:347: error: `memmove' is not a member of `std'
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h: In static member function `static _CharT*
&lt;br&gt;std::char_traits&amp;lt;_CharT&amp;gt;::copy(_CharT*, const _CharT*, unsigned int)':
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:353: error: `memcpy' is not a member of `std'
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h: At global scope:
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:396: error: expected `;' before &amp;quot;state_type&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:397: error: `state_type' was not declared in this
&lt;br&gt;scope
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:397: error: template argument 1 is invalid
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h: In static member function `static int
&lt;br&gt;std::char_traits&amp;lt;char&amp;gt;::compare(const char*, const char*, unsigned int)':
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:420: error: `memcmp' is not a member of `std'
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h: In static member function `static const char*
&lt;br&gt;std::char_traits&amp;lt;char&amp;gt;::find(const char*, unsigned int, const char&amp;)':
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:428: error: `memchr' is not a member of `std'
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h: In static member function `static unsigned int
&lt;br&gt;std::char_traits&amp;lt;char&amp;gt;::length(const char*)':
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:434: error: `strlen' is not a member of `std'
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h: In static member function `static char*
&lt;br&gt;std::char_traits&amp;lt;char&amp;gt;::move(char*, const char*, unsigned int)':
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:439: error: `memmove' is not a member of `std'
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h: In static member function `static char*
&lt;br&gt;std::char_traits&amp;lt;char&amp;gt;::copy(char*, const char*, unsigned int)':
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:445: error: `memcpy' is not a member of `std'
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h: In static member function `static char*
&lt;br&gt;std::char_traits&amp;lt;char&amp;gt;::assign(char*, unsigned int, char)':
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:451: error: `memset' is not a member of `std'
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h: At global scope:
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:483: error: expected `;' before &amp;quot;state_type&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:484: error: `state_type' was not declared in this
&lt;br&gt;scope
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:484: error: template argument 1 is invalid
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h: In static member function `static int
&lt;br&gt;std::char_traits&amp;lt;wchar_t&amp;gt;::compare(const wchar_t*, const wchar_t*, unsigned
&lt;br&gt;int)':
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:504: error: `wmemcmp' was not declared in this
&lt;br&gt;scope
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h: In static member function `static unsigned int
&lt;br&gt;std::char_traits&amp;lt;wchar_t&amp;gt;::length(const wchar_t*)':
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:509: error: `wcslen' is not a member of `std'
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h: In static member function `static const wchar_t*
&lt;br&gt;std::char_traits&amp;lt;wchar_t&amp;gt;::find(const wchar_t*, unsigned int, const
&lt;br&gt;wchar_t&amp;)':
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:515: error: `wmemchr' is not a member of `std'
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h: In static member function `static wchar_t*
&lt;br&gt;std::char_traits&amp;lt;wchar_t&amp;gt;::copy(wchar_t*, const wchar_t*, unsigned int)':
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:522: error: `wmemcpy' is not a member of `std'
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h: In static member function `static wchar_t*
&lt;br&gt;std::char_traits&amp;lt;wchar_t&amp;gt;::move(wchar_t*, const wchar_t*, unsigned int)':
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:528: error: `wmemmove' is not a member of `std'
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h: In static member function `static wchar_t*
&lt;br&gt;std::char_traits&amp;lt;wchar_t&amp;gt;::assign(wchar_t*, unsigned int, wchar_t)':
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/rw/_traits.h:534: error: `wmemset' is not a member of `std'
&lt;br&gt;&amp;nbsp; &amp;nbsp;In file included from ./include/rw/_iosbase.h:36,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/streambuf:39,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/ostream:39,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/istream:38,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from ./include/iostream:33,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from test_stdcxx_1.cpp:4:
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/loc/_locale.h: At global scope:
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/loc/_locale.h:403: error: `mbstate_t' is not a member of `std'
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/loc/_locale.h:403: error: `mbstate_t' is not a member of `std'
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/loc/_locale.h:403: error: template argument 3 is invalid
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/loc/_locale.h:470: error: `mbstate_t' is not a member of `std'
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/loc/_locale.h:470: error: `mbstate_t' is not a member of `std'
&lt;br&gt;&amp;nbsp; &amp;nbsp;./include/loc/_locale.h:470: error: template argument 3 is invalid
&lt;br&gt;I've tried using a &amp;quot;-Z&amp;quot; parameter with the g++.exe command, but g++.exe
&lt;br&gt;still won't generate an object file.
&lt;br&gt;&lt;br&gt;The first file &amp;quot;cwchar&amp;quot; that g++.exe is complaining that it can't find, does
&lt;br&gt;exist. It's in directory ./include/ansi/ I tried copying file &amp;quot;cwchar&amp;quot; to
&lt;br&gt;./include/ but this didn't fix the first compiler error.
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;.
&lt;br&gt;Any suggestions you could make, would be most appreciated. Or, if you could
&lt;br&gt;compile and link my minimal test program &amp;quot;test_stdcxx_1.cpp&amp;quot; under your
&lt;br&gt;MinGW+MSYS, and tell me how you did it, that would be even better.
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;Steve
&lt;br&gt;&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;Farid Zaripov&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20843620&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Farid_Zaripov@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20843620&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Wednesday, December 03, 2008 3:51 AM
&lt;br&gt;Subject: Re: Building stdcxx-4.2.2 Using MinGW+MSYS On Windows XP (SP2)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; HOWEVER, after the completion of the &amp;quot;ar rv &amp;nbsp; libstd11s.a ...&amp;quot; command
&lt;br&gt;&amp;gt; executed near the very end of the build process, the following was
&lt;br&gt;&amp;gt; displayed
&lt;br&gt;&amp;gt; on the MSYS console, and the build process stopped:
&lt;br&gt;&lt;br&gt;[...]
&lt;br&gt;&amp;gt; &amp;nbsp; i:\apps\mingw\bin\ar.exe: creating libstd11s.a
&lt;br&gt;&amp;gt; &amp;nbsp; gencat rwstderr.cat /stdcxx-4.2.2/src/rwstderr.msg
&lt;br&gt;&amp;gt; &amp;nbsp; /bin/sh: gencat: command not found
&lt;br&gt;&amp;gt; &amp;nbsp; make[2]: [rwstderr.cat] Error 127 (ignored)
&lt;br&gt;&lt;br&gt;&amp;nbsp; It's ok. The rwstderr.cat catalog file is used for overriding standard
&lt;br&gt;exceptions
&lt;br&gt;what() messages (i.e. to have localized messages). On MinGW (as well as on
&lt;br&gt;entire Windows) stdcxx doesn't using rwstderr.cat, but using rwstderr.dll
&lt;br&gt;instead.
&lt;br&gt;Actually if you're fine with english messages, you don't need
&lt;br&gt;rwstderr.{cat|dll}
&lt;br&gt;because of the english messages are hardcoded in library sources.
&lt;br&gt;&lt;br&gt;&amp;gt; Would please tell me, what do I need to do, to get the gencat.exe utility
&lt;br&gt;&amp;gt; to
&lt;br&gt;&amp;gt; accept the rwstderr.msg file?
&lt;br&gt;&lt;br&gt;&amp;nbsp; On Windows gencat.exe acceps rwstderr.rc file and produces rwstderr.dll
&lt;br&gt;file.
&lt;br&gt;&lt;br&gt;Farid.
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20843620.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20809014</id>
	<title>Re: Building stdcxx-4.2.2 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-12-03T00:51:30Z</published>
	<updated>2008-12-03T00:51:30Z</updated>
	<author>
		<name>Farid Zaripov-2</name>
	</author>
	<content type="html">&amp;gt; HOWEVER, after the completion of the &amp;quot;ar rv &amp;nbsp; libstd11s.a ...&amp;quot; command
&lt;br&gt;&amp;gt; executed near the very end of the build process, the following was displayed
&lt;br&gt;&amp;gt; on the MSYS console, and the build process stopped:
&lt;br&gt;&lt;br&gt;[...]
&lt;br&gt;&amp;gt; &amp;nbsp; i:\apps\mingw\bin\ar.exe: creating libstd11s.a
&lt;br&gt;&amp;gt; &amp;nbsp; gencat rwstderr.cat /stdcxx-4.2.2/src/rwstderr.msg
&lt;br&gt;&amp;gt; &amp;nbsp; /bin/sh: gencat: command not found
&lt;br&gt;&amp;gt; &amp;nbsp; make[2]: [rwstderr.cat] Error 127 (ignored)
&lt;br&gt;&lt;br&gt;&amp;nbsp; It's ok. The rwstderr.cat catalog file is used for overriding standard exceptions
&lt;br&gt;what() messages (i.e. to have localized messages). On MinGW (as well as on
&lt;br&gt;entire Windows) stdcxx doesn't using rwstderr.cat, but using rwstderr.dll instead.
&lt;br&gt;Actually if you're fine with english messages, you don't need rwstderr.{cat|dll}
&lt;br&gt;because of the english messages are hardcoded in library sources.
&lt;br&gt;&lt;br&gt;&amp;gt; Would please tell me, what do I need to do, to get the gencat.exe utility to
&lt;br&gt;&amp;gt; accept the rwstderr.msg file?
&lt;br&gt;&lt;br&gt;&amp;nbsp; On Windows gencat.exe acceps rwstderr.rc file and produces rwstderr.dll file.
&lt;br&gt;&lt;br&gt;Farid.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20809014.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20766580</id>
	<title>Re: Building stdcxx-4.2.2 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-11-30T21:59:23Z</published>
	<updated>2008-11-30T21:59:23Z</updated>
	<author>
		<name>Steve Petrie</name>
	</author>
	<content type="html">[FZ]
&lt;br&gt;&amp;nbsp;I have MSYS 1.0.11.0(0.46/3/2) and &amp;quot;ln --version&amp;quot; reports version 5.97
&lt;br&gt;&lt;br&gt;[SP]
&lt;br&gt;The &amp;quot;ln&amp;quot; in MSYS 1.0.10 was pre-5.97, so I downloaded and installed:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;msysCORE-1.0.11-20080826.tar.gz.
&lt;br&gt;&lt;br&gt;In this version of MSYS, the &amp;quot;ln&amp;quot; version is 5.97.
&lt;br&gt;&lt;br&gt;I reverted to the GNUmakefile shipped with stdcxx-4.2.2, and ran the
&lt;br&gt;stdcxx-4.2.2 build under MSYS with the following command (following the
&lt;br&gt;instructions in your earlier email, except: changing the BUILDTYPE to 11s
&lt;br&gt;from 15D, and explicitly specifying the CONFIG=gcc.config):
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;make BUILDDIR=/stdcxx-4.2.2/build_11s \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; BUILDTYPE=11s \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; CONFIG=gcc.config \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; config lib
&lt;br&gt;&lt;br&gt;The &amp;quot;ln&amp;quot; command worked ok, and the build created a &amp;quot;libstd11s.a&amp;quot; file of 
&lt;br&gt;12.4 MB size.
&lt;br&gt;&lt;br&gt;HOWEVER, after the completion of the &amp;quot;ar rv &amp;nbsp; libstd11s.a ...&amp;quot; command
&lt;br&gt;executed near the very end of the build process, the following was displayed
&lt;br&gt;on the MSYS console, and the build process stopped:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;ar rv &amp;nbsp; libstd11s.a
&lt;br&gt;&amp;nbsp; &amp;nbsp;[...]
&lt;br&gt;&amp;nbsp; &amp;nbsp;a - valarray.o
&lt;br&gt;&amp;nbsp; &amp;nbsp;a - vecbool.o
&lt;br&gt;&amp;nbsp; &amp;nbsp;a - version.o
&lt;br&gt;&amp;nbsp; &amp;nbsp;a - wcodecvt.o
&lt;br&gt;&amp;nbsp; &amp;nbsp;a - wctype.o
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:\apps\mingw\bin\ar.exe: creating libstd11s.a
&lt;br&gt;&amp;nbsp; &amp;nbsp;gencat rwstderr.cat /stdcxx-4.2.2/src/rwstderr.msg
&lt;br&gt;&amp;nbsp; &amp;nbsp;/bin/sh: gencat: command not found
&lt;br&gt;&amp;nbsp; &amp;nbsp;make[2]: [rwstderr.cat] Error 127 (ignored)
&lt;br&gt;&amp;nbsp; &amp;nbsp;make[2]: Leaving directory `/stdcxx-4.2.2/build_11s/lib'
&lt;br&gt;&amp;nbsp; &amp;nbsp;make[1]: Leaving directory `/stdcxx-4.2.2/build_11s'
&lt;br&gt;&amp;nbsp; &amp;nbsp;make: Nothing to be done for `lib'.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;SteveP@DELL /stdcxx-4.2.2
&lt;br&gt;&lt;br&gt;It looked to me like the (line 10) message:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;quot;/bin/sh: gencat: command not found&amp;quot;
&lt;br&gt;&lt;br&gt;happened because the stdcxx-4.2.2 utilities had not been built, so no
&lt;br&gt;&amp;quot;gencat.exe&amp;quot; utility program existed..
&lt;br&gt;&lt;br&gt;So I deleted the &amp;quot;build_11s&amp;quot; build, and ran the stdcxx-4.2.2 build under
&lt;br&gt;MSYS, using the following command:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;make BUILDDIR=/stdcxx-4.2.2/build_11s \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; BUILDTYPE=11s \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; CONFIG=gcc.config \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; builddir config util lib locales
&lt;br&gt;&lt;br&gt;Again, the build ended, with a &amp;quot;/bin/sh: gencat: command not found&amp;quot; error.
&lt;br&gt;&lt;br&gt;However, there was now a &amp;quot;gencat.exe&amp;quot; in /stdcxx-4.2.2/build_11s/bin&amp;quot;.
&lt;br&gt;&lt;br&gt;It looked like the &amp;quot;/bin/sh: gencat: command not found&amp;quot; error was caused
&lt;br&gt;because &amp;quot;gencat.exe&amp;quot; was not reachable via any path definition.
&lt;br&gt;&lt;br&gt;So I copied &amp;quot;gencat.exe&amp;quot; into the /msys/1.0.11/bin/&amp;quot; directory, and tried to
&lt;br&gt;install the library, using the following command, with MSYS in the
&lt;br&gt;/stdcxx-4.2.2/build_11s directory:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;make install PREFIX=install_11s
&lt;br&gt;&lt;br&gt;The install displayed the following on the MSYS console:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;$ make install PREFIX=install_11s
&lt;br&gt;&amp;nbsp; &amp;nbsp;mkdir -p install_11s
&lt;br&gt;&amp;nbsp; &amp;nbsp;make -Clib install
&lt;br&gt;&amp;nbsp; &amp;nbsp;make[1]: Entering directory `/stdcxx-4.2.2/build_11s/lib'
&lt;br&gt;&amp;nbsp; &amp;nbsp;gencat rwstderr.cat /stdcxx-4.2.2/src/rwstderr.msg
&lt;br&gt;&amp;nbsp; &amp;nbsp;windres: i:/apps/stdcxx-4.2.2/src/rwstderr.msg:1: syntax error
&lt;br&gt;&amp;nbsp; &amp;nbsp;make[1]: [rwstderr.cat] Error 1 (ignored)
&lt;br&gt;&amp;nbsp; &amp;nbsp;mkdir -p install_11s/lib
&lt;br&gt;&amp;nbsp; &amp;nbsp;cp libstd11s.a install_11s/lib
&lt;br&gt;&amp;nbsp; &amp;nbsp;if [ libstd11s.a != libstd11s.a ]; then &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;rm install_11s/lib/libstd11s.a; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ln -s libstd11s.a install_11s/lib/libstd11s.a; \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fi
&lt;br&gt;&amp;nbsp; &amp;nbsp;mkdir -p install_11s/etc
&lt;br&gt;&amp;nbsp; &amp;nbsp;cp rwstderr.cat install_11s/etc
&lt;br&gt;&amp;nbsp; &amp;nbsp;cp: cannot stat `rwstderr.cat': No such file or directory
&lt;br&gt;&amp;nbsp; &amp;nbsp;make[1]: *** [install] Error 1
&lt;br&gt;&amp;nbsp; &amp;nbsp;make[1]: Leaving directory `/stdcxx-4.2.2/build_11s/lib'
&lt;br&gt;&amp;nbsp; &amp;nbsp;make: *** [install] Error 2
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;SteveP@DELL /stdcxx-4.2.2/build_11s
&lt;br&gt;&lt;br&gt;On line 6 of the above, the gencat command failed, and displayed:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;quot;windres: i:/apps/stdcxx-4.2.2/src/rwstderr.msg:1: syntax error&amp;quot;.
&lt;br&gt;&lt;br&gt;On line 16 of the above, the cp command failed (due to the earlier failure
&lt;br&gt;of the gencat command), and displayed:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;quot;cp: cannot stat `rwstderr.cat': No such file or directory&amp;quot;.
&lt;br&gt;&lt;br&gt;I tried changing the format of file &amp;quot;rwstderr.msg&amp;quot; from DOS to UNIX format
&lt;br&gt;(i.e from 0D0A line ends, to 0A line ends) but got the same error from
&lt;br&gt;&amp;quot;gencat.exe&amp;quot;.
&lt;br&gt;&lt;br&gt;So now I'm stuck at the install step.
&lt;br&gt;&lt;br&gt;Would please tell me, what do I need to do, to get the gencat.exe utility to
&lt;br&gt;accept the rwstderr.msg file?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Steve
&lt;br&gt;&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;Farid Zaripov&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20766580&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Farid_Zaripov@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20766580&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Friday, November 28, 2008 8:09 AM
&lt;br&gt;Subject: Re: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; But I definitely DO have the problem with &amp;quot;ln&amp;quot; on my MSYS :(
&lt;br&gt;&lt;br&gt;[...]
&lt;br&gt;&lt;br&gt;&amp;gt; I'm using Windows XP (SP2) and MinGW (5.1.4) and MSYS (1.0.10). Perhaps we
&lt;br&gt;&amp;gt; have a difference in our operating environments?
&lt;br&gt;&lt;br&gt;&amp;nbsp; I have MSYS 1.0.11.0(0.46/3/2) and &amp;quot;ln --version&amp;quot; reports version 5.97
&lt;br&gt;&lt;br&gt;&amp;gt; Then I created a documented test case shell script &amp;quot;test.mingw.ln&amp;quot;
&lt;br&gt;&amp;gt; (attached), that replicates the problem on my MinGW+MSYS system.
&lt;br&gt;&amp;gt; Would you like to run the script in an MSYS console on your system, and
&lt;br&gt;&amp;gt; let
&lt;br&gt;&amp;gt; me know the result?
&lt;br&gt;&lt;br&gt;&amp;nbsp; Unfortunately, I don't see any file attached :(
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Here are a couple of interesting quotes related to MinGW+MSYS and ln, that
&lt;br&gt;&amp;gt; I
&lt;br&gt;&amp;gt; found through a Google search:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;quote 1&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There is no way to create a &amp;quot;file symlink&amp;quot; in MSYS in a way similar to a
&lt;br&gt;&amp;gt; &amp;quot;directory symlink&amp;quot; (that is, a mount point).
&lt;br&gt;&amp;gt; The command ln for creating links works, but it actually makes a copy of
&lt;br&gt;&amp;gt; the
&lt;br&gt;&amp;gt; original file, not a symlink to it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/quote 1&amp;gt;
&lt;/div&gt;&lt;br&gt;&amp;nbsp; Right, the ln just copying file on my side.
&lt;br&gt;&lt;br&gt;&amp;gt; Is there a simple test I can use, a simple C++ program, that e.g. obtains
&lt;br&gt;&amp;gt; the ID and version of the stdcxx library?
&lt;br&gt;&lt;br&gt;&amp;nbsp; Try this:
&lt;br&gt;-----------
&lt;br&gt;#include &amp;lt;iostream&amp;gt;
&lt;br&gt;&lt;br&gt;int main ()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; // install dependency on stdcxx headers
&lt;br&gt;&amp;nbsp; &amp;nbsp; std::cout &amp;lt;&amp;lt; &amp;quot;Test program using stdcxx version &amp;quot; &amp;lt;&amp;lt; _RWSTD_VER_STR &amp;lt;&amp;lt;
&lt;br&gt;std::endl;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; int ret = -1;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; // install dependency on stdcxx library
&lt;br&gt;&amp;nbsp; &amp;nbsp; ret = __rw::__rw_atomic_add32 (&amp;ret, 1);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; return ret;
&lt;br&gt;}
&lt;br&gt;-----------
&lt;br&gt;&lt;br&gt;&amp;gt; HOWEVER, until ALL the stdcxx tests are verified as ok on gcc/MinGW, this
&lt;br&gt;&amp;gt; means that there IS/ARE some problem(s) with stdcxx in MinGW, does it not?
&lt;br&gt;&amp;gt; After all, isn't the purpose of the tests to prove that the stdcxx libary
&lt;br&gt;&amp;gt; on the
&lt;br&gt;&amp;gt; target system is working correctly?
&lt;br&gt;&lt;br&gt;&amp;nbsp; In general it is, but there are might be some expected failures (which has
&lt;br&gt;been
&lt;br&gt;documented in JIRA) and failures, that should be an expected, but not
&lt;br&gt;documented
&lt;br&gt;in JIRA yet. BTW any stdcxx user can document new failures by creating
&lt;br&gt;corresponding
&lt;br&gt;issues in JIRA ;)
&lt;br&gt;&lt;br&gt;&amp;nbsp; The 18.c.limits.stdcxx-988.cpp test fails to compile on gcc/MinGW due to
&lt;br&gt;undefined
&lt;br&gt;LONG_BIT, SSIZE_MAX, WORD_BIT values. They're expected to be defined in
&lt;br&gt;&amp;lt;limits.h&amp;gt;
&lt;br&gt;provided by compiler. Strictly speaking I didn't found these names mentioned
&lt;br&gt;in
&lt;br&gt;current C++ standard in header &amp;lt;climits&amp;gt; synopsis. I suppose that they're
&lt;br&gt;optional
&lt;br&gt;(i.e. required by POSIX only) and can be not exercised (as it is already
&lt;br&gt;done for EDG eccp).
&lt;br&gt;&lt;br&gt;Farid.
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20766580.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20734204</id>
	<title>Re: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-11-28T05:09:37Z</published>
	<updated>2008-11-28T05:09:37Z</updated>
	<author>
		<name>Farid Zaripov-2</name>
	</author>
	<content type="html">&amp;gt; But I definitely DO have the problem with &amp;quot;ln&amp;quot; on my MSYS :(
&lt;br&gt;&lt;br&gt;[...]
&lt;br&gt;&lt;br&gt;&amp;gt; I'm using Windows XP (SP2) and MinGW (5.1.4) and MSYS (1.0.10). Perhaps we
&lt;br&gt;&amp;gt; have a difference in our operating environments?
&lt;br&gt;&lt;br&gt;&amp;nbsp; I have MSYS 1.0.11.0(0.46/3/2) and &amp;quot;ln --version&amp;quot; reports version 5.97
&lt;br&gt;&lt;br&gt;&amp;gt; Then I created a documented test case shell script &amp;quot;test.mingw.ln&amp;quot;
&lt;br&gt;&amp;gt; (attached), that replicates the problem on my MinGW+MSYS system.
&lt;br&gt;&amp;gt; Would you like to run the script in an MSYS console on your system, and let
&lt;br&gt;&amp;gt; me know the result?
&lt;br&gt;&lt;br&gt;&amp;nbsp; Unfortunately, I don't see any file attached :(
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Here are a couple of interesting quotes related to MinGW+MSYS and ln, that I
&lt;br&gt;&amp;gt; found through a Google search:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;quote 1&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; There is no way to create a &amp;quot;file symlink&amp;quot; in MSYS in a way similar to a
&lt;br&gt;&amp;gt; &amp;quot;directory symlink&amp;quot; (that is, a mount point).
&lt;br&gt;&amp;gt; The command ln for creating links works, but it actually makes a copy of the
&lt;br&gt;&amp;gt; original file, not a symlink to it.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;/quote 1&amp;gt;
&lt;/div&gt;&lt;br&gt;&amp;nbsp; Right, the ln just copying file on my side.
&lt;br&gt;&lt;br&gt;&amp;gt; Is there a simple test I can use, a simple C++ program, that e.g. obtains
&lt;br&gt;&amp;gt; the ID and version of the stdcxx library?
&lt;br&gt;&lt;br&gt;&amp;nbsp; Try this:
&lt;br&gt;-----------
&lt;br&gt;#include &amp;lt;iostream&amp;gt;
&lt;br&gt;&lt;br&gt;int main ()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; // install dependency on stdcxx headers
&lt;br&gt;&amp;nbsp; &amp;nbsp; std::cout &amp;lt;&amp;lt; &amp;quot;Test program using stdcxx version &amp;quot; &amp;lt;&amp;lt; _RWSTD_VER_STR &amp;lt;&amp;lt; std::endl;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; int ret = -1;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; // install dependency on stdcxx library
&lt;br&gt;&amp;nbsp; &amp;nbsp; ret = __rw::__rw_atomic_add32 (&amp;ret, 1);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; return ret;
&lt;br&gt;}
&lt;br&gt;-----------
&lt;br&gt;&lt;br&gt;&amp;gt; HOWEVER, until ALL the stdcxx tests are verified as ok on gcc/MinGW, this
&lt;br&gt;&amp;gt; means that there IS/ARE some problem(s) with stdcxx in MinGW, does it not?
&lt;br&gt;&amp;gt; After all, isn't the purpose of the tests to prove that the stdcxx libary on the
&lt;br&gt;&amp;gt; target system is working correctly?
&lt;br&gt;&lt;br&gt;&amp;nbsp; In general it is, but there are might be some expected failures (which has been
&lt;br&gt;documented in JIRA) and failures, that should be an expected, but not documented
&lt;br&gt;in JIRA yet. BTW any stdcxx user can document new failures by creating corresponding
&lt;br&gt;issues in JIRA ;)
&lt;br&gt;&lt;br&gt;&amp;nbsp; The 18.c.limits.stdcxx-988.cpp test fails to compile on gcc/MinGW due to undefined
&lt;br&gt;LONG_BIT, SSIZE_MAX, WORD_BIT values. They're expected to be defined in &amp;lt;limits.h&amp;gt;
&lt;br&gt;provided by compiler. Strictly speaking I didn't found these names mentioned in
&lt;br&gt;current C++ standard in header &amp;lt;climits&amp;gt; synopsis. I suppose that they're optional
&lt;br&gt;(i.e. required by POSIX only) and can be not exercised (as it is already done for EDG eccp).
&lt;br&gt;&lt;br&gt;Farid.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20734204.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20732915</id>
	<title>Re: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-11-28T03:29:32Z</published>
	<updated>2008-11-28T03:29:32Z</updated>
	<author>
		<name>Steve Petrie</name>
	</author>
	<content type="html">[SP]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Then I created a documented test case shell script &amp;quot;test.mingw.ln&amp;quot;
&lt;br&gt;&amp;gt; (attached), that replicates the problem on my MinGW+MSYS system.
&lt;br&gt;&amp;gt; Would you like to run the script in an MSYS console on your system, and 
&lt;br&gt;&amp;gt; let
&lt;br&gt;&amp;gt; me know the result?
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;[SP]
&lt;br&gt;I notice that &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20732915&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt; has stripped the file attachment 
&lt;br&gt;&amp;quot;test.mingw.ln&amp;quot; from my email, before sending my email to mailing list 
&lt;br&gt;subscribers.
&lt;br&gt;&lt;br&gt;I will be away from my computer for a couple of days.
&lt;br&gt;&lt;br&gt;When I return, I'll provide the &amp;quot;test.mingw.ln&amp;quot; file to you.
&lt;br&gt;&lt;br&gt;Steve
&lt;br&gt;&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;Steve Petrie, P.Eng.&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20732915&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;apetrie@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20732915&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Friday, November 28, 2008 12:05 AM
&lt;br&gt;Subject: Re: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; [FZ]
&lt;br&gt;&amp;gt; Actually my goal is make it possible to build stdcxx/MinGW and
&lt;br&gt;&amp;gt; stdcxx/Cygwin using Cygwin environment as well as stdcxx/MinGW using MSYS
&lt;br&gt;&amp;gt; environment.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [SP]
&lt;br&gt;&amp;gt; Good -- so we share the same goal of making it possible to build
&lt;br&gt;&amp;gt; stdcxx/MinGW using the MSYS
&lt;br&gt;&amp;gt; environment.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [FZ]
&lt;br&gt;&amp;gt;&amp;gt; On the three lines marked ** above, I added an explicit file name after
&lt;br&gt;&amp;gt;&amp;gt; the
&lt;br&gt;&amp;gt;&amp;gt; $(buildpath) because the MinGW &amp;lt;ls&amp;gt; command, was REPLACING the
&lt;br&gt;&amp;gt;&amp;gt; /stdcxx-4.2.1/build/ directory name, with a link (named
&lt;br&gt;&amp;gt;&amp;gt; /stdcxx-4.2.1/build)
&lt;br&gt;&amp;gt;&amp;gt; to the file, instead of creating a link to the file (with the name of the
&lt;br&gt;&amp;gt;&amp;gt; file), IN the /stdcxx-4.2.1/build/ directory.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;I have no such problems when running make on MSYS.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [SP]
&lt;br&gt;&amp;gt; Lucky you :)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But I definitely DO have the problem with &amp;quot;ln&amp;quot; on my MSYS :(
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ( It's actually the &amp;quot;ln&amp;quot; command, not &amp;quot;ls&amp;quot; that has the bug. Due to lack 
&lt;br&gt;&amp;gt; of
&lt;br&gt;&amp;gt; sleep. I mis-named the &amp;quot;ln&amp;quot; command &amp;quot;ls&amp;quot; in my description. But the 
&lt;br&gt;&amp;gt; example
&lt;br&gt;&amp;gt; code above the description, showed &amp;quot;ln&amp;quot;.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm using Windows XP (SP2) and MinGW (5.1.4) and MSYS (1.0.10). Perhaps we
&lt;br&gt;&amp;gt; have a difference in our operating environments?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have replicated the problem outside the stdcxx-4.2.2 make, by manually
&lt;br&gt;&amp;gt; entering the ln commands at an MSYS console.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Then I created a documented test case shell script &amp;quot;test.mingw.ln&amp;quot;
&lt;br&gt;&amp;gt; (attached), that replicates the problem on my MinGW+MSYS system.
&lt;br&gt;&amp;gt; Would you like to run the script in an MSYS console on your system, and 
&lt;br&gt;&amp;gt; let
&lt;br&gt;&amp;gt; me know the result?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I plan to report this problem (and provide the test script) to 
&lt;br&gt;&amp;gt; www.mingw.org
&lt;br&gt;&amp;gt; and it would be helpful to know for sure that it's something peculiar to 
&lt;br&gt;&amp;gt; my
&lt;br&gt;&amp;gt; environment.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here are a couple of interesting quotes related to MinGW+MSYS and ln, that 
&lt;br&gt;&amp;gt; I
&lt;br&gt;&amp;gt; found through a Google search:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;quote 1&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There is no way to create a &amp;quot;file symlink&amp;quot; in MSYS in a way similar to a
&lt;br&gt;&amp;gt; &amp;quot;directory symlink&amp;quot; (that is, a mount point).
&lt;br&gt;&amp;gt; The command ln for creating links works, but it actually makes a copy of 
&lt;br&gt;&amp;gt; the
&lt;br&gt;&amp;gt; original file, not a symlink to it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/quote 1&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;quote 2&amp;gt;
&lt;br&gt;&amp;gt; It is possible to build under MinGW, however the release packages are
&lt;br&gt;&amp;gt; build under cygwin and I am trying to duplicate the setup used.
&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt; Cygwin softlinks are unusable under native windows, so we need to
&lt;br&gt;&amp;gt; disableCygwin's &amp;quot;ln&amp;quot; command and let gcc's build scripts use &amp;quot;cp&amp;quot;
&lt;br&gt;&amp;gt; instead.&amp;lt;/quote 2&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; quote 2 above, &amp;nbsp;is from &amp;nbsp;web page
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://article.gmane.org/gmane.comp.gnu.mingw.user/25585&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://article.gmane.org/gmane.comp.gnu.mingw.user/25585&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [FZ]
&lt;br&gt;&amp;gt; My congratulations, you have just build the stdcxx library :)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [SP]
&lt;br&gt;&amp;gt; Great!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now I'll install the stdcxx library, for use with my NetBeans 6.5 IDE 
&lt;br&gt;&amp;gt; (With
&lt;br&gt;&amp;gt; C++ plugin.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is there a simple test I can use, a simple C++ program, that e.g. obtains
&lt;br&gt;&amp;gt; the
&lt;br&gt;&amp;gt; ID and version of the stdcxx library?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; After I install the stdcxx library, I would like to conclusively PROVE to
&lt;br&gt;&amp;gt; myself,
&lt;br&gt;&amp;gt; that I'm actually hooking into the stdcxx library, and not the standard
&lt;br&gt;&amp;gt; library shipped with MinGW.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [FZ]
&lt;br&gt;&amp;gt; Hmm, you must be wrong, we don't have any file with the name &amp;quot;build&amp;quot; in 
&lt;br&gt;&amp;gt; svn.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [SP}
&lt;br&gt;&amp;gt; You are correct -- my apologies.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The /stdcxx-4.2.2/build file, that I mistakenly thought came with the svn,
&lt;br&gt;&amp;gt; was a file link named &amp;quot;build&amp;quot;, linked to
&lt;br&gt;&amp;gt; /stdcxx-4.2.2/etc/config/makefile.rules.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This link was created by the buggy MinGW &amp;lt;ln&amp;gt; command that I described in 
&lt;br&gt;&amp;gt; my
&lt;br&gt;&amp;gt; &amp;quot;Fix #1 -- /stdcxx-4.2.2/CNUmakefile&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I must have run the make first once, and forgot about the buggy MinGW &amp;lt;ln&amp;gt;
&lt;br&gt;&amp;gt; that created the /stdcxx-4.2.2/build file link. So I assumed that the
&lt;br&gt;&amp;gt; /stdcxx-4.2.2/build file came with the svn.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [FZ]
&lt;br&gt;&amp;gt; &amp;nbsp;It depends on what you want :) You have build the stdcxx library
&lt;br&gt;&amp;gt; successfully, so now you can compile
&lt;br&gt;&amp;gt; your programs with stdcxx.
&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt; &amp;nbsp;18.c.limits.stdcxx-988.cpp is just one of the regression tests. It was 
&lt;br&gt;&amp;gt; not
&lt;br&gt;&amp;gt; verified on gcc/MinGW so
&lt;br&gt;&amp;gt; it fails to compile. But this failure doesn't means that there is some
&lt;br&gt;&amp;gt; problem or bug in stdcxx library.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [SP]
&lt;br&gt;&amp;gt; I don't entirely follow your thinking.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm glad to know that I've successfully built the stdcxx library -- that's 
&lt;br&gt;&amp;gt; a
&lt;br&gt;&amp;gt; HUGE step in the right direction. And certainly I'm going to start using
&lt;br&gt;&amp;gt; stdcxx in my C++ programming work.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; HOWEVER, until ALL the stdcxx tests are verified as ok on gcc/MinGW, this
&lt;br&gt;&amp;gt; means
&lt;br&gt;&amp;gt; that there IS/ARE some problem(s) with stdcxx in MinGW, does it not? After
&lt;br&gt;&amp;gt; all, isn't
&lt;br&gt;&amp;gt; the purpose of the tests to prove that the stdcxx libary on the target
&lt;br&gt;&amp;gt; system is working correctly?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Steve
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ----- Original Message ----- 
&lt;br&gt;&amp;gt; From: &amp;quot;Farid Zaripov&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20732915&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Farid_Zaripov@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20732915&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sent: Thursday, November 27, 2008 2:24 PM
&lt;br&gt;&amp;gt; Subject: RE: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I assume that you are building stdcxx-4.2.2 using Cygwin, and targeting
&lt;br&gt;&amp;gt;&amp;gt; MinGW. My objective is to build stdcxx-4.2.2 using MinGW. I don't use
&lt;br&gt;&amp;gt;&amp;gt; Cygwin
&lt;br&gt;&amp;gt;&amp;gt; and I don't plan to use it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;Actually my goal is make it possible to build stdcxx/MinGW and
&lt;br&gt;&amp;gt; stdcxx/Cygwin
&lt;br&gt;&amp;gt; using Cygwin environment as well as stdcxx/MinGW using MSYS environment.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; There were two fixes I had to make, to get the build of the patched
&lt;br&gt;&amp;gt;&amp;gt; stdcxx-4.2.2 to run:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On the three lines marked ** above, I added an explicit file name after
&lt;br&gt;&amp;gt;&amp;gt; the
&lt;br&gt;&amp;gt;&amp;gt; $(buildpath) because the MinGW &amp;lt;ls&amp;gt; command, was REPLACING the
&lt;br&gt;&amp;gt;&amp;gt; /stdcxx-4.2.1/build/ directory name, with a link (named
&lt;br&gt;&amp;gt;&amp;gt; /stdcxx-4.2.1/build)
&lt;br&gt;&amp;gt;&amp;gt; to the file, instead of creating a link to the file (with the name of the
&lt;br&gt;&amp;gt;&amp;gt; file), IN the /stdcxx-4.2.1/build/ directory.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;I have no such problems when running make on MSYS.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Fix #2 -- Your /stdcxx-4.2.2/build file:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I renamed the /stdcxx-4.2.2/build file that came with the svn download, 
&lt;br&gt;&amp;gt;&amp;gt; to
&lt;br&gt;&amp;gt;&amp;gt; /stdcxx-4.2.1/build_faridz, because the presence of the build FILE was
&lt;br&gt;&amp;gt;&amp;gt; preventing the GNUmakefile from creating the /stdcxx-4.2.2/build/
&lt;br&gt;&amp;gt;&amp;gt; DIRECTORY.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;Hmm, you must be wrong, we don't have any file with the name &amp;quot;build&amp;quot; in
&lt;br&gt;&amp;gt; svn.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; There is an /stdcxx-4.2.2/build/liblibstd.a file of size 2.33 MB.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;My congratulations, you have just build the stdcxx library :)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; HOWEVER, the build ended with the following displayed on the MSYS 
&lt;br&gt;&amp;gt;&amp;gt; console:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;When you run make without targets specified, the examples, tests, locales
&lt;br&gt;&amp;gt; will be build.
&lt;br&gt;&amp;gt; Not all tests are compiling without errors on gcc/MinGW at the moment. It 
&lt;br&gt;&amp;gt; is
&lt;br&gt;&amp;gt; ok.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;You can build the library only (without examples, tests and so on) using
&lt;br&gt;&amp;gt; this command: &amp;quot;make config lib&amp;quot;
&lt;br&gt;&amp;gt; Also I suggest to explicitly specify the build type. I.e.:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; make BUILDDIR=/var/tmp/stdcxx-4.2.2/gcc/15d BUILDTYPE=15d config lib
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; In the line &amp;quot;make[1]: [tests] Error 2 (ignored)&amp;quot;, does the &amp;quot;(ignored)&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; mean
&lt;br&gt;&amp;gt;&amp;gt; that &amp;lt;make&amp;gt; did not terminate prematurely, and that file:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; /stdcxx-4.2.2/tests/regress/18.c.limits.stdcxx-988.cpp
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; is the last test source file to be compiled?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;I don't think so. The make should stop on the first error encountered
&lt;br&gt;&amp;gt; unless make was executed with &amp;quot;-k&amp;quot; option specified.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; According to the /stdcxx-4.2.2/README file, the last build step is the
&lt;br&gt;&amp;gt;&amp;gt; locale databases. The build I ran left the /stdcxx-4.2.2/nls/ directory
&lt;br&gt;&amp;gt;&amp;gt; completely EMPTY.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;Right, that because of make stopped on the compile error you mentioned
&lt;br&gt;&amp;gt; above.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Please let me know -- did the build complete successfully?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;It depends on what you want :) You have build the stdcxx library
&lt;br&gt;&amp;gt; successfully, so now you can compile
&lt;br&gt;&amp;gt; your programs with stdcxx.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If not, and I
&lt;br&gt;&amp;gt;&amp;gt; need to fix the 18.c.limits.stdcxx-988.cpp compile error, what changes to
&lt;br&gt;&amp;gt;&amp;gt; I
&lt;br&gt;&amp;gt;&amp;gt; need to make to fix the compile error?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;18.c.limits.stdcxx-988.cpp is just one of the regression tests. It was 
&lt;br&gt;&amp;gt; not
&lt;br&gt;&amp;gt; verified on gcc/MinGW so
&lt;br&gt;&amp;gt; it fails to compile. But this failure doesn't means that there is some
&lt;br&gt;&amp;gt; problem or bug in stdcxx library.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Farid.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20732915.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20729078</id>
	<title>Re: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-11-27T21:06:38Z</published>
	<updated>2008-11-27T21:06:38Z</updated>
	<author>
		<name>Steve Petrie</name>
	</author>
	<content type="html">[MS]
&lt;br&gt;&amp;gt; Right. I think a &amp;quot;build&amp;quot; directory gets created automatically
&lt;br&gt;&amp;gt; when one isn't specified on the command line (via BUILDDIR).
&lt;br&gt;&amp;gt; Something weird seems to be going on in Steve's environment
&lt;br&gt;&amp;gt; (the behavior of ln -s is definitely bizarre)...
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;[SP]
&lt;br&gt;Yes there is something wierd. Please see my response to Farid's message,
&lt;br&gt;regarding a test shell script I created, to replicate the MinGW+MSYS ln
&lt;br&gt;problem.
&lt;br&gt;&lt;br&gt;But I've got a workaround for the problem. And Farid says my stdcxx build is
&lt;br&gt;now working. So no big deal.
&lt;br&gt;&lt;br&gt;I'm &amp;quot;only&amp;quot; using MinGW+MSYS for compiling and building C++ programs through
&lt;br&gt;the NetBeans IDE (with C++ plugin). That all seems to work fine. It's the
&lt;br&gt;comparably far more complex process of building the stdcxx library, that is
&lt;br&gt;stressing my MinGW+MSYS. But I want to use stdcxx because it seems to me
&lt;br&gt;likely to be superior to the standard library shipped with g++, so I don't
&lt;br&gt;mind at all working through the glitches to get stdcxx built and working.
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;[MS]&amp;gt;&amp;gt;&amp;gt; There is an /stdcxx-4.2.2/build/liblibstd.a file of size 2.33 MB.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; My congratulations, you have just build the stdcxx library :)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Although it probably shouldn't be called liblibstd, should it?
&lt;br&gt;&amp;gt; What's with the duplicate &amp;quot;lib&amp;quot; part?
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;[SP]
&lt;br&gt;It's lack of sleep -- the correct pathname is
&lt;br&gt;/stdcxx-4.2.2/build/lib/libstd.a
&lt;br&gt;&lt;br&gt;Steve
&lt;br&gt;&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;Martin Sebor&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20729078&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msebor@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20729078&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Thursday, November 27, 2008 3:05 PM
&lt;br&gt;Subject: Re: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Farid Zaripov wrote:
&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Fix #2 -- Your /stdcxx-4.2.2/build file:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I renamed the /stdcxx-4.2.2/build file that came with the svn download,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; /stdcxx-4.2.1/build_faridz, because the presence of the build FILE was
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; preventing the GNUmakefile from creating the /stdcxx-4.2.2/build/
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; DIRECTORY.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Hmm, you must be wrong, we don't have any file with the name &amp;quot;build&amp;quot; in
&lt;br&gt;&amp;gt;&amp;gt; svn.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Right. I think a &amp;quot;build&amp;quot; directory gets created automatically
&lt;br&gt;&amp;gt; when one isn't specified on the command line (via BUILDDIR).
&lt;br&gt;&amp;gt; Something weird seems to be going on in Steve's environment
&lt;br&gt;&amp;gt; (the behavior of ln -s is definitely bizarre)...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; [...]
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; There is an /stdcxx-4.2.2/build/liblibstd.a file of size 2.33 MB.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; My congratulations, you have just build the stdcxx library :)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Although it probably shouldn't be called liblibstd, should it?
&lt;br&gt;&amp;gt; What's with the duplicate &amp;quot;lib&amp;quot; part?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Martin
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20729078.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20729091</id>
	<title>Re: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-11-27T21:05:45Z</published>
	<updated>2008-11-27T21:05:45Z</updated>
	<author>
		<name>Steve Petrie</name>
	</author>
	<content type="html">[FZ]
&lt;br&gt;&amp;nbsp;Actually my goal is make it possible to build stdcxx/MinGW and
&lt;br&gt;stdcxx/Cygwin using Cygwin environment as well as stdcxx/MinGW using MSYS
&lt;br&gt;environment.
&lt;br&gt;&lt;br&gt;[SP]
&lt;br&gt;Good -- so we share the same goal of making it possible to build
&lt;br&gt;stdcxx/MinGW using the MSYS
&lt;br&gt;environment.
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;[FZ]
&lt;br&gt;&amp;gt; On the three lines marked ** above, I added an explicit file name after
&lt;br&gt;&amp;gt; the
&lt;br&gt;&amp;gt; $(buildpath) because the MinGW &amp;lt;ls&amp;gt; command, was REPLACING the
&lt;br&gt;&amp;gt; /stdcxx-4.2.1/build/ directory name, with a link (named
&lt;br&gt;&amp;gt; /stdcxx-4.2.1/build)
&lt;br&gt;&amp;gt; to the file, instead of creating a link to the file (with the name of the
&lt;br&gt;&amp;gt; file), IN the /stdcxx-4.2.1/build/ directory.
&lt;br&gt;&lt;br&gt;&amp;nbsp; I have no such problems when running make on MSYS.
&lt;br&gt;&lt;br&gt;[SP]
&lt;br&gt;Lucky you :)
&lt;br&gt;&lt;br&gt;But I definitely DO have the problem with &amp;quot;ln&amp;quot; on my MSYS :(
&lt;br&gt;&lt;br&gt;( It's actually the &amp;quot;ln&amp;quot; command, not &amp;quot;ls&amp;quot; that has the bug. Due to lack of
&lt;br&gt;sleep. I mis-named the &amp;quot;ln&amp;quot; command &amp;quot;ls&amp;quot; in my description. But the example
&lt;br&gt;code above the description, showed &amp;quot;ln&amp;quot;.)
&lt;br&gt;&lt;br&gt;I'm using Windows XP (SP2) and MinGW (5.1.4) and MSYS (1.0.10). Perhaps we
&lt;br&gt;have a difference in our operating environments?
&lt;br&gt;&lt;br&gt;I have replicated the problem outside the stdcxx-4.2.2 make, by manually
&lt;br&gt;entering the ln commands at an MSYS console.
&lt;br&gt;&lt;br&gt;Then I created a documented test case shell script &amp;quot;test.mingw.ln&amp;quot;
&lt;br&gt;(attached), that replicates the problem on my MinGW+MSYS system.
&lt;br&gt;Would you like to run the script in an MSYS console on your system, and let
&lt;br&gt;me know the result?
&lt;br&gt;&lt;br&gt;I plan to report this problem (and provide the test script) to www.mingw.org
&lt;br&gt;and it would be helpful to know for sure that it's something peculiar to my
&lt;br&gt;environment.
&lt;br&gt;&lt;br&gt;Here are a couple of interesting quotes related to MinGW+MSYS and ln, that I
&lt;br&gt;found through a Google search:
&lt;br&gt;&lt;br&gt;&amp;lt;quote 1&amp;gt;
&lt;br&gt;&lt;br&gt;There is no way to create a &amp;quot;file symlink&amp;quot; in MSYS in a way similar to a
&lt;br&gt;&amp;quot;directory symlink&amp;quot; (that is, a mount point).
&lt;br&gt;The command ln for creating links works, but it actually makes a copy of the
&lt;br&gt;original file, not a symlink to it.
&lt;br&gt;&lt;br&gt;&amp;lt;/quote 1&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;lt;quote 2&amp;gt;
&lt;br&gt;It is possible to build under MinGW, however the release packages are
&lt;br&gt;build under cygwin and I am trying to duplicate the setup used.
&lt;br&gt;[...]
&lt;br&gt;Cygwin softlinks are unusable under native windows, so we need to
&lt;br&gt;disableCygwin's &amp;quot;ln&amp;quot; command and let gcc's build scripts use &amp;quot;cp&amp;quot;
&lt;br&gt;instead.&amp;lt;/quote 2&amp;gt;
&lt;br&gt;&lt;br&gt;quote 2 above, &amp;nbsp;is from &amp;nbsp;web page
&lt;br&gt;&lt;a href=&quot;http://article.gmane.org/gmane.comp.gnu.mingw.user/25585&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://article.gmane.org/gmane.comp.gnu.mingw.user/25585&lt;/a&gt;&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;[FZ]
&lt;br&gt;&amp;nbsp;My congratulations, you have just build the stdcxx library :)
&lt;br&gt;&lt;br&gt;[SP]
&lt;br&gt;Great!
&lt;br&gt;&lt;br&gt;Now I'll install the stdcxx library, for use with my NetBeans 6.5 IDE (With
&lt;br&gt;C++ plugin.)
&lt;br&gt;&lt;br&gt;Is there a simple test I can use, a simple C++ program, that e.g. obtains
&lt;br&gt;the
&lt;br&gt;ID and version of the stdcxx library?
&lt;br&gt;&lt;br&gt;After I install the stdcxx library, I would like to conclusively PROVE to
&lt;br&gt;myself,
&lt;br&gt;that I'm actually hooking into the stdcxx library, and not the standard
&lt;br&gt;library shipped with MinGW.
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;[FZ]
&lt;br&gt;Hmm, you must be wrong, we don't have any file with the name &amp;quot;build&amp;quot; in svn.
&lt;br&gt;&lt;br&gt;[SP}
&lt;br&gt;You are correct -- my apologies.
&lt;br&gt;&lt;br&gt;The /stdcxx-4.2.2/build file, that I mistakenly thought came with the svn,
&lt;br&gt;was a file link named &amp;quot;build&amp;quot;, linked to
&lt;br&gt;/stdcxx-4.2.2/etc/config/makefile.rules.
&lt;br&gt;&lt;br&gt;This link was created by the buggy MinGW &amp;lt;ln&amp;gt; command that I described in my
&lt;br&gt;&amp;quot;Fix #1 -- /stdcxx-4.2.2/CNUmakefile&amp;quot;.
&lt;br&gt;&lt;br&gt;I must have run the make first once, and forgot about the buggy MinGW &amp;lt;ln&amp;gt;
&lt;br&gt;that created the /stdcxx-4.2.2/build file link. So I assumed that the
&lt;br&gt;/stdcxx-4.2.2/build file came with the svn.
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;[FZ]
&lt;br&gt;&amp;nbsp; It depends on what you want :) You have build the stdcxx library
&lt;br&gt;successfully, so now you can compile
&lt;br&gt;your programs with stdcxx.
&lt;br&gt;[...]
&lt;br&gt;&amp;nbsp; 18.c.limits.stdcxx-988.cpp is just one of the regression tests. It was not
&lt;br&gt;verified on gcc/MinGW so
&lt;br&gt;it fails to compile. But this failure doesn't means that there is some
&lt;br&gt;problem or bug in stdcxx library.
&lt;br&gt;&lt;br&gt;[SP]
&lt;br&gt;I don't entirely follow your thinking.
&lt;br&gt;&lt;br&gt;I'm glad to know that I've successfully built the stdcxx library -- that's a
&lt;br&gt;HUGE step in the right direction. And certainly I'm going to start using
&lt;br&gt;stdcxx in my C++ programming work.
&lt;br&gt;&lt;br&gt;HOWEVER, until ALL the stdcxx tests are verified as ok on gcc/MinGW, this
&lt;br&gt;means
&lt;br&gt;that there IS/ARE some problem(s) with stdcxx in MinGW, does it not? After
&lt;br&gt;all, isn't
&lt;br&gt;the purpose of the tests to prove that the stdcxx libary on the target
&lt;br&gt;system is working correctly?
&lt;br&gt;&lt;br&gt;Steve
&lt;br&gt;&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;Farid Zaripov&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20729091&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Farid_Zaripov@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20729091&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Thursday, November 27, 2008 2:24 PM
&lt;br&gt;Subject: RE: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; I assume that you are building stdcxx-4.2.2 using Cygwin, and targeting
&lt;br&gt;&amp;gt; MinGW. My objective is to build stdcxx-4.2.2 using MinGW. I don't use
&lt;br&gt;&amp;gt; Cygwin
&lt;br&gt;&amp;gt; and I don't plan to use it.
&lt;br&gt;&lt;br&gt;&amp;nbsp; Actually my goal is make it possible to build stdcxx/MinGW and
&lt;br&gt;stdcxx/Cygwin
&lt;br&gt;using Cygwin environment as well as stdcxx/MinGW using MSYS environment.
&lt;br&gt;&lt;br&gt;&amp;gt; There were two fixes I had to make, to get the build of the patched
&lt;br&gt;&amp;gt; stdcxx-4.2.2 to run:
&lt;br&gt;&lt;br&gt;[...]
&lt;br&gt;&lt;br&gt;&amp;gt; On the three lines marked ** above, I added an explicit file name after
&lt;br&gt;&amp;gt; the
&lt;br&gt;&amp;gt; $(buildpath) because the MinGW &amp;lt;ls&amp;gt; command, was REPLACING the
&lt;br&gt;&amp;gt; /stdcxx-4.2.1/build/ directory name, with a link (named
&lt;br&gt;&amp;gt; /stdcxx-4.2.1/build)
&lt;br&gt;&amp;gt; to the file, instead of creating a link to the file (with the name of the
&lt;br&gt;&amp;gt; file), IN the /stdcxx-4.2.1/build/ directory.
&lt;br&gt;&lt;br&gt;&amp;nbsp; I have no such problems when running make on MSYS.
&lt;br&gt;&lt;br&gt;&amp;gt; Fix #2 -- Your /stdcxx-4.2.2/build file:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I renamed the /stdcxx-4.2.2/build file that came with the svn download, to
&lt;br&gt;&amp;gt; /stdcxx-4.2.1/build_faridz, because the presence of the build FILE was
&lt;br&gt;&amp;gt; preventing the GNUmakefile from creating the /stdcxx-4.2.2/build/
&lt;br&gt;&amp;gt; DIRECTORY.
&lt;br&gt;&lt;br&gt;&amp;nbsp; Hmm, you must be wrong, we don't have any file with the name &amp;quot;build&amp;quot; in
&lt;br&gt;svn.
&lt;br&gt;&lt;br&gt;[...]
&lt;br&gt;&lt;br&gt;&amp;gt; There is an /stdcxx-4.2.2/build/liblibstd.a file of size 2.33 MB.
&lt;br&gt;&lt;br&gt;&amp;nbsp; My congratulations, you have just build the stdcxx library :)
&lt;br&gt;&lt;br&gt;&amp;gt; HOWEVER, the build ended with the following displayed on the MSYS console:
&lt;br&gt;&lt;br&gt;&amp;nbsp; When you run make without targets specified, the examples, tests, locales
&lt;br&gt;will be build.
&lt;br&gt;Not all tests are compiling without errors on gcc/MinGW at the moment. It is
&lt;br&gt;ok.
&lt;br&gt;&lt;br&gt;&amp;nbsp; You can build the library only (without examples, tests and so on) using
&lt;br&gt;this command: &amp;quot;make config lib&amp;quot;
&lt;br&gt;Also I suggest to explicitly specify the build type. I.e.:
&lt;br&gt;&lt;br&gt;make BUILDDIR=/var/tmp/stdcxx-4.2.2/gcc/15d BUILDTYPE=15d config lib
&lt;br&gt;&lt;br&gt;&amp;gt; In the line &amp;quot;make[1]: [tests] Error 2 (ignored)&amp;quot;, does the &amp;quot;(ignored)&amp;quot;
&lt;br&gt;&amp;gt; mean
&lt;br&gt;&amp;gt; that &amp;lt;make&amp;gt; did not terminate prematurely, and that file:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; /stdcxx-4.2.2/tests/regress/18.c.limits.stdcxx-988.cpp
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; is the last test source file to be compiled?
&lt;br&gt;&lt;br&gt;&amp;nbsp; I don't think so. The make should stop on the first error encountered
&lt;br&gt;unless make was executed with &amp;quot;-k&amp;quot; option specified.
&lt;br&gt;&lt;br&gt;&amp;gt; According to the /stdcxx-4.2.2/README file, the last build step is the
&lt;br&gt;&amp;gt; locale databases. The build I ran left the /stdcxx-4.2.2/nls/ directory
&lt;br&gt;&amp;gt; completely EMPTY.
&lt;br&gt;&lt;br&gt;&amp;nbsp; Right, that because of make stopped on the compile error you mentioned
&lt;br&gt;above.
&lt;br&gt;&lt;br&gt;&amp;gt; Please let me know -- did the build complete successfully?
&lt;br&gt;&lt;br&gt;&amp;nbsp; It depends on what you want :) You have build the stdcxx library
&lt;br&gt;successfully, so now you can compile
&lt;br&gt;your programs with stdcxx.
&lt;br&gt;&lt;br&gt;&amp;gt; If not, and I
&lt;br&gt;&amp;gt; need to fix the 18.c.limits.stdcxx-988.cpp compile error, what changes to
&lt;br&gt;&amp;gt; I
&lt;br&gt;&amp;gt; need to make to fix the compile error?
&lt;br&gt;&lt;br&gt;&amp;nbsp; 18.c.limits.stdcxx-988.cpp is just one of the regression tests. It was not
&lt;br&gt;verified on gcc/MinGW so
&lt;br&gt;it fails to compile. But this failure doesn't means that there is some
&lt;br&gt;problem or bug in stdcxx library.
&lt;br&gt;&lt;br&gt;Farid.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20729091.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20727399</id>
	<title>Re: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-11-27T16:21:04Z</published>
	<updated>2008-11-27T16:21:04Z</updated>
	<author>
		<name>Martin Sebor-2</name>
	</author>
	<content type="html">Farid Zaripov wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; Although it probably shouldn't be called liblibstd, should it?
&lt;br&gt;&amp;gt;&amp;gt; What's with the duplicate &amp;quot;lib&amp;quot; part?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; I think you should know, that the library file located in lib subdirectory ;)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; I suppose that there missed '/' after the first 'lib': /stdcxx-4.2.2/build/lib/libstd.a
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; And what I don't like is that when BUILDTYPE is not specified, the name of library file is always
&lt;br&gt;&amp;gt; libstd.{a;so} for any possible BUILDMODE values (even for empty BUILDMODE). The comments
&lt;br&gt;&amp;gt; in GNUMakefile says that BUILDTYPE and BUILDMODE both are optional and by default will be
&lt;br&gt;&amp;gt; used 11s, but this is not true...
&lt;/div&gt;&lt;br&gt;We should fix the text. When you don't specify either you get neither
&lt;br&gt;debugging (i.e., no -g) nor optimization (i.e., no -O). I.e., you get
&lt;br&gt;whatever the default invocation of the compiler gives you with no
&lt;br&gt;options.
&lt;br&gt;&lt;br&gt;Martin
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Farid.
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20727399.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20726800</id>
	<title>Re: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-11-27T15:06:18Z</published>
	<updated>2008-11-27T15:06:18Z</updated>
	<author>
		<name>Farid Zaripov-2</name>
	</author>
	<content type="html">&amp;gt; Although it probably shouldn't be called liblibstd, should it?
&lt;br&gt;&amp;gt; What's with the duplicate &amp;quot;lib&amp;quot; part?
&lt;br&gt;&lt;br&gt;&amp;nbsp; I think you should know, that the library file located in lib subdirectory ;)
&lt;br&gt;&lt;br&gt;&amp;nbsp; I suppose that there missed '/' after the first 'lib': /stdcxx-4.2.2/build/lib/libstd.a
&lt;br&gt;&lt;br&gt;&amp;nbsp; And what I don't like is that when BUILDTYPE is not specified, the name of library file is always
&lt;br&gt;libstd.{a;so} for any possible BUILDMODE values (even for empty BUILDMODE). The comments
&lt;br&gt;in GNUMakefile says that BUILDTYPE and BUILDMODE both are optional and by default will be
&lt;br&gt;used 11s, but this is not true...
&lt;br&gt;&lt;br&gt;Farid.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20726800.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20724953</id>
	<title>Re: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-11-27T12:05:33Z</published>
	<updated>2008-11-27T12:05:33Z</updated>
	<author>
		<name>Martin Sebor-2</name>
	</author>
	<content type="html">Farid Zaripov wrote:
&lt;br&gt;[...]
&lt;br&gt;&amp;gt;&amp;gt; Fix #2 -- Your /stdcxx-4.2.2/build file:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I renamed the /stdcxx-4.2.2/build file that came with the svn download, to
&lt;br&gt;&amp;gt;&amp;gt; /stdcxx-4.2.1/build_faridz, because the presence of the build FILE was
&lt;br&gt;&amp;gt;&amp;gt; preventing the GNUmakefile from creating the /stdcxx-4.2.2/build/ DIRECTORY.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; Hmm, you must be wrong, we don't have any file with the name &amp;quot;build&amp;quot; in svn.
&lt;br&gt;&lt;br&gt;Right. I think a &amp;quot;build&amp;quot; directory gets created automatically
&lt;br&gt;when one isn't specified on the command line (via BUILDDIR).
&lt;br&gt;Something weird seems to be going on in Steve's environment
&lt;br&gt;(the behavior of ln -s is definitely bizarre)...
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; There is an /stdcxx-4.2.2/build/liblibstd.a file of size 2.33 MB.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; My congratulations, you have just build the stdcxx library :)
&lt;br&gt;&lt;br&gt;Although it probably shouldn't be called liblibstd, should it?
&lt;br&gt;What's with the duplicate &amp;quot;lib&amp;quot; part?
&lt;br&gt;&lt;br&gt;Martin
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20724953.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20724488</id>
	<title>RE: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-11-27T11:24:43Z</published>
	<updated>2008-11-27T11:24:43Z</updated>
	<author>
		<name>Farid Zaripov-2</name>
	</author>
	<content type="html">&amp;gt; I assume that you are building stdcxx-4.2.2 using Cygwin, and targeting
&lt;br&gt;&amp;gt; MinGW. My objective is to build stdcxx-4.2.2 using MinGW. I don't use Cygwin
&lt;br&gt;&amp;gt; and I don't plan to use it.
&lt;br&gt;&lt;br&gt;&amp;nbsp; Actually my goal is make it possible to build stdcxx/MinGW and stdcxx/Cygwin
&lt;br&gt;using Cygwin environment as well as stdcxx/MinGW using MSYS environment.
&lt;br&gt;&lt;br&gt;&amp;gt; There were two fixes I had to make, to get the build of the patched
&lt;br&gt;&amp;gt; stdcxx-4.2.2 to run:
&lt;br&gt;&lt;br&gt;[...]
&lt;br&gt;&lt;br&gt;&amp;gt; On the three lines marked ** above, I added an explicit file name after the
&lt;br&gt;&amp;gt; $(buildpath) because the MinGW &amp;lt;ls&amp;gt; command, was REPLACING the
&lt;br&gt;&amp;gt; /stdcxx-4.2.1/build/ directory name, with a link (named /stdcxx-4.2.1/build)
&lt;br&gt;&amp;gt; to the file, instead of creating a link to the file (with the name of the
&lt;br&gt;&amp;gt; file), IN the /stdcxx-4.2.1/build/ directory.
&lt;br&gt;&lt;br&gt;&amp;nbsp; I have no such problems when running make on MSYS.
&lt;br&gt;&lt;br&gt;&amp;gt; Fix #2 -- Your /stdcxx-4.2.2/build file:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I renamed the /stdcxx-4.2.2/build file that came with the svn download, to
&lt;br&gt;&amp;gt; /stdcxx-4.2.1/build_faridz, because the presence of the build FILE was
&lt;br&gt;&amp;gt; preventing the GNUmakefile from creating the /stdcxx-4.2.2/build/ DIRECTORY.
&lt;br&gt;&lt;br&gt;&amp;nbsp; Hmm, you must be wrong, we don't have any file with the name &amp;quot;build&amp;quot; in svn.
&lt;br&gt;&lt;br&gt;[...]
&lt;br&gt;&lt;br&gt;&amp;gt; There is an /stdcxx-4.2.2/build/liblibstd.a file of size 2.33 MB.
&lt;br&gt;&lt;br&gt;&amp;nbsp; My congratulations, you have just build the stdcxx library :)
&lt;br&gt;&lt;br&gt;&amp;gt; HOWEVER, the build ended with the following displayed on the MSYS console:
&lt;br&gt;&lt;br&gt;&amp;nbsp; When you run make without targets specified, the examples, tests, locales will be build.
&lt;br&gt;Not all tests are compiling without errors on gcc/MinGW at the moment. It is ok.
&lt;br&gt;&lt;br&gt;&amp;nbsp; You can build the library only (without examples, tests and so on) using this command: &amp;quot;make config lib&amp;quot;
&lt;br&gt;Also I suggest to explicitly specify the build type. I.e.:
&lt;br&gt;&lt;br&gt;make BUILDDIR=/var/tmp/stdcxx-4.2.2/gcc/15d BUILDTYPE=15d config lib
&lt;br&gt;&lt;br&gt;&amp;gt; In the line &amp;quot;make[1]: [tests] Error 2 (ignored)&amp;quot;, does the &amp;quot;(ignored)&amp;quot; mean
&lt;br&gt;&amp;gt; that &amp;lt;make&amp;gt; did not terminate prematurely, and that file:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; /stdcxx-4.2.2/tests/regress/18.c.limits.stdcxx-988.cpp
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; is the last test source file to be compiled?
&lt;br&gt;&lt;br&gt;&amp;nbsp; I don't think so. The make should stop on the first error encountered unless make was executed with &amp;quot;-k&amp;quot; option specified.
&lt;br&gt;&lt;br&gt;&amp;gt; According to the /stdcxx-4.2.2/README file, the last build step is the
&lt;br&gt;&amp;gt; locale databases. The build I ran left the /stdcxx-4.2.2/nls/ directory
&lt;br&gt;&amp;gt; completely EMPTY.
&lt;br&gt;&lt;br&gt;&amp;nbsp; Right, that because of make stopped on the compile error you mentioned above.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; Please let me know -- did the build complete successfully?
&lt;br&gt;&lt;br&gt;&amp;nbsp; It depends on what you want :) You have build the stdcxx library successfully, so now you can compile
&lt;br&gt;your programs with stdcxx.
&lt;br&gt;&lt;br&gt;&amp;gt; If not, and I
&lt;br&gt;&amp;gt; need to fix the 18.c.limits.stdcxx-988.cpp compile error, what changes to I
&lt;br&gt;&amp;gt; need to make to fix the compile error?
&lt;br&gt;&lt;br&gt;&amp;nbsp; 18.c.limits.stdcxx-988.cpp is just one of the regression tests. It was not verified on gcc/MinGW so
&lt;br&gt;it fails to compile. But this failure doesn't means that there is some problem or bug in stdcxx library.
&lt;br&gt;&lt;br&gt;Farid.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20724488.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20712699</id>
	<title>Re: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-11-26T18:32:01Z</published>
	<updated>2008-11-26T18:32:01Z</updated>
	<author>
		<name>Steve Petrie</name>
	</author>
	<content type="html">Hi Martin,
&lt;br&gt;&lt;br&gt;Thanks for your post.
&lt;br&gt;&lt;br&gt;I'll keep your Jira tip in mind, for the future.
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;I'm no longer working with stdcxx-4.2.1.
&lt;br&gt;&lt;br&gt;Farid has notified me that stdcxx-4.2.2 is ported to MinGW, and he has 
&lt;br&gt;provided a patch to apply the MinGW updates to stdcxx-4.2.2.
&lt;br&gt;&lt;br&gt;The work I did on building stdcxx-4.2.1 using MinGW+MSYS wasn't wasted 
&lt;br&gt;however, because one of the fixes I discovered (to GNUmakefile), is needed 
&lt;br&gt;for using MinGW+MSYS to build stdcxx-4.2.2.
&lt;br&gt;&lt;br&gt;Please see &lt;a href=&quot;http://www.nabble.com/forum/ViewPost.jtp?post=20712556&amp;framed=y&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/forum/ViewPost.jtp?post=20712556&amp;framed=y&lt;/a&gt;&amp;nbsp;
&lt;br&gt;for the results of my first build of stdcxx-4.2.2 using MinGW+MSYS.
&lt;br&gt;&lt;br&gt;Steve
&lt;br&gt;&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;Martin Sebor&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20712699&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;msebor@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20712699&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Wednesday, November 26, 2008 6:32 PM
&lt;br&gt;Subject: Re: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Steve Petrie wrote:
&lt;br&gt;&amp;gt;&amp;gt; Posting the files in the Nabble Message box hangs my Firefox (the file 
&lt;br&gt;&amp;gt;&amp;gt; are
&lt;br&gt;&amp;gt;&amp;gt; quite big) so I'm trying the &amp;quot;Upload File...&amp;quot; button above the Nabble
&lt;br&gt;&amp;gt;&amp;gt; Message box...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; FYI: You can also open a Jira issue for the problems you're having
&lt;br&gt;&amp;gt; and attach the files to it. That might actually be even preferable.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Martin
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/file/p20695038/config.h&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/file/p20695038/config.h&lt;/a&gt;&amp;nbsp;config.h 
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/file/p20695038/config.log&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/file/p20695038/config.log&lt;/a&gt;&amp;nbsp;config.log Martin Sebor-2 
&lt;br&gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Could you post here the config.h and config.log files from the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; $BUILDDIR/include directory?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Martin
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20712699.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20712556</id>
	<title>RE: Building stdcxx-4.2.2 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-11-26T18:13:27Z</published>
	<updated>2008-11-26T18:13:27Z</updated>
	<author>
		<name>Steve Petrie</name>
	</author>
	<content type="html">Hi Farid,
&lt;br&gt;&lt;br&gt;I got stdcxx-4.2.2 from svn and applied the mingw.patch you provided.
&lt;br&gt;&lt;br&gt;I assume that you are building stdcxx-4.2.2 using Cygwin, and targeting MinGW. My objective is to build stdcxx-4.2.2 using MinGW. I don't use Cygwin and I don't plan to use it.
&lt;br&gt;&lt;br&gt;There were two fixes I had to make, to get the build of the patched stdcxx-4.2.2 to run:
&lt;br&gt;&lt;br&gt;Fix #1 -- /stdcxx-4.2.2/CNUmakefile:
&lt;br&gt;&lt;br&gt;On lines 583, 591 and 592 of /stdcxx-4.2.2/GNUmakefile:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(TOPDIR)/GNUmakefile &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(buildpath)/GNUmakefile; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \ **
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/GNUmakefile.cfg &amp;nbsp; &amp;nbsp; $(buildpath)/include/GNUmakefile; &amp;nbsp; \
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/GNUmakefile.lib &amp;nbsp; &amp;nbsp; $(LIBDIR)/GNUmakefile; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/GNUmakefile.rwt &amp;nbsp; &amp;nbsp; $(buildpath)/rwtest/GNUmakefile; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/GNUmakefile.exm &amp;nbsp; &amp;nbsp; $(EXMDIR)/GNUmakefile; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/GNUmakefile.tst &amp;nbsp; &amp;nbsp; $(TSTDIR)/GNUmakefile; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/GNUmakefile.ph &amp;nbsp; &amp;nbsp; &amp;nbsp;$(PHTSTDIR)/GNUmakefile; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/GNUmakefile.bin &amp;nbsp; &amp;nbsp; $(BINDIR)/GNUmakefile; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/makefile.common &amp;nbsp; &amp;nbsp; $(buildpath)/makefile.common; &amp;nbsp; &amp;nbsp; &amp;nbsp; \ **
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/makefile.rules &amp;nbsp; &amp;nbsp; &amp;nbsp;$(buildpath)/makefile.rules; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\ **
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/configure.sh &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(buildpath)/include/configure; &amp;nbsp; &amp;nbsp; \
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(BINDIR)/exec &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(buildpath)/run; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(BINDIR)/exec &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(BINDIR)/run; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/run_locale_utils.sh $(BINDIR)/run_utils; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(BINDIR)/exec &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(TSTDIR)/run; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(BINDIR)/exec &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(PHTSTDIR)/run; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(BINDIR)/exec &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(EXMDIR)/run
&lt;br&gt;&lt;br&gt;On the three lines marked ** above, I added an explicit file name after the $(buildpath) because the MinGW &amp;lt;ls&amp;gt; command, was REPLACING the /stdcxx-4.2.1/build/ directory name, with a link (named /stdcxx-4.2.1/build) to the file, instead of creating a link to the file (with the name of the file), IN the /stdcxx-4.2.1/build/ directory.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Fix #2 -- Your /stdcxx-4.2.2/build file:
&lt;br&gt;&lt;br&gt;I renamed the /stdcxx-4.2.2/build file that came with the svn download, to /stdcxx-4.2.1/build_faridz, because the presence of the build FILE was preventing the GNUmakefile from creating the /stdcxx-4.2.2/build/ DIRECTORY.
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;The build go a LOT further with the patched stdcxx-4.2.2 than it did with the stdcxx-4.2.1.
&lt;br&gt;&lt;br&gt;According to Windows XP, the final size of the /stdcxx-4.2.1/build/ directory (including sub-directories) is 126 MB.
&lt;br&gt;&lt;br&gt;There is an /stdcxx-4.2.2/build/liblibstd.a file of size 2.33 MB.
&lt;br&gt;&lt;br&gt;HOWEVER, the build ended with the following displayed on the MSYS console:
&lt;br&gt;&lt;br&gt;&amp;lt;MSYS:&amp;gt;
&lt;br&gt;[...]
&lt;br&gt;generating dependencies for $(TOPDIR)/tests/self/0.alloc.cpp
&lt;br&gt;gcc -M -I/stdcxx-4.2.2/include/ansi &amp;nbsp; -I/stdcxx-4.2.2/include -I/stdcxx-4.2.2/build/include -I/stdcxx-4.2.2/tests/include &amp;nbsp;-pedantic -nostdinc++ -mno-cygwin &amp;nbsp;-W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align &amp;nbsp;/stdcxx-4.2.2/tests/self/0.alloc.cpp
&lt;br&gt;make[2]: Leaving directory `/stdcxx-4.2.2/build/tests'
&lt;br&gt;make[2]: Entering directory `/stdcxx-4.2.2/build/tests'
&lt;br&gt;[...]
&lt;br&gt;gcc -c -I/stdcxx-4.2.2/include/ansi &amp;nbsp; -I/stdcxx-4.2.2/include -I/stdcxx-4.2.2/build/include -I/stdcxx-4.2.2/tests/include &amp;nbsp;-pedantic -nostdinc++ -mno-cygwin &amp;nbsp;-W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align &amp;nbsp; /stdcxx-4.2.2/tests/regress/18.c.limits.stdcxx-988.cpp
&lt;br&gt;i:/apps/stdcxx-4.2.2/tests/regress/18.c.limits.stdcxx-988.cpp: In function `int main()':
&lt;br&gt;i:/apps/stdcxx-4.2.2/tests/regress/18.c.limits.stdcxx-988.cpp:144: error: `LONG_BIT' was not declared in this scope
&lt;br&gt;i:/apps/stdcxx-4.2.2/tests/regress/18.c.limits.stdcxx-988.cpp:145: error: `_POSIX_SSIZE_MAX' was not declared in this scope
&lt;br&gt;i:/apps/stdcxx-4.2.2/tests/regress/18.c.limits.stdcxx-988.cpp:146: error: `WORD_BIT' was not declared in this scope
&lt;br&gt;i:/apps/stdcxx-4.2.2/tests/regress/18.c.limits.stdcxx-988.cpp:151: warning: this decimal constant is unsigned only in ISO C90
&lt;br&gt;i:/apps/stdcxx-4.2.2/tests/regress/18.c.limits.stdcxx-988.cpp:152: warning: this decimal constant is unsigned only in ISO C90
&lt;br&gt;i:/apps/stdcxx-4.2.2/tests/regress/18.c.limits.stdcxx-988.cpp:144: warning: unused variable 'LONG_BIT'
&lt;br&gt;i:/apps/stdcxx-4.2.2/tests/regress/18.c.limits.stdcxx-988.cpp:145: warning: unused variable '_POSIX_SSIZE_MAX'
&lt;br&gt;i:/apps/stdcxx-4.2.2/tests/regress/18.c.limits.stdcxx-988.cpp:146: warning: unused variable 'WORD_BIT'
&lt;br&gt;make[2]: *** [18.c.limits.stdcxx-988.o] Error 1
&lt;br&gt;make[2]: Leaving directory `/stdcxx-4.2.2/build/tests'
&lt;br&gt;make[1]: [tests] Error 2 (ignored)
&lt;br&gt;make[1]: Leaving directory `/stdcxx-4.2.2/build'
&lt;br&gt;SteveP@DELL /stdcxx-4.2.2
&lt;br&gt;$ 
&lt;br&gt;&amp;lt;/MSYS:&amp;gt;
&lt;br&gt;&lt;br&gt;In the line &amp;quot;make[1]: [tests] Error 2 (ignored)&amp;quot;, does the &amp;quot;(ignored)&amp;quot; mean that &amp;lt;make&amp;gt; did not terminate prematurely, and that file:
&lt;br&gt;&lt;br&gt;&amp;nbsp; /stdcxx-4.2.2/tests/regress/18.c.limits.stdcxx-988.cpp
&lt;br&gt;&amp;nbsp;
&lt;br&gt;is the last test source file to be compiled?
&lt;br&gt;&amp;nbsp;
&lt;br&gt;According to the /stdcxx-4.2.2/README file, the last build step is the locale databases. The build I ran left the /stdcxx-4.2.2/nls/ directory completely EMPTY.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;Please let me know -- did the build complete successfully? If not, and I need to fix the 18.c.limits.stdcxx-988.cpp compile error, what changes to I need to make to fix the compile error?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Steve
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Farid Zaripov-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi Steve.
&lt;br&gt;&lt;br&gt;&amp;gt; I am trying to build stdcxx-4.2.1 on Windows XP (SP2), using the
&lt;br&gt;&amp;gt; MinGW(3.4.5) + MSYS(1.0.10) + (with gcc, g++, etc.) 
&lt;br&gt;&amp;gt; operating environment.
&lt;br&gt;&lt;br&gt;&amp;nbsp; The 4.2.1 version of the stdcxx isn't ported to MinGW.
&lt;br&gt;&lt;br&gt;&amp;nbsp; You need to get (yet unreleased) 4.2.2 version from svn, i.e.:
&lt;br&gt;&lt;br&gt;&amp;nbsp; svn co &lt;a href=&quot;http://svn.apache.org/repos/asf/stdcxx/branches/4.2.x&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/repos/asf/stdcxx/branches/4.2.x&lt;/a&gt;&amp;nbsp;stdcxx-4.2.2
&lt;br&gt;&lt;br&gt;&amp;nbsp; Then apply this patch: &lt;a href=&quot;http://people.apache.org/~faridz/mingw.patch&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://people.apache.org/~faridz/mingw.patch&lt;/a&gt;&lt;br&gt;&lt;br&gt;Farid.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20712556.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20711131</id>
	<title>Re: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-11-26T15:32:30Z</published>
	<updated>2008-11-26T15:32:30Z</updated>
	<author>
		<name>Martin Sebor-2</name>
	</author>
	<content type="html">Steve Petrie wrote:
&lt;br&gt;&amp;gt; Posting the files in the Nabble Message box hangs my Firefox (the file are
&lt;br&gt;&amp;gt; quite big) so I'm trying the &amp;quot;Upload File...&amp;quot; button above the Nabble
&lt;br&gt;&amp;gt; Message box...
&lt;br&gt;&lt;br&gt;FYI: You can also open a Jira issue for the problems you're having
&lt;br&gt;and attach the files to it. That might actually be even preferable.
&lt;br&gt;&lt;br&gt;Martin
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/file/p20695038/config.h&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/file/p20695038/config.h&lt;/a&gt;&amp;nbsp;config.h 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/file/p20695038/config.log&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/file/p20695038/config.log&lt;/a&gt;&amp;nbsp;config.log 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Martin Sebor-2 wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Could you post here the config.h and config.log files from the
&lt;br&gt;&amp;gt;&amp;gt; $BUILDDIR/include directory?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Martin
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20711131.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20704905</id>
	<title>Re: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-11-26T08:55:45Z</published>
	<updated>2008-11-26T08:55:45Z</updated>
	<author>
		<name>Steve Petrie</name>
	</author>
	<content type="html">Hi Farid,
&lt;br&gt;&lt;br&gt;Thanks for your response -- excellent news!
&lt;br&gt;&lt;br&gt;Please feel free to delete, from the stdcxx-user Nabble forum, my two latest 
&lt;br&gt;postings:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Steve Petrie Nov 26, 2008; 01:11am
&lt;br&gt;&amp;nbsp; &amp;nbsp; Steve Petrie Nov 26, 2008; 12:27am
&lt;br&gt;&lt;br&gt;As they relate to further work I did on stdcxx-4.2.1, following up on 
&lt;br&gt;Martin's suggestions, before I received your email.
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;I will proceed to get stdcxx-4.2.2, apply the MinGW patch, and post &amp;nbsp;the 
&lt;br&gt;results I get from a build, on the stdcxx-user Nabble forum.
&lt;br&gt;&lt;br&gt;Steve
&lt;br&gt;&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;Farid Zaripov&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20704905&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Farid_Zaripov@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=20704905&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Wednesday, November 26, 2008 7:18 AM
&lt;br&gt;Subject: RE: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)
&lt;br&gt;&lt;br&gt;&lt;br&gt;Hi Steve.
&lt;br&gt;&lt;br&gt;&amp;gt; I am trying to build stdcxx-4.2.1 on Windows XP (SP2), using the
&lt;br&gt;&amp;gt; MinGW(3.4.5) + MSYS(1.0.10) + (with gcc, g++, etc.)
&lt;br&gt;&amp;gt; operating environment.
&lt;br&gt;&lt;br&gt;&amp;nbsp; The 4.2.1 version of the stdcxx isn't ported to MinGW.
&lt;br&gt;&lt;br&gt;&amp;nbsp; You need to get (yet unreleased) 4.2.2 version from svn, i.e.:
&lt;br&gt;&lt;br&gt;&amp;nbsp; svn co &lt;a href=&quot;http://svn.apache.org/repos/asf/stdcxx/branches/4.2.x&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/repos/asf/stdcxx/branches/4.2.x&lt;/a&gt;&amp;nbsp;stdcxx-4.2.2
&lt;br&gt;&lt;br&gt;&amp;nbsp; Then apply this patch: &lt;a href=&quot;http://people.apache.org/~faridz/mingw.patch&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://people.apache.org/~faridz/mingw.patch&lt;/a&gt;&lt;br&gt;&lt;br&gt;Farid. 
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20704905.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20699843</id>
	<title>RE: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-11-26T04:18:46Z</published>
	<updated>2008-11-26T04:18:46Z</updated>
	<author>
		<name>Farid Zaripov-2</name>
	</author>
	<content type="html">Hi Steve.
&lt;br&gt;&lt;br&gt;&amp;gt; I am trying to build stdcxx-4.2.1 on Windows XP (SP2), using the
&lt;br&gt;&amp;gt; MinGW(3.4.5) + MSYS(1.0.10) + (with gcc, g++, etc.) 
&lt;br&gt;&amp;gt; operating environment.
&lt;br&gt;&lt;br&gt;&amp;nbsp; The 4.2.1 version of the stdcxx isn't ported to MinGW.
&lt;br&gt;&lt;br&gt;&amp;nbsp; You need to get (yet unreleased) 4.2.2 version from svn, i.e.:
&lt;br&gt;&lt;br&gt;&amp;nbsp; svn co &lt;a href=&quot;http://svn.apache.org/repos/asf/stdcxx/branches/4.2.x&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/repos/asf/stdcxx/branches/4.2.x&lt;/a&gt;&amp;nbsp;stdcxx-4.2.2
&lt;br&gt;&lt;br&gt;&amp;nbsp; Then apply this patch: &lt;a href=&quot;http://people.apache.org/~faridz/mingw.patch&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://people.apache.org/~faridz/mingw.patch&lt;/a&gt;&lt;br&gt;&lt;br&gt;Farid.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20699843.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20695299</id>
	<title>Re: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-11-25T22:11:59Z</published>
	<updated>2008-11-25T22:11:59Z</updated>
	<author>
		<name>Steve Petrie</name>
	</author>
	<content type="html">Here's a paste of lines 939..956 from file /stdcxx-4.2.1/include/ansi/cwchar:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;extern &amp;quot;C&amp;quot; {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;inline wchar_t* wcsrchr (wchar_t *__s, wchar_t __c)
&lt;br&gt;&amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;const wchar_t *__ss = __s;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while (*__ss++);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while (--__ss != __s &amp;&amp; *__ss != __c);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return *__ss == __c ? __ss : 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;} &amp;nbsp; // extern &amp;quot;C&amp;quot;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;inline const wchar_t* wcsrchr (const wchar_t *__s, wchar_t __c)
&lt;br&gt;&amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return wcsrchr (_RWSTD_CONST_CAST (wchar_t*, __s), __c);
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;} &amp;nbsp; // extern &amp;quot;C&amp;quot;
&lt;br&gt;&lt;br&gt;&lt;br&gt;If function wcsrchr on line 951 of file cwchar can't be extern &amp;quot;C&amp;quot;, then there appears to be an extraneous:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;} &amp;nbsp; // extern &amp;quot;C&amp;quot;
&lt;br&gt;&lt;br&gt;on line 956.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Martin Sebor-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; i:/apps/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/../include/wchar.h:217:
&lt;br&gt;&amp;gt; error: previous declaration `wchar_t* wcsrchr(const wchar_t*, wchar_t)' here
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar: In function `wchar_t*
&lt;br&gt;&amp;gt; wcsrchr(wchar_t*, wchar_t)':
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; Also, it looks like there's an extern &amp;quot;C&amp;quot; { missing before the declaration
&lt;br&gt;&amp;gt; of function wcsrchr on line 951 of file cwchar:
&lt;br&gt;&lt;br&gt;No, that function is a C++ overload of the C function. It can't
&lt;br&gt;be extern &amp;quot;C&amp;quot; (C doesn't allow overloading).
&lt;br&gt;&lt;br&gt;Martin
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20695299.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20695038</id>
	<title>Re: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-11-25T21:27:47Z</published>
	<updated>2008-11-25T21:27:47Z</updated>
	<author>
		<name>Steve Petrie</name>
	</author>
	<content type="html">Posting the files in the Nabble Message box hangs my Firefox (the file are quite big) so I'm trying the &amp;quot;Upload File...&amp;quot; button above the Nabble Message box...
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/file/p20695038/config.h&quot; target=&quot;_top&quot;&gt;config.h&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/file/p20695038/config.log&quot; target=&quot;_top&quot;&gt;config.log&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Martin Sebor-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Could you post here the config.h and config.log files from the
&lt;br&gt;$BUILDDIR/include directory?
&lt;br&gt;&lt;br&gt;Martin
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20695038.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20693335</id>
	<title>Re: Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-11-25T17:47:20Z</published>
	<updated>2008-11-25T17:47:20Z</updated>
	<author>
		<name>Martin Sebor-2</name>
	</author>
	<content type="html">Steve Petrie wrote:
&lt;br&gt;&amp;gt; Greetings,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am trying to build stdcxx-4.2.1 on Windows XP (SP2), using the
&lt;br&gt;&amp;gt; MinGW(3.4.5) + MSYS(1.0.10) + (with gcc, g++, etc.) operating environment.
&lt;br&gt;&amp;gt; Running make from an MSYS console.
&lt;br&gt;&lt;br&gt;I have no experience with building stdcxx on MinGW and don't have
&lt;br&gt;access to the environment but I believe one of our developers has
&lt;br&gt;ported stdcxx there so he should be able to answer some of your
&lt;br&gt;questions. Farid, do you have any insight into Steve's problems?
&lt;br&gt;&lt;br&gt;Btw., it might be helpful to know the build type/mode you chose
&lt;br&gt;for stdcxx, or if none, to try to explicitly specify a debug one
&lt;br&gt;to see what happens. For example, to build an archive library
&lt;br&gt;with debugging info, define BUILDTYPE=11s (alternatively,
&lt;br&gt;BUILDMODE=debug) on the command line when invoking make.
&lt;br&gt;&lt;br&gt;In the meantime, let me try to answer some of the questions that
&lt;br&gt;I think I might be able to help with.
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;[...]
&lt;br&gt;&amp;gt; &amp;nbsp;** GNUmakefile / MinGW+MSYS Incompatibility #3 **
&lt;br&gt;&amp;gt;
&lt;br&gt;[...]
&lt;br&gt;&amp;gt; I believe they fail because the directory /stdcxx-4.2.1/build/bin/ defined
&lt;br&gt;&amp;gt; by the BINDIR variable BINDIR = $(buildpath)/bin contains no file called
&lt;br&gt;&amp;gt; &amp;lt;exec&amp;gt; at the time that the ls commands execute.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This problem I just ignored for the time being, because I didn't know what
&lt;br&gt;&amp;gt; the file &amp;lt;exec&amp;gt; is supposed to contain.
&lt;br&gt;&lt;br&gt;Exec is a utility program that stdcxx uses to run its tests and
&lt;br&gt;example programs in batch testing. It's only useful if you're
&lt;br&gt;maintaining the project.
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;** GNUmakefile / MinGW+MSYS Incompatibility #4 **
&lt;br&gt;[...]
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Lines 38..40 of file /stdcxx-4.2.1/build/include/vars.sh are:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;BUILDTAG= ; export BUILDTAG
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;PLATFORM=mingw32_nt-5.1-1.0.10(0.46-3-2)-i86 ; export PLATFORM 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;DEFAULT_SHROBJ= ; export DEFAULT_SHROBJ
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It appears that the make config process does not like the parentheses in the
&lt;br&gt;&amp;gt; PLATFORM variable.
&lt;/div&gt;&lt;br&gt;Right.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;PLATFORM := mingw32_nt-5.1-1.0.10(0.46-3-2)-i86
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; I fixed the problem by adjusting the relevant statement in the GNUmakefile
&lt;br&gt;&amp;gt; to read:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;PLATFORM := mingw32_nt-5.1-1.0.10-0.46-3-2--i86
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; changing the &amp;quot;(&amp;quot; and &amp;quot;)&amp;quot; to &amp;quot;-&amp;quot;.
&lt;br&gt;&lt;br&gt;The right fix is to do something similar to what we do for Cygwin.
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The above syntax error problem is fixed, but what about all the &amp;quot;no&amp;quot;
&lt;br&gt;&amp;gt; messages, and the &amp;quot;--&amp;quot; message(s) I am seeing on the MSYS console? Are they
&lt;br&gt;&amp;gt; normal or do they indicate an invalid build?
&lt;br&gt;&lt;br&gt;The &amp;quot;no&amp;quot; messages are expected. There should be no &amp;quot;--&amp;quot; messages.
&lt;br&gt;They usually indicate a configuration problem.
&lt;br&gt;&lt;br&gt;Could you post here the config.h and config.log files from the
&lt;br&gt;$BUILDDIR/include directory?
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;** GNUmakefile / MinGW+MSYS Incompatibility #5 **
&lt;br&gt;&amp;gt; 
&lt;br&gt;[...]
&lt;br&gt;&amp;gt; The error:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; i:/apps/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/../include/wchar.h:204:
&lt;br&gt;&amp;gt; error: previous declaration `wchar_t* wcschr(const wchar_t*, wchar_t)' here
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; is puzzling. Why is the stdcxx-4.2.1 build examining the MinGW
&lt;br&gt;&amp;gt; /MinGW/include/ library?
&lt;br&gt;&lt;br&gt;The stdcxx C++ headers &amp;quot;expose&amp;quot; symbols declared in the underlying
&lt;br&gt;C library (like printf() or wcschr()). Not all the symbols defined
&lt;br&gt;in the C library are always declared in the C library headers. The
&lt;br&gt;stdcxx configuration machinery tries to detect this so that our
&lt;br&gt;headers can declare the symbols. When the configuration tests fail
&lt;br&gt;for a reason other than the one they're designed to fail for as
&lt;br&gt;may be the case here (not because the symbol isn't declared but
&lt;br&gt;because it's declared wrong), the library still tries to declare
&lt;br&gt;the symbol the &amp;quot;right way&amp;quot; and the right declaration in stdcxx
&lt;br&gt;conflicts with the wrong one. It's a limitation/bug in stdcxx.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I temporarily worked around this problem by changing line 204 of the the
&lt;br&gt;&amp;gt; MinGW wchar.h file to conform with the /stdcxx-4.2.1/include/ansi/cwchar
&lt;br&gt;&amp;gt; declaration of the C function `wchar_t* wcschr(wchar_t*, wchar_t), and this
&lt;br&gt;&amp;gt; eliminated the error message.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The error:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar:725: error: expected
&lt;br&gt;&amp;gt; nested-name-specifier before &amp;quot;wcscspn&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; seemed legitimate, as the &amp;quot;::&amp;quot; qualifier before the &amp;quot;wcscspn&amp;quot; was missing.
&lt;br&gt;&amp;gt; So I added the &amp;quot;::&amp;quot; qualifier to the line 725 in the
&lt;br&gt;&amp;gt; /stdcxx-4.2.1/include/ansi/cwchar file.
&lt;/div&gt;&lt;br&gt;That looks like the right fix. We made the same change in 4.2.2
&lt;br&gt;to resolve STDCXX-663:
&lt;br&gt;&lt;a href=&quot;https://issues.apache.org/jira/browse/STDCXX-663&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/STDCXX-663&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;** GNUmakefile / MinGW+MSYS Incompatibility #6 **
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; With the above-mentioned fixes in place, the build failed further on, with a
&lt;br&gt;&amp;gt; bunch of additional errors:
&lt;br&gt;&amp;gt; 
&lt;br&gt;[...]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; There's another conflict with file wchar.h in the MinGW /MinGW/include/
&lt;br&gt;&amp;gt; library:
&lt;br&gt;&lt;br&gt;It seems the &amp;lt;wchar.h&amp;gt; header on MinGW is non-conforming in a way
&lt;br&gt;that we're not prepared to deal with (we normally try to adjust to
&lt;br&gt;these kinds of things but the machinery isn't perfect).
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; i:/apps/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/../include/wchar.h:217:
&lt;br&gt;&amp;gt; error: previous declaration `wchar_t* wcsrchr(const wchar_t*, wchar_t)' here
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar: In function `wchar_t*
&lt;br&gt;&amp;gt; wcsrchr(wchar_t*, wchar_t)':
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; Also, it looks like there's an extern &amp;quot;C&amp;quot; { missing before the declaration
&lt;br&gt;&amp;gt; of function wcsrchr on line 951 of file cwchar:
&lt;br&gt;&lt;br&gt;No, that function is a C++ overload of the C function. It can't
&lt;br&gt;be extern &amp;quot;C&amp;quot; (C doesn't allow overloading).
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;inline const wchar_t* wcsrchr (const wchar_t *__s, wchar_t __c)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Finally, there are a whole bunch of macro errors, in several files like:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar:919:1: unterminated #else
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/rw/_mbstate.h:131:1: unterminated #else
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/rw/_traits.h:39:1: unterminated #ifndef
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/rw/_strref.h:47:1: unterminated #ifndef
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/string:30:1: unterminated #ifndef
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/bitset:30:1: unterminated #ifndef
&lt;/div&gt;&lt;br&gt;They're probably all fallout from a single unterminated preprocessor
&lt;br&gt;directive, quite possibly the first one in &amp;lt;cwchar&amp;gt;.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; At this point, I decided that I must be doing something VERY WRONG in
&lt;br&gt;&amp;gt; running the build, so I backed out the changes I made to the two source
&lt;br&gt;&amp;gt; files:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;/MinGW/include/wchar.h
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;/stdcxx-4.2.1/include/ansi/cwchar
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; and decided to post a message to stdcxx-user.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Any suggestions would be most welcome.
&lt;/div&gt;&lt;br&gt;I wonder if there are other problems or if &amp;lt;wchar.h&amp;gt; is the only one.
&lt;br&gt;One way to find out while you're waiting for Farid's input might be
&lt;br&gt;to apply the change below to see haw much further you can get in the
&lt;br&gt;build. Alternatively, try a debug build where, AFAIK, stdcxx doesn't
&lt;br&gt;#include &amp;lt;cwchar&amp;gt; anywhere.
&lt;br&gt;&lt;br&gt;--- cwchar &amp;nbsp; &amp;nbsp; &amp;nbsp;2008-11-25 18:33:27.000000000 -0700
&lt;br&gt;+++ cwchar.1 &amp;nbsp; &amp;nbsp;2008-11-25 18:33:47.000000000 -0700
&lt;br&gt;@@ -29,7 +29,7 @@
&lt;br&gt;&lt;br&gt;&amp;nbsp; #include &amp;lt;rw/_defs.h&amp;gt;
&lt;br&gt;&lt;br&gt;-#ifndef _RWSTD_NO_PURE_C_HEADERS
&lt;br&gt;+#if 1 // ndef _RWSTD_NO_PURE_C_HEADERS
&lt;br&gt;&amp;nbsp; # &amp;nbsp;include &amp;lt;ansi/_cwchar.h&amp;gt;
&lt;br&gt;&amp;nbsp; #else
&lt;br&gt;&lt;br&gt;Martin
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20693335.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20672758</id>
	<title>Building stdcxx-4.2.1 Using MinGW+MSYS On Windows XP (SP2)</title>
	<published>2008-11-24T16:09:11Z</published>
	<updated>2008-11-24T16:09:11Z</updated>
	<author>
		<name>Steve Petrie</name>
	</author>
	<content type="html">Greetings,
&lt;br&gt;&lt;br&gt;I am trying to build stdcxx-4.2.1 on Windows XP (SP2), using the MinGW(3.4.5) + MSYS(1.0.10) + (with gcc, g++, etc.) operating environment. Running make from an MSYS console.
&lt;br&gt;&lt;br&gt;The MinGW + MSYS, etc. seems to be working OK, when used by the NetBeans 6.5 IDE C/C++ plugin. Using NetBeans 6.5 I have successfully compiled, linked and tested a couple of simple programs, that use cin and cout from the standard library shipped with the g++ that comes with MinGW.
&lt;br&gt;&lt;br&gt;I have never tried to build anything directly with make before, let alone anything as complicated as the Apache C++ Standard Library. I've always used make through the intermediation of an IDE:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Metrowerks CodeWarrior
&lt;br&gt;&amp;nbsp; &amp;nbsp;Microsoft VC++ 2005 Express
&lt;br&gt;&amp;nbsp; &amp;nbsp;NetBeans 6.5 C/C++
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;(
&lt;br&gt;I have searched the Apache archive without success, for tips on building stdcxx-4.2.1 Using MinGW+MSYS, so I'm posting here.
&lt;br&gt;&lt;br&gt;There was one page I found:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200708.mbox/%3C46CC9F94.60603@perforce.com%3E&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200708.mbox/%3C46CC9F94.60603@perforce.com%3E&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;gt; Hi Charles,
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;gt; Charles McLouth &amp;lt;cmclouth@perforce.com&amp;gt; writes:
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; As an FYI I tested the zip file with mingw-msys on windows and all built
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; correctly and linked with the samples. &amp;nbsp;Below is the specific configure
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; options I used (even testing the new static option):
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; runConfigure -p mingw-msys -c gcc -x g++ -m inmem -n winsock -t Win32
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; runConfigure -p mingw-msys -d -c gcc -x g++ -m inmem -n winsock -t Win32
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; runConfigure -p mingw-msys -s -c gcc -x g++ -m inmem -n winsock -t Win32
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt; runConfigure -p mingw-msys -d -s -c gcc -x g++ -m inmem -n winsock -t Win32
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;But so far as I can tell, this is referring to the ability of the Cygwin tools to generate mingw-msys compatible libraries, and not what I'm trying to do, which is to build stdcxx-4.2.1 using MinGW+MSYS On Windows XP.
&lt;br&gt;)
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;I'm running just plain make (with no command line parameters) at the MSYS console prompt, in $TOPDIR, which is /i/apps/stdcxx-4.2.1/ in MSYS (mapped from I:\APPS\stdcxx-4.2.1\ in Windows).
&lt;br&gt;&lt;br&gt;So far I have found and worked around some incompatibilities between: (A) the GNUmakefile (616588 2008-01-30 02:10:55Z) shipped in stdcxx-4.2.1.tar.gz and (B) the &amp;quot;POSIX&amp;quot; environment emulated by MinGW+MSYS. Please see the sections below:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;** GNUmakefile / MinGW+MSYS Incompatibility #1 **
&lt;br&gt;&amp;nbsp; &amp;nbsp;thru
&lt;br&gt;&amp;nbsp; &amp;nbsp;** GNUmakefile / MinGW+MSYS Incompatibility #5 **
&lt;br&gt;&lt;br&gt;for the fixes I have tried.
&lt;br&gt;&lt;br&gt;At section:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;** GNUmakefile / MinGW+MSYS Incompatibility #6 **
&lt;br&gt;&lt;br&gt;below, I decided that, given my inexperience with the exciting world of make and Standard Library building, I'd better get in touch with the experts who programmed the Apache C++ Standard Library library, and who have already successfully built it a few thoussand times.
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp;** GNUmakefile / MinGW+MSYS Incompatibility #1 **
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp;The last line of the following code snippet from GNUmakefile (lines 542..546) fails: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; # harmonize all the different Intel IA32 chips &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; PLATFORM := $(subst i486,i86,$(PLATFORM)) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; PLATFORM := $(subst i586,i86,$(PLATFORM)) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; PLATFORM := $(subst i686,i86,$(PLATFORM)) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; PLATFORM := $(shell echo $(PLATFORM) | tr &amp;quot;[:upper:]&amp;quot; &amp;quot;[:lower:]&amp;quot;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp;so I commented the lines out and forced:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;PLATFORM := mingw32_nt-5.1-1.0.10(0.46-3-2)-i86
&lt;br&gt;&amp;nbsp;
&lt;br&gt;(On my MSYS, the uname command prints: MINGW32_NT-5.1).
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;&amp;nbsp;** GNUmakefile / MinGW+MSYS Incompatibility #2 **
&lt;br&gt;&lt;br&gt;In the make-builddir function (lines 574..599) from GNUmakefile, the following snippet:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(TOPDIR)/GNUmakefile &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(buildpath); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \ **
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/GNUmakefile.cfg &amp;nbsp; &amp;nbsp; $(buildpath)/include/GNUmakefile; &amp;nbsp; \
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/GNUmakefile.lib &amp;nbsp; &amp;nbsp; $(LIBDIR)/GNUmakefile; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/GNUmakefile.rwt &amp;nbsp; &amp;nbsp; $(buildpath)/rwtest/GNUmakefile; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/GNUmakefile.exm &amp;nbsp; &amp;nbsp; $(EXMDIR)/GNUmakefile; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/GNUmakefile.tst &amp;nbsp; &amp;nbsp; $(TSTDIR)/GNUmakefile; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/GNUmakefile.ph &amp;nbsp; &amp;nbsp; &amp;nbsp;$(PHTSTDIR)/GNUmakefile; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/GNUmakefile.bin &amp;nbsp; &amp;nbsp; $(BINDIR)/GNUmakefile; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/makefile.common &amp;nbsp; &amp;nbsp; $(buildpath); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \ **
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/makefile.rules &amp;nbsp; &amp;nbsp; &amp;nbsp;$(buildpath); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \ **
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/configure.sh &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(buildpath)/include/configure; &amp;nbsp; &amp;nbsp; \
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(BINDIR)/exec &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(buildpath)/run; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(BINDIR)/exec &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(BINDIR)/run; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/run_locale_utils.sh $(BINDIR)/run_utils; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(BINDIR)/exec &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(TSTDIR)/run; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(BINDIR)/exec &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(PHTSTDIR)/run; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(BINDIR)/exec &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(EXMDIR)/run
&lt;br&gt;&lt;br&gt;has 3 ls commands (marked ** above) that specify a directory (i.e. that do not specify a file). These commands are of the form:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;ls -sf file dir
&lt;br&gt;&lt;br&gt;and according to my UNIX book, for this form of the ls command: &amp;quot;ls creates a link in &amp;lt;dir&amp;gt; to &amp;lt;file&amp;gt;. However, MSYS does NOT create a link IN &amp;lt;dir&amp;gt; but REPLACES &amp;lt;dir&amp;gt; with a link to &amp;lt;file&amp;gt;, naming the link the same as &amp;lt;dir&amp;gt;.
&lt;br&gt;&lt;br&gt;So when the above snippet in function make-builddir has finished executing, DIRECTORY /stdcxx-4.2.1/build/ has been replaced by a FILE /stdcxx-4.2.1/build linked to file /stdcxx-4.2.1/etc/config/makefile.rules
&lt;br&gt;&lt;br&gt;I worked around this problem, by changing the 3 ls commands (marked ** above) so that they are of the form:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;ln -sf $(TOPDIR)/GNUmakefile &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(buildpath)/GNUmakefile; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \
&lt;br&gt;&amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;nbsp; &amp;nbsp;ln -sf $(ETCDIR)/makefile.common &amp;nbsp; &amp;nbsp; $(buildpath)/makefile.common; &amp;nbsp; &amp;nbsp; &amp;nbsp; \
&lt;br&gt;&amp;nbsp; &amp;nbsp;ln -sf $(ETCDIR)/makefile.rules &amp;nbsp; &amp;nbsp; &amp;nbsp;$(buildpath)/makefile.rules; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp;...
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;&amp;nbsp;** GNUmakefile / MinGW+MSYS Incompatibility #3 **
&lt;br&gt;&lt;br&gt;In the same make-builddir function (lines 574..599) as above, in the same snippet:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(TOPDIR)/GNUmakefile &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(buildpath); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/GNUmakefile.cfg &amp;nbsp; &amp;nbsp; $(buildpath)/include/GNUmakefile; &amp;nbsp; \
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/GNUmakefile.lib &amp;nbsp; &amp;nbsp; $(LIBDIR)/GNUmakefile; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/GNUmakefile.rwt &amp;nbsp; &amp;nbsp; $(buildpath)/rwtest/GNUmakefile; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/GNUmakefile.exm &amp;nbsp; &amp;nbsp; $(EXMDIR)/GNUmakefile; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/GNUmakefile.tst &amp;nbsp; &amp;nbsp; $(TSTDIR)/GNUmakefile; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/GNUmakefile.ph &amp;nbsp; &amp;nbsp; &amp;nbsp;$(PHTSTDIR)/GNUmakefile; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/GNUmakefile.bin &amp;nbsp; &amp;nbsp; $(BINDIR)/GNUmakefile; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/makefile.common &amp;nbsp; &amp;nbsp; $(buildpath); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/makefile.rules &amp;nbsp; &amp;nbsp; &amp;nbsp;$(buildpath); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/configure.sh &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(buildpath)/include/configure; &amp;nbsp; &amp;nbsp; \
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(BINDIR)/exec &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(buildpath)/run; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \ **
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(BINDIR)/exec &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(BINDIR)/run; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\ **
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(ETCDIR)/run_locale_utils.sh $(BINDIR)/run_utils; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(BINDIR)/exec &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(TSTDIR)/run; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\ **
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(BINDIR)/exec &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(PHTSTDIR)/run; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\ **
&lt;br&gt;&amp;nbsp; &amp;nbsp; ln -sf $(BINDIR)/exec &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$(EXMDIR)/run &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; **
&lt;br&gt;&lt;br&gt;when the make-builddir function executes, the 5 ls commands (marked ** above) fail and display the following on the MSYS console:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;creating BUILDDIR=/stdcxx-4.2.1/build
&lt;br&gt;&amp;nbsp; &amp;nbsp;ln: creating symbolic link `/stdcxx-4.2.1/build/run' to `/stdcxx-4.2.1/build/bin/exec': No such file or directory
&lt;br&gt;&amp;nbsp; &amp;nbsp;ln: creating symbolic link `/stdcxx-4.2.1/build/bin/run' to `/stdcxx-4.2.1/build/bin/exec': No such file or directory
&lt;br&gt;&amp;nbsp; &amp;nbsp;ln: creating symbolic link `/stdcxx-4.2.1/build/tests/run' to `/stdcxx-4.2.1/build/bin/exec': No such file or directory
&lt;br&gt;&amp;nbsp; &amp;nbsp;ln: creating symbolic link `/stdcxx-4.2.1/build/plumhall/run' to `/stdcxx-4.2.1/build/bin/exec': No such file or directory
&lt;br&gt;&amp;nbsp; &amp;nbsp;ln: creating symbolic link `/stdcxx-4.2.1/build/examples/run' to `/stdcxx-4.2.1/build/bin/exec': No such file or directory
&lt;br&gt;&lt;br&gt;I believe they fail because the directory /stdcxx-4.2.1/build/bin/ defined by the BINDIR variable BINDIR = $(buildpath)/bin contains no file called &amp;lt;exec&amp;gt; at the time that the ls commands execute.
&lt;br&gt;&lt;br&gt;This problem I just ignored for the time being, because I didn't know what the file &amp;lt;exec&amp;gt; is supposed to contain.
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;&amp;nbsp;** GNUmakefile / MinGW+MSYS Incompatibility #4 **
&lt;br&gt;&amp;nbsp;
&lt;br&gt;In what appears to me to be another iteration of the GNUmakefile during its ececution, the following is displayed on the MSYS console:
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;nbsp; &amp;nbsp;make[2]: Entering directory `/stdcxx-4.2.1/build/include'
&lt;br&gt;&amp;nbsp; &amp;nbsp;make config
&lt;br&gt;&amp;nbsp; &amp;nbsp;make[3]: Entering directory `/stdcxx-4.2.1/build/include'
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;configuring stdcxx 4.2.1 for gcc-3.4.5 on mingw32_nt-5.1-1.0.10(0.46-3-2)-i86
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;checking if the compiler is sane &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ok (invoked with gcc)
&lt;br&gt;&amp;nbsp; &amp;nbsp;checking if the linker is sane &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ok (invoked with gcc)
&lt;br&gt;&amp;nbsp; &amp;nbsp;checking system architecture &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ILP32 little endian
&lt;br&gt;&amp;nbsp; &amp;nbsp;/stdcxx-4.2.1/etc/config/src/libc_decl.sh: ./vars.sh: line 39: syntax error near unexpected token `PLATFORM=mingw32_nt-5.1-1.0.10(0'
&lt;br&gt;&amp;nbsp; &amp;nbsp;/stdcxx-4.2.1/etc/config/src/libc_decl.sh: ./vars.sh: line 39: `PLATFORM=mingw32_nt-5.1-1.0.10(0.46-3-2)-i86 ; export PLATFORM'
&lt;br&gt;&amp;nbsp; &amp;nbsp;checking for &amp;lt;cassert&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no (_RWSTD_NO_CASSERT)
&lt;br&gt;&amp;nbsp; &amp;nbsp;checking for &amp;lt;assert.h&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ok (&amp;quot;i:/apps/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/assert.h&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp;checking for &amp;lt;cctype&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;no (_RWSTD_NO_CCTYPE)
&lt;br&gt;&amp;nbsp; &amp;nbsp;checking for &amp;lt;ctype.h&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ok (&amp;quot;i:/apps/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ctype.h&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp;checking for &amp;lt;cerrno&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;no (_RWSTD_NO_CERRNO)
&lt;br&gt;&amp;nbsp; &amp;nbsp;checking for &amp;lt;errno.h&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ok (&amp;quot;i:/apps/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/errno.h&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp;...
&lt;br&gt;&lt;br&gt;Lines 38..40 of file /stdcxx-4.2.1/build/include/vars.sh are:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;nbsp; &amp;nbsp;BUILDTAG= ; export BUILDTAG
&lt;br&gt;&amp;nbsp; &amp;nbsp;PLATFORM=mingw32_nt-5.1-1.0.10(0.46-3-2)-i86 ; export PLATFORM 
&lt;br&gt;&amp;nbsp; &amp;nbsp;DEFAULT_SHROBJ= ; export DEFAULT_SHROBJ
&lt;br&gt;&amp;nbsp; &amp;nbsp;...
&lt;br&gt;&lt;br&gt;&lt;br&gt;It appears that the make config process does not like the parentheses in the PLATFORM variable.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;PLATFORM := mingw32_nt-5.1-1.0.10(0.46-3-2)-i86
&lt;br&gt;&amp;nbsp;
&lt;br&gt;I fixed the problem by adjusting the relevant statement in the GNUmakefile to read:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;PLATFORM := mingw32_nt-5.1-1.0.10-0.46-3-2--i86
&lt;br&gt;&lt;br&gt;changing the &amp;quot;(&amp;quot; and &amp;quot;)&amp;quot; to &amp;quot;-&amp;quot;.
&lt;br&gt;&lt;br&gt;The above syntax error problem is fixed, but what about all the &amp;quot;no&amp;quot; messages, and the &amp;quot;--&amp;quot; message(s) I am seeing on the MSYS console? Are they normal or do they indicate an invalid build?
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;&amp;nbsp;** GNUmakefile / MinGW+MSYS Incompatibility #5 **
&lt;br&gt;&lt;br&gt;Further along in the build proces, with all the above-mentioned fixes in place, the build terminated with the following displayed on the MSYS console:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;generating dependencies for $(TOPDIR)/src/assert.cpp
&lt;br&gt;&amp;nbsp; &amp;nbsp;gcc -M -I/stdcxx-4.2.1/include/ansi &amp;nbsp; -I/stdcxx-4.2.1/include -I/stdcxx-4.2.1/build/include &amp;nbsp;-pedantic -nostdinc++ &amp;nbsp;-W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align &amp;nbsp; /stdcxx-4.2.1/src/assert.cpp
&lt;br&gt;&amp;nbsp; &amp;nbsp;make[2]: Leaving directory `/stdcxx-4.2.1/build/lib'
&lt;br&gt;&amp;nbsp; &amp;nbsp;make[2]: Entering directory `/stdcxx-4.2.1/build/lib'
&lt;br&gt;&amp;nbsp; &amp;nbsp;gcc -c -I/stdcxx-4.2.1/include/ansi &amp;nbsp; -I/stdcxx-4.2.1/include -I/stdcxx-4.2.1/build/include &amp;nbsp;-pedantic -nostdinc++ &amp;nbsp;-W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align &amp;nbsp; &amp;nbsp;/stdcxx-4.2.1/src/assert.cpp
&lt;br&gt;&amp;nbsp; &amp;nbsp;gcc -c -I/stdcxx-4.2.1/include/ansi &amp;nbsp; -I/stdcxx-4.2.1/include -I/stdcxx-4.2.1/build/include &amp;nbsp;-pedantic -nostdinc++ &amp;nbsp;-W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align &amp;nbsp; /stdcxx-4.2.1/src/atomic-cxx.S
&lt;br&gt;&amp;nbsp; &amp;nbsp;gcc -c -I/stdcxx-4.2.1/include/ansi &amp;nbsp; -I/stdcxx-4.2.1/include -I/stdcxx-4.2.1/build/include &amp;nbsp;-pedantic -nostdinc++ &amp;nbsp;-W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align &amp;nbsp; &amp;nbsp;/stdcxx-4.2.1/src/bitset.cpp
&lt;br&gt;&amp;nbsp; &amp;nbsp;In file included from i:/apps/stdcxx-4.2.1/include/rw/_mbstate.h:195,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/include/rw/_traits.h:40,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/include/rw/_strref.h:48,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/include/string:43,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/include/bitset:34,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/src/bitset.cpp:31:
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar: In function `wchar_t* wcschr(wchar_t*, wchar_t)':
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar:613: error: declaration of C function `wchar_t* wcschr(wchar_t*, wchar_t)' conflicts with
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/../include/wchar.h:204: error: previous declaration `wchar_t* wcschr(const wchar_t*, wchar_t)' here
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar: At global scope:
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar:725: error: expected nested-name-specifier before &amp;quot;wcscspn&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar:725: confused by earlier errors, bailing out
&lt;br&gt;&amp;nbsp; &amp;nbsp;make[2]: *** [bitset.o] Error 1
&lt;br&gt;&amp;nbsp; &amp;nbsp;make[2]: Leaving directory `/stdcxx-4.2.1/build/lib'
&lt;br&gt;&amp;nbsp; &amp;nbsp;make[1]: *** [lib] Error 2
&lt;br&gt;&amp;nbsp; &amp;nbsp;make[1]: Leaving directory `/stdcxx-4.2.1/build'
&lt;br&gt;&amp;nbsp; &amp;nbsp;make: *** [libstd] Error 2
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;SteveP@DELL /stdcxx-4.2.1
&lt;br&gt;&lt;br&gt;The error:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/../include/wchar.h:204: error: previous declaration `wchar_t* wcschr(const wchar_t*, wchar_t)' here
&lt;br&gt;&lt;br&gt;is puzzling. Why is the stdcxx-4.2.1 build examining the MinGW /MinGW/include/ library?
&lt;br&gt;&lt;br&gt;I temporarily worked around this problem by changing line 204 of the the MinGW wchar.h file to conform with the /stdcxx-4.2.1/include/ansi/cwchar declaration of the C function `wchar_t* wcschr(wchar_t*, wchar_t), and this eliminated the error message.
&lt;br&gt;&lt;br&gt;The error:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar:725: error: expected nested-name-specifier before &amp;quot;wcscspn&amp;quot;
&lt;br&gt;&lt;br&gt;seemed legitimate, as the &amp;quot;::&amp;quot; qualifier before the &amp;quot;wcscspn&amp;quot; was missing. So I added the &amp;quot;::&amp;quot; qualifier to the line 725 in the /stdcxx-4.2.1/include/ansi/cwchar file.
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;&amp;nbsp;** GNUmakefile / MinGW+MSYS Incompatibility #6 **
&lt;br&gt;&lt;br&gt;With the above-mentioned fixes in place, the build failed further on, with a bunch of additional errors:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;generating dependencies for $(TOPDIR)/src/assert.cpp
&lt;br&gt;&amp;nbsp; &amp;nbsp;gcc -M -I/stdcxx-4.2.1/include/ansi &amp;nbsp; -I/stdcxx-4.2.1/include -I/stdcxx-4.2.1/build/include &amp;nbsp;-pedantic -nostdinc++ &amp;nbsp;-W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align &amp;nbsp; /stdcxx-4.2.1/src/assert.cpp
&lt;br&gt;&amp;nbsp; &amp;nbsp;make[2]: Leaving directory `/stdcxx-4.2.1/build/lib'
&lt;br&gt;&amp;nbsp; &amp;nbsp;make[2]: Entering directory `/stdcxx-4.2.1/build/lib'
&lt;br&gt;&amp;nbsp; &amp;nbsp;gcc -c -I/stdcxx-4.2.1/include/ansi &amp;nbsp; -I/stdcxx-4.2.1/include -I/stdcxx-4.2.1/build/include &amp;nbsp;-pedantic -nostdinc++ &amp;nbsp;-W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align &amp;nbsp; &amp;nbsp;/stdcxx-4.2.1/src/assert.cpp
&lt;br&gt;&amp;nbsp; &amp;nbsp;gcc -c -I/stdcxx-4.2.1/include/ansi &amp;nbsp; -I/stdcxx-4.2.1/include -I/stdcxx-4.2.1/build/include &amp;nbsp;-pedantic -nostdinc++ &amp;nbsp;-W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align &amp;nbsp; /stdcxx-4.2.1/src/atomic-cxx.S
&lt;br&gt;&amp;nbsp; &amp;nbsp;gcc -c -I/stdcxx-4.2.1/include/ansi &amp;nbsp; -I/stdcxx-4.2.1/include -I/stdcxx-4.2.1/build/include &amp;nbsp;-pedantic -nostdinc++ &amp;nbsp;-W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align &amp;nbsp; &amp;nbsp;/stdcxx-4.2.1/src/bitset.cpp
&lt;br&gt;&amp;nbsp; &amp;nbsp;In file included from i:/apps/stdcxx-4.2.1/include/rw/_mbstate.h:195,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/include/rw/_traits.h:40,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/include/rw/_strref.h:48,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/include/string:43,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/include/bitset:34,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/src/bitset.cpp:31:
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar: In function `wchar_t* wcsrchr(wchar_t*, wchar_t)':
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar:944: error: declaration of C function `wchar_t* wcsrchr(wchar_t*, wchar_t)' conflicts with
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/../include/wchar.h:217: error: previous declaration `wchar_t* wcsrchr(const wchar_t*, wchar_t)' here
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar: In function `wchar_t* wcsrchr(wchar_t*, wchar_t)':
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar:948: error: invalid conversion from `const wchar_t*' to `wchar_t*'
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar: At global scope:
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar:958: error: expected declaration before '}' token
&lt;br&gt;&amp;nbsp; &amp;nbsp;In file included from i:/apps/stdcxx-4.2.1/include/rw/_mbstate.h:195,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/include/rw/_traits.h:40,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/include/rw/_strref.h:48,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/include/string:43,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/include/bitset:34,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/src/bitset.cpp:31:
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar:919:1: unterminated #else
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar:99:1: unterminated #if
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar:87:1: unterminated #if
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar:65:1: unterminated #ifndef
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar:36:1: unterminated #else
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar:32:1: unterminated #else
&lt;br&gt;&amp;nbsp; &amp;nbsp;In file included from i:/apps/stdcxx-4.2.1/include/rw/_traits.h:40,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/include/rw/_strref.h:48,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/include/string:43,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/include/bitset:34,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/src/bitset.cpp:31:
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/rw/_mbstate.h:131:1: unterminated #else
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/rw/_mbstate.h:40:1: unterminated #elif
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/rw/_mbstate.h:32:1: unterminated #ifndef
&lt;br&gt;&amp;nbsp; &amp;nbsp;In file included from i:/apps/stdcxx-4.2.1/include/rw/_strref.h:48,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/include/string:43,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/include/bitset:34,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/src/bitset.cpp:31:
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/rw/_traits.h:39:1: unterminated #ifndef
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/rw/_traits.h:32:1: unterminated #ifndef
&lt;br&gt;&amp;nbsp; &amp;nbsp;In file included from i:/apps/stdcxx-4.2.1/include/string:43,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/include/bitset:34,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/src/bitset.cpp:31:
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/rw/_strref.h:47:1: unterminated #ifndef
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/rw/_strref.h:32:1: unterminated #ifndef
&lt;br&gt;&amp;nbsp; &amp;nbsp;In file included from i:/apps/stdcxx-4.2.1/include/bitset:34,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from i:/apps/stdcxx-4.2.1/src/bitset.cpp:31:
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/string:30:1: unterminated #ifndef
&lt;br&gt;&amp;nbsp; &amp;nbsp;In file included from i:/apps/stdcxx-4.2.1/src/bitset.cpp:31:
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/bitset:30:1: unterminated #ifndef
&lt;br&gt;&amp;nbsp; &amp;nbsp;make[2]: *** [bitset.o] Error 1
&lt;br&gt;&amp;nbsp; &amp;nbsp;make[2]: Leaving directory `/stdcxx-4.2.1/build/lib'
&lt;br&gt;&amp;nbsp; &amp;nbsp;make[1]: *** [lib] Error 2
&lt;br&gt;&amp;nbsp; &amp;nbsp;make[1]: Leaving directory `/stdcxx-4.2.1/build'
&lt;br&gt;&amp;nbsp; &amp;nbsp;make: *** [libstd] Error 2
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;SteveP@DELL /stdcxx-4.2.1
&lt;br&gt;&lt;br&gt;There's another conflict with file wchar.h in the MinGW /MinGW/include/ library:
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/../include/wchar.h:217: error: previous declaration `wchar_t* wcsrchr(const wchar_t*, wchar_t)' here
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar: In function `wchar_t* wcsrchr(wchar_t*, wchar_t)':
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;Also, it looks like there's an extern &amp;quot;C&amp;quot; { missing before the declaration of function wcsrchr on line 951 of file cwchar:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;inline const wchar_t* wcsrchr (const wchar_t *__s, wchar_t __c)
&lt;br&gt;&lt;br&gt;Finally, there are a whole bunch of macro errors, in several files like:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/ansi/cwchar:919:1: unterminated #else
&lt;br&gt;&amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/rw/_mbstate.h:131:1: unterminated #else
&lt;br&gt;&amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/rw/_traits.h:39:1: unterminated #ifndef
&lt;br&gt;&amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/rw/_strref.h:47:1: unterminated #ifndef
&lt;br&gt;&amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/string:30:1: unterminated #ifndef
&lt;br&gt;&amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;nbsp; &amp;nbsp;i:/apps/stdcxx-4.2.1/include/bitset:30:1: unterminated #ifndef
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;At this point, I decided that I must be doing something VERY WRONG in running the build, so I backed out the changes I made to the two source files:
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;/MinGW/include/wchar.h
&lt;br&gt;&amp;nbsp; &amp;nbsp;/stdcxx-4.2.1/include/ansi/cwchar
&lt;br&gt;&lt;br&gt;and decided to post a message to stdcxx-user.
&lt;br&gt;&lt;br&gt;Any suggestions would be most welcome.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-stdcxx-4.2.1-Using-MinGW%2BMSYS-On-Windows-XP-%28SP2%29-tp20672758p20672758.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20517756</id>
	<title>Re: Documentation example doesn't compile with gcc</title>
	<published>2008-11-15T09:34:19Z</published>
	<updated>2008-11-15T09:34:19Z</updated>
	<author>
		<name>Martin Sebor-2</name>
	</author>
	<content type="html">Misha Aizatulin wrote:
&lt;br&gt;&amp;gt; hi all,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; at the very end of &lt;a href=&quot;http://stdcxx.apache.org/doc/stdlibug/34-2.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://stdcxx.apache.org/doc/stdlibug/34-2.html&lt;/a&gt;&lt;br&gt;&amp;gt; there is an example of using a reference to create a &amp;quot;copy&amp;quot; of cout.
&lt;br&gt;&amp;gt; However this example doesn't initialize the defined reference at once
&lt;br&gt;&amp;gt; (which is required in C++) and for this reason doesn't compile with my
&lt;br&gt;&amp;gt; gcc 4.2.1.
&lt;br&gt;&lt;br&gt;That's definitely incorrect. The uninitialized reference is not
&lt;br&gt;C++ and as noted in LWG issue 50, stream objects are not copyable.
&lt;br&gt;The next C++ Standard makes that explicit by declaring the copy
&lt;br&gt;ctor and copy assignment operator of class ios_base deleted.
&lt;br&gt;&lt;br&gt;I opened STDCXX-1024 to have the problematic example removed:
&lt;br&gt;&amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://issues.apache.org/jira/browse/STDCXX-1024&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://issues.apache.org/jira/browse/STDCXX-1024&lt;/a&gt;&lt;br&gt;&lt;br&gt;LWG issue #50 for reference
&lt;br&gt;&lt;a href=&quot;http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#50&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#50&lt;/a&gt;&lt;br&gt;&lt;br&gt;Thanks for pointing it out!
&lt;br&gt;Martin
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; For convenience here is the example:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; int main(int argc, char *argv[])
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; &amp;nbsp; std::ostream&amp; fr;
&lt;br&gt;&amp;gt; &amp;nbsp; if (argc &amp;gt; 1)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; fr = *(new std::ofstream(argv[1]));
&lt;br&gt;&amp;gt; &amp;nbsp; else
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; fr = std::cout;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; fr &amp;lt;&amp;lt; &amp;quot;Hello world!&amp;quot; &amp;lt;&amp;lt; std::endl;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; if (&amp;fr!=&amp;std::cout)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; delete(&amp;fr);
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; &amp;nbsp; Misha
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Documentation-example-doesn%27t-compile-with-gcc-tp20512808p20517756.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20512808</id>
	<title>Documentation example doesn't compile with gcc</title>
	<published>2008-11-14T22:01:26Z</published>
	<updated>2008-11-14T22:01:26Z</updated>
	<author>
		<name>Bugzilla from avatar@hot.ee</name>
	</author>
	<content type="html">hi all,
&lt;br&gt;&lt;br&gt;&amp;nbsp; at the very end of &lt;a href=&quot;http://stdcxx.apache.org/doc/stdlibug/34-2.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://stdcxx.apache.org/doc/stdlibug/34-2.html&lt;/a&gt;&lt;br&gt;there is an example of using a reference to create a &amp;quot;copy&amp;quot; of cout.
&lt;br&gt;However this example doesn't initialize the defined reference at once
&lt;br&gt;(which is required in C++) and for this reason doesn't compile with my
&lt;br&gt;gcc 4.2.1.
&lt;br&gt;&lt;br&gt;&amp;nbsp; For convenience here is the example:
&lt;br&gt;&lt;br&gt;int main(int argc, char *argv[])
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; std::ostream&amp; fr;
&lt;br&gt;&amp;nbsp; if (argc &amp;gt; 1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; fr = *(new std::ofstream(argv[1]));
&lt;br&gt;&amp;nbsp; else
&lt;br&gt;&amp;nbsp; &amp;nbsp; fr = std::cout;
&lt;br&gt;&lt;br&gt;&amp;nbsp; fr &amp;lt;&amp;lt; &amp;quot;Hello world!&amp;quot; &amp;lt;&amp;lt; std::endl;
&lt;br&gt;&lt;br&gt;&amp;nbsp; if (&amp;fr!=&amp;std::cout)
&lt;br&gt;&amp;nbsp; &amp;nbsp; delete(&amp;fr);
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&amp;nbsp; Misha
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Documentation-example-doesn%27t-compile-with-gcc-tp20512808p20512808.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20483545</id>
	<title>Re: File truncation Problem Downloading stdcxx-4.2.1.tar.gz</title>
	<published>2008-11-13T07:53:03Z</published>
	<updated>2008-11-13T07:53:03Z</updated>
	<author>
		<name>Martin Sebor-2</name>
	</author>
	<content type="html">Steve Petrie wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I tried your suggestion of using an Apache mirror. I picked:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;mirror.csclub.uwaterloo.ca
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; and it worked fine -- Firefox 3.0.3 downloaded the file stdcxx-4.2.1.tar.gz
&lt;br&gt;&amp;gt; WITHOUT TRUNCATION.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The MD5 checksum on the file is correct.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 7-Zip opened the .gx and the .tar without error, and extracted both without
&lt;br&gt;&amp;gt; error, creating what looks like a valid directory tree with around 48 MB of
&lt;br&gt;&amp;gt; files.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt; * * *
&lt;/div&gt;&lt;br&gt;Good to hear!
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm going to try the download again from the Apache web site Downloads page,
&lt;br&gt;&amp;gt; to make sure that the file truncation problem still exists with that site.
&lt;br&gt;&amp;gt; I'll let you know ONLY if the problem DOES NOT exist anymore.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If the problem still exists, and Apache wants to try to fix the problem on
&lt;br&gt;&amp;gt; the Apache web site, just let me know and I'll be happy to act as tester
&lt;br&gt;&amp;gt; with Firefox 3.0.3 under Windows XP (SP2).
&lt;br&gt;&lt;br&gt;Thanks for the offer.
&lt;br&gt;&lt;br&gt;Martin
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Steve
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Martin Sebor-2 wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'm not sure what the problem is. No one has reported anything
&lt;br&gt;&amp;gt;&amp;gt; like this and I just downloaded 4.2.1 using Firefox 3.0.2 on
&lt;br&gt;&amp;gt;&amp;gt; Linux without any issues. I don't have access to a Windows
&lt;br&gt;&amp;gt;&amp;gt; machine at the moment but I'll see if I can find one that has
&lt;br&gt;&amp;gt;&amp;gt; Firefox 3.0.3 installed to see if I can reproduce it there.
&lt;br&gt;&amp;gt;&amp;gt; If not, you might want to try to ftp it from one of the Apache
&lt;br&gt;&amp;gt;&amp;gt; mirrors: &lt;a href=&quot;http://www.apache.org/dyn/closer.cgi#ftp&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.apache.org/dyn/closer.cgi#ftp&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Martin
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/File-truncation-Problem-Downloading-stdcxx-4.2.1.tar.gz-tp20452964p20483545.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20465223</id>
	<title>Re: File truncation Problem Downloading stdcxx-4.2.1.tar.gz</title>
	<published>2008-11-12T09:30:40Z</published>
	<updated>2008-11-12T09:30:40Z</updated>
	<author>
		<name>Steve Petrie</name>
	</author>
	<content type="html">I tried your suggestion of using an Apache mirror. I picked:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;mirror.csclub.uwaterloo.ca
&lt;br&gt;&lt;br&gt;and it worked fine -- Firefox 3.0.3 downloaded the file stdcxx-4.2.1.tar.gz WITHOUT TRUNCATION.
&lt;br&gt;&lt;br&gt;The MD5 checksum on the file is correct.
&lt;br&gt;&lt;br&gt;7-Zip opened the .gx and the .tar without error, and extracted both without error, creating what looks like a valid directory tree with around 48 MB of files.
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;I'm going to try the download again from the Apache web site Downloads page, to make sure that the file truncation problem still exists with that site. I'll let you know ONLY if the problem DOES NOT exist anymore.
&lt;br&gt;&lt;br&gt;If the problem still exists, and Apache wants to try to fix the problem on the Apache web site, just let me know and I'll be happy to act as tester with Firefox 3.0.3 under Windows XP (SP2).
&lt;br&gt;&lt;br&gt;Steve
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Martin Sebor-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;I'm not sure what the problem is. No one has reported anything
&lt;br&gt;like this and I just downloaded 4.2.1 using Firefox 3.0.2 on
&lt;br&gt;Linux without any issues. I don't have access to a Windows
&lt;br&gt;machine at the moment but I'll see if I can find one that has
&lt;br&gt;Firefox 3.0.3 installed to see if I can reproduce it there.
&lt;br&gt;If not, you might want to try to ftp it from one of the Apache
&lt;br&gt;mirrors: &lt;a href=&quot;http://www.apache.org/dyn/closer.cgi#ftp&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.apache.org/dyn/closer.cgi#ftp&lt;/a&gt;&lt;br&gt;&lt;br&gt;Martin
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/File-truncation-Problem-Downloading-stdcxx-4.2.1.tar.gz-tp20452964p20465223.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20453260</id>
	<title>Re: File truncation Problem Downloading stdcxx-4.2.1.tar.gz</title>
	<published>2008-11-11T19:04:51Z</published>
	<updated>2008-11-11T19:04:51Z</updated>
	<author>
		<name>Martin Sebor-2</name>
	</author>
	<content type="html">Steve Petrie wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Greetings,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; (I have searched the Apache archive without success, for tips on
&lt;br&gt;&amp;gt; downloading, so I'm posting here.)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am trying to download the file stdcxx-4.2.1.tar.gz from
&lt;br&gt;&amp;gt; www.apache.org/dist/stdcxx/ using Firefox 3.0.3 (Using Windows XP SP2.).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Small files download ok, e.g. the MD5 sum files, but large files e.g.
&lt;br&gt;&amp;gt; stdcxx-4.2.1.tar.gz and stdcxx-incubating-4.2.0.tar.gz are giving a file
&lt;br&gt;&amp;gt; truncation problem.
&lt;/div&gt;&lt;br&gt;I'm not sure what the problem is. No one has reported anything
&lt;br&gt;like this and I just downloaded 4.2.1 using Firefox 3.0.2 on
&lt;br&gt;Linux without any issues. I don't have access to a Windows
&lt;br&gt;machine at the moment but I'll see if I can find one that has
&lt;br&gt;Firefox 3.0.3 installed to see if I can reproduce it there.
&lt;br&gt;If not, you might want to try to ftp it from one of the Apache
&lt;br&gt;mirrors: &lt;a href=&quot;http://www.apache.org/dyn/closer.cgi#ftp&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.apache.org/dyn/closer.cgi#ftp&lt;/a&gt;&lt;br&gt;&lt;br&gt;Martin
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; The Firefox download in progress displays the file size of 6.9 MB in the
&lt;br&gt;&amp;gt; download dialog. The download appears to complete ssuccessfully, but the
&lt;br&gt;&amp;gt; file size actually stored on my disk drive is only 4.6 MB. The MD5 checksum
&lt;br&gt;&amp;gt; calculated on the truncated file, of course does not match the value
&lt;br&gt;&amp;gt; provided by the Apache web site. 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; When I try to unpack the stdcxx-4.2.1.tar.gz file, using 7-Zip 4.57, the .gz
&lt;br&gt;&amp;gt; opens ok, but when I open the .tar, at &amp;quot;95% Copying&amp;quot; I get a &amp;quot;Data error in
&lt;br&gt;&amp;gt; 'stdcxx-4.2.1.tar'. File is broken&amp;quot; message. WinZip gave me similar
&lt;br&gt;&amp;gt; problems.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Internet Explorer 6.0 -- displays the file size of 6.9 MB in the download
&lt;br&gt;&amp;gt; dialog, and indicates a successful completion of transfer, but the file size
&lt;br&gt;&amp;gt; actually stored is only 4.6 MB. (Same as with Firefox 3.0.3).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have downloaded lots of binary files much bigger than these stdcxx files,
&lt;br&gt;&amp;gt; from other sites, using Firefox 3.0.3, without any problems. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Using FileZilla with archive.apache.org 80, I get the following log:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Status:	Selected port usually in use by a different protocol.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Status:	Resolving address of archive.apache.org
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Status:	Connecting to 140.211.11.130:80...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Status:	Connection established, waiting for welcome message...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Error:	Connection timed out
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Trace:	CFtpControlSocket::ResetOperation(2114)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Trace:	CControlSocket::ResetOperation(2114)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Error:	Could not connect to server
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; but FileZilla works fine with other sites.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Using command line ftp, the connection times out:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;ftp&amp;gt; open www.apache.org 80
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Connected to www.apache.org.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Connection closed by remote host.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;ftp&amp;gt; open www.apache.org 80
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Connected to www.apache.org.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Connection closed by remote host.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; but I can connect with command line ftp to other sites with no problem.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I use Kaspersky Internet Security, and I have downloaded lots of binary
&lt;br&gt;&amp;gt; files much bigger than these stdcxx files, using Firefox 3.0.3, without any
&lt;br&gt;&amp;gt; problems.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I tried disabling the Kaspersky firewall, and then diabling all of
&lt;br&gt;&amp;gt; Kaspersky, but I still get the same file truncation problem with
&lt;br&gt;&amp;gt; stdcxx-s4.2.1.tar.gz.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I can connect ok to other ftp sites with Kaspersky firewall enabled.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt; * * *
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I really want to use the Apache C++ Standard Library with the GNU C++
&lt;br&gt;&amp;gt; compiler, because the Apache product seems to me to be superior to what
&lt;br&gt;&amp;gt; comes with G++.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Any suggestions would be most appreciated!
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/File-truncation-Problem-Downloading-stdcxx-4.2.1.tar.gz-tp20452964p20453260.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20452964</id>
	<title>File truncation Problem Downloading stdcxx-4.2.1.tar.gz</title>
	<published>2008-11-11T18:44:51Z</published>
	<updated>2008-11-11T18:44:51Z</updated>
	<author>
		<name>Steve Petrie</name>
	</author>
	<content type="html">Greetings,
&lt;br&gt;&lt;br&gt;(I have searched the Apache archive without success, for tips on downloading, so I'm posting here.)
&lt;br&gt;&lt;br&gt;I am trying to download the file stdcxx-4.2.1.tar.gz from www.apache.org/dist/stdcxx/ using Firefox 3.0.3 (Using Windows XP SP2.).
&lt;br&gt;&lt;br&gt;Small files download ok, e.g. the MD5 sum files, but large files e.g. stdcxx-4.2.1.tar.gz and stdcxx-incubating-4.2.0.tar.gz are giving a file truncation problem.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;The Firefox download in progress displays the file size of 6.9 MB in the download dialog. The download appears to complete ssuccessfully, but the file size actually stored on my disk drive is only 4.6 MB. The MD5 checksum calculated on the truncated file, of course does not match the value provided by the Apache web site. 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;When I try to unpack the stdcxx-4.2.1.tar.gz file, using 7-Zip 4.57, the .gz opens ok, but when I open the .tar, at &amp;quot;95% Copying&amp;quot; I get a &amp;quot;Data error in 'stdcxx-4.2.1.tar'. File is broken&amp;quot; message. WinZip gave me similar problems.
&lt;br&gt;&lt;br&gt;Internet Explorer 6.0 -- displays the file size of 6.9 MB in the download dialog, and indicates a successful completion of transfer, but the file size actually stored is only 4.6 MB. (Same as with Firefox 3.0.3).
&lt;br&gt;&lt;br&gt;I have downloaded lots of binary files much bigger than these stdcxx files, from other sites, using Firefox 3.0.3, without any problems. 
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;Using FileZilla with archive.apache.org 80, I get the following log:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Status:	Selected port usually in use by a different protocol.
&lt;br&gt;&amp;nbsp; &amp;nbsp;Status:	Resolving address of archive.apache.org
&lt;br&gt;&amp;nbsp; &amp;nbsp;Status:	Connecting to 140.211.11.130:80...
&lt;br&gt;&amp;nbsp; &amp;nbsp;Status:	Connection established, waiting for welcome message...
&lt;br&gt;&amp;nbsp; &amp;nbsp;Error:	Connection timed out
&lt;br&gt;&amp;nbsp; &amp;nbsp;Trace:	CFtpControlSocket::ResetOperation(2114)
&lt;br&gt;&amp;nbsp; &amp;nbsp;Trace:	CControlSocket::ResetOperation(2114)
&lt;br&gt;&amp;nbsp; &amp;nbsp;Error:	Could not connect to server
&lt;br&gt;&lt;br&gt;but FileZilla works fine with other sites.
&lt;br&gt;&lt;br&gt;Using command line ftp, the connection times out:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;ftp&amp;gt; open www.apache.org 80
&lt;br&gt;&amp;nbsp; &amp;nbsp;Connected to www.apache.org.
&lt;br&gt;&amp;nbsp; &amp;nbsp;Connection closed by remote host.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;ftp&amp;gt; open www.apache.org 80
&lt;br&gt;&amp;nbsp; &amp;nbsp;Connected to www.apache.org.
&lt;br&gt;&amp;nbsp; &amp;nbsp;Connection closed by remote host.
&lt;br&gt;&lt;br&gt;but I can connect with command line ftp to other sites with no problem.
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;I use Kaspersky Internet Security, and I have downloaded lots of binary files much bigger than these stdcxx files, using Firefox 3.0.3, without any problems.
&lt;br&gt;&lt;br&gt;I tried disabling the Kaspersky firewall, and then diabling all of Kaspersky, but I still get the same file truncation problem with stdcxx-s4.2.1.tar.gz.
&lt;br&gt;&lt;br&gt;I can connect ok to other ftp sites with Kaspersky firewall enabled.
&lt;br&gt;&lt;br&gt;* * *
&lt;br&gt;* * *
&lt;br&gt;&lt;br&gt;I really want to use the Apache C++ Standard Library with the GNU C++ compiler, because the Apache product seems to me to be superior to what comes with G++.
&lt;br&gt;&lt;br&gt;Any suggestions would be most appreciated!
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/File-truncation-Problem-Downloading-stdcxx-4.2.1.tar.gz-tp20452964p20452964.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-19682566</id>
	<title>[Fwd: Application Period Opens for Travel Assistance to ApacheCon US 2008]</title>
	<published>2008-09-25T22:04:49Z</published>
	<updated>2008-09-25T22:04:49Z</updated>
	<author>
		<name>Martin Sebor-2</name>
	</author>
	<content type="html">-------- Original Message --------
&lt;br&gt;Subject: Application Period Opens for Travel Assistance to ApacheCon US 2008
&lt;br&gt;Date: Thu, 25 Sep 2008 23:36:44 +1000
&lt;br&gt;From: Gavin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=19682566&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gavin@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Reply-To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=19682566&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;private@...&lt;/a&gt;
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=19682566&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pmcs@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Dear PMCs,
&lt;br&gt;&lt;br&gt;Please could you forward the below message to your user@ and dev@ mailing
&lt;br&gt;lists, thanks in advance.
&lt;br&gt;&lt;br&gt;-------------
&lt;br&gt;&lt;br&gt;The Travel Assistance Committee is taking in applications for those wanting
&lt;br&gt;to attend ApacheCon US 2008 between the 3rd and 7th November 2008 in New
&lt;br&gt;Orleans.
&lt;br&gt;&lt;br&gt;The Travel Assistance Committee is looking for people who would like to be
&lt;br&gt;able to attend ApacheCon US 2008 who need some financial support in order to
&lt;br&gt;get there. There are VERY few places available and the criteria is high,
&lt;br&gt;that aside applications are open to all open source developers who feel that
&lt;br&gt;their attendance would benefit themselves, their project(s), the ASF and
&lt;br&gt;open source in general.
&lt;br&gt;&lt;br&gt;Financial assistance is available for flights, accomodation and entrance
&lt;br&gt;fees either in full or in part, depending on circumstances. It is intended
&lt;br&gt;that all our ApacheCon events are covered, so it may be prudent for those in
&lt;br&gt;Europe and or Asia to wait until an event closer to them comes up - you are
&lt;br&gt;all welcome to apply for ApacheCon US of course, but there must be
&lt;br&gt;compelling reasons for you to attend an event further away that your home
&lt;br&gt;location for your application to be considered above those closer to the
&lt;br&gt;event location.
&lt;br&gt;&lt;br&gt;More information can be found on the main Apache website at
&lt;br&gt;&lt;a href=&quot;http://www.apache.org/travel/index.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.apache.org/travel/index.html&lt;/a&gt;&amp;nbsp;- where you will also find a link to
&lt;br&gt;the application form and details for submitting.
&lt;br&gt;&lt;br&gt;Time is very tight for this event, so applications are open now and will end
&lt;br&gt;on the 2nd October 2008 - to give enough time for travel arrangements to be
&lt;br&gt;made.
&lt;br&gt;&lt;br&gt;Good luck to all those that will apply.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;The Travel Assistance Committee
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Fwd%3A-Application-Period-Opens-for-Travel-Assistance-to-ApacheCon-US-2008--tp19682566p19682566.html" />
</entry>

</feed>
