Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - QNX IDE compile error when cygwin window open on my machine: (10 Items)
   
QNX IDE compile error when cygwin window open on my machine  
I am running QNX Momementics 4.6.0 from the QNX 6.4.1 software development suite.

I am compiling the code on a Windows XP machine.

An ARM BSP fails to compile when I have a cygwin shell open (cygwin is already installed on this machine and used for 
other purposes).  The CC1 compile that comes with QNX fails to find files due to some sort of conflict with an open 
cygwin window.  As soon as I exit the cygwin shell I am able to compile in QNX again.

Any ideas how to fix this incompatibility?
Re: QNX IDE compile error when cygwin window open on my machine  
Hi, Scott,

Can you be more specific about the nature of this conflict between cc1 
and cygwin?  It is my understanding that cc1 is not a cygwin executable; 
it's "pure Windows."

What error messages are you seeing on the console?

How many versions of cygwin do you have installed?  Are you perchance 
using the cygwin environment that is bundled with the Photon 
AppBuilder?  I ask because this only seems likely if you are attempting 
to load multiple versions of the cygwin DLL, which could conflict.  
Other users report no problems using cygwin with this and SDP release.

Cheers,

Christian


On 22/07/10 06:37 PM, Scott Branden wrote:
> I am running QNX Momementics 4.6.0 from the QNX 6.4.1 software development suite.
>
> I am compiling the code on a Windows XP machine.
>
> An ARM BSP fails to compile when I have a cygwin shell open (cygwin is already installed on this machine and used for 
other purposes).  The CC1 compile that comes with QNX fails to find files due to some sort of conflict with an open 
cygwin window.  As soon as I exit the cygwin shell I am able to compile in QNX again.
>
> Any ideas how to fix this incompatibility?
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post60394
>
>    


-- 
*Christian W. Damus*
Software Developer, IDE Team
QNX Software Systems <http://www.qnx.com/>;
RE: QNX IDE compile error when cygwin window open on my machine  
Hi Christian,

Please see the compile errors below.  Using cygcheck, it looks like I am using cygwin 1.5.25-15.
If I close the cygwin shell, the compile works fine.  If I have a cygwin shell open the QNX tools fail to compile.

make[5]: Entering directory `C:/qnx-workspace/bsp-vendor.testchip-src/src/hardware/devc/sertestchip/arm'
make -j 1 -Cle -fMakefile install
make[6]: Entering directory `C:/qnx-workspace/bsp-vendor.testchip-src/src/hardware/devc/sertestchip/arm/le'
C:/QNX641/host/win32/x86/usr/bin/qcc -Vgcc_ntoarm -c -O -Wc,-Wall -Wc,-Wno-parentheses -Wc,-fno-builtin -DNDEBUG   -I. -
IC:/qnx-workspace/bsp-vendor.testchip-src/src/hardware/devc/sertestchip/arm/le -IC:/qnx-workspace/bsp-vendor.testchip-
src/src/hardware/devc/sertestchip/arm -IC:/qnx-workspace/bsp-vendor.testchip-src/src/hardware/devc/sertestchip -IC:/qnx-
workspace/bsp-vendor.testchip-src/src/hardware/devc -IC:/qnx-workspace/bsp-vendor.testchip-src/src/hardware/devc/../../.
./install/usr/include/xilinx -IC:/qnx-workspace/bsp-vendor.testchip-src/src/hardware/devc/../../../install/usr/include -
IC:/QNX641/target/qnx6/usr/include    -EL         -DVARIANT_le -DVARIANT_sertestchip -DBUILDENV_qss  C:/qnx-workspace/
bsp-vendor.testchip-src/src/hardware/devc/sertestchip/externs.c 
In file included from C:/qnx-workspace/bsp-vendor.testchip-src/src/hardware/devc/sertestchip/externs.c:25:
C:/qnx-workspace/bsp-vendor.testchip-src/src/hardware/devc/sertestchip/externs.h:46:26: error: arm/typedefs.h: No such 
file or directory
make[6]: Leaving directory `C:/qnx-workspace/bsp-vendor.testchip-src/src/hardware/devc/sertestchip/arm/le'
make[5]: Leaving directory `C:/qnx-workspace/bsp-vendor.testchip-src/src/hardware/devc/sertestchip/arm'
make[4]: Leaving directory `C:/qnx-workspace/bsp-vendor.testchip-src/src/hardware/devc/sertestchip'
make[3]: Leaving directory `C:/qnx-workspace/bsp-vendor.testchip-src/src/hardware/devc'
make[2]: Leaving directory `C:/qnx-workspace/bsp-vendor.testchip-src/src/hardware'
make[1]: Leaving directory `C:/qnx-workspace/bsp-vendor.testchip-src/src'
C:/qnx-workspace/bsp-vendor.testchip-src/src/hardware/devc/sertestchip/externs.h:47:31: error: arm/testchip_uart.h: No 
such file or directory
cc: C:/QNX641/host/win32/x86/usr/lib/gcc/arm-unknown-nto-qnx6.4.0/4.3.3/cc1 caught signal 1
make[6]: *** [externs.o] Error 1
make[5]: *** [install] Error 2
make[4]: *** [install] Error 2
make[3]: *** [install] Error 2
make[2]: *** [install] Error 2
make[1]: *** [install] Error 2
make: *** [install] Error 2

Regards, 
Scott

-----Original Message-----
From: Christian Damus [mailto:community-noreply@qnx.com] 
Sent: July 23, 2010 9:57 AM
To: general-ide
Subject: Re: QNX IDE compile error when cygwin window open on my machine

Hi, Scott,

Can you be more specific about the nature of this conflict between cc1 
and cygwin?  It is my understanding that cc1 is not a cygwin executable; 
it's "pure Windows."

What error messages are you seeing on the console?

How many versions of cygwin do you have installed?  Are you perchance 
using the cygwin environment that is bundled with the Photon 
AppBuilder?  I ask because this only seems likely if you are attempting 
to load multiple versions of the cygwin DLL, which could conflict.  
Other users report no problems using cygwin with this and SDP release.

Cheers,

Christian


On 22/07/10 06:37 PM, Scott Branden wrote:
> I am running QNX Momementics 4.6.0 from the QNX 6.4.1 software development suite.
>
> I am compiling the code on a Windows XP machine.
>
> An ARM BSP fails to compile when I have a cygwin shell open (cygwin is already installed on this machine and used for 
other purposes).  The CC1 compile that comes with QNX fails to find files due to some sort of conflict with an open 
cygwin window.  As soon as I exit the cygwin shell I am able to compile in QNX again.
>
> Any ideas how to fix this incompatibility?
>
>
>
>...
View Full Message
Re: QNX IDE compile error when cygwin window open on my machine  
Hi Christian,

Any word on how to make QNX not conflict with existing cygwin installed on my PC?

Regards,
 Scott
Re: QNX IDE compile error when cygwin window open on my machine  
On 10-08-03 08:40 PM, Scott Branden wrote:
> Hi Christian,
>
> Any word on how to make QNX not conflict with existing cygwin installed on my PC?

Hi Scott,

Can you post the full build logs (i.e. stdout/stderr) for both the 
failing and successful build?

Regards,

Ryan Mansfield
RE: QNX IDE compile error when cygwin window open on my machine  
Where are the full build logs located in a QNX build?  The only log I have is the console log?

________________________________________
From: Ryan Mansfield [community-noreply@qnx.com]
Sent: August 3, 2010 6:17 PM
To: general-ide
Subject: Re: QNX IDE compile error when cygwin window open on my machine

On 10-08-03 08:40 PM, Scott Branden wrote:
> Hi Christian,
>
> Any word on how to make QNX not conflict with existing cygwin installed on my PC?

Hi Scott,

Can you post the full build logs (i.e. stdout/stderr) for both the
failing and successful build?

Regards,

Ryan Mansfield



_______________________________________________

General
http://community.qnx.com/sf/go/post61497
Re: QNX IDE compile error when cygwin window open on my machine  
On 10-08-04 10:07 AM, Scott Branden wrote:
> Where are the full build logs located in a QNX build?  The only log I have is the console log?

The console logs will do. If you're building from the command line, 
redirect stdout and stderr to a file.

Regards,

Ryan Mansfield
Re: QNX IDE compile error when cygwin window open on my machine  
Build log attached.  find.exe fails because there are 2 different versions of cygwin1.dll on the machine.  One is in c:\
cygwin\bin and the other is in c:\qnx641\host\win32\x86\usr\photon\bin.

I think the problem is that QNX should use another dll name rather than cygwin1.dll.  That way it will not pick up other
 (standard) cygwin installations on the machine.  The strange thing is QNX runs fine until the standard cygwin shell is 
opened...

Attachment: Text qnx-build-fails.txt 33.98 KB
Re: QNX IDE compile error when cygwin window open on my machine  
On 10-08-04 12:44 PM, Scott Branden wrote:
> make -j 1 -Cdll.le -fMakefile hinstall
>        3 [main] ? (5340) C:\QNX641\host\win32\x86\usr\photon\bin\find.exe: *** fatal error - system shared memory 
version mismatch detected - 0x8A88009C/0x2D1E009C.
> This problem is probably due to using incompatible versions of the cygwin DLL.
> Search for cygwin1.dll using the Windows Start->Find/Search facility
> and delete all but the most recent version.  The most recent version*should*
> reside in x:\cygwin\bin, where 'x' is the drive on which you have
> installed the cygwin distribution.  Rebooting is also suggested if you
> are unable to find another cygwin DLL.

It only happens when you have the the cygwin shell open because its 
tries loading conflicting dlls. You can avoid this by copying your more 
recent C:/cygwin/bin/cygwin1.dll into %QNX_HOST%\usr\photon\bin which 
should fix the problem with find.exe.

Regards,

Ryan Mansfield
Re: QNX IDE compile error when cygwin window open on my machine  
Replacing cygwin1.dll in C:\qnx641 with the one found in C:\cygwin\bin solves the problem.  This will make life a lot 
easier to develop with the QNX tools.  Thank you!