This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Cannot compile because of cpp.exe: C:\TEMP/foo.i: Permission denied
- To: cygwin at sourceware dot cygnus dot com
- Subject: Cannot compile because of cpp.exe: C:\TEMP/foo.i: Permission denied
- From: "Tolkin, Steve" <Steve dot Tolkin at fmr dot com>
- Date: Fri, 2 Jun 2000 10:04:35 -0400
I treied to make the various RCS files, and got this failure:
When trying to compile I got
./conf.sh: The command 'gcc -Dhas_conf_h -I. -I. -O -o a.out a.c ' failed
on
a trivial program.
To track the problem down I manually ran the following 2 commands
which show the problem:
> echo 'main() { return 0; }' > a.c
> gcc -Dhas_conf_i -I. -O -o a.out a.c
cpp.exe: C:\TEMP/ccWsQgSx.i: Permission denied
Here are some relevant details:
> id
uid=500(administrator) gid=544(Administrators) groups=544(Administrators)
> ls -ld c:/temp
drwxrwxrwt 6 administ SYSTEM 32768 Jun 2 09:53 c:/temp/
> type cpp.exe
cpp.exe is /usr/bin/cpp.exe
> ls -l /usr/bin/cpp.exe
-rwxrwxrwx 1 administ None 75264 Jan 21 00:56 /usr/bin/cpp.exe*
> echo $CYGWIN
ntsec ntea tty notitle
and CYUGWIN is now set before I launch bash. (I set it in my Windows system
environment.)
I seem to have some kind of permissions problem, but I do not know what it
is,
or how to fix it!
I wonder if the name of the temp file has both C: followed by a backslash,
then TEMP
and then a forward slash is somehow related to this, or just a red herring.
Any help would be appreciated,
Steve
Here is the original attempt to run make that led me to the above problem.
530/temp/rcs/rcs-5.7> make
...
cd src && make all
make[1]: Entering directory `/temp/rcs/rcs-5.7/src'
rm -f a.*
ALL_CFLAGS=' -Dhas_conf_h -I. -I. -O' \
CC='gcc' \
COMPAT2='0' \
DIFF3='/usr/bin/diff3' DIFF3_BIN='1' \
DIFF='/usr/bin/diff' DIFFFLAGS='-an' DIFF_L='1' \
DIFF_SUCCESS='0' \
DIFF_FAILURE='1' \
DIFF_TROUBLE='2' \
ED='ed' \
LDFLAGS='' LIBS='' \
RCSPREFIX='/usr/local/bin/' \
SENDMAIL='' \
/bin/sh -x ./conf.sh 3>&1 >a.h 2>conf.err
./conf.sh: testing permissions ... OK
./conf.sh: testing compiler for plausibility ...
./conf.sh: The command 'gcc -Dhas_conf_h -I. -I. -O -o a.out a.c ' failed
on
a trivial program.
make[1]: *** [conf.h] Error 1
make[1]: Leaving directory `/temp/rcs/rcs-5.7/src'
make: *** [all] Error 2
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com