delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/05/20/13:17:57

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:from:to:subject:date:message-id:content-type
:content-transfer-encoding:mime-version; q=dns; s=default; b=HMM
cl3q5feAzL8y/L3cfeAEs0v0nLnk2QWvAr3x0bX+pprurko/K5UGDooZwf85PiC1
ypbDTLq50Qx+N6EZ+hehjK9u3ilVwnbCaejrambZZ2HKNfKnjGsdNKfev9jICE5X
9z7Hm8cV8TTCtEHp7SFpcegP+TmyPCOpo5yPTLvg=
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:from:to:subject:date:message-id:content-type
:content-transfer-encoding:mime-version; s=default; bh=Erllp301U
/SIpgr8Vx5eekx2tKk=; b=oqHH5YuyBbpIRSdggP4OO/awlnwHwK00Iey4hDlqI
AyWpgvD/ScETrrN7mF9LIPEbT7VUzB2Y3aTAwZU1Und024KMfik4ir6UsMo/o8VI
0HWjzu4VwTTtSASLZA91VlbjjZfOOnQfIdCKXpol4yIpSMvHj5mz1yhHn3zHJ9EW
UY=
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.9 required=5.0 tests=AWL,BAYES_05,RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY autolearn=ham version=3.3.2
X-HELO: mail1.bemta8.messagelabs.com
X-Env-Sender: Henry DOT Cook AT covidien DOT com
X-Msg-Ref: server-12.tower-85.messagelabs.com!1400606255!34661818!8
X-StarScan-Received:
X-StarScan-Version: 6.11.3; banners=-,-,-
X-VirusChecked: Checked
From: "Cook, Henry" <Henry DOT Cook AT covidien DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: g++ fails in cc1plus due to path
Date: Tue, 20 May 2014 17:17:07 +0000
Message-ID: <1B8881EC902DA942AD8AC8761DBA0B62570987A6@TAMANS-MB101V.thcg.net>
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s4KHHrbB026419

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;}.  

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) **********************************************
1209    1499 [main] cc1plus (9284) sigprocmask: 0 = sigprocmask (0, 0x6123D468, 0x610FBA10)
  518    2017 [main] cc1plus 9284 open_shared: name shared.5, n 5, shared 0x60FF0000 (wanted 0x60FF0000), h 0x8C, *m 0
   81    2098 [main] cc1plus 9284 shared_info::initialize: Installation root: <\??\C:\Windows> key: <090b3d8675b3a96d>

At the end of the output, I see this, which is a problem because it's a blocking read to a path that doesn't exist.

   56  157867 [main] cc1plus 9284 path_conv::check: this->path(C:\Windows\usr\include), has_acls(1)
   37  157904 [main] cc1plus 9284 __set_errno: int stat_worker(path_conv&, __stat64*):1858 setting errno 2
   37  157941 [main] cc1plus 9284 stat_worker: -1 = (\??\C:\Windows\usr\include,0x1C8AAC0)
1780  159721 [main] cc1plus 9284 time: 1400604366 = time(0)
   38  159759 [main] cc1plus 9284 fstat64: 0 = fstat(0, 0x80056750)
   58  159817 [main] cc1plus 9284 read: read(0, 0x8006C528, 8192) blocking

Thanks so much for your help!
Henry

--
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