/tmp filling up when running gcc regression tests

Dan Kegel dank@kegel.com
Thu Jun 12 17:22:00 GMT 2003


On an embedded system with only 32 MB of RAM and no disk,
I can't run the gcc regression test suites easily because /tmp fills up.
Anyone know how to get gcc to not keep the old test binaries around?
Each test takes up about 48KB, and that adds up.

Here's what things look like after this happens:

# ls /tmp/g++* | wc
     321     321   11221
# df /tmp
Filesystem           1k-blocks      Used Available Use% Mounted on
/tmpfs                   19456     19456         0 100% /


Suggestions welcome... maybe I should just run a shell script that
once a minute deletes all but the 50 most recent files in /tmp?
Or is there a more elegant solution?

Thanks,
Dan

-- 
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045




More information about the Gcc-help mailing list