From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6990 invoked by alias); 20 May 2014 18:18:19 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 6977 invoked by uid 89); 20 May 2014 18:18:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ie0-f182.google.com Received: from mail-ie0-f182.google.com (HELO mail-ie0-f182.google.com) (209.85.223.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 20 May 2014 18:18:16 +0000 Received: by mail-ie0-f182.google.com with SMTP id as1so868410iec.41 for ; Tue, 20 May 2014 11:18:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=d7Ns5EuUbEpXL6SXZCmMSKffrSTSxvLdtxf/57wp/nw=; b=Z5x6aJvKNq33Jx6UIMNfFPtGIjBW2qdX9PO3n50juXmB4XSJ/EGKnvt87d1SFKUrI6 Zea7Myie1fOwW0XrFom8uLEgfZQvUugkx78genxgMZK6IWhpbN2QAY91rtmI4ud/j0jt 474Y2rZQTRgnycZ0nE6dd9Pa0xRva70OccSxXO2srsrHfVgZtnlxtkwVLIDg9wZjhGOl hKBSl/Eodb1cnY+ivJhHMZMw2Yu40sjGDxNzz5tOMnYn1Yj/9SCvKhMkgwKKLX6a7VIA d3IfPM03DdBTydAWhFHCLFAs5+tBXYoDfK2D8ez8xs3HPpUrXRxtFnkWUdGCc14Xgn7m QxJw== X-Gm-Message-State: ALoCoQnnsbRyCj9eeiGGoTjUbe1Br1debCbS+tOI5YphhYdaY3CyZ5pZnoKWT4JB+AW537utMunl X-Received: by 10.50.20.97 with SMTP id m1mr7461519ige.28.1400609894988; Tue, 20 May 2014 11:18:14 -0700 (PDT) Received: from [10.10.15.33] ([174.47.110.34]) by mx.google.com with ESMTPSA id y15sm30701867igy.2.2014.05.20.11.18.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 May 2014 11:18:14 -0700 (PDT) Message-ID: <537B9C64.5040108@breisch.org> Date: Tue, 20 May 2014 19:18:00 -0000 From: "Chris J. Breisch" User-Agent: Postbox 3.0.9 (Windows/20140128) MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: g++ fails in cc1plus due to path References: <1B8881EC902DA942AD8AC8761DBA0B62570987A6@TAMANS-MB101V.thcg.net> In-Reply-To: <1B8881EC902DA942AD8AC8761DBA0B62570987A6@TAMANS-MB101V.thcg.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00409.txt.bz2 Cook, Henry wrote: > I'm running 32 bit Cygwin on a 64 bit machine to build 32 bit binaries. > Trying to build a simple program fails due to a pathing issue related > to g++/cc1plus. I've tried several Cygwin re-installs, so that is not > the issue. Calling "g++ foo.cpp" just hangs and never terminates. > The program is a simple: int main(){return 0;}. 1) I'm going to beat everyone else to the punch and suggest you go here: https://cygwin.com/problems.html In particular, a cygcheck output looks like it might be useful. 2) Can you please convince your mail program to put in a line break occasionally? 3) I think I disagree with you that your install is not the issue, since your test program compiles and runs perfectly for me. I did change the return value to 5 for testing purposes. $ cat > foo.cpp << EOF > int main() { return 5; } > EOF $ g++ foo.cpp $ ./a.exe $ echo $? 5 > > I get the following from strace. This shows that the initialization path > is \??\C:\Windows instead of \??\C:\cygwin. I don't know where this is coming from. > > 0 0 [main] cc1plus (9284) ********************************************** > 192 192 [main] cc1plus (9284) Program name: C:\cygwin\lib\gcc\i686-pc-cygwin\4.8.2\cc1plus.exe (windows pid 9284) > 45 237 [main] cc1plus (9284) OS version: Windows NT-6.1 > 53 290 [main] cc1plus (9284) ********************************************** I don't see any initialization path stuff in my strace. I suspect you have an old cygwin1.dll somewhere, and running cygcheck as described on the "Reporting Problems" page linked above will likely point that out. Are you running cc1plus directly? -- Chris J. Breisch -- 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