Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: <4276C831.7000906@itee.uq.edu.au> Date: Tue, 03 May 2005 10:39:13 +1000 From: John Williams Reply-To: jwilliams AT itee DOT uq DOT edu DOT au User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040316 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: execvp error:cygwin+make+busybox Content-Type: multipart/mixed; boundary="------------020202010301070600050102" X-Spam-Checked: This message probably not SPAM X-Spam-Score: 0.154 X-Spam-Tests: TW_BG,TW_JW X-Spam-Report: 0.2 points, 8.0 required; 0.1 TW_BG BODY: Odd Letter Triples with BG 0.1 TW_JW BODY: Odd Letter Triples with JW X-IsSubscribed: yes Note-from-DJ: This may be spam --------------020202010301070600050102 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hello, Attempting to cross-compile Busybox 1.00 under Cygwin (1.5.16-1) I am hitting an error similar to one previously reported on the Cygwin list (Jan 05): http://www.cygwin.com/ml/cygwin/2005-01/msg00657.html No resolution was posted to the list at that time. The busybox Makefile attempts to run the host CC (gcc in this case) to build some setup/config tools, as well as spawning a shell script to do a bit of preparatory work. This is before any cross-compiling begins. Make reports the following error: gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep /cygdrive/e/cygwin-uclinux/uClinux-dist/user/busybox/scripts/mkdep.c make[3]: execvp: gcc: Invalid argument make[3]: *** [scripts/mkdep] Error 127 The problem occurs with Make versions 3.79.1 and 3.80 (haven't tested any earlier versions) The Makefile fragment which fails looks like this: scripts/mkdep: $(top_srcdir)/scripts/mkdep.c $(HOSTCC) $(HOSTCFLAGS) -o $@ $< HOSTCC and HOSTCFLAGS can be deduced from above output, but there's nothing exotic in there. Another fragment which fails is this: .config.mkconfig: $(ROOTDIR)/config/.config sh ./mkconfig > .config.tmp This fragment fails with: make[3]: execvp: sh: Invalid argument If executed directly from the commandline, these commands complete fine - it's only when spawning from within the Makefile. cygcheck output is attached. Any insights into the nature and possible solution of this problem would be greatly appreciated. Thanks, John --------------020202010301070600050102 Content-Type: text/plain; name="cygcheck.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cygcheck.txt" Cygwin Configuration Diagnostics Current System Time: Tue May 03 10:26:33 2005 Windows XP Professional Ver 5.1 Build 2600 Service Pack 2 Path: c:\xilinx\edk7.1\cygwin\usr\local\bin c:\xilinx\edk7.1\cygwin\bin c:\xilinx\edk7.1\cygwin\bin c:\xilinx\edk7.1\cygwin\bin c:\xilinx\edk7.1\bin\nt c:\xilinx\edk7.1\gnu\powerpc-eabi\nt\bin c:\xilinx\edk7.1\gnu\microblaze\nt\bin c:\xilinx\edk7.1\bin\nt e:\Nutc\bin e:\Nutc\bin\X11 e:\Nutc\mksnt c:\EDK\bin\nt c:\EDK\gnu\microblaze\nt\bin c:\EDK\gnu\powerpc-eabi\nt\bin c:\WINDOWS\SYSTEM32 c:\WINDOWS c:\WINDOWS\SYSTEM32\WBEM c:\PROGRAM FILES\SUPPORT TOOLS\ c:\PROGRAM FILES\J2SDK1.4.0\BIN c:\PROGRAM FILES\J2SDK1.4.0\JRE\BIN e:\Mentor\WG2002\LICENS~1 c:\matlab6p5p1\bin\win32 c:\Xilinx\ise7.1\bin\nt c:\program files\winrsync\support e:\Mentor\WG2002\vbsa\BIN c:\Program Files\SSH Communications Security\SSH Secure Shell h:\usr\bin Output from c:\xilinx\edk7.1\cygwin\bin\id.exe (nontsec) UID: 400(jwilliams) GID: 401(mkpasswd) 0(root) 544(Administrators) 545(Users) 401(mkpasswd) Output from c:\xilinx\edk7.1\cygwin\bin\id.exe (ntsec) UID: 400(jwilliams) GID: 401(mkpasswd) 0(root) 544(Administrators) 545(Users) 401(mkpasswd) SysDir: C:\WINDOWS\system32 WinDir: C:\WINDOWS HOME = `H:\' MAKE_MODE = `unix' PWD = `/cygdrive/e/cygwin-uclinux' USER = `jwilliams' Use `-r' to scan registry c: hd NTFS 20481Mb 91% CP CS UN PA FC e: hd FAT32 8110Mb 80% CP UN NEW VOLUME g: net NTFS 16553Mb 13% CP CS groups h: net NTFS 1048432Mb 84% CP CS jwilliams s: net NTFS 74433Mb 99% CP CS UN PA FC software z: net NTFS 29533Mb 97% CP CS PA jwilliam c:\xilinx\edk7.1\cygwin / user binmode c:\xilinx\edk7.1\cygwin/bin /usr/bin user binmode c:\xilinx\edk7.1\cygwin/lib /usr/lib user binmode . /cygdrive user binmode,cygdrive Found: c:\xilinx\edk7.1\cygwin\bin\awk.exe Found: c:\xilinx\edk7.1\cygwin\bin\bash.exe Found: c:\xilinx\edk7.1\cygwin\bin\cat.exe Found: c:\xilinx\edk7.1\cygwin\bin\cp.exe Found: c:\xilinx\edk7.1\cygwin\bin\cpp.exe Found: c:\xilinx\edk7.1\cygwin\bin\find.exe Found: c:\xilinx\edk7.1\cygwin\bin\gcc.exe Not Found: gdb Found: c:\xilinx\edk7.1\cygwin\bin\grep.exe Found: c:\xilinx\edk7.1\cygwin\bin\ld.exe Found: c:\xilinx\edk7.1\cygwin\bin\ls.exe Found: c:\xilinx\edk7.1\cygwin\bin\make.exe Found: c:\xilinx\edk7.1\cygwin\bin\mv.exe Found: c:\xilinx\edk7.1\cygwin\bin\rm.exe Found: c:\xilinx\edk7.1\cygwin\bin\sed.exe Found: c:\xilinx\edk7.1\cygwin\bin\sh.exe Found: c:\xilinx\edk7.1\cygwin\bin\tar.exe 55k 2004/09/14 c:\xilinx\edk7.1\cygwin\bin\cygbz2-1.dll 18k 2004/07/06 c:\xilinx\edk7.1\cygwin\bin\cygcharset-1.dll 7k 2003/10/19 c:\xilinx\edk7.1\cygwin\bin\cygcrypt-0.dll 895k 2004/04/28 c:\xilinx\edk7.1\cygwin\bin\cygdb-4.2.dll 1156k 2004/04/28 c:\xilinx\edk7.1\cygwin\bin\cygdb_cxx-4.2.dll 174k 2004/10/14 c:\xilinx\edk7.1\cygwin\bin\cygexpat-0.dll 40k 2004/10/10 c:\xilinx\edk7.1\cygwin\bin\cygform-8.dll 45k 2001/04/25 c:\xilinx\edk7.1\cygwin\bin\cygform5.dll 35k 2002/01/09 c:\xilinx\edk7.1\cygwin\bin\cygform6.dll 48k 2003/08/09 c:\xilinx\edk7.1\cygwin\bin\cygform7.dll 28k 2003/07/20 c:\xilinx\edk7.1\cygwin\bin\cyggdbm-3.dll 30k 2003/08/11 c:\xilinx\edk7.1\cygwin\bin\cyggdbm-4.dll 19k 2003/03/22 c:\xilinx\edk7.1\cygwin\bin\cyggdbm.dll 15k 2003/07/20 c:\xilinx\edk7.1\cygwin\bin\cyggdbm_compat-3.dll 15k 2003/08/11 c:\xilinx\edk7.1\cygwin\bin\cyggdbm_compat-4.dll 17k 2001/06/28 c:\xilinx\edk7.1\cygwin\bin\cyghistory4.dll 29k 2003/08/10 c:\xilinx\edk7.1\cygwin\bin\cyghistory5.dll 25k 2004/10/12 c:\xilinx\edk7.1\cygwin\bin\cyghistory6.dll 991k 2004/07/06 c:\xilinx\edk7.1\cygwin\bin\cygiconv-2.dll 22k 2001/12/13 c:\xilinx\edk7.1\cygwin\bin\cygintl-1.dll 37k 2003/08/10 c:\xilinx\edk7.1\cygwin\bin\cygintl-2.dll 54k 2004/07/06 c:\xilinx\edk7.1\cygwin\bin\cygintl-3.dll 21k 2001/06/20 c:\xilinx\edk7.1\cygwin\bin\cygintl.dll 81k 2005/03/03 c:\xilinx\edk7.1\cygwin\bin\cygitcl30.dll 35k 2005/03/03 c:\xilinx\edk7.1\cygwin\bin\cygitk30.dll 146k 2004/12/21 c:\xilinx\edk7.1\cygwin\bin\cygmagic-1.dll 22k 2004/10/10 c:\xilinx\edk7.1\cygwin\bin\cygmenu-8.dll 26k 2001/04/25 c:\xilinx\edk7.1\cygwin\bin\cygmenu5.dll 20k 2002/01/09 c:\xilinx\edk7.1\cygwin\bin\cygmenu6.dll 29k 2003/08/09 c:\xilinx\edk7.1\cygwin\bin\cygmenu7.dll 74k 2004/10/10 c:\xilinx\edk7.1\cygwin\bin\cygncurses++-8.dll 156k 2001/04/25 c:\xilinx\edk7.1\cygwin\bin\cygncurses++5.dll 175k 2002/01/09 c:\xilinx\edk7.1\cygwin\bin\cygncurses++6.dll 216k 2004/10/10 c:\xilinx\edk7.1\cygwin\bin\cygncurses-8.dll 226k 2001/04/25 c:\xilinx\edk7.1\cygwin\bin\cygncurses5.dll 202k 2002/01/09 c:\xilinx\edk7.1\cygwin\bin\cygncurses6.dll 224k 2003/08/09 c:\xilinx\edk7.1\cygwin\bin\cygncurses7.dll 13k 2004/10/10 c:\xilinx\edk7.1\cygwin\bin\cygpanel-8.dll 15k 2001/04/25 c:\xilinx\edk7.1\cygwin\bin\cygpanel5.dll 12k 2002/01/09 c:\xilinx\edk7.1\cygwin\bin\cygpanel6.dll 19k 2003/08/09 c:\xilinx\edk7.1\cygwin\bin\cygpanel7.dll 62k 2003/12/11 c:\xilinx\edk7.1\cygwin\bin\cygpcre-0.dll 63k 2003/04/11 c:\xilinx\edk7.1\cygwin\bin\cygpcre.dll 9k 2003/12/11 c:\xilinx\edk7.1\cygwin\bin\cygpcreposix-0.dll 61k 2003/04/11 c:\xilinx\edk7.1\cygwin\bin\cygpcreposix.dll 1252k 2005/01/27 c:\xilinx\edk7.1\cygwin\bin\cygperl5_8.dll 22k 2002/06/09 c:\xilinx\edk7.1\cygwin\bin\cygpopt-0.dll 108k 2001/06/28 c:\xilinx\edk7.1\cygwin\bin\cygreadline4.dll 148k 2003/08/10 c:\xilinx\edk7.1\cygwin\bin\cygreadline5.dll 144k 2004/10/12 c:\xilinx\edk7.1\cygwin\bin\cygreadline6.dll 390k 2005/03/03 c:\xilinx\edk7.1\cygwin\bin\cygtcl80.dll 5k 2005/03/03 c:\xilinx\edk7.1\cygwin\bin\cygtclpip80.dll 10k 2005/03/03 c:\xilinx\edk7.1\cygwin\bin\cygtclreg80.dll 623k 2005/03/03 c:\xilinx\edk7.1\cygwin\bin\cygtk80.dll 62k 2004/10/10 c:\xilinx\edk7.1\cygwin\bin\cygz.dll 1163k 2005/04/26 c:\xilinx\edk7.1\cygwin\bin\cygwin1.dll Cygwin DLL version info: DLL version: 1.5.16 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 128 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: Mon Apr 25 20:26:35 EDT 2005 Shared id: cygwin1S4 81k 2005/03/03 c:\xilinx\edk7.1\gnu\powerpc-eabi\nt\bin\cygitcl30.dll 35k 2005/03/03 c:\xilinx\edk7.1\gnu\powerpc-eabi\nt\bin\cygitk30.dll 390k 2005/03/03 c:\xilinx\edk7.1\gnu\powerpc-eabi\nt\bin\cygtcl80.dll 5k 2005/03/03 c:\xilinx\edk7.1\gnu\powerpc-eabi\nt\bin\cygtclpip80.dll 10k 2005/03/03 c:\xilinx\edk7.1\gnu\powerpc-eabi\nt\bin\cygtclreg80.dll 623k 2005/03/03 c:\xilinx\edk7.1\gnu\powerpc-eabi\nt\bin\cygtk80.dll 92k 2005/03/03 c:\xilinx\edk7.1\gnu\microblaze\nt\bin\cygitcl30.dll 38k 2005/03/03 c:\xilinx\edk7.1\gnu\microblaze\nt\bin\cygitk30.dll 426k 2005/03/03 c:\xilinx\edk7.1\gnu\microblaze\nt\bin\cygtcl80.dll 7k 2005/03/03 c:\xilinx\edk7.1\gnu\microblaze\nt\bin\cygtclpip80.dll 12k 2005/03/03 c:\xilinx\edk7.1\gnu\microblaze\nt\bin\cygtclreg80.dll 683k 2005/03/03 c:\xilinx\edk7.1\gnu\microblaze\nt\bin\cygtk80.dll 751k 2002/05/11 c:\program files\winrsync\support\cygwin1.old.dll Cygwin Package Information Package Version _update-info-dir 00231-1 ash 20040127-1 base-files 3.2-1 base-passwd 2.2-1 bash 2.05b-17 binutils 20041229-1 bzip2 1.0.2-6 coreutils 5.3.0-5 crypt 1.1-1 cygutils 1.2.7-1 cygwin 1.5.16-1 cygwin-doc 1.4-2 diffutils 2.8.7-1 editrights 1.01-1 expat 1.95.8-1 file 4.12-1 findutils 20041227-1 gawk 3.1.4-3 gcc-core 3.3.3-3 gcc-mingw-core 20040810-1 gdbm 1.8.3-7 grep 2.5.1a-2 groff 1.18.1-2 gzip 1.3.5-1 less 381-1 libbz2_1 1.0.2-6 libcharset1 1.9.2-1 libdb4.2 4.2.52-1 libgdbm 1.8.0-5 libgdbm-devel 1.8.3-7 libgdbm3 1.8.3-3 libgdbm4 1.8.3-7 libiconv 1.9.2-1 libiconv2 1.9.2-1 libintl 0.10.38-3 libintl1 0.10.40-1 libintl2 0.12.1-3 libintl3 0.14.1-1 libncurses-devel 5.4-1 libncurses5 5.2-1 libncurses6 5.2-8 libncurses7 5.3-4 libncurses8 5.4-1 libpcre 4.1-1 libpcre0 4.5-1 libpopt0 1.6.4-4 libreadline4 4.1-2 libreadline5 4.3-5 libreadline6 5.0-1 login 1.9-7 man 1.5o1-2 mingw-runtime 3.7-1 mktemp 1.5-3 ncurses 5.4-1 patch 2.5.8-8 perl 5.8.6-4 readline 5.0-1 sed 4.1.4-1 tar 1.13.25-5 termcap 20050421-1 terminfo 5.4_20041009-1 texinfo 4.8-1 w32api 3.2-1 which 1.7-1 zlib 1.2.2-1 Use -h to see help about each section --------------020202010301070600050102 Content-Type: text/plain; charset=us-ascii -- 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/ --------------020202010301070600050102--