This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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}
 
 *startfile:
-%{shared|mdll: %{mno-cygwin:dllcrt1%O%s}}   %{!shared: %{!mdll:
%{!mno-cygwin:crt0%O%s} %{mno-cygwin:-L /usr/lib/mingw crt1%O%s}  
%{pg:gcrt0%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}}}
 
 *switches_need_spaces:
 
@@ -41,7 +41,7 @@
 0
 
 *version:
-2.95.2-3
+2.95.2-4
 
 *multilib:
 . ;




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 cygwin-unsubscribe@sourceware.cygnus.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]