delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/06/02/16:08:29

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=gAunek3+70/uwWou
KnMoAQcYX1gTtciN1f3869lpeAdFkzvQnXT7wJ9HeYvKUYi2GX6T//NhCoXf/A3Q
kNdjTAb9oBdqocC/tmPVzKgg5UmE8xz+RzgtTIubmjVUcOQPikoH03J1wkWk9zp8
eGXHIoc+m3LQwT420T3r5j9vDpU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=EbMsRlYudXQ3Tfa5YlJQaG
Xeeuw=; b=FRq9FOwZlxNncKDD2U7OyV/J/yXS5iaEqt4rZcP6YsUrvjLkrFPnNF
XhWeHl7CCc7D5O4ranfatF3YY/uJRNw4miwAgvBnWEHT4CddajpVcIIctkICH/Lv
WLE/T9BvRoXrN8gKbk4HPCmgMugQ99xS59urHdPxBfUsS0GOYF5Z0=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.3 required=5.0 tests=AWL,BAYES_50,EXECUTABLE_URI,KAM_EXEURI,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2
X-HELO: vms173025pub.verizon.net
Message-id: <538CD995.2050903@cygwin.com>
Date: Mon, 02 Jun 2014 16:07:49 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: It's back -- "gcc: error: spawn: No such file or directory"
References: <236868794 DOT 501756 DOT 1401726522544 DOT JavaMail DOT zimbra AT coherentlogix DOT com> <538CB578 DOT 6040801 AT cygwin DOT com> <691109128 DOT 508883 DOT 1401736763106 DOT JavaMail DOT zimbra AT coherentlogix DOT com>
In-reply-to: <691109128.508883.1401736763106.JavaMail.zimbra@coherentlogix.com>

On 06/02/2014 03:19 PM, David Friedman wrote:
>> From: "Larry Hall (Cygwin)"
>> Sent: Monday, June 2, 2014 12:33:44 PM
>> Subject: Re: It's back -- "gcc: error: spawn: No such file or directory"
>
>> On 06/02/2014 12:28 PM, David Friedman wrote:
>
>> <snip>
>
>>>    as -v -o /cygdrive/c/DOCUME~1/friedman/LOCALS~1/Temp/ccASOmoc.o /cygdrive/c/DOCUME~1/friedman/LOCALS~1/Temp/ccGXQsYR.s
>>> gcc: error: spawn: No such file or directory
>>>
>>> Does "as" mean the assembler? If it's not in /bin or /usr/bin, where is it?
>
>> It is in /usr/bin.
>
>> <https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86%2Fbinutils%2Fbinutils-2.24.51-3&grep=as.exe>
>
>> --
>> Larry
> ________
>
> I ran find for as.exe, and it turned out to be in /usr/i686-pc-mingw32/bin.
>
> Added that to my PATH, and now gcc goes past that point and fails with:
>
> /usr/i686-pc-mingw32/bin/ld: cannot find -ladvapi32
> /usr/i686-pc-mingw32/bin/ld: cannot find -lshell32
> /usr/i686-pc-mingw32/bin/ld: cannot find -luser32
> /usr/i686-pc-mingw32/bin/ld: cannot find -lkernel32
> collect2: error: ld returned 1 exit status
>
> Ran find for *advapi32*, and found libadvapi32.a in /usr/lib/w32api.
> Added  that to my PATH, and got the same error again.

Right.  This is the wrong 'as' if you want to build Cygwin binaries.
And if this is the only 'as' you found on your system, then your
'binutils' installation is corrupt.  You should see this by running
'cygcheck -c'.

> At this point I can only conclude that there is something wrong with my
> Cygwin installation, that something failed to complete on the gcc 4.3.4 to
> 4.8.3 update; it was working fine before this. All I can think of to do is
> wipe out Cygwin and do a complete up-to-date reinstall. Meanwhile I
> installed MinGW with MSYS and this gives me a gcc 4.8.3 that I can at least
> finish my current project with.

It may not require all that but if you do so, then it should resolve the
issue too.  Definitely 'binutils' isn't installed (completely/correctly).
But then again, if all that you want is Windows-native binaries, you're
good with MinGW.

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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