X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Rugxulo Newsgroups: comp.os.msdos.djgpp Subject: Re: "No memory to gather arguments" when linking Date: Sun, 1 Jan 2012 12:36:52 -0800 (PST) Organization: http://groups.google.com Lines: 62 Message-ID: References: <8944c789-141d-4e92-b233-5f7655461a92 AT r5g2000yqc DOT googlegroups DOT com> NNTP-Posting-Host: 65.13.115.246 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1325450212 29521 127.0.0.1 (1 Jan 2012 20:36:52 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Sun, 1 Jan 2012 20:36:52 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: k10g2000yqk.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HNKRAUELSC X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.630.0 Safari/534.16,gzip(gfe) Bytes: 3442 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q01Kj1Zr022772 Reply-To: djgpp AT delorie DOT com Hi, On Jan 1, 1:01 pm, Karl Garrison wrote: > > I am attempting to compile NetHack via gcc running on FreeDOS via > dosemu on Linux. At risk of stating the obvious, they do provide a DOS binary. But I assume you knew that. http://www.nethack.org/v343/ports/download-msdos.html http://sourceforge.net/projects/nethack/files/nethack/3.4.3/nh343dos.zip/download > It compiles file, but when it gets to the linking > stage, it aborts with the error "No memory to gather arguments". What GCC, BinUtils, libc, make, etc. are you using? > I have plenty of memory available to FreeDOS (64 MB XMS and 64 MB > EMS), and I have tweaked cwsdpmi parameters as suggested in the DJGPP > FAQ. XMS and EMS aren't DPMI, and DPMI is all DJGPP uses. And CWSDPMI isn't used here as DOSEMU has its own built-in DPMI host. Try running "dpmi", and see what it says. I think default is ridiculously low, something like 20 MB. Try "dpmi -m 0x7ffff" to get a bunch (500 MB). Or you can edit your ~/.dosemurc file. > Any idea what could be causing this error, or how to prevent it? Would have to know more. > Here is the output of the FreeDOS mem command: > (snip) Doesn't matter, DJGPP only uses DPMI. > And the output of go32-v2: > > > > DPMI memory available: 131693 Kb > > DPMI swap space available: 0 Kb Well, that should be enough, in theory, but I don't know how much GCC is trying to use. > Thanks in advance for any advice! Are you just trying to hack at it (no pun intended)? Or are you compiling some forked version, e.g. SporkHack? Honestly, I'm horrible at NetHack, never really got into it, though I've played with other roguelikes. You could? also try cc'ing news://rec.games.roguelike.nethack, but normally most people don't care much for DOS ports, sadly. FYI, it *does* build and run for me (PuppyLinux + DOSEMU), but I had to read "sys\msdos\Install.dos" and do what it says. Actually, even then I had to manually tweak and copy a few things as the DOS Makefile seems bitrotted ("There has been very little port-specific maintenance for NetHack on DOS since NetHack 3.3.0.").