#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:
Blocking:

Description

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:

https://git.rtems.org/rtems-tools/tree/linkers/rtems-score-thread.ini#n8

which is referenced from:

https://git.rtems.org/examples-v2/tree/hello/both_hello/hello-deep.ini#n21

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 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 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.