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

Problem with LD and Eclipse plug-in



On 03/23/2011 01:43 PM, Alejandro Perez wrote:
> Hi all, im a new RTEMS user. I'm trying to build a "hello world" 
> example from the Eclipse Plug-in with RTEMS 4.10 for the ARM based bsp 
> EDB7312.
>
> My host PC is running Fedora 14 with Autoconf updated to 2.68 and 
> arm-rtems4.10 toolchain installed from RPM, Eclipse Helio SR2 and REMS 
> Eclipse Plug-in
>
> I'd downloaded CVS copy, run "bootstrap" and  build the BSP with the 
> command :
>
That's at least one of the problems.  You need to be using RTEMS 4.10 
with the 4.10
tool chain. You need to match tool versions.

But if looks like you haven't instantiated an RTEMS configuration.
Look at one of the simple hello world examples to see an include
of <rtems/confdefs.h> and some of the CONFIGURE_xxx constants you
might be interested in.
> ./configure --target=arm-rtems4.10 
> --prefix=/home/setron/rtems/arm2303/ --enable-rtems-debug 
> --enable-rtemsbsp="edb7312"
> make
> make install
>
> Then i create a new proyect in Eclipse with
>
> Base Path : /opt/rtems-4.10
> BSP Path :/home/setron/rtems/arm2303/edb7312
>
> then change some stuff from the command line that call gcc neither 
> arm-rtems4.10-gcc and finaly add include directories
>
> /opt/rtems-4.10/arm-rtems4.10/include
> /home/setron/rtems/arm2303/arm-rtems4.10/edb7312/lib/include
> /home/setron/rtems/arm2303/arm-rtems4.10/edb7312/lib
>
>
> Everything goes fine until i try to build the proyect, i get this error
>
> Invoking: RTEMS Linker
> /opt/rtems-4.10/bin/arm-rtems4.10-gcc 
> -L/opt/rtems-4.10/lib/gcc/arm-rtems4.10/4.4.5 
> -L/home/setron/rtems/arm2303/arm-rtems4.10/lpc32xx_mzx/lib 
> -o"arm98.exe"  ./src/arm98.o
> /opt/rtems-4.10/lib/gcc/arm-rtems4.10/4.4.5/../../../../arm-rtems4.10/bin/ld: 
> warning: cannot find entry symbol _start; defaulting to 00008000
> ./src/arm98.o:(.data+0x0): undefined reference to `rtems_libio_init'
> ./src/arm98.o:(.data+0x4): undefined reference to `open_dev_console'
> ./src/arm98.o:(.data+0x8): undefined reference to 
> `rtems_filesystem_initialize'
> ./src/arm98.o:(.data+0x1c): undefined reference to 
> `_Scheduler_priority_Initialize'
> ./src/arm98.o:(.data+0x20): undefined reference to 
> `_Scheduler_priority_Schedule'
> ./src/arm98.o:(.data+0x24): undefined reference to 
> `_Scheduler_priority_Yield'
> ./src/arm98.o:(.data+0x28): undefined reference to 
> `_Scheduler_priority_Block'
> ./src/arm98.o:(.data+0x2c): undefined reference to 
> `_Scheduler_priority_Unblock'
> ./src/arm98.o:(.data+0x30): undefined reference to 
> `_Scheduler_priority_Allocate'
> ./src/arm98.o:(.data+0x34): undefined reference to 
> `_Scheduler_priority_Free'
> ./src/arm98.o:(.data+0x38): undefined reference to 
> `_Scheduler_priority_Update'
> ./src/arm98.o:(.data+0x3c): undefined reference to 
> `_Scheduler_priority_Enqueue'
> ./src/arm98.o:(.data+0x40): undefined reference to 
> `_Scheduler_priority_Enqueue_first'
> ./src/arm98.o:(.data+0x44): undefined reference to 
> `_Scheduler_priority_Extract'
> ./src/arm98.o:(.data+0x64): undefined reference to `bsp_boot_cmdline'
> ./src/arm98.o:(.data+0x68): undefined reference to `console_initialize'
> ./src/arm98.o:(.data+0x6c): undefined reference to `console_open'
> ./src/arm98.o:(.data+0x70): undefined reference to `console_close'
> ./src/arm98.o:(.data+0x74): undefined reference to `console_read'
> ./src/arm98.o:(.data+0x78): undefined reference to `console_write'
> ./src/arm98.o:(.data+0x7c): undefined reference to `console_control'
> ./src/arm98.o:(.data+0x80): undefined reference to `newlib_create_hook'
> ./src/arm98.o:(.data+0x8c): undefined reference to `newlib_delete_hook'
> ./src/arm98.o:(.data+0x118): undefined reference to 
> `_RTEMS_tasks_Initialize_user_tasks_body'
> ./src/arm98.o:(.rodata+0x4): undefined reference to `miniIMFS_initialize'
> collect2: ld returned 1 exit status
>
> I think that the plug-in is not loading the "linkcmds" file of the BSP....
>
> Any idea how can i solve this?
>
> Thanks.
>
> Alejandro Perez


-- 
Joel Sherrill, Ph.D.             Director of Research&  Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985