Notice: We have migrated to GitLab launching 2024-05-01 see here:

#3413 closed defect (fixed)

examples-v2 both_hello and triple_period fail to build

Reported by: Joel Sherrill Owned by: Sebastian Huber
Priority: normal Milestone: 5.1
Component: arch/powerpc Version: 5
Severity: normal Keywords:
Cc: Blocked By:


examples-v2 doesn't build for qemuppc. both_hello fails because of something going on with rtems-ld. Taking that out of the wscript results in getting further but fails with an undefined error for the same symbol.

/home/joel/rtems-work/tools/5/bin/powerpc-rtems5-gcc: hello-deep.o: In function `wrapThread_Life_action_handler':
/home/joel/rtems-work/tools/5/bin/powerpc-rtems5-gcc: /home/joel/rtems-work/examples-v2/build/powerpc-rtems5-qemuppc/ hello-deep.c:1304: undefined reference to `_Thread_Life_action_handler'
/home/joel/rtems-work/tools/5/bin/powerpc-rtems5-gcc: collect2: error: ld returned 1 exit status

error: linking: Linker error

Change History (5)

comment:1 Changed on 04/26/18 at 03:33:03 by Chris Johns

The score thread definition files have not been updated after a change in the score:

which is referenced from:

I am OK with a change to remove the definition being pushed.

Note, adding libdwarf support to rtems-tools would remove the need for these files.

Please remember rtems-tools repo changes require an RSB update to have the RSB pick up any changes.

comment:2 Changed on 12/19/19 at 09:09:45 by Sebastian Huber <sebastian.huber@…>

In [changeset:"7045cc39b414cd38a864c22d6db220b9d140a4af/rtems-tools" 7045cc3/rtems-tools]:

linkers: Remove _Thread_Life_action_handler

This is a static function.

Update #3413.

comment:3 Changed on 12/19/19 at 09:14:21 by Sebastian Huber <sebastian.huber@…>

In [changeset:"f48411816997ea646f24b759c85e1c81b3d4efcf/rtems-source-builder" f484118/rtems-source-builder]:

5: Update rtems-tools

Update #3413.

comment:4 Changed on 12/19/19 at 09:23:53 by Sebastian Huber

Resolution: fixed
Status: assignedclosed

I was able to build the examples with these patches.

comment:5 Changed on 12/19/19 at 13:47:44 by Joel Sherrill

It really would be better to have dynamic loading examples in rtems-examples rather than just bolting on some odd build stuff to an unrelated example. Neither both_hello or triple_period are intended to demonstrate dynamic loading and don't use it.

Note: See TracTickets for help on using tickets.