Having a problem with an out of the box setup for STM32F4

Mr. Andrei Chichak groups at chichak.ca
Mon Aug 9 23:09:53 UTC 2021


In an attempt to make some progress, I’ve gone back to trying to install RTEMS6 built for STM32F4. Should be straight forward.

To make things clean, I don’t do any modifications to any of the code being pulled out of git.

I followed the Quick Start section of the RTEMS User Manual, Release 6 efb8e7c

1) 
mkdir -p $HOME/quick-start/src
cd $HOME/quick-start/src
git clone git://git.rtems.org/rtems-source-builder.git rsb
git clone git://git.rtems.org/rtems.git

It looks good here.

2)
cd $HOME/quick-start/src/rsb/rtems
../source-builder/sb-set-builder --prefix=$HOME/quick-start/rtems/6 6/rtems-arm

It looks good here too.

3)
$HOME/quick-start/rtems/6/bin/arm-rtems6-gcc --version

This gives me:

arm-rtems6-gcc (GCC) 10.3.1 20210409 (RTEMS 6, RSB ec495e091743061d4e140e2d0bd8aab1a8d69ae7, Newlib 0c0f3df)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

4)
cd $HOME/quick-start/src/rsb/rtems
../source-builder/sb-set-builder --prefix=$HOME/quick-start/rtems/6 --target=arm-rtems6 --with-rtems-bsp=stm32f4 --with-rtems-tests=yes 6/rtems-kernel

Gives me:
RTEMS Source Builder - Set Builder, 6 (ec495e091743)
Build Set: 6/rtems-kernel
config: tools/rtems-kernel-6.cfg
package: arm-rtems6-kernel-stm32f4-1
download: https://git.rtems.org/rtems/snapshot/rtems-3ec5f20484cc4201e1d7b87844505644533b6148.tar.bz2 -> sources/rtems-kernel-3ec5f20484cc4201e1d7b87844505644533b6148.tar.bz2
downloading: sources/rtems-kernel-3ec5f20484cc4201e1d7b87844505644533b6148.tar.bz2 - 8.1MB     
building: arm-rtems6-kernel-stm32f4-1
error: building arm-rtems6-kernel-stm32f4-1
Build FAILED
  See error report: rsb-report-arm-rtems6-kernel-stm32f4-1.txt
error: building arm-rtems6-kernel-stm32f4-1
Build Set: Time 0:03:03.592335
Build FAILED

Inside of rsb-report-arm-rtems6-kernel-stm32f4-1.txt the compiles are bombing with :

/Users/andreichichak/quick-start/rtems/6/lib/gcc/arm-rtems6/10.3.1/../../../../arm-rtems6/bin/ld: ./../../cpukit/librtemscpu.a(armv7m-context-initialize.o): in function `_CPU_Context_Initialize':
/Users/andreichichak/quick-start/src/rsb/rtems/build/arm-rtems6-kernel-stm32f4-1/arm-rtems6-kernel-stm32f4-1-3ec5f20484cc4201e1d7b87844505644533b6148/build/arm-rtems6/c/stm32f4/cpukit/../../../../../rtems-3ec5f20484cc4201e1d7b87844505644533b6148/c/src/../../cpukit/score/cpu/arm/armv7m-context-initialize.c:53: undefined reference to `_TLS_Alignment'
/Users/andreichichak/quick-start/rtems/6/lib/gcc/arm-rtems6/10.3.1/../../../../arm-rtems6/bin/ld: /Users/andreichichak/quick-start/src/rsb/rtems/build/arm-rtems6-kernel-stm32f4-1/arm-rtems6-kernel-stm32f4-1-3ec5f20484cc4201e1d7b87844505644533b6148/build/arm-rtems6/c/stm32f4/cpukit/../../../../../rtems-3ec5f20484cc4201e1d7b87844505644533b6148/c/src/../../cpukit/score/cpu/arm/armv7m-context-initialize.c:53: undefined reference to `_TLS_Size'
/Users/andreichichak/quick-start/rtems/6/lib/gcc/arm-rtems6/10.3.1/../../../../arm-rtems6/bin/ld: /Users/andreichichak/quick-start/src/rsb/rtems/build/arm-rtems6-kernel-stm32f4-1/arm-rtems6-kernel-stm32f4-1-3ec5f20484cc4201e1d7b87844505644533b6148/build/arm-rtems6/c/stm32f4/cpukit/../../../../../rtems-3ec5f20484cc4201e1d7b87844505644533b6148/c/src/../../cpukit/score/cpu/arm/armv7m-context-initialize.c:53: undefined reference to `_TLS_Data_begin'
/Users/andreichichak/quick-start/rtems/6/lib/gcc/arm-rtems6/10.3.1/../../../../arm-rtems6/bin/ld: /Users/andreichichak/quick-start/src/rsb/rtems/build/arm-rtems6-kernel-stm32f4-1/arm-rtems6-kernel-stm32f4-1-3ec5f20484cc4201e1d7b87844505644533b6148/build/arm-rtems6/c/stm32f4/cpukit/../../../../../rtems-3ec5f20484cc4201e1d7b87844505644533b6148/c/src/../../cpukit/score/cpu/arm/armv7m-context-initialize.c:53: undefined reference to `_TLS_Data_size'
/Users/andreichichak/quick-start/rtems/6/lib/gcc/arm-rtems6/10.3.1/../../../../arm-rtems6/bin/ld: /Users/andreichichak/quick-start/src/rsb/rtems/build/arm-rtems6-kernel-stm32f4-1/arm-rtems6-kernel-stm32f4-1-3ec5f20484cc4201e1d7b87844505644533b6148/build/arm-rtems6/c/stm32f4/cpukit/../../../../../rtems-3ec5f20484cc4201e1d7b87844505644533b6148/c/src/../../cpukit/score/cpu/arm/armv7m-context-initialize.c:53: undefined reference to `_TLS_BSS_begin'
/Users/andreichichak/quick-start/rtems/6/lib/gcc/arm-rtems6/10.3.1/../../../../arm-rtems6/bin/ld: /Users/andreichichak/quick-start/src/rsb/rtems/build/arm-rtems6-kernel-stm32f4-1/arm-rtems6-kernel-stm32f4-1-3ec5f20484cc4201e1d7b87844505644533b6148/build/arm-rtems6/c/stm32f4/cpukit/../../../../../rtems-3ec5f20484cc4201e1d7b87844505644533b6148/c/src/../../cpukit/score/cpu/arm/armv7m-context-initialize.c:53: undefined reference to `_TLS_BSS_size'
/Users/andreichichak/quick-start/rtems/6/lib/gcc/arm-rtems6/10.3.1/../../../../arm-rtems6/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000008018

If I compile with tests turned off, the set builder succeeds and I get a BSP that I can compile against, but a hello program compile bombs with the same missing symbols.

Am I missing some unobvious git command? Is the stm32f4 BSP not converted for 6? 

Thank you in advance, I can send the complete log files if it would help.

Andrei (from The Great White North)

---------------------
Andrei Chichak

Systems Developer
CBF Systems Inc.
225 College Plaza
8215 112 Street.
EDMONTON, ALBERTA
T6G 2C8
CANADA

Phone: 780-628-2072
Skype: andrei.chichak










-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20210809/5272ff1d/attachment-0001.html>


More information about the devel mailing list