From: "Chris J. Breisch" <chris.ml@breisch.org>
To: cygwin@cygwin.com
Subject: Re: g++ fails in cc1plus due to path
Date: Tue, 20 May 2014 19:18:00 -0000 [thread overview]
Message-ID: <537B9C64.5040108@breisch.org> (raw)
In-Reply-To: <1B8881EC902DA942AD8AC8761DBA0B62570987A6@TAMANS-MB101V.thcg.net>
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
next prev parent reply other threads:[~2014-05-20 18:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-20 18:18 Cook, Henry
2014-05-20 19:18 ` Chris J. Breisch [this message]
2014-05-20 23:40 Cook, Henry
2014-05-21 1:43 ` Chris J. Breisch
2014-05-21 7:13 ` Larry Hall (Cygwin)
2014-05-21 2:26 ` Larry Hall (Cygwin)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=537B9C64.5040108@breisch.org \
--to=chris.ml@breisch.org \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).