"Permission denied" on /usr/bin/sh when running gmake with multiple jobs

2009-10-21 Thread John Daintree

Hello all,

I've tried to solve my problem online and in the mailing list archives, but 
I've had no joy.


I'm working on a makefile for an application. Everything runs fine if I just 
run the make in a single job. However if I use the gmake -j to run 
multiple concurrent jobs I get unexpected errors from my scripts. 
Specifically it seems that /usr/bin/sh becomes randomly unavailable.


Here's the (sort | uniq) error output from the make with N=3: And again, 
everything's ok with N=1.


/cygdrive/j/12.1.dss/svn/apl/win/bin/mk_cc: 
/cygdrive/j/12.1.dss/svn/apl/allos/bin/verbose: /usr/bin/sh: bad 
interpreter: Permission denied
/cygdrive/j/12.1.dss/svn/apl/win/bin/mk_cc: 
/cygdrive/j/12.1.dss/svn/apl/win/bin/mk_depend: /usr/bin/sh.exe: bad 
interpreter: Permission denied
/usr/bin/sh: /cygdrive/j/12.1.dss/svn/apl/allos/bin/verbose: Permission 
denied
/usr/bin/sh: /cygdrive/j/12.1.dss/svn/apl/win/bin/mk_depend: Permission 
denied


I'm currently getting this on both a Windows  7  (x64) machine and an XP 
(x86) machine.


Any ideas anyone?

John.









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



RE: "Permission denied" on /usr/bin/sh when running gmake with multiple jobs

2009-10-21 Thread John Daintree
Oh, and the cygwin version is...

/usr/bin/sh --version
GNU bash, version 3.2.49(22)-release (i686-pc-cygwin)
Copyright (C) 2007 Free Software Foundation, Inc.

/john

-Original Message-
From: John Daintree [mailto:jo...@dyalog.com] 
Sent: 21 October 2009 14:26
To: cygwin@cygwin.com
Subject: "Permission denied" on /usr/bin/sh when running gmake with multiple
jobs

Hello all,

I've tried to solve my problem online and in the mailing list archives, but 
I've had no joy.

I'm working on a makefile for an application. Everything runs fine if I just

run the make in a single job. However if I use the gmake -j to run 
multiple concurrent jobs I get unexpected errors from my scripts. 
Specifically it seems that /usr/bin/sh becomes randomly unavailable.

Here's the (sort | uniq) error output from the make with N=3: And again, 
everything's ok with N=1.

/cygdrive/j/12.1.dss/svn/apl/win/bin/mk_cc: 
/cygdrive/j/12.1.dss/svn/apl/allos/bin/verbose: /usr/bin/sh: bad 
interpreter: Permission denied
/cygdrive/j/12.1.dss/svn/apl/win/bin/mk_cc: 
/cygdrive/j/12.1.dss/svn/apl/win/bin/mk_depend: /usr/bin/sh.exe: bad 
interpreter: Permission denied
/usr/bin/sh: /cygdrive/j/12.1.dss/svn/apl/allos/bin/verbose: Permission 
denied
/usr/bin/sh: /cygdrive/j/12.1.dss/svn/apl/win/bin/mk_depend: Permission 
denied

I'm currently getting this on both a Windows  7  (x64) machine and an XP 
(x86) machine.

Any ideas anyone?

John.





 



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


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



Re: "Permission denied" on /usr/bin/sh when running gmake with multiple jobs

2009-10-23 Thread John Daintree

I've installed the beta of cygwin 1.7 and I have the same problem there.

I've now attempting to build cygwin from sources to try to figure out what's 
going on.


"John Daintree"  wrote in message 
news:hbn24q$gj...@ger.gmane.org...

Hello all,

I've tried to solve my problem online and in the mailing list archives, 
but I've had no joy.


I'm working on a makefile for an application. Everything runs fine if I 
just run the make in a single job. However if I use the gmake -j to run 
multiple concurrent jobs I get unexpected errors from my scripts. 
Specifically it seems that /usr/bin/sh becomes randomly unavailable.


Here's the (sort | uniq) error output from the make with N=3: And again, 
everything's ok with N=1.


/cygdrive/j/12.1.dss/svn/apl/win/bin/mk_cc: 
/cygdrive/j/12.1.dss/svn/apl/allos/bin/verbose: /usr/bin/sh: bad 
interpreter: Permission denied
/cygdrive/j/12.1.dss/svn/apl/win/bin/mk_cc: 
/cygdrive/j/12.1.dss/svn/apl/win/bin/mk_depend: /usr/bin/sh.exe: bad 
interpreter: Permission denied
/usr/bin/sh: /cygdrive/j/12.1.dss/svn/apl/allos/bin/verbose: Permission 
denied
/usr/bin/sh: /cygdrive/j/12.1.dss/svn/apl/win/bin/mk_depend: Permission 
denied


I'm currently getting this on both a Windows  7  (x64) machine and an XP 
(x86) machine.


Any ideas anyone?

John.












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



RE: "Permission denied" on /usr/bin/sh when running gmake with multiple jobs

2009-10-24 Thread John Daintree
Hi Jurriaan,

I've tried that, completely removed my Sophos anti-virus. I'm still getting
the same problem.

/john

-Original Message-
From: jurri...@rivierenland.xs4all.nl
[mailto:jurri...@rivierenland.xs4all.nl] 
Sent: 23 October 2009 19:08
To: cygwin@cygwin.com
Subject: Re: "Permission denied" on /usr/bin/sh when running gmake with
multiple jobs

From: John Daintree 
Date: Fri, Oct 23, 2009 at 12:02:52PM +0100
> I've installed the beta of cygwin 1.7 and I have the same problem there.

You're not running something like a virus scanner, are you? I know my
scripts throw some strange errors when McAfee is running. Why these
errors mostly happen at night while I'm in bed, I'm not sure. However, I
do know that since I've disabled McAfee, I sleep a lot better since work
never calls in the middle of the night.

HTH,
Jurriaan

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


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



Cannot build cygwin from CVS source.

2009-10-26 Thread John Daintree
Hello All,

I'm trying to build my own cygwin to investigate my problem "Permission
denied" on /usr/bin/sh when running gmake with multiple  jobs".

However, the make process terminates early with the error " cc1plus: error:
invalid option `no-use-libstdc-wrappers`". Tail of make.out follows my
signature.

I've google'd "no-use-libstdc-wrappers", and get no relevant hits. 

g++ --version returns:
$ g++ --version
g++ (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

How should I proceed?

Thanks,
/john

tail of make.out:



g++ -L/oss/build/i686-pc-cygwin/winsup
-L/oss/build/i686-pc-cygwin/winsup/cygwin
-L/oss/build/i686-pc-cygwin/winsup/w32a
pi/lib -isystem /oss/src/winsup/include -isystem
/oss/src/winsup/cygwin/include -isystem /oss/src/winsup/w32api/include
-B/oss/build/i686-pc-cygwin/newlib/ -isystem
/oss/build/i686-pc-cygwin/newlib/targ-include -isystem /oss/src/newlib/libc
/include    -c  -DHAVE_CONFIG_H  -g -O2 -MMD  -Werror -fmerge-constants
-ftracer -mno-use-libstdc-wrappers  -Wall -Wstri
ct-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0 
-I.  -I/oss/src/winsup/cygwin  -I/oss/src/wi
nsup/w32api/include -I/oss/src/winsup/cygwin/config/i386
-I/usr/lib/gcc/i686-pc-cygwin/3.4.4/include -fno-rtti -fno-exce
ptions -o ./_cygwin_crt0_common.o
/oss/src/winsup/cygwin/lib/_cygwin_crt0_common.cc
cc1plus: error: invalid option `no-use-libstdc-wrappers'
make[3]: *** [_cygwin_crt0_common.o] Error 1
make[3]: Leaving directory `/oss/build/i686-pc-cygwin/winsup/cygwin'
make[2]: *** [cygwin] Error 1
make[2]: Leaving directory `/oss/build/i686-pc-cygwin/winsup'
make[1]: *** [all-target-winsup] Error 2
make[1]: Leaving directory `/oss/build'
make: *** [all] Error 2




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



RE: Cannot build cygwin from CVS source.

2009-10-26 Thread John Daintree
Hi Marco,

Thanks for the suggestion. I tried that and got the same error..

$ g++ --version

g++ (GCC) 4.3.2 20080827 (beta) 2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ tail make.out

/oss/src/winsup/cygwin/mkglobals_h /oss/src/winsup/cygwin/globals.cc >
globals.h
g++ -L/oss/i686-pc-cygwin/winsup -L/oss/i686-pc-cygwin/winsup/cygwin
-L/oss/i686-pc-cygwin/winsup/w32api/lib -isystem /oss/src/winsup/include
-isystem /oss/src/winsup/cygwin/include -isystem
/oss/src/winsup/w32api/include -B/oss/i686-pc-cygwin/newlib/ -isystem
/oss/i686-pc-cygwin/newlib/targ-include -isystem
/oss/src/newlib/libc/include-c  -DHAVE_CONFIG_H  -g -O2 -MMD  -Werror
-fmerge-constants -ftracer -mno-use-libstdc-wrappers  -Wall
-Wstrict-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin
-fmessage-length=0  -I.  -I/oss/src/winsup/cygwin
-I/oss/src/winsup/w32api/include -I/oss/src/winsup/cygwin/config/i386
-I/usr/lib/gcc/i686-pc-cygwin/4.3.2/include -fno-rtti -fno-exceptions -o
./_cygwin_crt0_common.o /oss/src/winsup/cygwin/lib/_cygwin_crt0_common.cc
cc1plus: error: unrecognized command line option "-mno-use-libstdc-wrappers"
make[3]: *** [_cygwin_crt0_common.o] Error 1
make[3]: Leaving directory `/oss/i686-pc-cygwin/winsup/cygwin'
make[2]: *** [cygwin] Error 1
make[2]: Leaving directory `/oss/i686-pc-cygwin/winsup'
make[1]: *** [all-target-winsup] Error 2
make[1]: Leaving directory `/oss'
make: *** [all] Error 2

/john







-Original Message-
From: Marco Atzeri [mailto:marco_atz...@yahoo.it] 
Sent: 26 October 2009 11:07
To: cygwin@cygwin.com; John Daintree
Subject: R: Cannot build cygwin from CVS source.

--- Lun 26/10/09, John Daintree ha scritto:

> Hello All,
> 
> I'm trying to build my own cygwin to investigate my problem
> "Permission
> denied" on /usr/bin/sh when running gmake with multiple 
> jobs".
> 
> However, the make process terminates early with the error "
> cc1plus: error:
> invalid option `no-use-libstdc-wrappers`". Tail of make.out
> follows my
> signature.
> 
> I've google'd "no-use-libstdc-wrappers", and get no
> relevant hits. 
> 
> g++ --version returns:
> $ g++ --version
> g++ (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd
> 0.125)
> Copyright (C) 2004 Free Software Foundation, Inc.
> This is free software; see the source for copying
> conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
> 
> How should I proceed?
> 
> Thanks,
> /john
> 

you should used gcc-4

Marco





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


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



RE: Cannot build cygwin from CVS source.

2009-10-26 Thread John Daintree
Thanks Eric, I'll try that.

-Original Message-
From: Eric Blake [mailto:e...@byu.net] 
Sent: 26 October 2009 12:55
To: cygwin@cygwin.com; jo...@dyalog.com
Subject: Re: Cannot build cygwin from CVS source.

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to John Daintree on 10/26/2009 6:47 AM:
> Hi Marco,
> 
> Thanks for the suggestion. I tried that and got the same error..
> 
> $ g++ --version
> 
> g++ (GCC) 4.3.2 20080827 (beta) 2

Still the wrong version.  You need 4.3.4, available from cygwin 1.7.
Reread this thread:
http://cygwin.com/ml/cygwin-developers/2009-10/msg00169.html

- --
Don't work too hard, make some time for fun as well!

Eric Blake e...@byu.net
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrlnDEACgkQ84KuGfSFAYCkegCeOYzKlV8Co5FGfQSsHVL9TN2x
6doAnRBBPWJS1zdh5c0AHkkfG28Wd1dJ
=M6tR
-END PGP SIGNATURE-

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


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



RE: Cannot build cygwin from CVS source.

2009-10-26 Thread John Daintree
Hello all,

Making more progress now, hopefully the getting near the end.

I'm getting an link error for `___RUNTIME_PSEUDO_RELOC_LIST_END__'.

I know this came up on this list a few months ago but I couldn't find a
solution.

Thanks again,

/john


tail make.out:


g++ -L/oss/build/i686-pc-cygwin/winsup
-L/oss/build/i686-pc-cygwin/winsup/cygwin
-L/oss/build/i686-pc-cygwin/winsup/w32api/lib -isystem
/oss/src/winsup/include -isystem /oss/src/winsup/cygwin/include -isystem
/oss/src/winsup/w32api/include -B/oss/build/i686-pc-cygwin/newlib/ -isystem
/oss/build/i686-pc-cygwin/newlib/targ-include -isystem
/oss/src/newlib/libc/include-g -O2 -MMD  -Werror -fmerge-constants
-ftracer -mno-use-libstdc-wrappers  -Wl,--gc-sections
-Wl,-T/oss/src/winsup/cygwin/cygwin.sc \
-Wl,--heap=0 -Wl,--out-implib,cygdll.a -shared -o cygwin0.dll \
-e _dll_en...@12 cygwin.def assert.o autoload.o bsdlib.o ctype.o
cxx.o cygheap.o cygthread.o cygtls.o dcrt0.o debug.o devices.o dir.o dlfcn.o
dll_init.o dtable.o environ.o errno.o exceptions.o exec.o external.o fcntl.o
fhandler.o fhandler_clipboard.o fhandler_console.o fhandler_disk_file.o
fhandler_dsp.o fhandler_fifo.o fhandler_floppy.o fhandler_mailslot.o
fhandler_mem.o fhandler_netdrive.o fhandler_nodevice.o fhandler_proc.o
fhandler_process.o fhandler_procnet.o fhandler_random.o fhandler_raw.o
fhandler_registry.o fhandler_serial.o fhandler_socket.o fhandler_tape.o
fhandler_termios.o fhandler_tty.o fhandler_virtual.o fhandler_windows.o
fhandler_zero.o flock.o fnmatch.o fork.o fts.o ftw.o getopt.o glob.o
glob_pattern_p.o globals.o grp.o heap.o hookapi.o inet_addr.o inet_network.o
init.o ioctl.o ipc.o kernel32.o libstdcxx_wrapper.o localtime.o lsearch.o
malloc_wrapper.o minires-os-if.o minires.o miscfuncs.o mktemp.o mmap.o msg.o
mount.o net.o netdb.o nfs.o nftw.o ntea.o passwd.o path.o pinfo.o pipe.o
poll.o posix_ipc.o pthread.o random.o regcomp.o regerror.o regexec.o
regfree.o registry.o resource.o rexec.o rcmd.o scandir.o sched.o sec_acl.o
sec_auth.o sec_helper.o security.o select.o sem.o setlsapwd.o shared.o shm.o
sigfe.o signal.o sigproc.o smallprint.o spawn.o strace.o strfuncs.o
strptime.o strsep.o strsig.o sync.o syscalls.o sysconf.o syslog.o termios.o
thread.o timer.o times.o tls_pbuf.o tty.o uinfo.o uname.o wait.o wincap.o
window.o winf.o xsique.o   malloc.o  version.o winver.o \
 /oss/build/i686-pc-cygwin/winsup/cygserver/libcygserver.a
/oss/build/i686-pc-cygwin/newlib/libm/libm.a
/oss/build/i686-pc-cygwin/newlib/libc/libc.a \
-lgcc /oss/build/i686-pc-cygwin/winsup/w32api/lib/libkernel32.a
/oss/build/i686-pc-cygwin/winsup/w32api/lib/libadvapi32.a
/oss/build/i686-pc-cygwin/winsup/w32api/lib/libntdll.a -Wl,-Map,cygwin.map
Creating library file:
cygdll.a/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../libcygwin.a(pseudo-reloc.
o):(.text+0x31): undefined reference to `___RUNTIME_PSEUDO_RELOC_LIST__'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../libcygwin.a(pseudo-reloc.o):(.tex
t+0x38): undefined reference to `___RUNTIME_PSEUDO_RELOC_LIST_END__'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../libcygwin.a(pseudo-reloc.o):(.tex
t+0x50): undefined reference to `___RUNTIME_PSEUDO_RELOC_LIST_END__'
collect2: ld returned 1 exit status

make[3]: *** [cygwin0.dll] Error 1
make[3]: Leaving directory `/oss/build/i686-pc-cygwin/winsup/cygwin'
make[2]: *** [cygwin] Error 1
make[2]: Leaving directory `/oss/build/i686-pc-cygwin/winsup'
make[1]: *** [all-target-winsup] Error 2
make[1]: Leaving directory `/oss/build'
make: *** [all] Error 2

-Original Message-
From: John Daintree [mailto:jo...@dyalog.com] 
Sent: 26 October 2009 13:01
To: cygwin@cygwin.com
Subject: RE: Cannot build cygwin from CVS source.

Thanks Eric, I'll try that.

-Original Message-
From: Eric Blake [mailto:e...@byu.net] 
Sent: 26 October 2009 12:55
To: cygwin@cygwin.com; jo...@dyalog.com
Subject: Re: Cannot build cygwin from CVS source.

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to John Daintree on 10/26/2009 6:47 AM:
> Hi Marco,
> 
> Thanks for the suggestion. I tried that and got the same error..
> 
> $ g++ --version
> 
> g++ (GCC) 4.3.2 20080827 (beta) 2

Still the wrong version.  You need 4.3.4, available from cygwin 1.7.
Reread this thread:
http://cygwin.com/ml/cygwin-developers/2009-10/msg00169.html

- --
Don't work too hard, make some time for fun as well!

Eric Blake e...@byu.net
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrlnDEACgkQ84KuGfSFAYCkegCeOYzKlV8Co5FGfQSsHVL9TN2x
6doAnRBBPWJS1zdh5c0AHkkfG28Wd1dJ
=M6tR
-END PGP SIGNATURE-

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cyg

RE: "Permission denied" on /usr/bin/sh when running gmake with multiple jobs

2009-10-28 Thread John Daintree
Hello all,

I'm still having this problem but I'm beginning to narrow it down.
 
Here's an example of the error I get:

"J:\trunk\svn\apl\win\bin\mk_cc:
/cygdrive/j/trunk/svn/apl/allos/bin/verbose: /usr/bin/sh: bad interpreter:
Permission denied"

I've upgraded to cygwin 1.7, and I'm running this on Windows 7 x64. Cygwin
is installed on the local C drive. I've removed all anti-virus software.

It seems that I only get this sporadic (and incorrect) "bad interpreter"
message if my scripts are located on a mounted SAMBA drive. If I move all
the scripts to my local drive the access problem goes away, but I want to
keep them on the remove drive. If I run my make task with a single job (-j1)
the problem goes away.

Here's my mount output

C:/cygwin/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin on / type ntfs (binary,auto)
C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
D: on /cygdrive/d type ntfs (binary,posix=0,user,noumount,auto)
I: on /cygdrive/i type smbfs (binary,posix=0,user,noumount,auto)
J: on /cygdrive/j type smbfs (binary,posix=0,user,noumount,auto)
M: on /cygdrive/m type smbfs (binary,posix=0,user,noumount,auto)
U: on /cygdrive/u type smbfs (binary,posix=0,user,noumount,auto)
Z: on /cygdrive/z type ntfs (binary,posix=0,user,noumount,auto)

My scripts are located on /cygdrive/j which cygwin has auto-mounted from my
J: drive, which I'd previously (using Windows) mapped from our SAMBA server.
I've experimented with acl/noacl but that seems to make no difference, and
to be honest, I'm sort of guessing a bit. 

I also thought I try mapping the relevant drive directly (ie //devt/files on
/cygdrive/j) to remove the intermediate use of "J:", but I can't find out
how to prevent cygwin from automatically mounting all my drives.

I've also been trying to build a local cygwin so I can try to debug the
problem, but I can't get the build process to complete (see
http://article.gmane.org/gmane.os.cygwin/111950) 


Does anyone have any tips, or things I can try in order to get this to work?


Thanks,
John.






-Original Message-
From: John Daintree [mailto:jo...@dyalog.com] 
Sent: 24 October 2009 13:37
To: cygwin@cygwin.com
Subject: RE: "Permission denied" on /usr/bin/sh when running gmake with
multiple jobs

Hi Jurriaan,

I've tried that, completely removed my Sophos anti-virus. I'm still getting
the same problem.

/john

-Original Message-
From: jurri...@rivierenland.xs4all.nl
[mailto:jurri...@rivierenland.xs4all.nl] 
Sent: 23 October 2009 19:08
To: cygwin@cygwin.com
Subject: Re: "Permission denied" on /usr/bin/sh when running gmake with
multiple jobs

From: John Daintree 
Date: Fri, Oct 23, 2009 at 12:02:52PM +0100
> I've installed the beta of cygwin 1.7 and I have the same problem there.

You're not running something like a virus scanner, are you? I know my
scripts throw some strange errors when McAfee is running. Why these
errors mostly happen at night while I'm in bed, I'm not sure. However, I
do know that since I've disabled McAfee, I sleep a lot better since work
never calls in the middle of the night.

HTH,
Jurriaan

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


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


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



RE: "Permission denied" on /usr/bin/sh when running gmake with multiple jobs

2009-10-29 Thread John Daintree
Hi Corinna,

Thanks, I've tried that and it doesn't seem to make much difference, I still
get the same problem. 

Can you shed some light on http://article.gmane.org/gmane.os.cygwin/111950?
I may need to get my local cygwin build working to investigate this further.

/john

-Original Message-
From: Corinna Vinschen [mailto:corinna-cyg...@cygwin.com] 
Sent: 29 October 2009 08:23
To: cygwin@cygwin.com
Subject: Re: "Permission denied" on /usr/bin/sh when running gmake with
multiple jobs

On Oct 28 14:39, John Daintree wrote:
> My scripts are located on /cygdrive/j which cygwin has auto-mounted from
my
> J: drive, which I'd previously (using Windows) mapped from our SAMBA
server.
> I've experimented with acl/noacl but that seems to make no difference, and
> to be honest, I'm sort of guessing a bit. 
> 
> I also thought I try mapping the relevant drive directly (ie //devt/files
on
> /cygdrive/j) to remove the intermediate use of "J:", but I can't find out
> how to prevent cygwin from automatically mounting all my drives.

The /cygdrive mounts are always automatic.  If you want to mount the
path manually, use another directory like, say, /home/devt-files or
something.  See
http://cygwin.com/1.7/cygwin-ug-net/using.html#mount-table


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

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


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



RE: "Permission denied" on /usr/bin/sh when running gmake with multiple jobs

2009-10-30 Thread John Daintree
Hi Corinna,

I was using a "gmake" not the cygwin "make", and that was generating the
windows path. I've moved over to the cygwin supplied make and fixed up all
the relevant environment variables. No windows paths anymore but I'm still
getting the permission problem.

None of the scripts are created dynamically.

I'd tried strace before, but didn't really know how to interpret the output
or locate the relevant bits. (is there an article that describes the
output?)

I've run the make again under strace and posted the output of both strace
and make (I couldn't find how to have the output of both go to the same
file) to www.johndaintree.com/index.htm. Would it be too much to ask that
you take a look?

Thanks for your help,

john.



-Original Message-
From: Corinna Vinschen [mailto:corinna-cyg...@cygwin.com] 
Sent: 29 October 2009 13:39
To: cygwin@cygwin.com
Subject: Re: "Permission denied" on /usr/bin/sh when running gmake with
multiple jobs



http://cygwin.com/acronyms/#TOFU


On Oct 29 11:25, John Daintree wrote:
> Can you shed some light on
http://article.gmane.org/gmane.os.cygwin/111950?
> I may need to get my local cygwin build working to investigate this
further.

>> "J:\trunk\svn\apl\win\bin\mk_cc:
>> /cygdrive/j/trunk/svn/apl/allos/bin/verbose: /usr/bin/sh: bad
interpreter:
>> Permission denied"

Where's this Windows path coming from?  Are you sure you're using only
Cygwin tools?  If so, get rid of the Win32 path and use either the
matching /cygdrive path, or mount (the relevant subtree of) drive J to
some other POSIX path.

The permission denied is probably not the permission of sh itself, but
the permissions of the script.  It's lacking execute permissions,
perhaps.  If the script gets generated during the make run, it might
be a race.  One job tries to use the script before another job has
run chmod on the script.

Instead of building your own debug version of Cygwin, you could also
just start with stracing your make runs and see what happens when the
script access fails.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

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


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



Incorrect names for file owners on mapped samba drives

2009-10-30 Thread John Daintree
Hello all,

I've got a number of drives mounted from  SAMBA machine (which is running
linux).  My local machine is running Cygwin 1.7 on Windows 7 x64.

Here's (some of) my mount output:

//devt/users/johnd on /j type smbfs (binary,notexec,user)
C:/cygwin/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin on / type ntfs (binary,auto)
J: on /cygdrive/j type smbfs (binary,posix=0,user,noumount,auto)

"ls -l"  on /cygdrive/j and /j returns "" as the name of both the
owner and the group of all the files on those drives. Windows explorer
correctly identifies DEVT\johnd as the owner of the files.

johnd's line in  /etc/passwd is:

johnd:unused:1000:513:U-johnd-PC\johnd,S-1-5-21-2127453718-491543372-2845810
030-1000:/home/johnd:/bin/bash

and "id" returns:

uid=1000(johnd) gid=513(None)
groups=0(root),544(Administrators),545(Users),1006(Debugger Users),513(None)

on the SAMBA machine my UID is 208, so I figured I'd just need to change the
above to:

johnd:unused:208:513:U-johnd-PC\johnd,S-1-5-21-2127453718-491543372-28458100
30-208:/home/johnd:/bin/bash

But, having done that and re-logged in I get the message:

Your group is currently "mkpasswd".  This indicates that your gid is not in
/etc/group and your uid is not in /etc/passwd.

and the "id" command returns:

uid=400(johnd) gid=401(mkpasswd)
groups=0(root),544(Administrators),545(Users),1006(Debugger
Users),513(None),401(mkpasswd)

I've no idea where those 400s came from.

an "ls -n" on a single file returns:

rwxrw-r-- 1 4294967295 4294967295 1286 Mar 11  2009 zones.h

so maybe the UIDs aren't getting across at all from the SAMBA server.

What do I need to do to get the usernames "in sync" with the SAMBA box?

Thanks again everyone,

/john



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



RE: Incorrect names for file owners on mapped samba drives

2009-10-30 Thread John Daintree
> -Original Message-
> From: Larry Hall (Cygwin) [mailto:reply-to-list-only...@cygwin.com]
> Sent: 30 October 2009 16:00
> To: cygwin@cygwin.com
> Subject: Re: Incorrect names for file owners on mapped samba drives
> 
> On 10/30/2009 11:46 AM, John Daintree wrote:
> > on the SAMBA machine my UID is 208, so I figured I'd just need to
> change the
> > above to:
> >
> > johnd:unused:208:513:U-johnd-PC\johnd,S-1-5-21-2127453718-491543372-
> 28458100
> > 30-208:/home/johnd:/bin/bash
>   ^^^
> Don't change your SID.  You can change your UID if you want, since this
> is a
> Cygwin thing.  But if you change your SID, Cygwin can't map your UID
> back to
> the Windows SID.  So then Windows won't know who you are, and Cygwin
> really
> won't either (in Windows terms).  That's why you got the message you
> did.
> 
> Assuming SAMBA uses 208 as your user ID,you should get proper (user)
> ownerships
> displaying.  The same is true for your GID, if you want that.


Thanks Larry,  That seems to get be nearer where I want to be. I'm still 
getting some confusing (to me at least!) results.

Given that mount includes:

U: on /cygdrive/u type smbfs (binary,posix=0,user,noumount,auto)

i.e. u: and /cygdrive/u are the same location

why is it that "ls -n u:/tmp/jd.tmp" gives:

-rw-r--r-- 1 208 200 0 Oct 30 16:45 u:/tmp/jd.tmp

but "ls -n /cygdrive/u/tmp/jd.tmp" gives:

-rw-r--r-- 1 4294967295 4294967295 0 Oct 30 16:45 /cygdrive/u/tmp/jd.tmp

In addition "ls -n u:/tmp/*" returns the same UID (MY uid) for every file in 
the directory even though they are owned by different users. I created a new 
user on my windows machine and when I log in on that account all the files in 
u:/tmp are reported as owned by that user. Again windows explorer lists the 
correct owner for each file (as DEVT\username).

Thanks again,
john.









> --
> Larry Hall  http://www.rfk.com
> RFK Partners, Inc.  (508) 893-9779 - RFK Office
> 216 Dalton Rd.  (508) 893-9889 - FAX
> Holliston, MA 01746
> 
> _
> 
> A: Yes.
>  > Q: Are you sure?
>  >> A: Because it reverses the logical flow of conversation.
>  >>> Q: Why is top posting annoying in email?
> 
> --
> 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


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



RE: Incorrect names for file owners on mapped samba drives

2009-11-02 Thread John Daintree
> .  

Hi Larry, 

Thanks for the heads up about PCYMTNQREAIYR, I'll configure my Mailer/Client as 
soon as I can get the IT guys to do it, or figure out how to change my Outlook 
2007 preferences.

I've established that the differences in the output of -ls -l on the different 
drives is down to differences in acl/noacl.
 
$ mount
//devt/devt on /u type smbfs (binary,notexec,noacl,posix=0,user)
U: on /cygdrive/u type smbfs (binary,posix=0,user,noumount,auto)

ls -l on u:/tmp returns "johnd" as owner of files
ls -l on /u/tmp returns "johnd" as owner
ls -l on /cygdrive/u returns "" as owner

I suspect that the difference is that /cygdrive/u does not have "noacl". 

I also tried mounting with posix 0 and 1, but that seemed to make no difference.

As I said before ls -l  returns "johnd" as the owner on all files (not just 
mine) which is odd, but less important to me right now. Interestingly the mks 
"ls" returns different SIDs for different files, but not the windows SIDs. I 
guess it returns the SAMBA SIDs, and I'm missing a mapping layer somewhere. If 
you have insight on that I love to hear it.

Thanks for the help,
john.


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



RE: "Permission denied" on /usr/bin/sh when running gmake with multiple jobs

2009-11-02 Thread John Daintree
Corinna,

That's very helpful, thank you for taking the time to look through the
output. I've talk to my IT guys about how we should proceed.

/john


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



RE: Incorrect names for file owners on mapped samba drives

2009-11-02 Thread John Daintree
> -Original Message-
> From: Corinna Vinschen 
> Sent: 02 November 2009 12:31
> To: cygwin@cygwin.com
> Subject: Re: Incorrect names for file owners on mapped samba drives
> 
> If you want nice entries in ls -l output, add the users and groups to
> your local /etc/passwd and /etc/group files using mkpasswd and mkgroup
> with the new -U options:
> 
> http://cygwin.com/1.7/cygwin-ug-net/using-utils.html#mkpasswd
> http://cygwin.com/1.7/cygwin-ug-net/using-utils.html#mkgroup
> 
> For instance:
> 
>   $ mkpasswd -U root,corinna -S_ -L my_samba_box
>   Unix User_root:unused:1:9:,S-1-22-1-0::
>   Unix User_corinna:unused:10500:9:,S-1-22-1-500::
>   $ mkpasswd -U root,corinna -S_ -L my_samba_box >> /etc/passwd
>   $ mkgroup -U root,corinna -S_ -L my_samba_box
>   Unix Group_root:S-1-22-2-0:1:
>   Unix Group_vinschen:S-1-22-2-11125:21125:
>   $ mkgroup -U root,corinna -S_ -L my_samba_box >> /etc/group
>   $ cd //my_samba_box/my_share
>   $ ls -l some_file
>   -rw--- 1 UnixUser_corinna UnixGroup_vinschen 172 2009-09-22 16:27
> some_file
> 


Hi Corinna,

Thanks for the examples. I had read the man pages for mkpasswd and mkgroup
(honest!), but I must have had my incantations a little wrong.

I have most of the users and groups over now. Interestingly the "root" group
still displays as "" in the ls output, but such files are rare and I
can live with that for now.

Thanks again.
/john








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



RE: Use of Dual Core causes random failures building OpenJDK

2009-11-17 Thread John Daintree
> 1.5 is known to have bugs in this area.  You can give 1.7 a try because
> I've
> fixed a number of race conditions; I'm pretty sure there are still more
> to be
> tracked down, but it's a good deal better.


Ah, that's interesting. I've been seeing odd effects too (in 1.7, 4 core
machine). Some of which (thanks Corinna) look like problems in our Samba
configuration but others seemed not to be network related. (current
directory not being correct for example). I'll try to post some repros or
examples when I see them. 

/john


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



cygpath 1.7.18 problem. cypath returns mangled filename

2013-06-26 Thread John Daintree
Hi,

I’ve hit a problem with cygpath. Here’s a script:

JD0=/cygdrive/d/obj/13.2.tmp/apl/win/32/unicode/winapi/dev/opt
JD=/cygdrive/c/src/13.2.dss/svn/misc/samples/tmp

cygpath --version

echo ..
echo $(cygpath -up "$JD0:$JD:$JD:$JD")
echo ..
echo $(cygpath -up "$JD0:$JD:$JD:$JD:$JD:$JD")
echo ..


Here’s its output :

cygpath (cygwin) 1.7.18
Path Conversion Utility
Copyright (C) 1998 - 2013 Red Hat, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
..
/cygdrive/d/obj/13.2.tmp/apl/win/32/unicode/winapi/dev/opt:/cygdrive/c/src/1
3.2.dss/svn/misc/samples/tmp:/cygdrive/c/src/13.2.dss/svn/misc/samples/tmp:/
cygdrive/c/src/13.2.dss/svn/misc/samples/tmp
..
/cygdrive/c/ygdrive/d/obj/13.2.tmp/apl/win/32/unicode/winapi/dev/opt:/cygdri
ve/c/src/13.2.dss/svn/misc/samples/tmp:/cygdrive/c/src/13.2.dss/svn/misc/sam
ples/tmp:/cygdrive/c/src/13.2.dss/svn/misc/samples/tmp:/cygdrive/c/src/13.2.
dss/svn/misc/samples/tmp:/cygdrive/c/src/13.2.dss/svn/misc/samples/tmp
..
Note that the second call to cygpath has “mangled” the first element of the
returned path. The only difference between that 1st and 2nd calls to cygpath
is the length of the argument.
Note that changing  the separator from : to \; doesn’t help – it still
mangles the return.

Chgcheck output is attached.

Thanks,
John



cygcheck.out
Description: Binary data
--
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

Starting CMD from a bash shell with current directory on a mounted/network drive results in an incorrect current directory

2021-12-13 Thread john daintree
Hello All,

 

I've just upgraded a machine from Windows 10 to Windows 11. Part of my work
process is now broken because when starting cmd from Cygwin with the current
directory on a mounted drive I get the following error/warning/issue:

 

 

/cygdrive/j$ cmd

'\\nas00.\devt\users\johnd'

CMD.EXE was started with the above path as the current directory.

UNC paths are not supported.  Defaulting to Windows directory.

Microsoft Windows [Version 10.0.22000.348]

(c) Microsoft Corporation. All rights reserved.

 

C:\Windows>

 

 

The drive J: is mounted as something on our network (I've redacted a bit of
the path, for probably no good reason)

 

Is there a workaround? Or is this something that can be fixed in Cygwin?

 

Thanks

John.

 


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


RE: Starting CMD from a bash shell with current directory on a mounted/network drive results in an incorrect current directory

2021-12-13 Thread john daintree
Excellent news, thank you. I apologise if  I should have seen that
somewhere.

/John

-Original Message-
From: Cygwin  On Behalf Of
Takashi Yano
Sent: 13 December 2021 11:06
To: cygwin@cygwin.com
Subject: Re: Starting CMD from a bash shell with current directory on a
mounted/network drive results in an incorrect current directory

On Mon, 13 Dec 2021 10:53:41 -
"john daintree" wrote:
> I've just upgraded a machine from Windows 10 to Windows 11. Part of my 
> work process is now broken because when starting cmd from Cygwin with 
> the current directory on a mounted drive I get the following
error/warning/issue:
> 
>  
> 
>  
> 
> /cygdrive/j$ cmd
> 
> '\\nas00.\devt\users\johnd'
> 
> CMD.EXE was started with the above path as the current directory.
> 
> UNC paths are not supported.  Defaulting to Windows directory.
> 
> Microsoft Windows [Version 10.0.22000.348]
> 
> (c) Microsoft Corporation. All rights reserved.
> 
>  
> 
> C:\Windows>
> 
>  
> 
>  
> 
> The drive J: is mounted as something on our network (I've redacted a 
> bit of the path, for probably no good reason)
> 
>  
> 
> Is there a workaround? Or is this something that can be fixed in Cygwin?

Thanks for the report. This was already fixed recently in git head.

https://cygwin.com/pipermail/cygwin/2021-December/250153.html
https://cygwin.com/pipermail/cygwin-patches/2021q4/011583.html

Please wait for the next cygwin release or new developers snapshot.

--
Takashi Yano 

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


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


RE: Starting CMD from a bash shell with current directory on a mounted/network drive results in an incorrect current directory

2021-12-14 Thread john daintree
Cool, thanks.

-Original Message-
From: Cygwin  On Behalf Of
Corinna Vinschen
Sent: 13 December 2021 15:06
To: cygwin@cygwin.com
Subject: Re: Starting CMD from a bash shell with current directory on a
mounted/network drive results in an incorrect current directory

On Dec 13 20:06, Takashi Yano wrote:
> On Mon, 13 Dec 2021 10:53:41 -
> "john daintree" wrote:
> > I've just upgraded a machine from Windows 10 to Windows 11. Part of 
> > my work process is now broken because when starting cmd from Cygwin 
> > with the current directory on a mounted drive I get the following
error/warning/issue:
> > 
> >  
> > 
> >  
> > 
> > /cygdrive/j$ cmd
> > 
> > '\\nas00.\devt\users\johnd'
> > 
> > CMD.EXE was started with the above path as the current directory.
> > 
> > UNC paths are not supported.  Defaulting to Windows directory.
> > 
> > Microsoft Windows [Version 10.0.22000.348]
> > 
> > (c) Microsoft Corporation. All rights reserved.
> > 
> >  
> > 
> > C:\Windows>
> > 
> >  
> > 
> >  
> > 
> > The drive J: is mounted as something on our network (I've redacted a 
> > bit of the path, for probably no good reason)
> > 
> >  
> > 
> > Is there a workaround? Or is this something that can be fixed in Cygwin?
> 
> Thanks for the report. This was already fixed recently in git head.
> 
> https://cygwin.com/pipermail/cygwin/2021-December/250153.html
> https://cygwin.com/pipermail/cygwin-patches/2021q4/011583.html
> 
> Please wait for the next cygwin release or new developers snapshot.

New developer snapshot is available on https://cygwin.com/snapshots/


Corinna

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


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


TMP and TMPDIR mapping

2023-01-24 Thread john daintree via Cygwin
Hi

 

My understanding is that Cygwin maps $TMP and $TMPDIR (and probably others)
to a Windows form (/cygdrive/c/tmp  -> C:\tmp) when calling a WIN32 program
(e.g. cmd.exe). Is it possible, from bash or from Cygwin startup , to add
additional environment variable names so that they  are also automatically
mapped in the same way?

 

Thanks

/John


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


RE: TMP and TMPDIR mapping

2023-01-27 Thread john daintree via Cygwin
Hi Audrey.

Here's an example of what's going on:

>>: export TMPDIR=/cygdrive/c/tmp/jd
>>: export TMPDIR2=/cygdrive/c/tmp/jd2
>>: cmd.exe
Microsoft Windows [Version 10.0.22621.1105]
(c) Microsoft Corporation. All rights reserved.

C:\>echo %TMPDIR%
C:\tmp\jd

C:\>echo %TMPDIR2%
/cygdrive/c/tmp/jd2

So, if I set TMPDIR and TMPDIR2 in bash, and then call cmd.exe then TMPDIR
is changed to c:\tmp\jd but TMPDIR2 is left as /cygdrive/c/tmp/jd2

I was hoping that there's something I can do to get the following in
cmd.exe:

C:\>echo %TMPDIR2%
C:\tmp\jd2  # TMPDIR2 "mapped"
to c:\ in the same way that TMPDIR is

I hope that's a clearer example.

Note that the actual use case is calling other Win32 programs, and the
environment variable name is different, but the above example is an attempt
to simplify the repro.
$PATH is mapped in  a similar way. So I assume that there is a list of names
which are mapped. I'd like to be able to add my own names to that list.

Thanks.
John.



-Original Message-----
From: Andrey Repin  
Sent: 27 January 2023 07:45
To: john daintree ; cygwin@cygwin.com
Subject: Re: TMP and TMPDIR mapping

Greetings, john daintree!

> My understanding is that Cygwin maps $TMP and $TMPDIR (and probably
others)
> to a Windows form (/cygdrive/c/tmp  -> C:\tmp)

Nop. The actual mapping depends on your settings, but defaults to /tmp which
is inside Cygwin installation root.
Another option is to mount /tmp with 'usertemp' option, which would then
redirect it to the user's %TEMP%.

> when calling a WIN32 program
> (e.g. cmd.exe). Is it possible, from bash or from Cygwin startup , to
add
> additional environment variable names so that they  are also
automatically
> mapped in the same way?

What is your question, exactly?
What you want to achieve and what your actual observation compared to
expected behavior?


--
With best regards,
Andrey Repin
Friday, January 27, 2023 10:41:46

Sorry for my terrible english...



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