Building project - Eclipse
Joel Sherrill
joel.sherrill at OARcorp.com
Thu Mar 15 17:14:07 UTC 2012
On 3/15/2012 12:12 PM, Gedare Bloom wrote:
> On Thu, Mar 15, 2012 at 1:01 PM, Binkowski, Cassio<cassioiks at gmail.com> wrote:
>> I think I have it now. But I had to do the whole process as ROOT.
>>
> Odd. Maybe you needed root privileges for installing RTEMS though..
>
>> Now what I got in Eclipse is the following:
>>
>> **** Build of configuration RTEMS Executable Configuration for project test
>> ****
>>
>> make all
>> Building file: ../scr/init.c
>> Invoking: RTEMS C Compiler
>> /opt/rtems-4.11/bin/sparc-rtems4.11-gcc
>> -B/opt/rtems-4.11/sparc-rtems4.11/sis/lib/ -specs bsp_specs -qrtems
>> -mcpu=cypress -Os -g -Wall -c -fmessage-length=0 -pipe -MMD -MP
>> -MF"scr/init.d" -MT"scr/init.d" -o "scr/init.o" "../scr/init.c"
>> In file included from ../scr/init.c:12:0:
Did you write the init.c yourself? It isn't configuring any tasks. This
is an error
check in confdefs.h.
Also you are not including rtems.h and apparently not including stdio.h
>> /opt/rtems-4.11/sparc-rtems4.11/sis/lib/include/rtems/confdefs.h:2434:6:
>> error: #error "CONFIGURATION ERROR: No tasks or threads configured!!"
>> /opt/rtems-4.11/sparc-rtems4.11/sis/lib/include/rtems/confdefs.h:2446:2:
>> error: #error "CONFIGURATION ERROR: No initialization tasks or threads
>> configured!!"
>> /opt/rtems-4.11/sparc-rtems4.11/sis/lib/include/rtems/confdefs.h:2496:6:
>> error: #error "CONFIGURATION ERROR: Do you want the clock driver or not?!?"
>> ../scr/init.c: In function 'init_task':
>> ../scr/init.c:30:18: error: 'RTEMS_STATUS_SUCCESSFUL' undeclared (first use
>> in this function)
>> ../scr/init.c:30:18: note: each undeclared identifier is reported only once
>> for each function it appears in
>> ../scr/init.c:31:5: warning: implicit declaration of function 'printf'
>> [-Wimplicit-function-declaration]
>> ../scr/init.c:31:5: warning: incompatible implicit declaration of built-in
>> function 'printf' [enabled by default]
>> ../scr/init.c:32:5: warning: implicit declaration of function 'exit'
>> [-Wimplicit-function-declaration]
>> ../scr/init.c:32:5: warning: incompatible implicit declaration of built-in
>> function 'exit' [enabled by default]
>> ../scr/init.c:37:5: warning: incompatible implicit declaration of built-in
>> function 'printf' [enabled by default]
>> ../scr/init.c:38:5: warning: incompatible implicit declaration of built-in
>> function 'exit' [enabled by default]
>> ../scr/init.c:41:31: error: 'SELF' undeclared (first use in this function)
>> ../scr/init.c:42:3: warning: incompatible implicit declaration of built-in
>> function 'printf' [enabled by default]
>> ../scr/init.c:43:3: warning: incompatible implicit declaration of built-in
>> function 'exit' [enabled by default]
>> ../scr/init.c: At top level:
>> ../scr/init.c:65:0: warning: "CONFIGURE_MAXIMUM_TASKS" redefined [enabled by
>> default]
>> /opt/rtems-4.11/sparc-rtems4.11/sis/lib/include/rtems/confdefs.h:1353:0:
>> note: this is the location of the previous definition
>> make: *** [scr/init.o] Error 1
>>
>> **** Build Finished ****
>>
>>
>> I have these includes at the top:
>>
>> #include<bsp.h>
>> #include<rtems.h>
>> #include<rtems/confdefs.h>
>>
>>
>> Can you please help?
>>
> If your application defines some configure variables, for example
> #define CONFIGURE_MAXIMUM_TASKS 20
> It should do so before including confdefs.h. When the confdefs.h
> header file is included it checks to see which configure variables are
> undefined and defines some defaults. Without looking at your code, I
> would guess that you are including confdefs.h before you are defining
> configure variables.
>
> -Gedare
>
>> _______________________________________________
>> rtems-users mailing list
>> rtems-users at rtems.org
>> http://www.rtems.org/mailman/listinfo/rtems-users
>>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
More information about the users
mailing list