From mint-bounce@lists.fishpool.fi Tue Oct 27 16:56:53 2009 Date: Tue, 27 Oct 2009 22:53:10 +0200 From: George Nakos X-Priority: 3 (Normal) Message-ID: <1999557206.20091027225310@hol.gr> To: =?iso-8859-1?Q?Vincent_Rivi=E8re?= CC: mint mailing list Subject: Re: [MiNT] g++ bug or is my build enviroment not sane? In-Reply-To: <4AE6243E.3080402@freesbee.fr> References: <563767069.20091026155133@hol.gr> <4AE6243E.3080402@freesbee.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Virus-Scanned: ClamAV 0.94.2/9948/Tue Oct 27 16:39:09 2009 on takeit01.mail.dc.hol.net X-Virus-Status: Clean X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: ggn@hol.gr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id n9RKuqUp024445 Hello Vincent, Tuesday, October 27, 2009, 12:35:42 AM, you wrote: > ggn (HOL) wrote: >> resulted in only the first console input (read by cin) to be read, while the >> rest were read as blank (presumably, you don't get a chance to enter >> anything). > ... >> aranym. Both machines have Mikro's 4.4.1 gcc port and 2.19.1 binutils. Also > This is the long lasting cout bug. As I said many times, it occurred after > outputting an int to cout: the output stream was flagged as error, > preventing anything else to be printed after that. Well, as you see from the source (which fails on my config), no printing a int using cout is performed. > I advertised last week that I fixed that bug in binutils 2.19.1 20091017. > I confirm your program works well with GCC 4.4.2 20091017 and binutils 2.20 > 20091024. I compiled your program and ran it successfully on simple ST with > plain TOS. I must admit the resuting executable optimized and stripped is > 396698 bytes big, it is quite a shame. > Upgrading the binutils is not enough, because the C++ libraries provided > with GCC are compiled with the old binutils, so they are wrong. You must > upgrade GCC and the binutils. There are currently no fixed binaries > available for running on MiNT. So, the solution is downloadin binutils 2.20, use the patch from your site, then recompiling mintlib? > Note that you reduced the code too much, you read only values, but nothing > is displayed. I had to add some lines to display the values in order to test > your program. > No mystery here. As I wrote above, a cout to print an integer is not needed for it to not function (not even the original source does something like that). -- Best regards, George mailto:ggn@hol.gr