Compiling problems
alberto capella
alberto.capella at terra.es
Fri Oct 20 16:06:46 UTC 2000
I´m trying to compile a very simple program to be sure that the rate
monotonic manager works correctly. The code is as follows:
#define TEST_INIT
#include <bsp.h>
#include <stdio.h>
#include <rtems/rtems/ratemon.h>
rtems_task Init(rtems_task_argument argument)
{
rtems_name nombre;
rtems_id p_pulsa;
nombre=rtems_build_name('p','p','u','l');
rtems_rate_monotonic_create(nombre, &p_pulsa);
while(1) {
if (rtems_rate_monotonic_period(p_pulsa,100)== TIMEOUT)
break;
printf("hola\n");
}
}
/* configuration information */
#define CONFIGURE_SPTEST
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_TICKS_PER_TIMESLICE 100
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_EXTRA_TASK_STACKS (1 *
RTEMS_MINIMUM_STACK_SIZE)
#include <confdefs.h>
I´m working with the pc386 BSP and the Makefile I´m using is similar to
the Makefile of Hello World example.
The problem is that I can't compile this short program because some
errors occurs.The messages that I obtain are:
[acapella at robot18 prueba]$ make
/home/alatorre/gnat-rtems/i386-rtems/bin/i386-rtems-gcc --pipe -Wall
-ansi -fasm -g -B/home/alatorre/gnat-rtems/i386-rtems/rtems//pc386/lib/
-specs bsp_specs -qrtems
-I/home/alatorre/gnat-rtems/i386-rtems/rtems//pc386/lib/include/networking
-O4 -fomit-frame-pointer -Wl,-Ttext,0x00100000
-Wl,--oformat,elf32-i386 -o o-pc386/init.obj -o o-pc386/init.obj
o-pc386/init.o
/home/alatorre/gnat-rtems/i386-rtems/rtems//pc386/lib/no-dpmem.rel
/home/alatorre/gnat-rtems/i386-rtems/rtems//pc386/lib/no-event.rel
/home/alatorre/gnat-rtems/i386-rtems/rtems//pc386/lib/no-msg.rel
/home/alatorre/gnat-rtems/i386-rtems/rtems//pc386/lib/no-mp.rel
/home/alatorre/gnat-rtems/i386-rtems/rtems//pc386/lib/no-part.rel
/home/alatorre/gnat-rtems/i386-rtems/rtems//pc386/lib/no-signal.rel
/home/alatorre/gnat-rtems/i386-rtems/rtems//pc386/lib/no-timer.rel
/home/alatorre/gnat-rtems/i386-rtems/rtems//pc386/lib/libtest.a
/home/alatorre/gnat-rtems/i386-rtems/rtems//pc386/lib/librtemsall.a(startup.rel):
In function `boot_card':
main.c:71: undefined reference to `Configuration'
/home/alatorre/gnat-rtems/i386-rtems/rtems//pc386/lib/librtemsall.a(libio.o):
In function `__rtems_close':
libio.c:328: undefined reference to `rtems_libio_number_iops'
libio.c:329: undefined reference to `rtems_libio_number_iops'
/home/alatorre/gnat-rtems/i386-rtems/rtems//pc386/lib/librtemsall.a(libio.o):
In function `__rtems_read':
libio.c:368: undefined reference to `rtems_libio_number_iops'
libio.c:369: undefined reference to `rtems_libio_number_iops'
/home/alatorre/gnat-rtems/i386-rtems/rtems//pc386/lib/librtemsall.a(libio.o):
In function `__rtems_write':
libio.c:415: undefined reference to `rtems_libio_number_iops'
/home/alatorre/gnat-rtems/i386-rtems/rtems//pc386/lib/librtemsall.a(libio.o):libio.c:416:
more undefined references to `rtems_libio_number_iops' follow
Could anybody tell me what is the problem?
Thanks.
More information about the users
mailing list