X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f X-Recipient: djgpp-workers AT delorie DOT com Message-ID: <484BDD44.2050409@iki.fi> Date: Sun, 08 Jun 2008 16:23:16 +0300 From: Andris Pavenis User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Problems building GCC-4.3.X for DJGPP (running out of DOS memory) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Some time ago (before release of GCC-4.3.0) I noticed that GCC-4.3.0pre build fails when linking libgfortran.a. Noticed that increasing DOS transfer buffer size for bash helps. Now got a different problem when building GCC-4.3.1. Initially I did not realize that the real reason of these problems is running out of DOS memory. Linking libgfortran.a uses very long command line and reallocating buffer for it fails, as result also build fails. Increasing transfer buffer size for temporarily workarounds the problem by avoiding reallocation. It is however not a solution as I see from the first attempt to build GCC-4.3.1 for DJGPP. I see two possible solutions: - allocating memory for long command lines outside DOS memory. Unfortunatelly this approach is not backwards compatible and will break if an older DJGPP executable is being run with really long command lines - writing parameters to the file and using @filename way (one must of course save transfer buffer before file I/O of course). Andris