X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: Date: Thu, 3 Jan 2008 11:18:27 +0100 From: "Juju Mimi" To: cygwin AT cygwin DOT com Subject: fork permission denied [WinXP] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 Dear all, I've just installed Cygwin v1.5.25-7 on a WinXP plateform. The aim is to build a complete cross-toolchain running on a cygwin system, for a bare-metal arm target. To begin, I would like to re-build the (GNU)binutils from their sources The whole procedure runs well on a usual linux system, now I would like it to run non my cygwin system. While running the script below: PREFIX=/opt/crossgcc TARGET=arm-elf BINUTILS_VER=2.18 ../dwnld/binutils-${BINUTILS_VER}/configure --prefix=$PREFIX --target=$TARGET The following error occurs: 148 [main]] sh 2912 fork: child -1 - CreateProcessA failed, errno 13 ../dwnld/binutils-2.18/configure: fork: Permission denied checking build system type... 10 [main] sh 132 fork: child -1 - CreateProcessA failed, errno 13 ../dwnld/binutils-2.18/configure.sub: fork: Permission denied i686-pc-none checking host system type... 12 [main] sh 3960 fork: child -1 - CreateProcessA failed, errno 13 ../dwnld/binutils-2.18/configure.sub: fork: Permission denied i686-pc-cygwin 10 [main] sh 2340 fork: child -1 - CreateProcessA failed, errno 13 ../dwnld/binutils-2.18/configure: fork: Permission denied 9 [main] sh 3636 fork: child -1 - CreateProcessA failed, errno 13 ../dwnld/binutils-2.18/configure: fork: Permission denied checking target system type... 136 [main] sh 3392 fork: child -1 - CreateProcessA failed, errno 13 ../dwnld/binutils-2.18/configure.sub: fork: Permission denied arm-unknown-elf checking for a BSD-compatible install... /usr/bin/install -c checking whether ln works... yes checking whether ln -s compiler works... yes checking for gcc... gcc checking for C compiler default output file name... 167 [main] sh 3584 fork: child -1 - CreateProcessA failed, errno 13 ../dwnld/binutils-2.18/configure: fork: Permission denied b.out checking whether the C compiler works... configure: error: cannot run C compiled programs. If you meant to cross compile, use '--host'. 'config.log' for more details 15 [main] sh 2052 fork: child -1 - CreateProcessA failed, errno 13 ../dwnld/binutils-2.18/configure: fork: Permission denied Though I have googled a lot, I am still desperatly looking for any clue, tips, or any else that can help fixing that. Of course, I have first searched into the mailing-list archive, but anything seems to deal with fork-related problems. I guess It is not due to the configure script itself, It sounds to me like a problem in the cygwin configuration. The only solution seems to be "installing Cygwin into another directory other than C:\cygwin" which I tried too, and did not fix the problem at all. I hope not to bother you all too much, I am a real newbie in the cygwin world. Maybe it is useful, the first time I launched cygwin, the message below appeared: 7922 [main] bash 3448 child_copy: loaded dll bss write copy failed, 0x675B5000..0x675B51B0, done 1736, windows pid 3448, Win32 error 5 Your group name is currently "mkgroup_l_d". This indicates that not all domain users and groups are listed in the /etc/passwd and /etc/group files. See the manpage for mkpasswd and mkgroup then, for example, run mkpasswd -l -d > /etc/passwd mkgroup -l -d > /etc/group This message is only displayed once (unless you recreate /etc/group) and can be safely ignored Finally, here is the cygcheck -s -r -v output in case it may help: Cygwin Configuration Diagnostics Current System Time: Thu Jan 03 09:40:55 2008 Windows XP Professional Ver 5.1 Build 2600 Service Pack 2 Path: C:\cygwin2\usr\local\bin C:\cygwin2\bin C:\cygwin2\bin C:\cygwin2\usr\X11R6\bin c:\WINDOWS\system32 c:\WINDOWS c:\WINDOWS\System32\Wbem c:\Program Files\Subversion\bin c:\VXIPNP\WINNT\BIN c:\Program Files\Microsoft SQL Server\80\Tools\Binn\ Output from C:\cygwin2\bin\id.exe (nontsec) UID: 13202(michel) GID: 10545(mkgroup-l-d) 545(Utilisateurs) 10545(mkgroup-l-d) Output from C:\cygwin2\bin\id.exe (ntsec) UID: 13202(michel) GID: 10545(mkgroup-l-d) 545(Utilisateurs) 10545(mkgroup-l-d) SysDir: C:\WINDOWS\system32 WinDir: C:\WINDOWS USER = 'michel' PWD = '/data/dwnld' HOME = '/cygdrive/c/Documents and Settings/michel' MAKE_MODE = 'unix' HOMEPATH = '\Documents and Settings\michel' MANPATH = '/usr/local/man:/usr/share/man:/usr/man:' APPDATA = 'C:\Documents and Settings\michel\Application Data' TERM = 'cygwin' WINDIR = 'C:\WINDOWS' OLDPWD = '/cygdrive/c/Documents and Settings/michel' OS = 'Windows_NT' ALLUSERSPROFILE = 'C:\Documents and Settings\All Users' APR_ICONV_PATH = 'C:\Program Files\Subversion\iconv' !:: = '::\' TEMP = '/cygdrive/c/DOCUME~1/michel/LOCALS~1/Temp' COMMONPROGRAMFILES = 'C:\Program Files\Fichiers communs' FP_NO_HOST_CHECK = 'NO' SYSTEMDRIVE = 'C:' USERPROFILE = 'C:\Documents and Settings\michel' CLIENTNAME = 'Console' PROCESSOR_ARCHITECTURE = 'x86' HOMEDRIVE = 'C:' PROMPT = '$P$G' COMSPEC = 'C:\WINDOWS\system32\cmd.exe' TMP = '/cygdrive/c/DOCUME~1/michel/LOCALS~1/Temp' SYSTEMROOT = 'C:\WINDOWS' CVS_RSH = '/bin/ssh' PROCESSOR_REVISION = '0604' INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:' PROGRAMFILES = 'C:\Program Files' NUMBER_OF_PROCESSORS = '2' SESSIONNAME = 'Console' _ = '/usr/bin/cygcheck' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 (default) = '/cygdrive' cygdrive flags = 0x00000022 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/ (default) = 'C:\cygwin2' flags = 0x00000002 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = 'C:\cygwin2/bin' flags = 0x00000002 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = 'C:\cygwin2/lib' flags = 0x00000002 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options c: hd NTFS 133759Mb 23% CP CS UN PA FC d: cd N/A N/A C:\cygwin2 / user binmode C:\cygwin2/bin /usr/bin user binmode C:\cygwin2/lib /usr/lib user binmode . /cygdrive user binmode,cygdrive Found: C:\cygwin2\bin\awk.exe Found: C:\cygwin2\bin\bash.exe Found: C:\cygwin2\bin\cat.exe Found: C:\cygwin2\bin\cp.exe Found: C:\cygwin2\bin\cpp.exe Not Found: crontab Found: C:\cygwin2\bin\find.exe Found: C:\cygwin2\bin\gcc.exe Not Found: gdb Found: C:\cygwin2\bin\grep.exe Found: C:\cygwin2\bin\kill.exe Found: C:\cygwin2\bin\ld.exe Found: C:\cygwin2\bin\ls.exe Found: C:\cygwin2\bin\make.exe Found: C:\cygwin2\bin\mv.exe Not Found: patch Not Found: perl Found: C:\cygwin2\bin\rm.exe Found: C:\cygwin2\bin\sed.exe Not Found: ssh Found: C:\cygwin2\bin\sh.exe Found: C:\cygwin2\bin\tar.exe Found: C:\cygwin2\bin\test.exe Not Found: vi Not Found: vim 61k 2006/11/10 C:\cygwin2\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0 "cygbz2-1.dll" v0.0 ts=2006/11/11 0:42 7k 2003/10/19 C:\cygwin2\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0 "cygcrypt-0.dll" v0.0 ts=2003/10/19 9:57 40k 2006/11/15 C:\cygwin2\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0 "cygform-8.dll" v0.0 ts=2006/11/15 8:06 25k 2007/08/23 C:\cygwin2\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0 "cyghistory6.dll" v0.0 ts=2007/8/24 0:01 271k 2007/08/24 C:\cygwin2\bin\cygicons-0.dll - os=4.0 img=1.0 sys=4.0 "cygicons-0.dll" v0.0 ts=2007/8/24 9:24 976k 2006/10/22 C:\cygwin2\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0 "cygiconv-2.dll" v0.0 ts=2006/10/23 1:44 37k 2003/08/10 C:\cygwin2\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0 "cygintl-2.dll" v0.0 ts=2003/8/10 23:50 31k 2005/11/20 C:\cygwin2\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0 "cygintl-3.dll" v0.0 ts=2005/11/20 3:04 31k 2006/10/23 C:\cygwin2\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0 "cygintl-8.dll" v0.0 ts=2006/10/23 2:12 21k 2006/11/15 C:\cygwin2\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0 "cygmenu-8.dll" v0.0 ts=2006/11/15 8:05 67k 2006/11/15 C:\cygwin2\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0 "cygncurses++-8.dll" v0.0 ts=2006/11/15 8:13 237k 2006/11/15 C:\cygwin2\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0 "cygncurses-8.dll" v0.0 ts=2006/11/15 8:02 12k 2006/11/15 C:\cygwin2\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0 "cygpanel-8.dll" v0.0 ts=2006/11/15 8:04 133k 2007/06/27 C:\cygwin2\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0 "cygpcre-0.dll" v0.0 ts=2007/6/27 5:49 303k 2007/06/27 C:\cygwin2\bin\cygpcrecpp-0.dll - os=4.0 img=1.0 sys=4.0 "cygpcrecpp-0.dll" v0.0 ts=2007/6/27 5:50 7k 2007/06/27 C:\cygwin2\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0 "cygpcreposix-0.dll" v0.0 ts=2007/6/27 5:50 22k 2002/06/09 C:\cygwin2\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0 "cygpopt-0.dll" v0.0 ts=2002/6/9 7:45 154k 2007/08/23 C:\cygwin2\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0 "cygreadline6.dll" v0.0 ts=2007/8/24 0:01 1829k 2007/12/14 C:\cygwin2\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2007/12/14 19:22 Cygwin DLL version info: DLL version: 1.5.25 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 156 Shared data: 4 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix: Build date: Fri Dec 14 19:21:07 CET 2007 CVS tag: cr-0x5f1 Shared id: cygwin1S4 Can't find the cygrunsrv utility, skipping services check. Cygwin Package Information Last downloaded files to: C:\dwld\cygwin\ftp%3a%2f%2fftp.easynet.be%2fcygwin Last downloaded files from: ftp://ftp.easynet.be/cygwin Package Version _update-info-dir 00573-1 alternatives 1.3.29a-1 ash 20040127-3 base-files 3.7-1 base-passwd 2.2-1 bash 3.2.25-17 binutils 20060817-1 bzip2 1.0.3-2 coreutils 6.9-5 crypt 1.1-1 cygutils 1.3.2-1 cygwin 1.5.25-7 cygwin-doc 1.4-4 editrights 1.01-2 findutils 4.3.11-1 gawk 3.1.6-1 gcc-core 3.4.4-3 gcc-mingw-core 20050522-1 grep 2.5.1a-4 groff 1.18.1-2 gzip 1.3.12-2 less 382-1 libbz2_1 1.0.3-2 libiconv2 1.11-1 libintl2 0.12.1-3 libintl3 0.14.5-1 libintl8 0.15-1 libncurses8 5.5-3 libpcre0 7.2-1 libpopt0 1.6.4-4 libreadline6 5.2.7-9 login 1.9-7 make 3.81-1 man 1.6e-1 mingw-runtime 3.14-1 mktemp 1.5-4 rebase 2.4.3-1 run 1.1.10-1 sed 4.1.5-2 tar 1.19-1 termcap 20050421-1 terminfo 5.5_20061104-1 texinfo 4.8a-1 tzcode 2007h-2 w32api 3.11-1 which 2.18-1 Use -h to see help about each section Many thanks to all Julian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/