gcc doesn't work: gcc: installation problem, cannot exec `cc1': No such file or directory
Hello! I installed the cygwin environment 1.3.20-1 including gcc on a Win2000 PC, and gcc does not work: $ gcc hello.c -lm gcc: installation problem, cannot exec `cc1': No such file or directory $ gcc --version gcc (GCC) 3.2 20020927 (prerelease) Copyright (C) 2002 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. $ gcc -print-search-dirs install: /usr/lib/gcc-lib/i686-pc-cygwin/3.2/ programs: =../lib/gcc-lib/i686-pc-cygwin/3.2/:../lib/gcc-lib/:/usr/lib/gcc-lib/i 686-pc-cygwin/3.2/:/usr/lib/gcc-lib/i686-pc-cygwin/3.2/:/usr/lib/gcc-lib/i68 6-pc -cygwin/:/usr/lib/gcc/i686-pc-cygwin/3.2/:/usr/lib/gcc/i686-pc-cygwin/:../li b/gc c-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/i686-pc-cygwin/3.2/: ../l ib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/:/usr/lib/gcc-l ib/i 686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/i686-pc-cygwin/3.2/:/usr/li b/gc c-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ libraries: =../lib/gcc-lib/i686-pc-cygwin/3.2/:../lib/gcc-lib/:/usr/lib/gcc-lib/ i686-pc-cygwin/3.2/:/usr/lib/gcc/i686-pc-cygwin/3.2/:../lib/gcc-lib/i686-pc- cygw in/3.2/../../../../i686-pc-cygwin/lib/i686-pc-cygwin/3.2/:../lib/gcc-lib/i68 6-pc -cygwin/3.2/../../../../i686-pc-cygwin/lib/:/usr/lib/gcc-lib/i686-pc-cygwin/ 3.2/ ../../../../i686-pc-cygwin/lib/i686-pc-cygwin/3.2/:/usr/lib/gcc-lib/i686-pc- cygw in/3.2/../../../../i686-pc-cygwin/lib/:../lib/gcc-lib/i686-pc-cygwin/3.2/../ ../. ./i686-pc-cygwin/3.2/:../lib/gcc-lib/i686-pc-cygwin/3.2/../../../:/usr/lib/g cc-l ib/i686-pc-cygwin/3.2/../../../i686-pc-cygwin/3.2/:/usr/lib/gcc-lib/i686-pc- cygw in/3.2/../../../:/lib/i686-pc-cygwin/3.2/:/lib/:/usr/lib/i686-pc-cygwin/3.2/ :/us r/lib/ I can not explain the .. in the paths. The files are in /lib $ ls -l /lib/gcc-lib/ total 0 drwx--+ 3 Administ mkpasswd0 Feb 14 13:46 i686-pc-cygwin drwxrwxrwx+ 3 e09nemh0 mkpasswd0 Feb 14 13:47 i686-pc-mingw32 and /usr/lib $ ls -l /usr/lib/gcc-lib/ total 0 drwx--+ 3 Administ mkpasswd0 Feb 14 13:46 i686-pc-cygwin drwxrwxrwx+ 3 e09nemh0 mkpasswd0 Feb 14 13:47 i686-pc-mingw32 So it looks like it should, except for the search paths I Does anybody have a clue why they are not found by gcc? With best regards Hartmut Niemann -- Dr. Hartmut Niemann Siemens AG TS GT E3 91052 Erlangen, Werner-von-Siemens-Str. 67 Fon ++49-9131-7-34264 -- Fax ++49-9131-828-34264 [EMAIL PROTECTED] Digitale Störstromüberwachung im Intranet: http://sibas32.ts.siemens.de/hw_doku/uwds/index.htm -- 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 doesn't work: gcc: installation problem, cannot exec `cc1': No such file or directory
Niemann Hartmut wrote: I installed the cygwin environment 1.3.20-1 including gcc on a Win2000 PC, and gcc does not work: $ gcc hello.c -lm gcc: installation problem, cannot exec `cc1': No such file or directory I had a similar problem recently that was cured by a reinstall. -- Josef Bühler -- 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/
cannot exec `cc1': No such file or directory
Hi, after updating to the latest 3.2 (from 8h ago) i get the above error message. Should gcc find in /usr/lib/gcc-lib/arch whateverversion/cc1 on his own? sample line: gcc -mno-cygwin -o hello.exe hello.c Also does not find his crt2.o and crtbegin.o etc. (gcc invokes: ld -Bdynamic -o hello.exe crt2.o crtbegin.o ...) Later on failes with: ld: cannot find -lgcc. (libgcc.a is in /usr/lib/gcc-lib/i686-pc-cygwin/3.2) Got solution? skyper -- PGP: dig segfault.net skyper axfr|grep TX|cut -f2 -d\|sort|cut -f2 -d\; -- 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: cannot exec `cc1': No such file or directory
On Wed, Oct 16, 2002 at 09:00:59AM +, skyper wrote: Hi, after updating to the latest 3.2 (from 8h ago) i get the above error message. Should gcc find in /usr/lib/gcc-lib/arch whateverversion/cc1 on his own? sample line: gcc -mno-cygwin -o hello.exe hello.c Also does not find his crt2.o and crtbegin.o etc. (gcc invokes: ld -Bdynamic -o hello.exe crt2.o crtbegin.o ...) Later on failes with: ld: cannot find -lgcc. (libgcc.a is in /usr/lib/gcc-lib/i686-pc-cygwin/3.2) Got solution? Please send the output of 'cygcheck -r -s -v' as an attachment to this mailing list. -- 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: cannot exec `cc1': No such file or directory
On Wed, Oct 16, 2002 at 11:39:15AM -0400, Christopher Faylor wrote: On Wed, Oct 16, 2002 at 09:00:59AM +, skyper wrote: Hi, after updating to the latest 3.2 (from 8h ago) i get the above error message. Should gcc find in /usr/lib/gcc-lib/arch whateverversion/cc1 on his own? sample line: gcc -mno-cygwin -o hello.exe hello.c Also does not find his crt2.o and crtbegin.o etc. (gcc invokes: ld -Bdynamic -o hello.exe crt2.o crtbegin.o ...) Later on failes with: ld: cannot find -lgcc. (libgcc.a is in /usr/lib/gcc-lib/i686-pc-cygwin/3.2) Got solution? Please send the output of 'cygcheck -r -s -v' as an attachment to this mailing list. here we go... skyper -- PGP: dig segfault.net skyper axfr|grep TX|cut -f2 -d\|sort|cut -f2 -d\; Cygwin Win95/NT Configuration Diagnostics Current System Time: Thu Oct 17 05:11:25 2002 Windows 2000 Advanced Server Ver 5.0 Build 2195 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\sbin C:\cygwin\usr\sbin SysDir: C:\WINNT\System32 WinDir: C:\WINNT CYGWIN = `tty notitle glob' HOME = `C:\cygwin\home\Administrator' MAKE_MODE = `unix' PWD = `/home/Administrator/thc/thcirc-0.2e' USER = `root' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' APPDATA = `C:\Documents and Settings\Administrator\Application Data' COMMONPROGRAMFILES = `C:\Program Files\Common Files' COMPUTERNAME = `WORLD-NN66MXSD9' COMSPEC = `C:\WINNT\system32\cmd.exe' HOMEDRIVE = `C:' HOMEPATH = `\' INCLUDE = `C:\Program Files\Microsoft Visual Studio\VC98\atl\include;C:\Program Files\Microsoft Visual Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual Studio\VC98\include' LIB = `C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;C:\Program Files\Microsoft Visual Studio\VC98\lib' LOGNAME = `root' LOGONSERVER = `\\WORLD-NN66MXSD9' MAIL = `/var/spool/mail/root' MANPATH = `:/usr/ssl/man:/usr/ssl/man' MSDEVDIR = `C:\Program Files\Microsoft Visual Studio\Common\MSDev98' NUMBER_OF_PROCESSORS = `1' OLDPWD = `/home/Administrator/thc' 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 8 Stepping 6, GenuineIntel' PROCESSOR_LEVEL = `6' PROCESSOR_REVISION = `0806' PROGRAMFILES = `C:\Program Files' PROMPT = `$P$G' SHELL = `/bin/bash' SHLVL = `2' SSH_CLIENT = `192.168.1.71 46068 22' SSH_TTY = `/dev/tty1' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINNT' TEMP = `c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp' TERM = `screen' TMP = `c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp' USERDOMAIN = `WORLD-NN66MXSD9' USERNAME = `Administrator' USERPROFILE = `C:\Documents and Settings\Administrator' 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 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) = `C:\cygwin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `C:\cygwin/bin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `C:\cygwin/lib' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options a: fd N/AN/A c: hd NTFS9522Mb 30% CP CS UN PA FC d: cd N/AN/A C:\cygwin / system binmode C:\cygwin/bin /usr/bin system binmode C:\cygwin/lib /usr/lib system binmode . /cygdrive userbinmode,cygdrive Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\bin\cpp.exe Found: C:\cygwin\bin\find.exe Found: C:\cygwin\bin\gcc.exe Found: C:\cygwin\bin\gdb.exe Found: C:\cygwin\bin\ld.exe Found: C:\cygwin\bin\ls.exe Found: C:\cygwin\bin\make.exe Found: C:\cygwin\bin\sh.exe 58k 2002/05/07 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0 cygbz2-1.dll v0.0 ts=2002/5/7 6:33 54k 2002/01/27 C:\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0 sys=4.0 cygbz21.0.dll v0.0 ts=2002/1/27 1:07 6k 2002/06/24 C:\cygwin\bin\cygcharset-1.dll - os=4.0 img=1.0 sys=4.0 cygcharset-1.dll v0.0 ts=2002/6/24 18:23 625k 2002/08/09 C:\cygwin\bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0 cygcrypto.dll v0.0 ts=2002/8/9 20:20 452k 2002/07/17 C:\cygwin\bin\cygcurl-2.dll -
Re: cannot exec `cc1': No such file or directory
On Wed, Oct 16, 2002 at 05:10:03PM +, skyper wrote: On Wed, Oct 16, 2002 at 11:39:15AM -0400, Christopher Faylor wrote: Please send the output of 'cygcheck -r -s -v' as an attachment to this mailing list. here we go... That helped. You need to download the gcc-mingw package. I thought I'd made this a requirement for gcc but, actually, it was something that I planned on doing when gcc 3.2 became current and I forgot to do it. Sorry about that. So, the solution for now is to rerun setup.exe, click on Devel and click on gcc-mingw. For the future, this should be selected automatically. 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/