Skip to content

NUCLEO_G031K8 Failed to build all greentea images in bare-metal profile  #13498

@jamesbeyond

Description

@jamesbeyond

Description of defect

after NUCLEO_G031K8 been added to mbed-os via #13006 , we found that NUCLEO_G031K8 failed on building greentea TESTS-MBED_HAL-MINIMUM_REQUIREMENTS

Target(s) affected by this defect ?

NUCLEO_G031K8

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

GCC_ARM only, ARMC6 works fine

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

latest master : afcf91f

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

mbed-cli

How is this defect reproduced ?

run:

mbed test --compile -m NUCLEO_G031K8 -t GCC_ARM --app-config TESTS/configs/baremetal.json

Error:

Build failures:
  * NUCLEO_G031K8::GCC_ARM::TESTS-MBED_HAL-MINIMUM_REQUIREMENTS
        Building project minimum_requirements (NUCLEO_G031K8, GCC_ARM)
        Scan: GCC_ARM
        Scan: minimum_requirements
        Compile [100.0%]: main.cpp
        Link: minimum_requirements
        /usr/local/gcc-arm-none-eabi-9-2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld:./BUILD/tests/NUCLEO_G031K8/GCC_ARM/./TESTS/mbed_hal/minimum_requirements/.link_script.ld:90 cannot move location counter backwards (from 00000000200010b8 to 0000000020001000)
        collect2: error: ld returned 1 exit status
        
[mbed] Working path "/builds/ws/mbed-os-ci_build-GCC_ARM@3/mbed-os" (program)
[mbed] WARNING: Could not find mbed program in current path "/builds/ws/mbed-os-ci_build-GCC_ARM@3/mbed-os".
       You can fix this by calling "mbed new ." in the root of your program.
---
[mbed] ERROR: "/usr/bin/python" returned error.
       Code: 1
       Path: "/builds/ws/mbed-os-ci_build-GCC_ARM@3/mbed-os"
       Command: "/usr/bin/python -u /builds/ws/mbed-os-ci_build-GCC_ARM@3/mbed-os/tools/test.py -D MBED_TRAP_ERRORS_ENABLED=1 -D SKIP_TIME_DRIFT_TESTS=1 -D MBED_TEST_MODE -t GCC_ARM -m NUCLEO_G031K8 --source . --build ./BUILD/tests/NUCLEO_G031K8/GCC_ARM --test-spec ./BUILD/tests/NUCLEO_G031K8/GCC_ARM/test_spec.json --build-data BUILD/tests/build_data.json --app-config TESTS/configs/baremetal.json --greentea"
       Tip: You could retry the last command with "-v" flag for verbose output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions