Bug 6903 - gcc could give better error message when /tmp gets full
Summary: gcc could give better error message when /tmp gets full
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: other (show other bugs)
Version: 3.1
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-01 15:46 UTC by 25824
Modified: 2003-07-25 17:33 UTC (History)
3 users (show)

See Also:
Host: i386-linux
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 25824 2002-06-01 15:46:00 UTC
[ Reported to the Debian BTS as report #25824.
  Please CC 25824@bugs.debian.org on replies.
  Log of report can be found at http://bugs.debian.org/25824 ]

merry$ gcc -Wall -Werror -Wmissing-prototypes -g -O2 -I.  -DSTDC_HEADERS=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 Test.c -o Test
cc1: /tmp/ccb04872: I/O error

This happened repeatedly when /tmp filled up during compilation (Test.c is
over a megabyte long)...  A better error message might mention "device
full" or some such.

Release:
3.1 (Debian) (Debian unstable)

Environment:
System: Debian GNU/Linux (unstable)
Architecture: i686
 
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  gcc-3.1        3.1-2          The GNU C compiler.
ii  binutils       2.12.90.0.7-1  The GNU assembler, linker and binary utiliti
ii  libc6          2.2.5-6        GNU C Library: Shared libraries and Timezone
host: i386-linux
configured with: /mnt/data/gcc-3.1/gcc-3.1-3.1ds2/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=$\(prefix\)/share/man --infodir=$\(prefix\)/share/info --with-gxx-include-dir=$\(prefix\)/include/g++-v3-3.1 --enable-shared --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --enable-clocale=gnu --enable-threads=posix --enable-java-gc=boehm --enable-objc-gc i386-linux
Comment 1 Zack Weinberg 2002-06-01 15:59:04 UTC
From: Zack Weinberg <zack@codesourcery.com>
To: 25824@bugs.debian.org
Cc: gcc-gnats@gcc.gnu.org, debian-gcc@lists.debian.org
Subject: Re: other/6903: gcc could give better error message when /tmp gets full
Date: Sat, 1 Jun 2002 15:59:04 -0700

 On Sun, Jun 02, 2002 at 12:34:20AM +0200, Matthias Klose wrote:
 > 
 > merry$ gcc -Wall -Werror -Wmissing-prototypes -g -O2 -I.  -DSTDC_HEADERS=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 Test.c -o Test
 > cc1: /tmp/ccb04872: I/O error
 > 
 > This happened repeatedly when /tmp filled up during compilation (Test.c is
 > over a megabyte long)...  A better error message might mention "device
 > full" or some such.
 
 GCC is at the mercy of the operating system here; if it chooses to set
 errno to EIO instead of ENOSPC on a disk-full condition, and therefore
 strerror() returns "I/O error" instead of "Out of space on device", we
 can't do much about that.  (Or anyway I can't think of anything.
 Suggestions are welcome.)
 
 zw
Comment 2 Christian Ehrhardt 2002-12-09 14:14:21 UTC
State-Changed-From-To: open->feedback
State-Changed-Why: As Zack pointed out there's not much that gcc can do about this.
    Any objections if I close this one?
    
        regards   Christian
Comment 3 Nathanael C. Nerode 2003-03-12 18:49:26 UTC
State-Changed-From-To: feedback->closed
State-Changed-Why: OS bug, not GCC bug, sadly.  Closing.