X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=2.2 required=5.0 tests=AWL,BAYES_00,RDNS_DYNAMIC,TVD_RCVD_IP,TW_CX,TW_GC,TW_IB,TW_JL,TW_YG,TW_YM X-Spam-Check-By: sourceware.org Message-ID: <4F479609.6080507@codeplay.com> Date: Fri, 24 Feb 2012 13:52:09 +0000 From: Paul Keir User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120216 Thunderbird/11.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: GCC fatal error: can't open /tmp/ccc6IHTT.s for writing References: <4F4756DD DOT 30203 AT codeplay DOT com> <4F477DBD DOT 4050502 AT gmail DOT com> In-Reply-To: <4F477DBD.4050502@gmail.com> Content-Type: multipart/mixed; boundary="------------060309010603040107080901" X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --------------060309010603040107080901 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------060309010603040107080901 Content-Type: text/plain; charset=windows-1252; name="gcc.out" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="gcc.out" Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/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=3D/gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3/src/= gcc-4.5.3 --prefix=3D/usr --exec-prefix=3D/usr --bindir=3D/usr/bin --sbindi= r=3D/usr/sbin --libexecdir=3D/usr/lib --datadir=3D/usr/share --localstatedi= r=3D/var --sysconfdir=3D/etc --datarootdir=3D/usr/share --docdir=3D/usr/sha= re/doc/gcc4 -C --datadir=3D/usr/share --infodir=3D/usr/share/info --mandir= =3D/usr/share/man -v --with-gmp=3D/usr --with-mpfr=3D/usr --enable-bootstra= p --enable-version-specific-runtime-libs --libexecdir=3D/usr/lib --enable-s= tatic --enable-shared --enable-shared-libgcc --disable-__cxa_atexit --with-= gnu-ld --with-gnu-as --with-dwarf2 --disable-sjlj-exceptions --enable-langu= ages=3Dada,c,c++,fortran,java,lto,objc,obj-c++ --enable-graphite --enable-l= to --enable-java-awt=3Dgtk --disable-symvers --enable-libjava --program-suf= fix=3D-4 --enable-libgomp --enable-libssp --enable-libada --enable-threads= =3Dposix --with-arch=3Di686 --with-tune=3Dgeneric --enable-libgcj-sublibs C= C=3Dgcc-4 CXX=3Dg++-4 CC_FOR_TARGET=3Dgcc-4 CXX_FOR_TARGET=3Dg++-4 GNATMAKE= _FOR_TARGET=3Dgnatmake GNATBIND_FOR_TARGET=3Dgnatbind --with-ecj-jar=3D/usr= /share/java/ecj.jar Thread model: posix gcc version 4.5.3 (GCC)=20 COLLECT_GCC_OPTIONS=3D'-v' '-mtune=3Dgeneric' '-march=3Di686' /usr/lib/gcc/i686-pc-cygwin/4.5.3/cc1.exe -quiet -v -D__CYGWIN32__ -D__CYG= WIN__ -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 -dumpbas= e hello.c -mtune=3Dgeneric -march=3Di686 -auxbase hello -version -o /tmp/cc= oTtOUD.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=3D100 --param ggc-min-heapsize=3D131= 072 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-f= ixed" 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=3D100 --param ggc-min-heapsize=3D131= 072 Compiler executable checksum: 89d6774c1d510265da7d48b735ce61fb hello.c:1:0: fatal error: can=E2=80=99t open /tmp/ccoTtOUD.s for writing: N= o such file or directory compilation terminated. --------------060309010603040107080901 Content-Type: text/plain; charset=us-ascii -- 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 --------------060309010603040107080901--