[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] Error in header file while cross compiling a demo application



Hi all,
I am working on ML 402 board of Xilinx.
I have ported uClinux kernel image (with LCD controller) on the board .
Now I want to port demo application for LCD on the board.
For that I made a simple c program. Program is perfectly ok. I have tested it in Windows using BSB project.
But for generating uClinux executable,  I use out of tree cross compilation.
When I do, make clean, it works ok.
When I did make all , it gave me the following error.
[root@localhost lcd]#make all
ucfront-gcc mb-gcc -g -c -Os -g -fomit-frame-pointer -fno-common -fno-builtin -Wall -msoft-float -mxl-soft-mul -mxl-soft-div -DEMBED -Dlinux -D__linux__ -Dunix -D__uclinux__ -o lcd_sweta.o lcd_sweta.c
In file included from /home/uClinux/uClinux-dist/uClibc/include/linux/sched.h:14,
                      from /home/uClinux/uClinux-dist/uClibc/include/linux/mm.h:4,
                      from /home/uClinux/uClinux-dist/uClibc/include/linux/io.h:23,
                      from lcd_sweta.c:1:
/home/uClinux/uClinux-dist/uClibc/include/linux/timex.h:173:error: field 'time' has incomplete type
In file included from /home/uClinux/uClinux-dist/uClibc/include/linux/sched.h:14,
                      from /home/uClinux/uClinux-dist/uClibc/include/linux/mm.h:4,
                      from /home/uClinux/uClinux-dist/uClibc/include/linux/io.h:23,
                      from lcd_sweta.c:1:
/home/uClinux/uClinux-dist/uClibc/include/asm/semaphore.h:14:  error: parse error before "wait_queue_head_t"
/home/uClinux/uClinux-dist/uClibc/include/asm/semaphore.h:In function 'sema_init' :
/home/uClinux/uClinux-dist/uClibc/include/asm/semaphore.h:32:  error: dereferencing  pointer to  incomplete type
/home/uClinux/uClinux-dist/uClibc/include/asm/semaphore.h:32:  error: extra brace group at  end of initializer
/home/uClinux/uClinux-dist/uClibc/include/asm/semaphore.h:32:  error: (near initialization for '(anonymous)')
/home/uClinux/uClinux-dist/uClibc/include/asm/semaphore.h:32:  error: dereferencing  pointer to  incomplete type
/home/uClinux/uClinux-dist/uClibc/include/asm/semaphore.h: In function 'down' :
/home/uClinux/uClinux-dist/uClibc/include/asm/semaphore.h:60:  error: dereferencing  pointer to  incomplete type
/home/uClinux/uClinux-dist/uClibc/include/asm/semaphore.h: In function 'down_interruptible' :
/home/uClinux/uClinux-dist/uClibc/include/asm/semaphore.h:67:  error: dereferencing  pointer to  incomplete type
/home/uClinux/uClinux-dist/uClibc/include/asm/semaphore.h: In function 'down_trylock' :
/home/uClinux/uClinux-dist/uClibc/include/asm/semaphore.h:75:  error: dereferencing  pointer to  incomplete type
/home/uClinux/uClinux-dist/uClibc/include/asm/semaphore.h: In function 'up' :
/home/uClinux/uClinux-dist/uClibc/include/asm/semaphore.h:82:  error: dereferencing  pointer to  incomplete type
/home/uClinux/uClinux-dist/uClibc/include/asm/semaphore.h: In function 'sem_getcount' :
/home/uClinux/uClinux-dist/uClibc/include/asm/semaphore.h:88:  error: dereferencing  pointer to  incomplete type
In file included from lcd_sweta.c:1:
/home/uClinux/uClinux-dist/uClibc/include/asm/io.h: At top level :
/home/uClinux/uClinux-dist/uClibc/include/asm/io.h:178:  error: parse error before "dma_addr_t"
make: *** [lcd_sweta.o] Error 1
[root@localhost lcd]#

Can anyone tell me how can I  solve these errors of header file ??
Am I missing something somewhere ?
Please help me.
Thanks  in advance...

-- 
Thanks & Regards,
Sweta Bhatt
Embedded Engineer,
eInfochips Ltd.
+919898087805
eInfochips Business Disclaimer: This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by eInfochips Limited and/or eInfochips Inc("eInfochips") unless sent with that express intent and with due authority of eInfochips. eInfochips has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. ___________________________ microblaze-uclinux mailing list microblaze-uclinux@xxxxxxxxxxxxxx Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/