www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/09/12:41:13

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3A0AE178.7FF31F35@ece.gatech.edu>
Date: Thu, 09 Nov 2000 12:40:08 -0500
From: "Charles S. Wilson" <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.75 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Topas <yrwang AT cc DOT nctu DOT edu DOT tw>
CC: cygwin AT sources DOT redhat DOT com
Subject: Re: Can not found crt1.o when using -mno-cygwin option
References: <002101c04a1d$60ae0c20$de90718c AT cm DOT nctu DOT edu DOT tw>

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 AT sourceware DOT cygnus DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019