Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Build error: (3 Items)
   
Build error  
Hi,



I have downloaded the QNX source.

I have installed qnxsdp-6.4.0-200810211530-linux.bin in an RHEL4
machine.

This is the build environment I am using.



My source contains:

1.	lib
2.	services
3.	ports
4.	utils
5.	hardware - downloaded separately.



Further to this I did the steps listed as follows.

1.	ksh hide-gnu.sh <BUILD_ROOT>
2.	cd <BUILD_ROOT>
3.	mkdir stage
4.	cat >qconf-override.mk
	USE_INSTALL_ROOT=1
	INSTALL_ROOT_nto=<BUILD_ROOT>/stage
	VERSION_REL=6.3.0
	^D
5.	export QCONF_OVERRIDE=<BUILD_ROOT>/qconf-override.mk
6.	cd <BUILD_ROOT>/trunk
7.	make OSLIST=nto hinstall
8.	make OSLIST=nto CPULIST=x86 install



When I follow these steps, I get the following errors:-

/home/yegnesh/QNX/trunk/hardware/deva/ctrl/mpc5121_i2s/mpc5121ado.h:32:2
0: error: hw/dma.h: No such file or directory

In file included from
/home/yegnesh/QNX/trunk/hardware/deva/ctrl/mpc5121_i2s/mpc5121_dll.c:23:

/home/yegnesh/QNX/trunk/hardware/deva/ctrl/mpc5121_i2s/mpc5121ado.h:57:
error: expected specifier-qualifier-list before 'dma_functions_t'

/home/yegnesh/QNX/trunk/hardware/deva/ctrl/mpc5121_i2s/mpc5121_dll.c: In
function 'mpc5121_capabilities':

/home/yegnesh/QNX/trunk/hardware/deva/ctrl/mpc5121_i2s/mpc5121_dll.c:87:
error: 'struct mpc5121_card' has no member named 'pcm_chn'

/home/yegnesh/QNX/trunk/hardware/deva/ctrl/mpc5121_i2s/mpc5121_dll.c:89:
error: 'struct mpc5121_card' has no member named 'pcm_chn'

/home/yegnesh/QNX/trunk/hardware/deva/ctrl/mpc5121_i2s/mpc5121_dll.c: In
function 'mpc5121_playback_aquire':

/home/yegnesh/QNX/trunk/hardware/deva/ctrl/mpc5121_i2s/mpc5121_dll.c:112
: error: 'dma_addr_t' undeclared (first use in this function)

/home/yegnesh/QNX/trunk/hardware/deva/ctrl/mpc5121_i2s/mpc5121_dll.c:112
: error: (Each undeclared identifier is reported only once

/home/yegnesh/QNX/trunk/hardware/deva/ctrl/mpc5121_i2s/mpc5121_dll.c:112
: error: for each function it appears in.)

/home/yegnesh/QNX/trunk/hardware/deva/ctrl/mpc5121_i2s/mpc5121_dll.c:112
: error: expected ';' before 'src_addr'

/home/yegnesh/QNX/trunk/hardware/deva/ctrl/mpc5121_i2s/mpc5121_dll.c:113
: error: 'dma_transfer_t' undeclared (first use in this function)

/home/yegnesh/QNX/trunk/hardware/deva/ctrl/mpc5121_i2s/mpc5121_dll.c:113
: error: expected ';' before 'tinfo'

/home/yegnesh/QNX/trunk/hardware/deva/ctrl/mpc5121_i2s/mpc5121_dll.c:117
: error: 'struct mpc5121_card' has no member named 'pcm_chn'

/home/yegnesh/QNX/trunk/hardware/deva/ctrl/mpc5121_i2s/mpc5121_dll.c:135
: error: 'tinfo' undeclared (first use in this function)



Attached is the compile logs.

It would be of great help if someone can point out what am I doing
wrong.



Thanks & Regards,

Yegnesh




Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive 
use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended
 recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy
 all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for 
the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com
Attachment: Text log.txt 86.11 KB
Re: Build error  
> When I follow these steps, I get the following errors:-
> 
> /home/yegnesh/QNX/trunk/hardware/deva/ctrl/mpc5121_i2s/mpc5121ado.h:32:2
> 0: error: hw/dma.h: No such file or directory
> 
http://community.qnx.com/sf/frs/do/viewRelease/projects.bsp/frs.freescale_mpc5121e_ads.bsp_ntotrunk_freescale_mpc5121e


bsp-ntotrunk-freescale-mpc5121e-ads-trunk.zip contains the dma.h header file.

Hope this helps.
Jeevan
Re: Build error  
what is it exactly you are trying to build? What you're doing right now is causing the build system to try building the 
BSP for an mpc5121 board, which is freescale, a type of powerpc board.

To get the source to build properly, you shouldn't need much from the hardware directory. Try running "make hinstall" on
 hardware/pci and hardware/startup; then if you follow through with running "make hinstall" on lib and services, 
followed by "make install" on on lib and services, you should get a properly populated stage tree; then you can build 
drivers from hardware as you need them, but usually the binaries shipped with the SDP work well enough.

Hope this helps, if you need any further clarification, feel free to ask.

-Aaron