C Board  

Go Back   C Board > Community Boards > Tech Board

Reply
 
LinkBack Thread Tools Display Modes
Old 07-03-2009, 09:16 AM   #1
Registered User
 
Join Date: Jan 2009
Posts: 156
No space left on device compilation terminated

Hi,
I am compiling my C++ program with g++ on a server and receive out of space error:
Quote:
feature_generation.cc:65: fatal error: error writing to /tmp/ccnrfgcA.s: No space left on device
compilation terminated.
feature_count.cc:76: fatal error: error writing to /tmp/cckf2zK1.s: No space left on device
compilation terminated.
...
Does it mean that the usage in /tmp is full? Is this problem for the whole server or only for my account? What can I do to free up space so that I can compile my program?
Thanks and regards!
lehe is offline   Reply With Quote
Old 07-03-2009, 09:37 AM   #2
and the hat of vanishing
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,214
> Does it mean that the usage in /tmp is full?
Yes.

> Is this problem for the whole server or only for my account?
It might be either. Who's the sysadmin?

If you do an 'ls -l /tmp', do you see a lot of old (and large) files?
/tmp should be cleared by a cron job every day

If your .s file is that large, how big is the source file?
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Up to 8Mb PlusNet broadband from only £5.99 a month!
Salem is offline   Reply With Quote
Old 07-03-2009, 09:45 AM   #3
Registered User
 
Join Date: Jan 2009
Posts: 156
Here is the part of the output related to my account:
Quote:
drwx------ 2 lehe lehe 4096 Jun 18 16:04 orbit-lehe
drwx------ 3 lehe lehe 4096 Jul 1 10:00 results.EnL706
drwx------ 3 lehe lehe 4096 Jul 1 09:27 results.F27510
drwx------ 3 lehe lehe 4096 Jul 1 10:03 results.Mx2684
drwx------ 3 lehe lehe 4096 Jul 1 09:28 results.o27895
drwx------ 3 lehe lehe 4096 Jul 1 10:03 results.Wr2293
drwx------ 3 lehe lehe 4096 Jul 1 10:01 results.wz1121h
I am not the administration, who is enjoying his holidays.
lehe is offline   Reply With Quote
Old 07-03-2009, 09:50 AM   #4
and the hat of vanishing
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,214
Perhaps 'du' then, to see what's beneath those dirs.

Even the most recent is 2 days old - you could manually get rid of them yourself.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Up to 8Mb PlusNet broadband from only £5.99 a month!
Salem is offline   Reply With Quote
Old 07-03-2009, 10:03 AM   #5
Registered User
 
Join Date: Jan 2009
Posts: 156
Thanks.
How to do that specifically?

I remember yesterday I took 5 hours to upload a 3GB iso file to my account. Is it relevent?

I didn't see any files very big as here
Quote:
bash-3.2$ cd ./results.wz1121/
bash-3.2$ ls
cv_unscaledblackcount200.9
bash-3.2$ ls -la
total 48
drwx------ 3 lehe lehe 4096 Jul 1 10:01 .
drwxrwxrwt 49 root root 36864 Jul 3 11:52 ..
drwxr-xr-x 2 lehe lehe 4096 Jun 30 08:02 cv_unscaledblackcount200.9
bash-3.2$ cd ../results.Wr2293/
bash-3.2$ ls
cv_unscaledblackcount200.9
bash-3.2$ ls -la
total 48
drwx------ 3 lehe lehe 4096 Jul 1 10:03 .
drwxrwxrwt 49 root root 36864 Jul 3 11:52 ..
drwxr-xr-x 2 lehe lehe 4096 Jun 30 08:19 cv_unscaledblackcount200.9
bash-3.2$ cd ../results.o27895/
bash-3.2$ ls -la
total 48
drwx------ 3 lehe lehe 4096 Jul 1 09:28 .
drwxrwxrwt 49 root root 36864 Jul 3 11:52 ..
drwxr-xr-x 2 lehe lehe 4096 Jun 29 18:03 cv_unscaledblackcount200.9
bash-3.2$ cd ../results.Mx2684/
bash-3.2$ ls -la
total 48
drwx------ 3 lehe lehe 4096 Jul 1 10:03 .
drwxrwxrwt 49 root root 36864 Jul 3 11:52 ..
drwxr-xr-x 2 lehe lehe 4096 Jun 30 10:30 cv_unscaledblackcount200.9
bash-3.2$ cd ../results.F27510/
bash-3.2$ ls -la
total 48
drwx------ 3 lehe lehe 4096 Jul 1 09:27 .
drwxrwxrwt 49 root root 36864 Jul 3 11:52 ..
drwxr-xr-x 2 lehe lehe 4096 Jun 29 13:10 cv_unscaledblackcount200.9
bash-3.2$ cd ../results.EnL706/
bash-3.2$ ls -la
total 48
drwx------ 3 lehe lehe 4096 Jul 1 10:00 .
drwxrwxrwt 49 root root 36864 Jul 3 11:52 ..
drwxr-xr-x 2 lehe lehe 4096 Jun 29 18:52 cv_unscaledblackcount200.9
bash-3.2$ cd ../orbit-lehe/
bash-3.2$ ls -la
total 44
drwx------ 2 lehe lehe 4096 Jun 18 16:04 .
drwxrwxrwt 49 root root 36864 Jul 3 11:52 ..
srwxr-xr-x 1 lehe lehe 0 Jun 18 16:02 linc-340e-0-4daa0823a12f0
lehe is offline   Reply With Quote
Old 07-03-2009, 10:11 AM   #6
Registered User
 
Join Date: Oct 2008
Posts: 450
A lot easier. Try (as earlier suggested):
du -m /tmp

also, type df.
EVOEx is offline   Reply With Quote
Old 07-03-2009, 10:11 AM   #7
and the hat of vanishing
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,214
du /tmp
I guess

Then (if you're not doing anything)
rm -r /tmp/*

Or more cautiously remove everything older than a day
find /tmp -mtime +1 -exec rm {} \;


> I remember yesterday I took 5 hours to upload a 3GB iso file to my account. Is it relevent?
It might be.

Code:
{}
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Up to 8Mb PlusNet broadband from only £5.99 a month!
Salem is offline   Reply With Quote
Old 07-03-2009, 10:26 AM   #8
Registered User
 
Join Date: Jan 2009
Posts: 156
Thanks.
I have some screen session running from weeks ago that I still want to keep, so how can I remove except the screen sessions?

Here is output of du -m, excluding what is with permission denied
Quote:
1 /tmp/hsperfdata_aastha
1 /tmp/hsperfdata_camille
1 /tmp/results.wz1121/cv_unscaledblackcount200.9
1 /tmp/results.wz1121
1 /tmp/results.Wr2293/cv_unscaledblackcount200.9
1 /tmp/results.Wr2293
1 /tmp/results.o27895/cv_unscaledblackcount200.9
1 /tmp/results.o27895
1 /tmp/.font-unix
1 /tmp/MathLink
1 /tmp/uscreens/S-lehe
1 /tmp/uscreens
1 /tmp/lddmm.16761/pat2357_organ1
16 /tmp/lddmm.16761/input.tmp
16 /tmp/lddmm.16761
1 /tmp/lddmm.31846/pat2357_organ1/analyze
1 /tmp/lddmm.31846/pat2357_organ1/vtk
1 /tmp/lddmm.31846/pat2357_organ1/txt
1 /tmp/lddmm.31846/pat2357_organ1
16 /tmp/lddmm.31846/input.tmp
16 /tmp/lddmm.31846
1 /tmp/lddmm.29228/pat2357_organ1
16 /tmp/lddmm.29228/input.tmp
16 /tmp/lddmm.29228
1 /tmp/hsperfdata_xye
1 /tmp/hsperfdata_jina
1 /tmp/results.F27510/cv_unscaledblackcount200.9
1 /tmp/results.F27510
1 /tmp/orbit-lehe
1 /tmp/hsperfdata_mbasily1
1 /tmp/.ICE-unix
1 /tmp/lddmm.30813/pat2357_organ1
16 /tmp/lddmm.30813/input.tmp
16 /tmp/lddmm.30813
1 /tmp/AVW/ThumbNails/tmp/AVW/payal
1 /tmp/AVW/ThumbNails/tmp/AVW/skam
1 /tmp/AVW/ThumbNails/tmp/AVW
1 /tmp/AVW/ThumbNails/tmp
1 /tmp/AVW/ThumbNails
1 /tmp/AVW/payal
1 /tmp/AVW/skam/.MaxMinCache
1 /tmp/AVW/skam
1 /tmp/AVW
1 /tmp/results.Mx2684/cv_unscaledblackcount200.9
1 /tmp/results.Mx2684
1 /tmp/results.EnL706/cv_unscaledblackcount200.9
1 /tmp/results.EnL706
1 /tmp/hsperfdata_can
1 /tmp/lddmm.420/input.tmp
1 /tmp/lddmm.420
1 /tmp/hsperfdata_skam
65 /tmp
Here is output of df, excluding those for other people's accounts
Quote:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 38172108 11631348 24601720 33% /
none 16479064 0 16479064 0% /dev/shm
io8:/export/io8/local/linux
1441743776 661147872 707359584 49% /cis/local/linux
io5:/export/io5a/home/student/lehe
1441743776 401581792 966925664 30% /cis/home/lehe
lehe is offline   Reply With Quote
Old 07-03-2009, 11:20 AM   #9
Registered User
 
Join Date: Oct 2008
Posts: 450
Try removing those 16 MB files. I can't imagine it would matter. Even if it did; rebooting would clear temp, fixing problems caused by this should there be any.
In fact; you may simply reboot the computer and retry.

That is, on most distros.
EVOEx is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request for comments Prelude A Brief History of Cprogramming.com 15 01-02-2004 10:33 AM
Binary Tree Revisited: Near Completion Nakeerb C++ Programming 13 01-22-2003 08:23 AM
Templated Binary Tree... dear god... Nakeerb C++ Programming 15 01-17-2003 02:24 AM
Release Configuration Problems Unregistered C++ Programming 5 06-19-2002 04:54 AM
Please help me teedee46 C++ Programming 9 05-06-2002 11:28 PM


All times are GMT -6. The time now is 01:16 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22