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

Nightly: UHURU_RAVEN doesn't compile greentea tests for baremetal #13187

Closed
MarceloSalazar opened this issue Jun 24, 2020 · 4 comments · Fixed by #13188
Closed

Nightly: UHURU_RAVEN doesn't compile greentea tests for baremetal #13187

MarceloSalazar opened this issue Jun 24, 2020 · 4 comments · Fixed by #13188

Comments

@MarceloSalazar
Copy link

MarceloSalazar commented Jun 24, 2020

Description of defect

UHURU_RAVEN targets fails to compile greentea tests for baremetal in Mbed OS 6

Build failures:
  * UHURU_RAVEN::GCC_ARM::FEATURES-STORAGE-TESTS-BLOCKDEVICE-GENERAL_BLOCK_DEVICE
        Building project general_block_device (UHURU_RAVEN, GCC_ARM)
        Scan: GCC_ARM
        Scan: general_block_device
        Compile [100.0%]: main.cpp
        [Fatal Error] main.cpp@32,10: SPIFBlockDevice.h: No such file or directory
        
  * UHURU_RAVEN::GCC_ARM::FEATURES-STORAGE-TESTS-FILESYSTEM-GENERAL_FILESYSTEM
        Building project general_filesystem (UHURU_RAVEN, GCC_ARM)
        Scan: GCC_ARM
        Scan: general_filesystem
        Compile [100.0%]: main.cpp
        [Fatal Error] main.cpp@26,10: SPIFBlockDevice.h: No such file or directory

Target(s) affected by this defect ?

  • UHURU_RAVEN

Toolchain(s) (name and version) displaying this defect ?

Arm Compiler 6 and GCC 9

What version of Mbed-os are you using (tag or sha) ?

mbed-os-6.0.0

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

Mbed CLI 1.10.4

How is this defect reproduced ?

git clone https://github.com/ARMmbed/mbed-os
mbed deploy
mbed test -t GCC_ARM -m UHURU_RAVEN --compile --app-config mbed-os/TESTS/configs/baremetal.json -c

@jamesbeyond @toyowata @ARMmbed/team-uhuru

@ciarmcom
Copy link
Member

Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers.
Internal Jira reference: https://jira.arm.com/browse/MBOTRIAGE-2738

@MarceloSalazar MarceloSalazar changed the title UHURU_RAVEN doesn't compile greentea tests for baremetal Nightly: UHURU_RAVEN doesn't compile greentea tests for baremetal Jun 24, 2020
@toyowata
Copy link
Contributor

@MarceloSalazar
I could reproduce the compile error with UHURU_RAVEN target.
Other targets (K82F, MTS_DRAGONFLY_F413RH and EP_ATRAS) have same issue which has COMPONENT_SPIF definition.

I have added the spif value in the baremetal.json here, but I still got compile error.

"requires": [
"bare-metal",
"greentea-client",
"utest",
"unity",
"psa",
"psa-services",
"mbedtls",
"psa-compliance-framework",
"filesystem",
"littlefs",
"littlefs2",
"mbed-trace",
"device_key",
"storage_tdb_internal",
"storage_filesystem",
"storage_tdb_external",
"fat_chan",
"lora",
"nfc",
"network-emac",
"flashiap-block-device",
"system-storage",
"filesystemstore",
"SecureStore",
"storage",
"kv-map",
"direct-access-devicekey",
"tdbstore",
"kv-config",
"events",
"kv-global-api",
"sd",
"qspif",
"cryptocell310",
"drivers-usb"
],

@toyowata
Copy link
Contributor

toyowata commented Jun 25, 2020

Ah, spif is not a proper name of mbed_lib.json for the SPIF component.

Adding the "spif-driver" in baremetal.json fixes the problem.

$ mbed test -t GCC_ARM -m UHURU_RAVEN --compile --app-config TESTS/configs/baremetal.json -n FEATURES-STORAGE-TESTS-BLOCKDEVICE-GENERAL_BLOCK_DEVICE
[mbed] Working path "/Users/toywat01/dev/uhuru/mbed-os" (program)
Building library mbed-build (UHURU_RAVEN, GCC_ARM)
Scan: mbed-os
Building project general_block_device (UHURU_RAVEN, GCC_ARM)
Scan: GCC_ARM
Scan: general_block_device
Link: general_block_device
Elf2Bin: general_block_device
| Module                          |     .text |   .data |     .bss |
|---------------------------------|-----------|---------|----------|
| [fill]                          |    78(+0) |   6(+0) |   50(+0) |
| [lib]/c_nano.a                  |  5104(+0) | 100(+0) |   21(+0) |
| [lib]/gcc.a                     |  1300(+0) |   0(+0) |    0(+0) |
| [lib]/m.a                       |   324(+0) |   0(+0) |    0(+0) |
| [lib]/misc                      |   188(+0) |   4(+0) |   28(+0) |
| [lib]/nosys.a                   |    32(+0) |   0(+0) |    0(+0) |
| [lib]/stdc++_nano.a             |     0(+0) |   0(+0) |    0(+0) |
| components/storage              |  2774(+0) |   0(+0) |    8(+0) |
| drivers/source                  |  2182(+0) |   0(+0) | 1660(+0) |
| features/frameworks             |  5212(+0) |  69(+0) |  369(+0) |
| features/storage                |  6428(+0) | 113(+0) |  994(+0) |
| hal/LowPowerTickerWrapper.o     |   936(+0) |   0(+0) |    0(+0) |
| hal/mbed_critical_section_api.o |   104(+0) |   0(+0) |    2(+0) |
| hal/mbed_gpio.o                 |   124(+0) |   0(+0) |    0(+0) |
| hal/mbed_lp_ticker_api.o        |    24(+0) |   4(+0) |   64(+0) |
| hal/mbed_lp_ticker_wrapper.o    |   208(+0) |   0(+0) |  117(+0) |
| hal/mbed_pinmap_common.o        |   140(+0) |   0(+0) |    0(+0) |
| hal/mbed_ticker_api.o           |  1184(+0) |   0(+0) |    0(+0) |
| hal/mbed_us_ticker_api.o        |    30(+0) |   4(+0) |   64(+0) |
| hal/static_pinmap.o             |    12(+0) |   0(+0) |    0(+0) |
| platform/source                 |  5312(+0) | 260(+0) |  428(+0) |
| rtos/source                     |     4(+0) |   0(+0) |    0(+0) |
| targets/TARGET_STM              | 14440(+0) |   8(+0) | 1211(+0) |
| Subtotals                       | 46140(+0) | 568(+0) | 5016(+0) |
Total Static RAM memory (data + bss): 5584(+0) bytes
Total Flash memory (text + data): 46708(+0) bytes

Image: BUILD/tests/UHURU_RAVEN/GCC_ARM/features/storage/TESTS/blockdevice/general_block_device/general_block_device.bin


Memory map breakdown for built projects (values in Bytes):
| name                 | target      | toolchain | static_ram | total_flash |
|----------------------|-------------|-----------|------------|-------------|
| general_block_device | UHURU_RAVEN | GCC_ARM   |       5584 |       46708 |


Build successes:
  * UHURU_RAVEN::GCC_ARM::FEATURES-STORAGE-TESTS-BLOCKDEVICE-GENERAL_BLOCK_DEVICE
  * UHURU_RAVEN::GCC_ARM::MBED-BUILD

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 25, 2020

Thanks @toyowata

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants