Can not found crt1.o when using -mno-cygwin option

Charles S. Wilson
Thu Nov 9 09:40:00 GMT 2000

There seem to be a few mistakes in the specs file; the following seems
to work (however, the "right" fix is somewhere in the bowels of the gcc
source code, so that the specs file is *generated* to look like this).

#1) The specs file is using the wrong version number
#2) you can't specify "crt1.o" as a library (plus, there's a extraneous
space between '-L' and the '/usr/lib/mingw').  However, because libmingw
is in /usr/lib/mingw, you still need '-L/usr/lib/mingw' even though you
also specify /usr/lib/mingw/crt1.o explicitly)

--- specs.orig	Thu Nov  9 12:33:31 2000
+++ specs	Thu Nov  9 12:37:46 2000
@@ -26,7 +26,7 @@
 %{mno-cygwin: %{mthreads:-lmingwthrd} -lmingw32} -lgcc
%{mno-cygwin:-lmoldname -lcrtdll}
-%{shared|mdll: %{mno-cygwin:dllcrt1%O%s}}   %{!shared: %{!mdll:
%{!mno-cygwin:crt0%O%s} %{mno-cygwin:-L /usr/lib/mingw crt1%O%s}  
+%{shared|mdll: %{mno-cygwin:dllcrt1%O%s}}   %{!shared: %{!mdll:
%{!mno-cygwin:crt0%O%s} %{mno-cygwin:/usr/lib/mingw/crt1%O%s
-L/usr/lib/mingw}   %{pg:gcrt0%O%s}}}
@@ -41,7 +41,7 @@
 . ;

Topas wrote:
> After install cygwin-1.1.5-6, mingw-20001103-1, w32api-20001103-1, =
> gcc-2.95.2-4
> When compiling a program with -mno-cygwin option,=20
> >gcc t1.c -mno-cygwin
> /usr/bin/ld: cannot open crt1.o: No such file or directory
> collect2: ld returned 1 exit status
> Is there's any thing I forget to setup?
> And, Can I suggest to do something in setup.ini that
> cygwin-1.1.5-6, mingw-20001103-1, w32api-20001103-1, gcc-2.95.2-4 will
> be installed, when  the test version is selected. And,  cygwin-1.1.4,
> gcc-2.95-3 will be installed for the current version.
> Topas
> --
> Want to unsubscribe from this list?
> Send a message to

Want to unsubscribe from this list?
Send a message to

More information about the Cygwin mailing list