Thanks. No, it's not full. The permissions are:
drwxrwxrwt+ 1 Paul root      0 Feb 24 13:36 tmp
and I can create the same file manually.

The output of gcc -v hello.c is attached. I am running Windows 7 Professional - Service Pack 1.

I'm afraid I can't send the output of cygcheck to the mailing list for confidentiality reasons. I could either send it to you directly, or perhaps run cygcheck in a way to generate less data. By the way I get the following errors from cygcheck, only when I redirect the output:

/usr/bin/cygrunsrv: warning: OpenService failed for 'DcomLaunch': Win32 error 5
Access is denied.
/usr/bin/cygrunsrv: warning: OpenService failed for 'ose': Win32 error 5
Access is denied.
/usr/bin/cygrunsrv: warning: OpenService failed for 'osppsvc': Win32 error 5
Access is denied.
/usr/bin/cygrunsrv: warning: OpenService failed for 'pla': Win32 error 5
Access is denied.
/usr/bin/cygrunsrv: warning: OpenService failed for 'QWAVE': Win32 error 5
Access is denied.
/usr/bin/cygrunsrv: warning: OpenService failed for 'RpcEptMapper': Win32 error 5
Access is denied.
/usr/bin/cygrunsrv: warning: OpenService failed for 'RpcSs': Win32 error 5
Access is denied.



On 24/02/2012 12:08, Dave Korn wrote:
On 24/02/2012 09:22, Paul Keir wrote:
Hello,

After installing a package (libxrandr-dev I think) GCC 4.5.3 (from Exp)
has a problem. Even Hello World gives me:

hello.c:1:0: fatal error: can't open /tmp/ccc6IHTT.s for writing: No
such file or directory
compilation terminated.

I have tried reinstalling GCC with no luck. Can anyone offer advice?
   Is the drive where your /tmp dir is located full?  Does it have the right
permissions?  Can you create the same named file manually (e.g. run a command
like "ls>/tmp/ccc6IHTT.s")?

   If none of that sheds any light on it, please run "cygcheck -s -v -r>
cygcheck.out" and send that file **as an attachment only please** with your
next post.  Also, re-run the gcc compile command that's failing, but add the
"-v" option to the command-line, and show us all the output it generates.

     cheers,
       DaveK


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/4.5.3/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with: 
/gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3/src/gcc-4.5.3/configure 
--srcdir=/gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3/src/gcc-4.5.3 
--prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin 
--libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var 
--sysconfdir=/etc --datarootdir=/usr/share --docdir=/usr/share/doc/gcc4 -C 
--datadir=/usr/share --infodir=/usr/share/info --mandir=/usr/share/man -v 
--with-gmp=/usr --with-mpfr=/usr --enable-bootstrap 
--enable-version-specific-runtime-libs --libexecdir=/usr/lib --enable-static 
--enable-shared --enable-shared-libgcc --disable-__cxa_atexit --with-gnu-ld 
--with-gnu-as --with-dwarf2 --disable-sjlj-exceptions 
--enable-languages=ada,c,c++,fortran,java,lto,objc,obj-c++ --enable-graphite 
--enable-lto --enable-java-awt=gtk --disable-symvers --enable-libjava 
--program-suffix=-4 --enable-libgomp --enable-libssp --enable-libada 
--enable-threads=posix --with-arch=i686 --with-tune=generic 
--enable-libgcj-sublibs CC=gcc-4 CXX=g++-4 CC_FOR_TARGET=gcc-4 
CXX_FOR_TARGET=g++-4 GNATMAKE_FOR_TARGET=gnatmake GNATBIND_FOR_TARGET=gnatbind 
--with-ecj-jar=/usr/share/java/ecj.jar
Thread model: posix
gcc version 4.5.3 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=i686'
 /usr/lib/gcc/i686-pc-cygwin/4.5.3/cc1.exe -quiet -v -D__CYGWIN32__ 
-D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter 
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api -idirafter 
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/lib/../../include/w32api
 hello.c -quiet -dumpbase hello.c -mtune=generic -march=i686 -auxbase hello 
-version -o /tmp/ccoTtOUD.s
GNU C (GCC) version 4.5.3 (i686-pc-cygwin)
        compiled by GNU C version 4.5.3, GMP version 4.3.2, MPFR version 
3.0.1-p4, MPC version 0.8
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/lib/gcc/i686-pc-cygwin/4.5.3/include"
ignoring nonexistent directory "/usr/lib/gcc/i686-pc-cygwin/4.5.3/include-fixed"
ignoring nonexistent directory "/usr/i686-pc-cygwin/include"
ignoring nonexistent directory "/usr/include"
ignoring nonexistent directory 
"/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api"
ignoring nonexistent directory 
"/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/lib/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
End of search list.
GNU C (GCC) version 4.5.3 (i686-pc-cygwin)
        compiled by GNU C version 4.5.3, GMP version 4.3.2, MPFR version 
3.0.1-p4, MPC version 0.8
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 89d6774c1d510265da7d48b735ce61fb
hello.c:1:0: fatal error: can’t open /tmp/ccoTtOUD.s for writing: No such 
file or directory
compilation terminated.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to