Thread: No space left on device compilation terminated

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    159

    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:
    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!

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > 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.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jan 2009
    Posts
    159
    Here is the part of the output related to my account:
    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.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    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.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Jan 2009
    Posts
    159
    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
    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

  6. #6
    Registered User
    Join Date
    Oct 2008
    Posts
    1,262
    A lot easier. Try (as earlier suggested):
    du -m /tmp

    also, type df.

  7. #7
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    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.
    If at first you don't succeed, try writing your phone number on the exam paper.

  8. #8
    Registered User
    Join Date
    Jan 2009
    Posts
    159
    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
    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
    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

  9. #9
    Registered User
    Join Date
    Oct 2008
    Posts
    1,262
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

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