[RTEMS Project] #4585: Multiple Prototype Issues/Mismatches in rtems-examples from trace linker

RTEMS trac trac at rtems.org
Mon Jan 24 22:38:14 UTC 2022


#4585: Multiple Prototype Issues/Mismatches in rtems-examples from trace linker
----------------------------+--------------------
  Reporter:  Joel Sherrill  |      Owner:  (none)
      Type:  defect         |     Status:  new
  Priority:  normal         |  Milestone:  6.1
 Component:  tool           |    Version:  6
  Severity:  normal         |   Keywords:
Blocked By:                 |   Blocking:
----------------------------+--------------------
 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

 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4585>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list