Bug 9351 – Cannot run Phobos unittests locally on win32

Status
RESOLVED
Resolution
WORKSFORME
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-01-18T11:27:00Z
Last change time
2013-01-19T11:01:17Z
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2013-01-18T11:27:54Z
$ dmd -O -w -d -property -L/co -c -unittest -ofunittest5.obj std\algorithm.d DMD v2.062 DEBUG Fatal Error: Out of memory This is problematic, luckily we have the autotester which manages to run the tests, however I can't run the tests locally. I have 3GB of RAM, this should be enough to run the tests.
Comment #1 by monarchdodra — 2013-01-18T11:59:17Z
(In reply to comment #0) > $ dmd -O -w -d -property -L/co -c -unittest -ofunittest5.obj std\algorithm.d > DMD v2.062 DEBUG > Fatal Error: Out of memory > > This is problematic, luckily we have the autotester which manages to run the > tests, however I can't run the tests locally. I have 3GB of RAM, this should be > enough to run the tests. Did you checkout this thread? http://forum.dlang.org/thread/[email protected]?page=4#post-kd22gf:2421gb:241:40digitalmars.com It fixed it for me: You need the new snn.lib
Comment #2 by andrej.mitrovich — 2013-01-18T12:28:00Z
I still get out of memory errors when I copy it to DMC's lib.
Comment #3 by monarchdodra — 2013-01-18T12:36:43Z
(In reply to comment #2) > I still get out of memory errors when I copy it to DMC's lib. Hum, I copied mine in dmd's libs... :/ ???
Comment #4 by andrej.mitrovich — 2013-01-18T12:44:18Z
(In reply to comment #3) > (In reply to comment #2) > > I still get out of memory errors when I copy it to DMC's lib. > > Hum, I copied mine in dmd's libs... :/ ??? Rainer Schuetze says the new runtime is in 2.061's lib folder and has to be copied to DMC's lib. Either way I've tried getting the newest DMC and I get the same issues no matter what snn.lib I use. There are probably too many unittests in a single module like std.algorithm.
Comment #5 by yebblies — 2013-01-19T06:11:59Z
With the new snn.lib, it works for me on winxp with 2gb of ram. Just make sure you've replaced _every_ copy of snn.lib, do a search.
Comment #6 by dmitry.olsh — 2013-01-19T08:52:29Z
(In reply to comment #5) > With the new snn.lib, it works for me on winxp with 2gb of ram. > > Just make sure you've replaced _every_ copy of snn.lib, do a search. Yes, and *then* rebuild and replace the dmd. Missing this last step costed me nearly an hour of hair pulling.