abhishek srivastava | 29 Jun 2012 23:05
Picon
Favicon

error in compiling hello ecos world program


hi
while compiling basic.c (hello ecos world) program, i am getting following error.why?

abhi <at> abhi-HP:~/Desktop/working_ecos/basic_app$ export PATH=/home/abhi/ecos/gnutools/i386-elf/bin:$PATH
abhi <at> abhi-HP:~/Desktop/working_ecos/basic_app$ make
i386-elf-gcc -c -o basic1.o -g -Wall -I/home/abhi/Desktop/work_ecos/ecos_install/include
-ffunction-sections -fdata-sections basic1.c
basic1.c:21:44: error: cyg/kernel/kapi.h: No such file or directory
basic1.c:22:57: error: cyg/infra/diag.h: No such file or directory
basic1.c:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘thread_a_obj’
basic1.c:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘thread_b_obj’
basic1.c:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘thread_a_hdl’
basic1.c:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘thread_b_hdl’
basic1.c:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sem_signal_thread’
basic1.c:48: error: expected ‘)’ before ‘data’
basic1.c:72: error: expected ‘)’ before ‘data’
basic1.c: In function ‘cyg_user_start’:
basic1.c:98: warning: implicit declaration of function ‘diag_printf’
basic1.c:102: warning: implicit declaration of function ‘cyg_semaphore_init’
basic1.c:102: error: ‘sem_signal_thread’ undeclared (first use in this function)
basic1.c:102: error: (Each undeclared identifier is reported only once
basic1.c:102: error: for each function it appears in.)
basic1.c:107: warning: implicit declaration of function ‘cyg_thread_create’
basic1.c:109: error: ‘thread_a’ undeclared (first use in this function)
basic1.c:110: error: ‘cyg_addrword_t’ undeclared (first use in this function)
basic1.c:110: error: expected ‘)’ before numeric constant
basic1.c:119: error: ‘thread_b’ undeclared (first use in this function)
basic1.c:120: error: expected ‘)’ before numeric constant
basic1.c:129: warning: implicit declaration of function ‘cyg_thread_resume’
(Continue reading)

Michael Bergandi | 5 Jul 2012 04:13
Picon

Re: error in compiling hello ecos world program

> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

Your answer is above. Specifically, what you posted above does not
follow the build recipe for eCos. Read the docs to build the examples
for your platform. That should get you started.

-- 
Mike

--

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Gmane