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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; q=dns; s=default; b=o+Qw06yGenOSvHGuDMVTZLNvabyyVs wzyRHL2Cfl7BWqyMZrG8H4qI1jK+Iw6viijenqHwqk2U4zpPShAnjXbG4Q4i+aJR vFUbAKgOauugmYR53fpz17eRL2IvRWTEQYUiFKNsJ359gtyvSzK8dSLtJCfoptDR ygRRF76vtEj2k= 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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; s=default; bh=gk3IK0r+drpQrlARFdyj78qAXL8=; b=DSbT pf61PcLmMjXdN5CZNMSV+6yIhB+804d7ga/kX4aY92LPV26JuFt5KWrrEjEqj8ak YR4lek8w1LXqhHruPx+0SShAF+Vh8zJkJlGIP8kqgwuu7HPbDxg71LnckwuP/jRk 6gutdpNtOYyYtUoMde1x/IxRb45IlOGLyfSow+E= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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.5 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,FSL_HELO_BARE_IP_2,RCVD_NUMERIC_HELO,RDNS_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 X-HELO: plane.gmane.org To: cygwin AT cygwin DOT com From: jojelino Subject: Re: gcc-4.8.2-1: /bin/gcc fails Date: Sat, 23 Nov 2013 04:02:08 +0900 Lines: 31 Message-ID: References: <52749A63 DOT 70803 AT acm DOT org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <52749A63.70803@acm.org> X-IsSubscribed: yes On 2013-11-02 PM 3:23, David Rothenberger wrote: > With gcc-4.8.2-1, the following fails: > > % touch /tmp/t.c > % /bin/gcc -c /tmp/t.c > gcc: error: spawn: No such file or directory > > This works correctly if gcc is invoked as "gcc" or "/usr/bin/gcc". > It also works correctly with 4.8.1. > > It appears this is due to a change from /usr/lib to /usr/libexec. > /bin/gcc attempts to find cc1 under "/bin/../libexec/...". In 4.8.1, > this was "/bin/../lib/...", which works because /lib is mapped to > /usr/lib by Cygwin. /usr/bin/gcc uses "/usr/bin/../libexec" which > also works fine. > > I can work around the problem as follows: > > % ln -s /libexec /usr/libexec > This problem is caused by zero-byte of ${builddir}/host-i686-pc-cygwin/specs and the specs file is created by bootstrapped gcc executable. the bootstrapped gcc crashes when generating specs file, which is the cause of the problem mentioned in this report. the maintainer of gcc should have experienced this problem. to workaround this problem, the package maintainer needed to supress C{XX}FLAGS -static-libgcc -static-libstdc++ in host-i686-pc-cygwin/gcc/Makefile. -- Regards. -- 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