From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28034 invoked by alias); 20 May 2014 17:17:43 -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 28018 invoked by uid 89); 20 May 2014 17:17:42 -0000 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 Received: from mail1.bemta8.messagelabs.com (HELO mail1.bemta8.messagelabs.com) (216.82.243.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 20 May 2014 17:17:40 +0000 Received: from [216.82.241.211:44961] by server-4.bemta-8.messagelabs.com id 2A/F9-23343-13E8B735; Tue, 20 May 2014 17:17:37 +0000 X-Env-Sender: Henry.Cook@covidien.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 Received: (qmail 19976 invoked from network); 20 May 2014 17:17:37 -0000 Received: from unknown (HELO XAMANS-EG100V.thcex.com) (216.75.208.31) by server-12.tower-85.messagelabs.com with AES128-SHA encrypted SMTP; 20 May 2014 17:17:37 -0000 Received: from TAMANS-CA102V.thcg.net (10.80.9.32) by mx03ni.covidien.com (216.75.208.31) with Microsoft SMTP Server (TLS) id 14.3.174.1; Tue, 20 May 2014 13:16:43 -0400 Received: from TAMANS-MB101V.thcg.net ([169.254.2.42]) by TAMANS-CA102V.thcg.net ([10.80.9.32]) with mapi id 14.03.0174.001; Tue, 20 May 2014 13:17:17 -0400 From: "Cook, Henry" To: "cygwin@cygwin.com" Subject: g++ fails in cc1plus due to path Date: Tue, 20 May 2014 18:18:00 -0000 Message-ID: <1B8881EC902DA942AD8AC8761DBA0B62570987A6@TAMANS-MB101V.thcg.net> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2014-05/txt/msg00408.txt.bz2 I'm running 32 bit Cygwin on a 64 bit machine to build 32 bit binaries.=A0 = Trying to build a simple program fails due to a pathing issue related to g+= +/cc1plus.=A0 I've tried several Cygwin re-installs, so that is not the iss= ue.=A0 Calling "g++ foo.cpp" just hangs and never terminates.=A0 The progra= m is a simple: int main(){return 0;}.=A0=20 I get the following from strace.=A0 This shows that the initialization path= is \??\C:\Windows instead of \??\C:\cygwin.=A0 I don't know where this is = coming from. =A0=A0=A0 0=A0=A0=A0=A0=A0=A0 0 [main] cc1plus (9284) *********************= ************************* =A0 192=A0=A0=A0=A0 192 [main] cc1plus (9284) Program name: C:\cygwin\lib\g= cc\i686-pc-cygwin\4.8.2\cc1plus.exe (windows pid 9284) =A0=A0 45=A0=A0=A0=A0 237 [main] cc1plus (9284) OS version:=A0=A0 Windows N= T-6.1 =A0=A0 53=A0=A0=A0=A0 290 [main] cc1plus (9284) ***************************= ******************* 1209=A0=A0=A0 1499 [main] cc1plus (9284) sigprocmask: 0 =3D sigprocmask (0,= 0x6123D468, 0x610FBA10) =A0 518=A0=A0=A0 2017 [main] cc1plus 9284 open_shared: name shared.5, n 5, = shared 0x60FF0000 (wanted 0x60FF0000), h 0x8C, *m 0 =A0=A0 81=A0=A0=A0 2098 [main] cc1plus 9284 shared_info::initialize: Instal= lation root: <\??\C:\Windows> key: <090b3d8675b3a96d> At the end of the output, I see this, which is a problem because it's a blo= cking read to a path that doesn't exist. =A0=A0 56=A0 157867 [main] cc1plus 9284 path_conv::check: this->path(C:\Win= dows\usr\include), has_acls(1) =A0=A0 37=A0 157904 [main] cc1plus 9284 __set_errno: int stat_worker(path_c= onv&, __stat64*):1858 setting errno 2 =A0=A0 37=A0 157941 [main] cc1plus 9284 stat_worker: -1 =3D (\??\C:\Windows= \usr\include,0x1C8AAC0) 1780=A0 159721 [main] cc1plus 9284 time: 1400604366 =3D time(0) =A0=A0 38=A0 159759 [main] cc1plus 9284 fstat64: 0 =3D fstat(0, 0x80056750) =A0=A0 58=A0 159817 [main] cc1plus 9284 read: read(0, 0x8006C528, 8192) blo= cking 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