gcc: installation problem, cannot exec 'cc1'

Thomas Antony tomasm2005@gmail.com
Fri Jan 12 02:54:00 GMT 2007


Hello,
    It still doesnt work. I reinstalled all the GCC and GCC-mingw
packages. The cc1.exe is present. But it still doesnt work.
Here is output of ls -l /usr/lib/gcc/i686-pc-mingw32/3.4.4/

$ ls -l /usr/lib/gcc/i686-pc-mingw32/3.4.4/
total 1234
-rwxr-xr--+ 1 Tom Users     547 Jan  6 20:44 cc1.exe.lnk
-rwxr-xr--+ 1 Tom Users     567 Jan  6 20:44 cc1plus.exe.lnk
-rwxr-xr--+ 1 Tom Users     573 Jan  6 20:44 collect2.exe.lnk
-rwx------+ 1 Tom None      412 May 24  2005 crtbegin.o
-rwx------+ 1 Tom None      492 May 24  2005 crtend.o
drwxrwxr--+ 2 Tom Users       0 Jan 12 08:18 debug
drwxrwxr--+ 3 Tom Users       0 Jan 12 08:18 include
drwxrwxr--+ 3 Tom Users       0 Jan 12 08:18 install-tools
-rwx------+ 1 Tom None    52594 May 24  2005 libgcc.a
-rwx------+ 1 Tom None     9772 May 24  2005 libgcov.a
-rwx------+ 1 Tom None  1063604 May 24  2005 libstdc++.a
-rwx------+ 1 Tom None      685 May 24  2005 libstdc++.la
-rwx------+ 1 Tom None   116074 May 24  2005 libsupc++.a
-rwx------+ 1 Tom None      685 May 24  2005 libsupc++.la
-rwxr-xr--+ 1 Tom Users     537 Jan  6 20:44 specs.lnk

And here is the output of the second one:

$ ls -l /etc/postinstall/gcc*
-rwxr-x---+ 1 Tom Users   69347 Jun  4  2005 /etc/postinstall/gcc-mingw-core-3.4
.4-20050522-1.tgz
-rwxr-x---+ 1 Tom Users     787 Jun  4  2005 /etc/postinstall/gcc-mingw-core.sh.
done
-rwxr-x---+ 1 Tom Users 1964271 Jun  4  2005 /etc/postinstall/gcc-mingw-g++-3.4.
4-20050522-1.tgz
-rwxr-x---+ 1 Tom Users     783 Jun  4  2005 /etc/postinstall/gcc-mingw-g++.sh.d
one
-rwxr-x---+ 1 Tom Users     783 Jun  9  2005 /etc/postinstall/gcc-mingw-g77.sh.d
one

I ran the cc1.exe link from windows. It gave me error that cygwin1.dll
couldnt be found. But on adding the Cygwin/bin directory to the PATH
(in windows), removed that error and CC1.exe shows a blank console
window. But the error while compiling still persists.

Maybe I should backup my stuff and try a new install.

~
Thomas

On 1/11/07, Brian Dessent <brian@dessent.net> wrote:
> Don't do that.  It's not necessary and won't help.  When you specify
> -mno-cygwin you switch to using MinGW's version of gcc, an entirely
> separate version of gcc that is installed alongside the Cygwin version.
> This is why you must install the gcc-mingw-* packages for this to work.
> Incidently, I don't understand how you managed to at first install
> gcc-core but *not* gcc-mingw-core, since gcc-core lists gcc-mingw-core
> as a prerequisite in the setup.ini file (and so on for the other
> languages), so selecting one should have selected the other, and
> breaking this dependancy should have given you a big fat warning
> message.
>
> The cc1 that it is looking for when you use -mno-cygwin should be
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/cc1.exe.  What does "ls -l
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/" show?  Did you have any problems
> running the postinstall scripts?  Do you have any that are not renamed
> .done?  What does "ls -l /etc/postinstall/gcc*" show?
>
> > ld: crt2.o: No such file: No such file or directory
>
> This is part of mingw-runtime, and should be present in /usr/lib/mingw.
>
> Brian
>
> --
> 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/
>
>

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



More information about the Cygwin mailing list