delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/05/20/14:18:37

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:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=RBChs7yJ4/KncEbGSYbj8m04SmzUrAPw46O5m1vd8cQ
M/onXgy3L98+WVJfLQTgeps9avw6vSO3/QgE4tk4uYHBt/6SUlsouEgq9PXZdlmq
wYWXe7rctbnioKtyIIjLAsD4u6pkDlwrrJNz8ctnU8NNV2/KZZCtR1ymZB2E7JDw
=
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:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=EXAxOW5zSn8vDK5p6WKwnv3AH8Y=; b=JTGrJSk3RGnEeCtBB
9Y8G7L2yg1b7U44Hb4Hvfx+ncwGVD7bwCuvjjzaJ7l3EssS8ka4TSX98FL+JW6VM
zauiFmfAvhBNLAEmjeNiczgjII0li96Ld9NsdZK8rzBVBS0GAg9OA05kzKzpXz2J
jh+1YOeB2BFzweAzmh3hv1ihX8=
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=-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
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)
Message-ID: <537B9C64.5040108@breisch.org>
Date: Tue, 20 May 2014 14:18:12 -0400
From: "Chris J. Breisch" <chris DOT ml AT breisch DOT org>
User-Agent: Postbox 3.0.9 (Windows/20140128)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: g++ fails in cc1plus due to path
References: <1B8881EC902DA942AD8AC8761DBA0B62570987A6 AT TAMANS-MB101V DOT thcg DOT net>
In-Reply-To: <1B8881EC902DA942AD8AC8761DBA0B62570987A6@TAMANS-MB101V.thcg.net>
X-IsSubscribed: yes

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

- Raw text -


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