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: lib: cmsis_dsp: Overflows in libraries.cmsis_dsp.matrix #40593

Closed
PerMac opened this issue Nov 23, 2021 · 1 comment
Closed

tests: lib: cmsis_dsp: Overflows in libraries.cmsis_dsp.matrix #40593

PerMac opened this issue Nov 23, 2021 · 1 comment
Assignees
Labels
area: CMSIS-DSP Enhancement Changes/Updates/Additions to existing features

Comments

@PerMac
Copy link
Member

PerMac commented Nov 23, 2021

Describe the bug
Some tests from tests/lib/cmsis_dsp/matrix overflows on nrf9160dk_nrf910_ns. The full list is added below. Can the description of the tests in their testcase.yaml be updated for min ram/rom accordingly?
We port Zephyr to our sdk and run all the tests with "--overflow-as-errors" to verify the integrity. Therefore these overflows are problematic for us when the tests are not correctly filtered out.

To Reproduce
Steps to reproduce the behavior:

  1. run scripts/twister -T tests/lib/cmsis_dsp/matrix/ -p nrf9160dk_nrf9160_ns --overflow-as-errors -v
  2. see errors

Expected behavior
The tests are correctly handled by twister.

Impact
Annoyance

Logs and console output
The failing tests:

INFO    -  5/22 nrf9160dk_nrf9160_ns      tests/lib/cmsis_dsp/matrix/libraries.cmsis_dsp.matrix.binary_q15 FAILED Build failure (build)
ERROR   - see: /home/maciej/zephyrproject2/zephyr/twister-out/nrf9160dk_nrf9160_ns/tests/lib/cmsis_dsp/matrix/libraries.cmsis_dsp.matrix.binary_q15/build.log
INFO    -  6/22 nrf9160dk_nrf9160_ns      tests/lib/cmsis_dsp/matrix/libraries.cmsis_dsp.matrix.binary_q15.fpu FAILED Build failure (build)
ERROR   - see: /home/maciej/zephyrproject2/zephyr/twister-out/nrf9160dk_nrf9160_ns/tests/lib/cmsis_dsp/matrix/libraries.cmsis_dsp.matrix.binary_q15.fpu/build.log
INFO    - 10/22 nrf9160dk_nrf9160_ns      tests/lib/cmsis_dsp/matrix/libraries.cmsis_dsp.matrix.unary_f64.fpu FAILED Build failure (build)
ERROR   - see: /home/maciej/zephyrproject2/zephyr/twister-out/nrf9160dk_nrf9160_ns/tests/lib/cmsis_dsp/matrix/libraries.cmsis_dsp.matrix.unary_f64.fpu/build.log
INFO    - 11/22 nrf9160dk_nrf9160_ns      tests/lib/cmsis_dsp/matrix/libraries.cmsis_dsp.matrix.unary_f64 FAILED Build failure (build)
ERROR   - see: /home/maciej/zephyrproject2/zephyr/twister-out/nrf9160dk_nrf9160_ns/tests/lib/cmsis_dsp/matrix/libraries.cmsis_dsp.matrix.unary_f64/build.log
INFO    - 13/22 nrf9160dk_nrf9160_ns      tests/lib/cmsis_dsp/matrix/libraries.cmsis_dsp.matrix.unary_f32 FAILED Build failure (build)
ERROR   - see: /home/maciej/zephyrproject2/zephyr/twister-out/nrf9160dk_nrf9160_ns/tests/lib/cmsis_dsp/matrix/libraries.cmsis_dsp.matrix.unary_f32/build.log
INFO    - 14/22 nrf9160dk_nrf9160_ns      tests/lib/cmsis_dsp/matrix/libraries.cmsis_dsp.matrix.unary_f32.fpu FAILED Build failure (build)
ERROR   - see: /home/maciej/zephyrproject2/zephyr/twister-out/nrf9160dk_nrf9160_ns/tests/lib/cmsis_dsp/matrix/libraries.cmsis_dsp.matrix.unary_f32.fpu/build.log

e.g of build log:

[ 95%] Building C object zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj
[ 95%] Linking C executable zephyr_pre0.elf
/home/maciej/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr_pre0.elf section `rodata' will not fit in region `FLASH'
/home/maciej/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `FLASH' overflowed by 22900 bytes
collect2: error: ld returned 1 exit status
zephyr/CMakeFiles/zephyr_pre0.dir/build.make:125: recipe for target 'zephyr/zephyr_pre0.elf' failed
make[2]: *** [zephyr/zephyr_pre0.elf] Error 1
CMakeFiles/Makefile2:2669: recipe for target 'zephyr/CMakeFiles/zephyr_pre0.dir/all' failed
make[1]: *** [zephyr/CMakeFiles/zephyr_pre0.dir/all] Error 2
Makefile:90: recipe for target 'all' failed
make: *** [all] Error 2

Environment (please complete the following information):

  • OS: Ubuntu 18.04
  • Toolchain zephyr-sdk 0.13.1
  • Commit SHA or Version used: 4de9940
@PerMac PerMac added the bug The issue is a bug, or the PR is fixing a bug label Nov 23, 2021
@cfriedt cfriedt added Enhancement Changes/Updates/Additions to existing features and removed bug The issue is a bug, or the PR is fixing a bug labels Nov 30, 2021
@stephanosio
Copy link
Member

Closing this as per #44947 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: CMSIS-DSP Enhancement Changes/Updates/Additions to existing features
Projects
None yet
Development

No branches or pull requests

3 participants