Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading fails to build on a number of platforms #34739

Closed
galak opened this issue Apr 30, 2021 · 2 comments · Fixed by #34749
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug priority: high High impact/importance bug

Comments

@galak
Copy link
Collaborator

galak commented Apr 30, 2021

./scripts/twister -s tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading -l

Gets:

ERROR   - segger_trb_stm32f407      tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/segger_trb_stm32f407/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:    7/ 276   2%  skipped:   83, failed:    1
ERROR   - serpente                  tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/serpente/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:   28/ 276  10%  skipped:   85, failed:    2
ERROR   - ruuvi_ruuvitag            tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/ruuvi_ruuvitag/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:   29/ 276  10%  skipped:   85, failed:    3
ERROR   - thingy52_nrf52832         tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/thingy52_nrf52832/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:   30/ 276  10%  skipped:   85, failed:    4
ERROR   - sam4l_ek                  tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/sam4l_ek/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:   49/ 276  17%  skipped:   89, failed:    5
ERROR   - pinetime_devkit0          tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/pinetime_devkit0/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:   57/ 276  20%  skipped:   89, failed:    6
ERROR   - nrf9160_innblue22         tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/nrf9160_innblue22/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:   63/ 276  22%  skipped:   89, failed:    7
ERROR   - nrf9160_innblue21         tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/nrf9160_innblue21/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:   88/ 276  31%  skipped:   92, failed:    8
ERROR   - lpcxpresso11u68           tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/lpcxpresso11u68/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:   91/ 276  32%  skipped:   93, failed:    9
ERROR   - faze                      tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/faze/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:   92/ 276  33%  skipped:   93, failed:   10
ERROR   - mec1501modular_assy6885   tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/mec1501modular_assy6885/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:   95/ 276  34%  skipped:   93, failed:   11
ERROR   - mimxrt1010_evk            tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/mimxrt1010_evk/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:   96/ 276  34%  skipped:   93, failed:   12
ERROR   - mimxrt1024_evk            tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/mimxrt1024_evk/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:   97/ 276  35%  skipped:   93, failed:   13
ERROR   - mm_swiftio                tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/mm_swiftio/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:   98/ 276  35%  skipped:   93, failed:   14
ERROR   - google_kukui              tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/google_kukui/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  104/ 276  37%  skipped:   93, failed:   15
ERROR   - frdm_k82f                 tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/frdm_k82f/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  109/ 276  39%  skipped:   93, failed:   16
ERROR   - ip_k66f                   tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/ip_k66f/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  113/ 276  40%  skipped:   93, failed:   17
ERROR   - decawave_dwm1001_dev      tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/decawave_dwm1001_dev/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  121/ 276  43%  skipped:   95, failed:   18
ERROR   - bcm958402m2_m7            tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/bcm958402m2_m7/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  125/ 276  45%  skipped:   95, failed:   19
ERROR   - bt510                     tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/bt510/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  129/ 276  46%  skipped:   95, failed:   20
ERROR   - bl653_dvk                 tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/bl653_dvk/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  130/ 276  47%  skipped:   95, failed:   21
ERROR   - bbc_microbit_v2           tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/bbc_microbit_v2/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  148/ 276  53%  skipped:   95, failed:   22
ERROR   - twr_ke18f                 tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/twr_ke18f/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  151/ 276  54%  skipped:   95, failed:   23
ERROR   - reel_board_v2             tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/reel_board_v2/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  153/ 276  55%  skipped:   95, failed:   24
ERROR   - reel_board                tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/reel_board/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  156/ 276  56%  skipped:   95, failed:   25
ERROR   - particle_boron            tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/particle_boron/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  188/ 276  68%  skipped:   97, failed:   26
ERROR   - mimxrt1064_evk            tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/mimxrt1064_evk/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  189/ 276  68%  skipped:   97, failed:   27
ERROR   - mimxrt1060_evk_hyperflash tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/mimxrt1060_evk_hyperflash/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  191/ 276  69%  skipped:   97, failed:   28
ERROR   - mimxrt1060_evk            tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/mimxrt1060_evk/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  193/ 276  69%  skipped:   97, failed:   29
ERROR   - mec15xxevb_assy6853       tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/mec15xxevb_assy6853/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  194/ 276  70%  skipped:   97, failed:   30
ERROR   - mimxrt1050_evk_qspi       tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/mimxrt1050_evk_qspi/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  196/ 276  71%  skipped:   97, failed:   31
ERROR   - mimxrt1050_evk            tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/mimxrt1050_evk/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  197/ 276  71%  skipped:   97, failed:   32
ERROR   - mimxrt1015_evk            tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/mimxrt1015_evk/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  198/ 276  71%  skipped:   97, failed:   33
ERROR   - mimxrt1020_evk            tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/mimxrt1020_evk/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  201/ 276  72%  skipped:   97, failed:   34
ERROR   - atsamr21_xpro             tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/atsamr21_xpro/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  203/ 276  73%  skipped:   97, failed:   35
ERROR   - atsamd20_xpro             tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/atsamd20_xpro/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  208/ 276  75%  skipped:   97, failed:   36
ERROR   - atsamd21_xpro             tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/atsamd21_xpro/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  210/ 276  76%  skipped:   97, failed:   37
ERROR   - usb_kw24d512              tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/usb_kw24d512/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  216/ 276  78%  skipped:   97, failed:   38
ERROR   - adafruit_feather_m0_basic_proto tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/adafruit_feather_m0_basic_proto/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  218/ 276  78%  skipped:   97, failed:   39
ERROR   - bl652_dvk                 tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/bl652_dvk/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  219/ 276  79%  skipped:   97, failed:   40
ERROR   - bl654_dvk                 tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/bl654_dvk/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  225/ 276  81%  skipped:   97, failed:   41
ERROR   - npcx7m6fb_evb             tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/npcx7m6fb_evb/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  246/ 276  89%  skipped:   97, failed:   42
ERROR   - olimex_stm32_p405         tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/olimex_stm32_p405/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  261/ 276  94%  skipped:   97, failed:   43
ERROR   - hexiwear_kw40z            tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/hexiwear_kw40z/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  262/ 276  94%  skipped:   97, failed:   44
ERROR   - frdm_kw41z                tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/frdm_kw41z/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  267/ 276  96%  skipped:   97, failed:   45
ERROR   - bbc_microbit              tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/bbc_microbit/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  269/ 276  97%  skipped:   97, failed:   46
ERROR   - 96b_carbon_nrf51          tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading FAILED: Build failure
ERROR   - see: /home/galak/git/zephyr/twister-out/96b_carbon_nrf51/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/build.log
INFO    - Total complete:  276/ 276  100%  skipped:   97, failed:   47
INFO    - 212 of 259 test configurations passed (81.85%), 47 failed, 97 skipped with 0 warnings in 287.93 seconds

logs look like:

[ 93%] Linking C executable zephyr_prebuilt.elf
/home/galak/pr-336/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld: libzephyr.a(rtt_console.c.obj): in function `k_mutex_lock':
/home/galak/git/zephyr/twister-out/segger_trb_stm32f407/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/zephyr/include/generated/syscalls/kernel.h:674: undefined reference to `z_impl_k_mutex_lock'
/home/galak/pr-336/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld: libzephyr.a(rtt_console.c.obj): in function `k_mutex_unlock':
/home/galak/git/zephyr/twister-out/segger_trb_stm32f407/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/zephyr/include/generated/syscalls/kernel.h:687: undefined reference to `z_impl_k_mutex_unlock'
/home/galak/pr-336/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld: libzephyr.a(rtt_console.c.obj): in function `k_sleep':
/home/galak/git/zephyr/twister-out/segger_trb_stm32f407/tests/arch/arm/arm_no_multithreading/arch.arm.no_multithreading/zephyr/include/generated/syscalls/kernel.h:86: undefined reference to `z_impl_k_sleep'
collect2: error: ld returned 1 exit status
gmake[2]: *** [zephyr/CMakeFiles/zephyr_prebuilt.dir/build.make:120: zephyr/zephyr_prebuilt.elf] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:2914: zephyr/CMakeFiles/zephyr_prebuilt.dir/all] Error 2
@galak galak added bug The issue is a bug, or the PR is fixing a bug priority: high High impact/importance bug labels Apr 30, 2021
@ioannisg
Copy link
Member

I wonder how this was not caught by CI @nordic-krch

@galak
Copy link
Collaborator Author

galak commented May 4, 2021

decided to merge fix to unblock CI issues, and open a new high priority issue to track adding hardware platforms to test this on beyond QEMU platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug priority: high High impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants