From: Borut R. <bor...@si...> - 2010-11-06 07:17:39
|
Dear sdcc developers, after more then a year I finally managed to run mingw cross-compiled sdcc regression tests on wine without errors. (I mentioned the changes in this direction for the first time in ChangeLog at 2009-07-26, but the preparations started even far before that). From yesterday on the first green star, still surrounded by (hopefully disappearing) red stars, is twinkling in RT column on http://sdcc.sourceforge.net/snap.php#Windows . The main problem was a nasty bug in wine msvcrt.dll popen implementation, which causes the stderr from the child process to be (wrongly) redirected to the parent's stdin. I'm going to report the bug to wine developers. Temporarily I solved the problem by reimplementing the stripped-down native win32 popen functionality in support/Util/MySystem.c, function sdcc_popen_read(). Neil Armstrong would say "That's one small step for a man, one giant leap for mankind.", I would say it the other way around ;-) Borut |