Undefined references compiling modified hello.exe

Cillian O'Donnell cpodonnell8 at gmail.com
Wed Mar 15 10:25:00 UTC 2017


I have built everything for sparc4.12 erc32 and I'm having trouble
compiling the modified hello.exe. I've included paths to all the header
files but I still have many undefined references. Any tips of where to go
from here would be much appreciated. The output from the compiler is as
follows:

cpod at cpod
~/development/rtems/kernel/erc32/sparc-rtems4.12/c/erc32/testsuites/samples/hello
$ sparc-rtems4.12-gcc init.c -isystem ~/development/rtems/4.12/sparc
-rtems4.12/erc32/lib/include -isystem
~development/rtems/4.12/sparc-rtems4.12/include -o hello.exe
/home/cpod/development/rtems/4.12/lib/gcc/sparc-rtems4.12/6.3.0/../../../../sparc-rtems4.12/bin/ld:
warning: cannot find entry symbol _start; defaulting to 0000000000010074
/tmp/ccE6ei1T.o:(.data+0x1c): undefined reference to `bsp_boot_cmdline'
/tmp/ccE6ei1T.o:(.data+0x20): undefined reference to `console_initialize'
/tmp/ccE6ei1T.o:(.data+0x24): undefined reference to `console_open'
/tmp/ccE6ei1T.o:(.data+0x28): undefined reference to `console_close'
/tmp/ccE6ei1T.o:(.data+0x2c): undefined reference to `console_read'
/tmp/ccE6ei1T.o:(.data+0x30): undefined reference to `console_write'
/tmp/ccE6ei1T.o:(.data+0x34): undefined reference to `console_control'
/tmp/ccE6ei1T.o:(.rodata+0xac): undefined reference to `devFS_initialize'
/tmp/ccE6ei1T.o:(.rodata+0xdc): undefined reference to
`_Scheduler_priority_Initialize'
/tmp/ccE6ei1T.o:(.rodata+0xe0): undefined reference to
`_Scheduler_priority_Schedule'
/tmp/ccE6ei1T.o:(.rodata+0xe4): undefined reference to
`_Scheduler_priority_Yield'
/tmp/ccE6ei1T.o:(.rodata+0xe8): undefined reference to
`_Scheduler_priority_Block'
/tmp/ccE6ei1T.o:(.rodata+0xec): undefined reference to
`_Scheduler_priority_Unblock'
/tmp/ccE6ei1T.o:(.rodata+0xf0): undefined reference to
`_Scheduler_priority_Update_priority'
/tmp/ccE6ei1T.o:(.rodata+0xf4): undefined reference to
`_Scheduler_default_Map_priority'
/tmp/ccE6ei1T.o:(.rodata+0xf8): undefined reference to
`_Scheduler_default_Map_priority'
/tmp/ccE6ei1T.o:(.rodata+0xfc): undefined reference to
`_Scheduler_priority_Node_initialize'
/tmp/ccE6ei1T.o:(.rodata+0x100): undefined reference to
`_Scheduler_default_Node_destroy'
/tmp/ccE6ei1T.o:(.rodata+0x104): undefined reference to
`_Scheduler_default_Release_job'
/tmp/ccE6ei1T.o:(.rodata+0x108): undefined reference to
`_Scheduler_default_Cancel_job'
/tmp/ccE6ei1T.o:(.rodata+0x10c): undefined reference to
`_Scheduler_default_Tick'
/tmp/ccE6ei1T.o:(.rodata+0x110): undefined reference to
`_Scheduler_default_Start_idle'
/tmp/ccE6ei1T.o:(.rodata+0x128): undefined reference to
`rtems_heap_null_extend'
/tmp/ccE6ei1T.o:(.rodata+0x130): undefined reference to `newlib_create_hook'
/tmp/ccE6ei1T.o:(.rodata+0x150): undefined reference to
`newlib_terminate_hook'
/tmp/ccE6ei1T.o:(.rodata+0x170): undefined reference to
`bsp_fatal_extension'
/tmp/ccE6ei1T.o:(.rodata+0x1cc): undefined reference to `bsp_idle_thread'
/tmp/ccE6ei1T.o:(.rodata+0x1dc): undefined reference to
`_Workspace_Allocate'
/tmp/ccE6ei1T.o:(.rodata+0x1e0): undefined reference to `_Workspace_Free'
/tmp/ccE6ei1T.o:(.rtemsroset._Sysinit.content.0.0x00040180+0x0): undefined
reference to `rtems_filesystem_initialize'
/tmp/ccE6ei1T.o:(.rtemsroset._Sysinit.content.0.0x00030080+0x0): undefined
reference to `_User_extensions_Handler_initialization'
/tmp/ccE6ei1T.o:(.rtemsroset._Sysinit.content.0.0x00070680+0x0): undefined
reference to `_RTEMS_tasks_Initialize_user_tasks_body'
collect2: error: ld returned 1 exit status
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20170315/131a4406/attachment.html>


More information about the users mailing list