Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

#4585 closed defect (fixed)

Multiple Prototype Issues/Mismatches in rtems-examples from trace linker

Reported by: Joel Sherrill Owned by: Joel Sherrill <joel@…>
Priority: normal Milestone: 6.1
Component: tool Version: 6
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

This is some of the build failures in rtems-examples if the BSP has POSIX turned on:

/home/joel/rtems-class/tools/bin/aarch64-rtems6-gcc:  hello-test.c:185:199: error: expected declaration specifiers or '...' before 'Thread_CPU_budget_algorithm_callout'
/home/joel/rtems-class/tools/bin/aarch64-rtems6-gcc:   185 | bool __wrap__Thread_Initialize(Objects_Information* a1, Thread_Control* a2, const Scheduler_Control* a3, void* a4, size_t a5, bool a6, Priority_Control a7, bool a8, Thread_CPU_budget_algorithms a9, Thread_CPU_budget_algorithm_callout a10, uint32_t a11, Objects_Name a12)
/home/joel/rtems-class/tools/bin/aarch64-rtems6-gcc:       |                                                                                                                                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error: compiling wrapper: Compiler error

/home/joel/rtems-class/tools/bin/aarch64-rtems6-gcc:  hello-deep.c:1296:6: error: conflicting types for '_Thread_Start'
/home/joel/rtems-class/tools/bin/aarch64-rtems6-gcc:  1296 | bool _Thread_Start(Thread_Control* a1, const Thread_Entry_information* a2, ISR_lock_Context* a3);
/home/joel/rtems-class/tools/bin/aarch64-rtems6-gcc:       |      ^~~~~~~~~~~~~
/home/joel/rtems-class/tools/bin/aarch64-rtems6-gcc: In file included from  hello-deep.c:30:
/home/joel/rtems-class/tools/bin/aarch64-rtems6-gcc: /home/joel/rtems-class/bsp-install/aarch64-rtems6/xilinx_zynqmp_lp64_qemu/lib/include/rtems/score/threadimpl.h:279:16: note: previous declaration of '_Thread_Start' was here
/home/joel/rtems-class/tools/bin/aarch64-rtems6-gcc:   279 | Status_Control _Thread_Start(
/home/joel/rtems-class/tools/bin/aarch64-rtems6-gcc:       |                ^~~~~~~~~~~~~

error: compiling wrapper: Compiler error

Change History (1)

comment:1 Changed on 01/26/22 at 18:29:01 by Joel Sherrill <joel@…>

Owner: set to Joel Sherrill <joel@…>
Resolution: fixed
Status: newclosed

In [changeset:"756897818360a6c110886fb5740303563c92f7a4/rtems-tools" 75689781/rtems-tools]:

linkers/rtems-score/thread*.ini: Remove symbols no longer present.

Close #4585.

Note: See TracTickets for help on using tickets.