#3673 closed defect (fixed)

xilinx_zynq_a9_qemu - fails to link psxconfig01

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

Description (last modified by Joel Sherrill)

This is with POSIX disabled.

/home/joel/rtems-work/rtems-testing/rtems/build-arm-xilinx_zynq_a9_qemu-rtems/arm-rtems5/c/xilinx_zynq_a9_qemu/testsuites/psxtests/../../../../../../rtems/c/src/../../testsuites/psxtests/psxconfig01/init.c:499: undefined reference to `timer_create'
collect2: error: ld returned 1 exit status

Change History (3)

comment:1 Changed on Jan 10, 2019 at 12:27:19 AM by Joel Sherrill

Description: modified (diff)

comment:2 Changed on Jan 10, 2019 at 7:06:34 AM by Sebastian Huber

Interesting, this is due to the -O0 optimization level. For the erc32 the empty loop is optimized away and there is no reference.

comment:3 Changed on Jan 10, 2019 at 7:12:41 AM by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: assignedclosed

In 3a5c71d/rtems:

psxconfig01: Fix pre-processor conditions

Do not rely on compiler optimizations to throw away empty loops.

Close #3673.

Note: See TracTickets for help on using tickets.