Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Service Packs Question: (7 Items)
   
Service Packs Question  
Hi,

We are using QNX as a cross-compiler for some software that we've just received from NASA JPL.  However, we are 
consistently experiencing build errors when using the qcc command.

NASA claims that we've installed QNX improperly, though I don't see how since we're using the installer that comes with 
QNX Momentics.

They have also said that we need to install Service Packs 1, 2, and 3.  The website says that QNX Momentics comes with 
Service Pack 3 built in.

Am I correct in assuming this also includes Service Packs 1 and 2 by default?

Thank you,

Steve Crawford
Re: Service Packs Question  
Yes, Service Pack 3 includes contents from previous Service Pack (1 & 2). If you have installed from the Momentics 
Service Pack 3 cd, you have got the previous service packs.

One way you can determine if you are running Service Pack 3 - open a command prompt, type in "qconfig" and the output 
should say it all.

What is the host development platform are you using, Windows or Linux? Can you post the "qconfig" output here?

What kind of build errors do you have? Can you attach or post the build output?
Re: Service Packs Question  
Thanks for the reply.  I'm using Windows XP (rolled back to SP 2).  The qconfig output is the following:

QNX Installations

Installation Name: QNX Momentics Development Suite 6.3.2
Version: 6.3.2
Base Directory: C:/QNX632
QNX_HOST: C:/QNX632/host/win32/x86
QNX_TARGET: C:/QNX632/target/qnx6

Additional Packages

(No packages listed here.)


Also, the build errors center on "undefined reference" which suggests that we're missing some headers or dll's, but NASA
 says we should have everything necessary.

Build messages are as follows:


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

D:\DevCodeNavy\Builds>cd d:\devcodenavy\builds\POWERVENT\dl

D:\DevCodeNavy\Builds\POWERVENT\dl>del *.o

D:\DevCodeNavy\Builds\POWERVENT\dl>del *.so
Could Not Find D:\DevCodeNavy\Builds\POWERVENT\dl\*.so

D:\DevCodeNavy\Builds\POWERVENT\dl>del *.qnx
Could Not Find D:\DevCodeNavy\Builds\POWERVENT\dl\*.qnx

D:\DevCodeNavy\Builds\POWERVENT\dl>del *.a

D:\DevCodeNavy\Builds\POWERVENT\dl>make
qcc -D_UNIX_ -D_QNX_ -V3.3.1,gcc_ntox86 -IC:/QNX630/target/qnx6/usr/include  -c d:\devcodenavy\main\dl\init_dl.c
cc: warning - requested version 3.3.1, using version 3.3.5
i386-pc-nto-qnx6.3.0-ld -r -Bstatic -o dl.a init_dl.o

D:\DevCodeNavy\Builds\POWERVENT\dl>cd d:\devcodenavy\builds\POWERVENT\apl\sis_beh

D:\DevCodeNavy\Builds\POWERVENT\apl\sis_beh>del *.o

D:\DevCodeNavy\Builds\POWERVENT\apl\sis_beh>del *.so
Could Not Find D:\DevCodeNavy\Builds\POWERVENT\apl\sis_beh\*.so

D:\DevCodeNavy\Builds\POWERVENT\apl\sis_beh>del *.qnx
Could Not Find D:\DevCodeNavy\Builds\POWERVENT\apl\sis_beh\*.qnx

D:\DevCodeNavy\Builds\POWERVENT\apl\sis_beh>del *.a

D:\DevCodeNavy\Builds\POWERVENT\apl\sis_beh>make
qcc -D_UNIX_ -D_QNX_ -V3.3.1,gcc_ntox86 -IC:/QNX630/target/qnx6/usr/include  -c d:\devcodenavy\main\apl\sis_beh\
samplebehtest.c
cc: warning - requested version 3.3.1, using version 3.3.5
i386-pc-nto-qnx6.3.0-ld -r -Bstatic -o sis_beh.a samplebehtest.o

D:\DevCodeNavy\Builds\POWERVENT\apl\sis_beh>cd d:\devcodenavy\builds\POWERVENT\apl

D:\DevCodeNavy\Builds\POWERVENT\apl>del *.o

D:\DevCodeNavy\Builds\POWERVENT\apl>del *.so
Could Not Find D:\DevCodeNavy\Builds\POWERVENT\apl\*.so

D:\DevCodeNavy\Builds\POWERVENT\apl>del *.qnx
Could Not Find D:\DevCodeNavy\Builds\POWERVENT\apl\*.qnx

D:\DevCodeNavy\Builds\POWERVENT\apl>del *.a

D:\DevCodeNavy\Builds\POWERVENT\apl>make
qcc -D_UNIX_ -D_QNX_ -V3.3.1,gcc_ntox86 -IC:/QNX630/target/qnx6/usr/include  -c d:\devcodenavy\main\apl\init_apl.c
cc: warning - requested version 3.3.1, using version 3.3.5
i386-pc-nto-qnx6.3.0-ld -r -Bstatic -o apl.a init_apl.o sis_beh/sis_beh.a

D:\DevCodeNavy\Builds\POWERVENT\apl>cd d:\devcodenavy\builds\POWERVENT

D:\DevCodeNavy\Builds\POWERVENT>del *.o
Could Not Find D:\DevCodeNavy\Builds\POWERVENT\*.o

D:\DevCodeNavy\Builds\POWERVENT>del *.so
Could Not Find D:\DevCodeNavy\Builds\POWERVENT\*.so

D:\DevCodeNavy\Builds\POWERVENT>del *.qnx
Could Not Find D:\DevCodeNavy\Builds\POWERVENT\*.qnx

D:\DevCodeNavy\Builds\POWERVENT>del *.a
Could Not Find D:\DevCodeNavy\Builds\POWERVENT\*.a

D:\DevCodeNavy\Builds\POWERVENT>make
qcc -M -o POWERVENT.qnx dl/dl.a apl/apl.a r4sa_library/can_serial.a r4sa_library/coordinate.a r4sa_library/dd.a 
r4sa_library/dmu.a r4sa_library/motion.a r4sa_library/obstavoidance.a r4sa_library/rs232_serial.a r4sa_library/sequence.
a r4sa_library/system.a -L. -LC:/QNX630/target/qnx6/x86/lib/gcc/3.3.5 -LC:/QNX630/target/qnx6/x86/lib -LC:/QNX630/target
/qnx6/x86/usr/lib -lsocket -lm -lusbdi -lecpp
r4sa_library/dd.a: In function `Ecan1000_Device::Ecan1000_Device(unsigned long, unsigned)':
r4sa_library/dd.a(.text+0x1c55): undefined reference to `_Unwind_Resume'
r4sa_library/dd.a: In function `Ecan1000_Device::Ecan1000_Device(unsigned long, unsigned)':
r4sa_library/dd.a(.text+0x1dd3): undefined reference to...
View Full Message
Re: Service Packs Question  
It seems to be a configuration issue. Looking at your "qconfig" output, you are actually running Momentics 6.3.2. The 
QNX header and library should be under the your %QNX_TARGET% directory which is "C:\QNX632\target\qnx6".  But looking at
 your make output, you are linking from "C:\QNX630\target\qnx6", that's why it can't find the headers and libraries.

Check you make files to see if you have hard-coded paths to the QNX Momentics installed. Also check to see your %PATH% 
environment variable does not have "C:\QNX630" but have "C:\QNX632" in it.

And finally did you install the Momentics 6.3.2 from the installation CD? Did you logout and log back in after the 
installation?

Re: Service Packs Question  
Aha, thank you very much.  I see the problem.

And, yes, I did use the installation CD, and logged out and back in again.

I'll contact JPL with this info.  Thanks again!
Re: Service Packs Question  
More likely hard-coded path in make files. Can you check that first?
Re: Service Packs Question  
> D:\DevCodeNavy\Builds\POWERVENT\dl>make
> qcc -D_UNIX_ -D_QNX_ -V3.3.1,gcc_ntox86 -IC:/QNX630/target/qnx6/usr/include  -
> c d:\devcodenavy\main\dl\init_dl.c
> cc: warning - requested version 3.3.1, using version 3.3.5
> i386-pc-nto-qnx6.3.0-ld -r -Bstatic -o dl.a init_dl.o
> 

3.3.1 that's from QNX 6.3.0, not 6.3.2 !  That's odd