Skip to content

Compiling for 5.2 warns about non unique test_env.o #3098

@infinnovation-dev

Description

@infinnovation-dev

Description

  • Type: Bug
  • Priority: Minor

Bug

Target
K64F

Toolchain:
GCC_ARM

mbed-cli version:
0.9.10

mbed-os sha:
1d87508

Expected behavior
Clean compilation

Actual behavior
Compilation succeeds, but a warning message is issued:

Object file test_env.o is not unique! It could be made from: ./mbed-os/features/frameworks/greentea-client/source/test_env.cpp /home/colin/mbed/null/mbed-os/features/unsupported/tests/mbed/env/test_env.cpp

Steps to reproduce

$ mbed new null
[mbed] Creating new program "null" (git)
[mbed] Adding library "mbed-os" from "https://github.com/ARMmbed/mbed-os" at latest revision in the current branch
[mbed] Updating reference "mbed-os" -> "https://github.com/ARMmbed/mbed-os/#d1a71eb9fc0982b255515b10d7bb735390f229a5"
$ cd null
$ echo 'int main() {return 0;}' > main.cpp
$ cd mbed-os
$ mbed update mbed-os-5.2
[mbed] Updating library "mbed-os" to branch mbed-os-5.2
[mbed] Updating reference "mbed-os" -> "https://github.com/ARMmbed/mbed-os/#1d875083b701a5e530f97ba615e2c0d2060d09e5"
$ cd ..
$ mbed compile

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions