The error about Building the Sample Application.
gerke.kok at ascom.nl
gerke.kok at ascom.nl
Thu Jun 22 06:30:37 UTC 2000
Hello,
yes, this sample app does not take into acount the new settings in
confdefs.h. Here is kind of what it should be:
/*
* Root task
*
* $Revision: 1.3 $ $Date: 1998/08/26 14:42:04 $ $Author: eric $
*/
#include <bsp.h>
#include <stdio.h>
#include <stdlib.h>
/*
***********************************************************************
* RTEMS CONFIGURATION *
***********************************************************************
*/
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_MAXIMUM_TASKS 20
#define CONFIGURE_MAXIMUM_SEMAPHORES 10
#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 10
#define CONFIGURE_MICROSECONDS_PER_TICK 52489
#define CONFIGURE_INIT
#define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \
RTEMS_NO_TIMESLICE | \
RTEMS_NO_ASR | \
RTEMS_INTERRUPT_LEVEL(0))
#define CONFIGURE_INIT_TASK_STACK_SIZE (40*1024)
#define CONFIGURE_INIT_TASK_PRIORITY 100
rtems_task Init (rtems_task_argument argument);
#define CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE
rtems_driver_address_table Device_drivers[] = {
CONSOLE_DRIVER_TABLE_ENTRY,
CLOCK_DRIVER_TABLE_ENTRY,
};
#include <confdefs.h>
extern int main( int argc, char **argv);
/*
* RTEMS Startup Task
*/
rtems_task Init( rtems_task_argument ignored)
{
putenv ("TERM=xterm");
putenv ("NCURSES_TRACE=20");
printf( "Hello there?");
rtems_task_suspend( RTEMS_SELF);
}
It should be upgraded in the examples-4.5.0 tarball I think...
Thanks all for working on RTEMS!
wkr,
Gerke
> -----Original Message-----
> From: Zhou qing guo [mailto:zhouqg at lzu.edu.cn]
> Sent: Thursday, June 22, 2000 05:38
> To: rtems-users at oarcorp.com
> Subject: The error about Building the Sample Application.
>
>
> Thanks for all giving me help!
> Now I have reslove the problem of buliding RTEMS4.5.
> And then I buliding the sample application and set the Environment
> Variable;build the sample application:
> cd tools/hello_world_c
> make
> The error is:
> [root at rt hello_world_c]# make test
> /opt/rtems/bin/i386-rtems-gcc --pipe -B/opt/rtems//pc386/lib/ -specs
> bsp_specs -
> qrtems -g -Wall -ansi -fasm -O4 -L /opt/rtems//pc386/lib
> test.c -o
> test
> In file included from test.c:29:
> /opt/rtems/pc386/lib/include/confdefs.h:1005: #error
> "CONFIGURATION ERROR:
> No ta
> sks or threads configured!!
> #endif
>
> /*
> * Make sure at least one of the initialization task/thread
> * tables was defined.
> */
>
> #if !defined(CONFIGURE_RTEMS_INIT_TASKS_TABLE) &&
> !defined(CONFIGURE_POSIX_I
> NIT_THREAD_TABLE) && !defined(CONFIGURE_ITRON_INIT_TASK_TABLE)
> #error "CONFIGURATION ERROR: No initialization tasks or threads
> configured!!
> make: *** [test] Error 1
>
> Thanks!
> Kinggo
>
>
More information about the users
mailing list