Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Can I run ntox86-gcc within cygwin on Windows?: (5 Items)
   
Can I run ntox86-gcc within cygwin on Windows?  
I have intalled qnxsdp-6.4.1-200905201802-win32.exe on my windows XP machine. I am porting a big project which used to 
be built with cygwin and make files. I want to reuse my make files by simply change the compiler from gcc to qnx 
compiler (for example ntox86-gcc). But unfortunately compiler ntox86-gcc returns me an error saying:

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.


I did some experiments. command "ntox86-gcc --version" works, "ntox86-gcc helooworld.c" works under DOS window, and I 
can also compile the helloworld project under IDE. But if I do "ntox86-gcc helloworld.c" under cygwin, I will get the 
above error.

My cygwin is the latest  1.7.5-1. Any Idea what's went wrong here?



Re: Can I run ntox86-gcc within cygwin on Windows?  
6.4.1 tools are not cygwin - they use mingw, they work natively under 
cmd or bash shell (and other shells) which comes with installation.
Why you trying to run them from cygwin?

On 14/06/2010 5:20 PM, han wang wrote:
> I have intalled qnxsdp-6.4.1-200905201802-win32.exe on my windows XP machine. I am porting a big project which used to
 be built with cygwin and make files. I want to reuse my make files by simply change the compiler from gcc to qnx 
compiler (for example ntox86-gcc). But unfortunately compiler ntox86-gcc returns me an error saying:
>
> This application has requested the Runtime to terminate it in an unusual way.
> Please contact the application's support team for more information.
>
>
> I did some experiments. command "ntox86-gcc --version" works, "ntox86-gcc helooworld.c" works under DOS window, and I 
can also compile the helloworld project under IDE. But if I do "ntox86-gcc helloworld.c" under cygwin, I will get the 
above error.
>
> My cygwin is the latest  1.7.5-1. Any Idea what's went wrong here?
>
>
>
>
>
>
>
> _______________________________________________
>
> QNX Momentics Getting Started
> http://community.qnx.com/sf/go/post56798
>
>    
Re: Can I run ntox86-gcc within cygwin on Windows?  
oh, so there is no way to make it work with cygwin?

As I said, this is a big cross platform project. We utilized too many components like sed, perl, and so on, to make that
 run on Windows, as well as other linux/unix platforms, we have to use cygwin. 
RE: Can I run ntox86-gcc within cygwin on Windows?  
You should be able to run the QNX tool chain from a Cygwin shell. After
all it's just another shell. In fact it should work better now than in
the past when parts of our toolchain were built with Cygwin because
there will be no cygwin1.dll conflicts. 

Maybe the QNX gcc is picking something up from cygwin instead of QNX?
Make sure the PATH env var is clean before invoking the qnx compiler.

I just googled and people seem to be saying you need to do this first:

export TEMP=/tmp

If this doesn't help I can't tell what is the problem unfortunately. As
a test you can run the qnx gcc compiler from a windows command prompt
that was started within a cygwin shell. For example, open a cygwin
shell, type the command "cmd.exe", and then try to run the compiler. If
this does not work, then it must be something else set in your
environment variables.

Regards,
Max

-----Original Message-----
From: han wang [mailto:community-noreply@qnx.com] 
Sent: Tuesday, June 15, 2010 9:52 AM
To: momenticsgs-community
Subject: Re: Can I run ntox86-gcc within cygwin on Windows?

oh, so there is no way to make it work with cygwin?

As I said, this is a big cross platform project. We utilized too many
components like sed, perl, and so on, to make that run on Windows, as
well as other linux/unix platforms, we have to use cygwin. 



_______________________________________________

QNX Momentics Getting Started
http://community.qnx.com/sf/go/post56844
Re: RE: Can I run ntox86-gcc within cygwin on Windows?  
Thank you Max,

TEMP=/tmp

 is the exact magic I need. Now the compiler works.