Link errors with an install using quick-start guide

Mr. Andrei Chichak groups at chichak.ca
Mon Jul 22 05:58:38 UTC 2019


Hi,

It’s me again. I thought I would try and update my tools since a lot has changed in the last year and I haven’t been keeping stuff up to date.

So I followed Chris’ quick-start docs on the web pages to install an RTEMS 5 set for arm stm32f4. 

It should be pretty straight forward, I’ve done this before for 4.11 and put together a bsp for STM32F7, but it’s fighting.

I put together a simple hello world, to make sure that I can get stuff to compile clean. No. I’m using the RTEMS plugin for Eclipse (yes it still works).

The linker is bitching about a whole bunch of missing symbols. I expect that there is a problem finding a library.

Any pointers?

Thanks,

Andrei



make all 
Building file: ../source/main.c
Invoking: RTEMS C Compiler
/Users/andreichichak/quick-start/rtems/5/bin/arm-rtems5-gcc -B/Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/ -specs bsp_specs -qrtems -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m4 -Os -g -Wall -c -fmessage-length=0 -pipe -MMD -MP -MF"source/main.d" -MT"source/main.o" -o "source/main.o" "../source/main.c"
Finished building: ../source/main.c
 
Building target: rt5test.exe
Invoking: RTEMS Linker
/Users/andreichichak/quick-start/rtems/5/bin/arm-rtems5-gcc -B/Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/ -specs bsp_specs -qrtems -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m4 -Wl,--gc-sections -o "rt5test.exe"  ./source/main.o   
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/start.o: in function `bsp_start_vector_table_begin':
(.bsp_start_text+0x0): undefined reference to `_ISR_Stack_area_end'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/start.o: in function `bsp_start_vector_table_end':
/Users/andreichichak/quick-start/src/rtems/c/src/lib/libbsp/arm/stm32f4/../../../../../../bsps/arm/shared/start/start.S:396: undefined reference to `_ISR_Stack_area_end'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(free.o): in function `rtems_fatal':
/Users/andreichichak/quick-start/src/rtems/cpukit/include/rtems/fatal.h:88: undefined reference to `RTEMS_Malloc_Heap'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(malloc_deferred.o): in function `rtems_heap_allocate_aligned_with_boundary':
/Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/libcsupport/src/malloc_deferred.c:126: undefined reference to `RTEMS_Malloc_Heap'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/libcsupport/src/malloc_deferred.c:126: undefined reference to `rtems_malloc_dirty_helper'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/libcsupport/src/malloc_deferred.c:126: undefined reference to `rtems_malloc_extend_handler'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(malloc_initialize.o): in function `RTEMS_Malloc_Initialize':
/Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/libcsupport/src/malloc_initialize.c:53: undefined reference to `Configuration'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/libcsupport/src/malloc_initialize.c:53: undefined reference to `RTEMS_Malloc_Heap'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(threadsetstate.o): in function `_Thread_Set_state_locked':
/Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/score/src/threadsetstate.c:48: undefined reference to `_Scheduler_Table'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(threadsetstate.o): in function `_Thread_Set_state':
/Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/score/src/threadsetstate.c:63: undefined reference to `_Scheduler_Table'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(threadstackfree.o): in function `_Thread_Stack_Free':
/Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/score/src/threadstackfree.c:46: undefined reference to `Configuration'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(threadqflush.o): in function `_Thread_queue_Flush_critical':
/Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/score/src/threadqflush.c:157: undefined reference to `_Scheduler_Table'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(userextiterate.o): in function `_User_extensions_Iterate':
/Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/score/src/userextiterate.c:181: undefined reference to `Configuration'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(wkspace.o): in function `_Workspace_Handler_initialization':
/Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/score/src/wkspace.c:226: undefined reference to `Configuration'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/score/src/wkspace.c:226: undefined reference to `_Thread_Initial_thread_count'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(io.o): in function `_IO_Initialize_all_drivers':
/Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/sapi/src/io.c:34: undefined reference to `_IO_Number_of_drivers'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(ioinitialize.o): in function `rtems_io_initialize':
/Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/sapi/src/ioinitialize.c:36: undefined reference to `_IO_Number_of_drivers'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/sapi/src/ioinitialize.c:36: undefined reference to `_IO_Driver_address_table'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(scheduler.o): in function `_Scheduler_Handler_initialization':
/Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/score/src/scheduler.c:41: undefined reference to `_Scheduler_Table'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(thread.o): in function `_Thread_Handler_initialization':
/Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/score/src/thread.c:70: undefined reference to `Configuration'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/score/src/thread.c:70: undefined reference to `_Thread_Information'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(threadchangepriority.o): in function `_Thread_Priority_update':
/Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/score/src/threadchangepriority.c:359: undefined reference to `_Scheduler_Table'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(threadclearstate.o): in function `_Scheduler_Unblock':
/Users/andreichichak/quick-start/src/rtems/cpukit/include/rtems/score/schedulerimpl.h:304: undefined reference to `_Scheduler_Table'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(threadcreateidle.o): in function `_User_extensions_Thread_start':
/Users/andreichichak/quick-start/src/rtems/cpukit/include/rtems/score/userextimpl.h:325: undefined reference to `_Scheduler_Table'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/src/rtems/cpukit/include/rtems/score/userextimpl.h:325: undefined reference to `rtems_minimum_stack_size'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/src/rtems/cpukit/include/rtems/score/userextimpl.h:325: undefined reference to `_Thread_Information'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/src/rtems/cpukit/include/rtems/score/userextimpl.h:325: undefined reference to `Configuration'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(threaddispatch.o): in function `_Thread_Do_dispatch':
/Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/score/src/threaddispatch.c:271: undefined reference to `Configuration'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(threadinitialize.o): in function `_Thread_Initialize':
/Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/score/src/threadinitialize.c:106: undefined reference to `_Thread_Control_add_on_count'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/score/src/threadinitialize.c:106: undefined reference to `Configuration'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/score/src/threadinitialize.c:106: undefined reference to `_Thread_Control_add_ons'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(threadstackallocate.o): in function `_Thread_Stack_Allocate':
/Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/score/src/threadstackallocate.c:46: undefined reference to `rtems_minimum_stack_size'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/score/src/threadstackallocate.c:46: undefined reference to `Configuration'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(isr.o): in function `_ISR_Handler_initialization':
/Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/score/src/isr.c:78: undefined reference to `_ISR_Stack_area_begin'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/score/src/isr.c:78: undefined reference to `_ISR_Stack_size'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(close.o): in function `close':
/Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/libcsupport/src/close.c:72: undefined reference to `rtems_libio_number_iops'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/libcsupport/src/close.c:72: undefined reference to `rtems_libio_iops'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(libio_init.o): in function `rtems_libio_init':
/Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/libcsupport/src/libio_init.c:71: undefined reference to `rtems_libio_number_iops'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/libcsupport/src/libio_init.c:71: undefined reference to `rtems_libio_iops'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(open.o): in function `open':
/Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/libcsupport/src/open.c:174: undefined reference to `rtems_libio_iops'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/rtems/5/arm-rtems5/stm32f4/lib/librtemscpu.a(ftruncate.o): in function `ftruncate':
/Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/libcsupport/src/ftruncate.c:38: undefined reference to `rtems_libio_number_iops'
/Users/andreichichak/quick-start/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld: /Users/andreichichak/quick-start/src/rtems/c/src/../../cpukit/libcsupport/src/ftruncate.c:38: undefined reference to `rtems_libio_iops'
collect2: error: ld returned 1 exit status
make: *** [rt5test.exe] Error 1



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20190721/db64eefa/attachment-0001.html>


More information about the users mailing list