[RTEMS Project] #4773: Can't build ATSAM BSP

RTEMS trac trac at rtems.org
Wed Dec 21 03:17:30 UTC 2022


#4773: Can't build ATSAM BSP
--------------------------------------+--------------------------
 Reporter:  Kyle Williams             |       Owner:  Chris Johns
     Type:  task                      |      Status:  assigned
 Priority:  normal                    |   Milestone:
Component:  bsps                      |     Version:  6
 Severity:  normal                    |  Resolution:
 Keywords:  atsam, bsps, quick start  |  Blocked By:
 Blocking:                            |
--------------------------------------+--------------------------

Comment (by Kyle Williams):

 That $PATH problem was my mistake. I had started a new shell when I went
 to reproduce the problem and copy the output for this ticket. I forgot to
 do the export on my $PATH which typically is this:

 {{{
 /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/kyle/qs/rtems/6/bin
 }}}

 In which case the error is this:

 {{{
 + ./waf configure --prefix=/home/kyle/qs/rtems/6 --rtems-config=config.ini
 Setting top to                           :
 /home/kyle/qs/src/rsb/rtems/build/rtems-kernel-bsps-1/rtems-kernel-
 bsps-1-d0b92735b0dfd509e1edb82c7145042b67714f43/rtems-
 d0b92735b0dfd509e1edb82c7145042b67714f43
 Setting out to                           :
 /home/kyle/qs/src/rsb/rtems/build/rtems-kernel-bsps-1/rtems-kernel-
 bsps-1-d0b92735b0dfd509e1edb82c7145042b67714f43/rtems-
 d0b92735b0dfd509e1edb82c7145042b67714f43/build
 Regenerate build specification cache (needs a couple of seconds)...
 Section name 'atsamv' is a malformed 'arch/bsp' tuple
 (complete log in /home/kyle/qs/src/rsb/rtems/build/rtems-kernel-bsps-1
 /rtems-kernel-bsps-1-d0b92735b0dfd509e1edb82c7145042b67714f43/rtems-
 d0b92735b0dfd509e1edb82c7145042b67714f43/build/config.log)
 shell cmd failed: /bin/sh -ex  /home/kyle/qs/src/rsb/rtems/build/rtems-
 kernel-bsps-1/do-build
 error: building rtems-kernel-bsps-1
 }}}

 The line:

 {{{
 Section name 'atsamv' is a malformed 'arch/bsp' tuple
 }}}

 gave me a clue. So I used:

 {{{
 ../source-builder/sb-set-builder --prefix=$HOME/qs/rtems/6 --target=arm-
 rtems6 --with-rtems-bsp=arm/atsamv --with-rtems-tests=yes 6/rtems-kernel
 }}}

 Which begs the question, why does the Quick Start Guide use:

 {{{
 --with-rtems-bsp=erc32
 }}}

 in [https://docs.rtems.org/branches/master/user/start/bsp-build.html#rsb-
 bsp-build Section 2.5.1] if its supposed to be 'arch/bsp'?

 But that command seems to complete successfully:

 {{{
 $ ../source-builder/sb-set-builder --prefix=$HOME/qs/rtems/6 --target=arm-
 rtems6 --with-rtems-bsp=arm/atsamv --with-rtems-tests=yes 6/rtems-kernel
 RTEMS Source Builder - Set Builder, 6 (65f83cf973d6)
 Build Set: 6/rtems-kernel
 config: tools/rtems-kernel-6.cfg
 package: rtems-kernel-bsps-1
 building: rtems-kernel-bsps-1
 sizes: rtems-kernel-bsps-1: 225.306MB (installed: 33.319MB)
 cleaning: rtems-kernel-bsps-1
 reporting: tools/rtems-kernel-6.cfg -> rtems-kernel-bsps-1.txt
 reporting: tools/rtems-kernel-6.cfg -> rtems-kernel-bsps-1.xml
 staging: rtems-kernel-bsps-1 ->
 /home/kyle/qs/src/rsb/rtems/build/tmp/sb-1000-staging
 installing: rtems-kernel-bsps-1 -> /home/kyle/qs/rtems/6
 cleaning: rtems-kernel-bsps-1
 installing: 6/rtems-kernel -> /home/kyle/qs/rtems/6
 clean staging: 6/rtems-kernel
 Staging Size: 33.323MB
 Build Set: Time 0:00:15.271741
 }}}

 But then the test fails:

 {{{
 $ rtems-test --rtems-bsp=arm/atsamv build/arm/atsamv
 RTEMS Testing - Tester, 6.0.not_released
  Command Line: /home/kyle/qs/rtems/6/bin/rtems-test --rtems-bsp=arm/atsamv
 build/arm/atsamv
  Host: Linux DESKTOP-U0P8IUP 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri
 Apr 2 22:23:49 UTC 2021 x86_64
  Python: 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0]
 Host: Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.35 (Linux
 DESKTOP-U0P8IUP 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2
 22:23:49 UTC 2021 x86_64 x86_64)
 error: cannot find bsp configuration file: arm/atsamv.ini
 }}}

 Where am I going wrong? Am I malforming the command parameters again? Are
 the proper forms documented anywhere? I haven't seen anything in the
 manual yet.

--
Ticket URL: <http://devel.rtems.org/ticket/4773#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list