[RTEMS Project] #3160: Trace linker score support is broken

RTEMS trac trac at rtems.org
Sun Oct 1 00:23:33 UTC 2017


#3160: Trace linker score support is broken
-------------------------+-------------------------
 Reporter:  Chris Johns  |      Owner:  Chris Johns
     Type:  defect       |     Status:  assigned
 Priority:  high         |  Milestone:  4.12.0
Component:  General      |    Version:  4.12
 Severity:  blocker      |   Keywords:
-------------------------+-------------------------
 The trace linker needs to be updated to build. I am not sure which bit is
 broken. Building the tools gives:
 {{{
 [ 7/15] Compiling build/arm-
 rtems4.12-beagleboneblack/hello/both_hello/test.c.2.o
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  hello-
 deep.c:134:13: error: 'Thread_queue_Flush_callout' undeclared here (not in
 a function); did you mean 'Thread_queue_Flush_filter'?
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:    { sizeof
 (Thread_queue_Flush_callout), "Thread_queue_Flush_callout" },
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 ^~~~~~~~~~~~~~~~~~~~~~~~~~
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 Thread_queue_Flush_filter
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  hello-
 deep.c:140:13: error: 'CORE_mutex_Status' undeclared here (not in a
 function); did you mean 'CORE_mutex_Control'?
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:    { sizeof
 (CORE_mutex_Status), "CORE_mutex_Status" },
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 ^~~~~~~~~~~~~~~~~
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 CORE_mutex_Control
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  hello-
 deep.c:143:19: error: unknown type name 'CORE_mutex_Attributes'
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:    { sizeof
 (const CORE_mutex_Attributes*), "const CORE_mutex_Attributes*" },
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 ^~~~~~~~~~~~~~~~~~~~~
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  hello-
 deep.c:160:13: error: 'CORE_mutex_API_mp_support_callout' undeclared here
 (not in a function)
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:    { sizeof
 (CORE_mutex_API_mp_support_callout), "CORE_mutex_API_mp_support_callout"
 },
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  hello-
 deep.c:321:13: error: 'Objects_Locations' undeclared here (not in a
 function); did you mean 'Objects_Information'?
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:    { sizeof
 (Objects_Locations*), "Objects_Locations*" },
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 ^~~~~~~~~~~~~~~~~
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 Objects_Information
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  hello-
 deep.c:321:31: error: expected expression before ')' token
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:    { sizeof
 (Objects_Locations*), "Objects_Locations*" },
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 ^
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  hello-
 deep.c:342:31: error: expected expression before ')' token
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:    { sizeof
 (Objects_Locations*), "Objects_Locations*" },
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 ^
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  hello-
 deep.c:359:31: error: expected expression before ')' token
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:    { sizeof
 (Objects_Locations*), "Objects_Locations*" },
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 ^
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  hello-
 deep.c:368:31: error: expected expression before ')' token
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:    { sizeof
 (Objects_Locations*), "Objects_Locations*" },
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 ^
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  hello-
 deep.c:443:31: error: expected expression before ')' token
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:    { sizeof
 (Objects_Locations*), "Objects_Locations*" },
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 ^
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  hello-
 deep.c:548:13: error: 'Thread_Start_types' undeclared here (not in a
 function); did you mean '_Thread_Start'?
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:    { sizeof
 (Thread_Start_types), "Thread_Start_types" },
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 ^~~~~~~~~~~~~~~~~~
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 _Thread_Start
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  hello-
 deep.c:570:13: error: 'Thread_blocking_operation_States' undeclared here
 (not in a function); did you mean 'Thread_queue_Operations'?
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:    { sizeof
 (Thread_blocking_operation_States), "Thread_blocking_operation_States" },
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 Thread_queue_Operations
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  hello-deep.c:
 In function 'rtld_pg_printk_entry':
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  hello-
 deep.c:678:3: warning: implicit declaration of function 'printk'; did you
 mean 'printf'? [-Wimplicit-function-declaration]
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:    printk (">>>
 %s (0x%08x)\n", func_name, func_addr);
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:    ^~~~~~
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:    printf
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  hello-deep.c:
 At top level:
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  hello-
 deep.c:742:48: error: expected declaration specifiers or '...' before
 'Thread_queue_Flush_callout'
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  void
 _CORE_mutex_Flush(CORE_mutex_Control* a1, Thread_queue_Flush_callout a2,
 uint32_t a3);
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 ^~~~~~~~~~~~~~~~~~~~~~~~~~
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  hello-
 deep.c:743:55: error: expected declaration specifiers or '...' before
 'Thread_queue_Flush_callout'
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  void
 __real__CORE_mutex_Flush(CORE_mutex_Control* a1,
 Thread_queue_Flush_callout a2, uint32_t a3);
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 ^~~~~~~~~~~~~~~~~~~~~~~~~~
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  hello-
 deep.c:744:55: error: expected declaration specifiers or '...' before
 'Thread_queue_Flush_callout'
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  void
 __wrap__CORE_mutex_Flush(CORE_mutex_Control* a1,
 Thread_queue_Flush_callout a2, uint32_t a3)
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 ^~~~~~~~~~~~~~~~~~~~~~~~~~
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:  hello-
 deep.c:757:1: error: unknown type name 'CORE_mutex_Status'; did you mean
 'CORE_mutex_Control'?
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 CORE_mutex_Status _CORE_mutex_Initialize(CORE_mutex_Control* a1,
 Thread_Control* a2, const CORE_mutex_Attributes* a3, bool a4);
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 ^~~~~~~~~~~~~~~~~
 /Users/chris/development/rtems/4.12/bin/arm-rtems4.12-gcc:
 CORE_mutex_Control
 }}}

 This is a snip of the errors.

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


More information about the bugs mailing list