Re: gcc (as.exe) install error
Doh. I didn't notice that the list doesn't set the reply-to header. :) --Danny Danny wrote regarding 'Re: gcc (as.exe) install error' on Sun, Nov 10 at 17:59: Danny, The dialog regarding your problems with GCC and / or as (or whatever the real problem ultimately turns out to be) should take place in public. Randall Schulz Mountain View, CA USA -==- Forwarded Message -==- I'm not in front of the machine, but for the time being I'll add this: When I copy that path and paste it in on the command line, it runs just fine (well, as fine as something that expects something on STDIN can run). I can add --help and it displays the help. I've done a complete uninstall, followed by a reboot and a complete install (by selecting uninstall and then install at the root of the software tree) on that machine, and the same thing happens. I'll check the version that got reinstalled Mon morning. Thanks for the help so far. The community rocks. --Danny Randall wrote regarding 'Re: gcc (as.exe) install error' on Fri, Nov 08 at 00:32: Danny, Well, you do have binutils installed, but it's not the latest (see http://www.cygwin.com/packages/binutils/). When you installed GCC 3.2, did you also update binutils? Why don't you update all your installed packages? On my system, that rather long, funky pathname (in the gcc cannot exec diagnostic) names a symlink which itself points to /usr/bin/as.exe. What is it on your system? Randall Schulz Mountain View, CA USA At 08:25 2002-11-07, Danny Sauer wrote: Danny wrote regarding 'gcc (as.exe) install error' on Wed, Nov 06 at 17:13: ... $ gcc -o test.exe test.c gcc: installation problem, cannot exec '/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/as.exe': Invalid argument ... Attached is the output of cygcheck -s -v -r, if that helps. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: gcc (as.exe) install error
Ok, so I found what appears to be my problem. I had installed cygwin to a network drive (samba running on a linux machine). Apperently, the installer expects to be able to create symlink-like files on the Win2K system that it was running on, and those don't work over the samba server. I ran the reinstaller to a local drive, and it now works just fine. This is somewhat irritating, as it means that I've gotta install this environment locally on every machine that I'd like to use it on, was well as updating each instalation individually. Is there a way around this? Is this issue a known bug, or should I further investigate my setup? Thanks a lot for the help. --Danny Danny wrote regarding 'Re: gcc (as.exe) install error' on Sun, Nov 10 at 17:59: I'm not in front of the machine, but for the time being I'll add this: When I copy that path and paste it in on the command line, it runs just fine (well, as fine as something that expects something on STDIN can run). I can add --help and it displays the help. I've done a complete uninstall, followed by a reboot and a complete install (by selecting uninstall and then install at the root of the software tree) on that machine, and the same thing happens. I'll check the version that got reinstalled Mon morning. Thanks for the help so far. The community rocks. Randall wrote regarding 'Re: gcc (as.exe) install error' on Fri, Nov 08 at 00:32: Well, you do have binutils installed, but it's not the latest (see http://www.cygwin.com/packages/binutils/). When you installed GCC 3.2, did you also update binutils? Why don't you update all your installed packages? On my system, that rather long, funky pathname (in the gcc cannot exec diagnostic) names a symlink which itself points to /usr/bin/as.exe. What is it on your system? At 08:25 2002-11-07, Danny Sauer wrote: Danny wrote regarding 'gcc (as.exe) install error' on Wed, Nov 06 at 17:13: ... $ gcc -o test.exe test.c gcc: installation problem, cannot exec '/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/as.exe': Invalid argument ... Attached is the output of cygcheck -s -v -r, if that helps. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: gcc (as.exe) install error
On Mon, Nov 18, 2002 at 03:46:54PM -0600, Danny Sauer wrote: Ok, so I found what appears to be my problem. I had installed cygwin to a network drive (samba running on a linux machine). Apperently, the installer expects to be able to create symlink-like files on the Win2K system that it was running on, and those don't work over the samba server. I ran the reinstaller to a local drive, and it now works just fine. This is somewhat irritating, as it means that I've gotta install this environment locally on every machine that I'd like to use it on, was well as updating each instalation individually. Is there a way around this? Is this issue a known bug, or should I further investigate my setup? setup uses old-style symlinks which don't work reliably on a samba-mounted partition, although with newer versions of samba that may change. You can just remove and recreate the symlinks and they should work ok. There isn't any automated way to do this but it should be relatively trivial to write a script, something like: foreach f *; do t=`readlink $f 2/dev/null` [ -z $t ] continue rm -f $f ln -s $t $f done Do this in the /bin and /usr/i686-pc-cygwin/bin directories. I HAVE NOT tried the above so you should be very careful before trying it. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: gcc (as.exe) install error
Danny, The dialog regarding your problems with GCC and / or as (or whatever the real problem ultimately turns out to be) should take place in public. Randall Schulz Mountain View, CA USA -==- Forwarded Message -==- I'm not in front of the machine, but for the time being I'll add this: When I copy that path and paste it in on the command line, it runs just fine (well, as fine as something that expects something on STDIN can run). I can add --help and it displays the help. I've done a complete uninstall, followed by a reboot and a complete install (by selecting uninstall and then install at the root of the software tree) on that machine, and the same thing happens. I'll check the version that got reinstalled Mon morning. Thanks for the help so far. The community rocks. --Danny Randall wrote regarding 'Re: gcc (as.exe) install error' on Fri, Nov 08 at 00:32: Danny, Well, you do have binutils installed, but it's not the latest (see http://www.cygwin.com/packages/binutils/). When you installed GCC 3.2, did you also update binutils? Why don't you update all your installed packages? On my system, that rather long, funky pathname (in the gcc cannot exec diagnostic) names a symlink which itself points to /usr/bin/as.exe. What is it on your system? Randall Schulz Mountain View, CA USA At 08:25 2002-11-07, Danny Sauer wrote: Danny wrote regarding 'gcc (as.exe) install error' on Wed, Nov 06 at 17:13: ... $ gcc -o test.exe test.c gcc: installation problem, cannot exec '/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/as.exe': Invalid argument ... Attached is the output of cygcheck -s -v -r, if that helps. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: gcc (as.exe) install error
Danny wrote regarding 'gcc (as.exe) install error' on Wed, Nov 06 at 17:13: ... $ gcc -o test.exe test.c gcc: installation problem, cannot exec '/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/as.exe': Invalid argument ... Attached is the output of cygcheck -s -v -r, if that helps. Thanks. --Danny Cygwin Win95/NT Configuration Diagnostics Current System Time: Thu Nov 07 10:20:18 2002 Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 3 Path: S:\netinstall\usr\local\bin S:\netinstall\bin S:\netinstall\bin S:\netinstall\bin c:\WINNT\system32 c:\WINNT c:\WINNT\System32\Wbem S:\netinstall\usr\local\bin \\Www\software\windows\Vim\vim\vim57 e:\j2sdk1.4.0\bin S:\netinstall\usr\X11R6\bin SysDir: C:\WINNT\System32 WinDir: C:\WINNT HOME = `\\www\dsauer\profile' MAKE_MODE = `unix' PWD = `//www/dsauer/profile' USER = `dsauer' ALLUSERSPROFILE = `C:\Documents and Settings\All Users.WINNT' APPDATA = `C:\Documents and Settings\dsauer\Application Data' CLASSPATH = `H:\java\xmlrpc-1.1.jar;.' COMMONPROGRAMFILES = `C:\Program Files\Common Files' COMPUTERNAME = `DANNY-PC' COMSPEC = `C:\WINNT\system32\cmd.exe' CVSROOT = `:pserver:dsauerdev:/cvs/danny' CVS_RSH = `/bin/ssh' HOMEDRIVE = `z:' HOMEPATH = `\' HOMESHARE = `\\www\dsauer\profile' HOSTNAME = `danny-pc' LOGONSERVER = `\\WWW' MANPATH = `:/usr/ssl/man' NUMBER_OF_PROCESSORS = `1' OLDPWD = `/usr/bin' OS2LIBPATH = `C:\WINNT\system32\os2\dll;' OS = `Windows_NT' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 4 Stepping 2, AuthenticAMD' PROCESSOR_LEVEL = `6' PROCESSOR_REVISION = `0402' PROGRAMFILES = `C:\Program Files' PROMPT = `$P$G' PS1 = `\[\033]0;\w\007 \033[32m\]\u\h \[\033[33m\w\033[0m\] $ ' QTJAVA = `C:\Program Files\Java\j2re1.4.0\lib\ext\QTJava.zip' SHLVL = `1' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINNT' TEMP = `c:\DOCUME~1\dsauer\LOCALS~1\Temp' TERM = `cygwin' TEXMF = `{/usr/share/lilypond/1.6.5,}' TMP = `c:\DOCUME~1\dsauer\LOCALS~1\Temp' USERDOMAIN = `LODGE' USERNAME = `dsauer' USERPROFILE = `C:\Documents and Settings\dsauer' WINDIR = `C:\WINNT' _ = `/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 = 0x0022 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x0022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `S:/netinstall' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `S:/netinstall/bin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `S:/netinstall/lib' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts (default) = `E:\cygwin\usr\X11R6\lib\X11\fonts' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options a: fd N/AN/A c: hd NTFS3074Mb 53% CP CS UN PA FC system d: hd FAT32 1025Mb 100% CPUN PAGEFILE e: hd NTFS 25203Mb 30% CP CS UN PA FC work f: cd CDFS 0Mb 100%CS MENINBLACK g: cd N/AN/A h: net NTFS 3Mb 77% CP CSPAdsauer s: net NTFS 3Mb 77% CP CSPAsoftware w: net NTFS 3Mb 77% CP CSPAweb_servers z: net NTFS 3Mb 77% CP CSPAdsauer . /cygdrive userbinmode,cygdrive S:/netinstall / system binmode S:/netinstall/bin /usr/bin system binmode S:/netinstall/lib /usr/lib system binmode E:\cygwin\usr\X11R6\lib\X11\fonts /usr/X11R6/lib/X11/fonts system binmode . /cygdrive userbinmode,cygdrive Found: S:\netinstall\bin\bash.exe Found: S:\netinstall\bin\cat.exe Found: S:\netinstall\bin\cpp.exe Found: S:\netinstall\bin\find.exe Found: S:\netinstall\bin\gcc.exe Found: S:\netinstall\bin\gdb.exe Found: S:\netinstall\bin\ld.exe Found: S:\netinstall\bin\ls.exe Found: S:\netinstall\bin\make.exe Found: S:\netinstall\bin\sh.exe 39k 2001/11/21 S:\netinstall\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0 cygpcreposix.dll v0.0 ts=2001/11/21 16:15 58k 2002/05/07
Re: gcc (as.exe) install error
Danny, Well, you do have binutils installed, but it's not the latest (see http://www.cygwin.com/packages/binutils/). When you installed GCC 3.2, did you also update binutils? Why don't you update all your installed packages? On my system, that rather long, funky pathname (in the gcc cannot exec diagnostic) names a symlink which itself points to /usr/bin/as.exe. What is it on your system? Randall Schulz Mountain View, CA USA At 08:25 2002-11-07, Danny Sauer wrote: Danny wrote regarding 'gcc (as.exe) install error' on Wed, Nov 06 at 17:13: ... $ gcc -o test.exe test.c gcc: installation problem, cannot exec '/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/as.exe': Invalid argument ... Attached is the output of cygcheck -s -v -r, if that helps. Thanks. --Danny -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: gcc (as.exe) install error
On Wed, 6 Nov 2002 17:14:25 -0600 Danny Sauer [EMAIL PROTECTED] wrote: I recently installed cygwin 1.3.14-1 (according to cygcheck). gcc is unable to compile c source code (gcc claims to be version 3.2). Example code from test.c: --- #include stdio.h int main(){ printf(hello\n); } --- Not complicated code by any stretch of the imagination. It compiles fine with gcc on the linux box next door, not suprisingly. I've tried doing a complete install of the entire cygwin env., and uninstalling followed by reinstalling the development group (and the binutils package individually). I still get this error when I try to compile: --- $ gcc -o test.exe test.c gcc: installation problem, cannot exec '/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/as.ex e': Invalid argument --- If I copy and paste the path to as.exe, it runs just fine. The file exists. I've tried it without the -o test.exe part - same result. I tried moving the file from a network mounted drive to a local path - same result. My searches turned up nothing, but then, I may have been looking in the wrong place. If someone could either point me to that place or just solve the problem, I'd be somewhat appreciative. :) man test -- Mac :}) ** I normally forward private questions to the appropriate mail list. ** Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: gcc (as.exe) install error
Michael, How is the (merely) potential conflict between the output of Danny's compilation (test.exe) going to lead gcc to produce an Invalid argument error? Especially when the assembler runs (or would run) before test.exe gets written? Also note that test is a shell built-in both in BASH and Ash. I think this is actually the classic incomplete installation problem. Specifically the binutils package was probably not installed on Danny's system. Randall Schulz Mountain View, CA USA At 15:48 2002-11-06, you wrote: On Wed, 6 Nov 2002 17:14:25 -0600 Danny Sauer [EMAIL PROTECTED] wrote: I recently installed cygwin 1.3.14-1 (according to cygcheck). gcc is unable to compile c source code (gcc claims to be version 3.2). Example code from test.c: --- #include stdio.h int main(){ printf(hello\n); } --- Not complicated code by any stretch of the imagination. It compiles fine with gcc on the linux box next door, not suprisingly. I've tried doing a complete install of the entire cygwin env., and uninstalling followed by reinstalling the development group (and the binutils package individually). I still get this error when I try to compile: --- $ gcc -o test.exe test.c gcc: installation problem, cannot exec '/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/as.exe': Invalid argument --- If I copy and paste the path to as.exe, it runs just fine. The file exists. I've tried it without the -o test.exe part - same result. I tried moving the file from a network mounted drive to a local path - same result. My searches turned up nothing, but then, I may have been looking in the wrong place. If someone could either point me to that place or just solve the problem, I'd be somewhat appreciative. :) man test -- Mac -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: gcc (as.exe) install error
As requested at http://cygwin.com/bugs.html: o Please describe how to reproduce the problem, including a test case, if possible. o Please include at least the version number of the Cygwin release you are using along with the operating system name and its version number, for example, cygwin v1.3.13 under NT 4.0. o Most of the information about your Cygwin environment is listed by running 'cygcheck -s -v -r cygcheck.txt'. Please include cygcheck.txt *AS AN ATTACHMENT* to your report. It is important that you include it as an attachment so that searches of the mailing-list archives give fewer false matches. If you provide the output of cygcheck, then Randall Schulz's guess about an incomplete installation could be checked. -Original Message- From: Danny Sauer [mailto:cygwin_list;dannysauer.com] Sent: Wednesday, November 06, 2002 6:14 PM To: [EMAIL PROTECTED] Subject: gcc (as.exe) install error I recently installed cygwin 1.3.14-1 (according to cygcheck). gcc is unable to compile c source code (gcc claims to be version 3.2). Example code from test.c: --- #include stdio.h int main(){ printf(hello\n); } --- Not complicated code by any stretch of the imagination. It compiles fine with gcc on the linux box next door, not suprisingly. I've tried doing a complete install of the entire cygwin env., and uninstalling followed by reinstalling the development group (and the binutils package individually). I still get this error when I try to compile: --- $ gcc -o test.exe test.c gcc: installation problem, cannot exec '/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwi n/bin/as.exe': Invalid argument --- If I copy and paste the path to as.exe, it runs just fine. The file exists. I've tried it without the -o test.exe part - same result. I tried moving the file from a network mounted drive to a local path - same result. My searches turned up nothing, but then, I may have been looking in the wrong place. If someone could either point me to that place or just solve the problem, I'd be somewhat appreciative. :) Thanks a bunch. --Danny -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: gcc (as.exe) install error
On Wed, 06 Nov 2002 16:11:49 -0800 Randall R Schulz [EMAIL PROTECTED] wrote: How is the (merely) potential conflict between the output of Danny's compilation (test.exe) going to lead gcc to produce an Invalid argument error? Especially when the assembler runs (or would run) before test.exe gets written? Also note that test is a shell built-in both in BASH and Ash. True. I focused on the wrong phrases in the problem description. -- Mac :}) ** I normally forward private questions to the appropriate mail list. ** Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/