X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com Date: Sun, 01 Jan 2012 23:30:13 +0200 From: Eli Zaretskii Subject: Re: "No memory to gather arguments" when linking In-reply-to: <8944c789-141d-4e92-b233-5f7655461a92@r5g2000yqc.googlegroups.com> X-012-Sender: halo1 AT inter DOT net DOT il To: djgpp AT delorie DOT com Message-id: <83zke7qffe.fsf@gnu.org> References: <8944c789-141d-4e92-b233-5f7655461a92 AT r5g2000yqc DOT googlegroups DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: Karl Garrison > Date: Sun, 1 Jan 2012 11:01:37 -0800 (PST) > Bytes: 2626 > > I am attempting to compile NetHack via gcc running on FreeDOS via > dosemu on Linux. It compiles file, but when it gets to the linking > stage, it aborts with the error "No memory to gather arguments". Can you show the full link command line that aborts? I suspect that the command is larger than the transfer buffer used by DJGPP programs to pass command lines. You could try enlarging that buffer (using stubedit) in all involved programs: gcc.exe, ld.exe, and maybe also make.exe.