question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

export to cmake_gcc_arm generates include list in wrong order, doesn't add all libs to PRE_LINK command

See original GitHub issue

I try to use to use the cmake_gcc_arm exporter with the BLE_Heartbeat example and encountered following problems:

  • in mbed-os there are two files called EventQueue.h, one in mbed-os/events/ the other in mbed- os/features/FEATURE_BLE/ble/pal/. looking at the generated include list, the latter mentioned path precedes the former resulting in a compile error as the EventQueue.h in the FEATURE_BLE is in another namespace and ble specific. changing the order fixes the problem.

  • the linking fails as the cryptocell related libraries are not specified in the PRE_LINK command. adding these libraries to TARGET_LINK_LIBRARIES fixes the problem. (the libs were added to LD_SYS_LIBS variable)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bearshcommented, Dec 17, 2018

mbed: mbed-os-5.10.4, 2fd0c5cfb mbed-cli: v1.8.3 from pip

0reactions
adbridgecommented, Nov 1, 2019

@bearsh we had some issues with out automated bot yesterday which closed this. However as this is indeed thought to be a bug in BLE it should actually be an issue in the mbed-os repo not in the cli repo…If you are still seeing the issue with the latest version of mbed-os please re-raise the issue there. Many thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does the order in which libraries are linked sometimes ...
The result is that if you link a static library too early, then the functions in that library are no longer available to...
Read more >
[bug] conan create fails to properly set shared library links for ...
Description We are experiencing a problem when building a package for one of our projects on Debian 11 machines, with GCC 10 compiler....
Read more >
2014-October.txt - CMake
From the help for the "FILE" command: GLOB will generate a list of all files that match the globbing expressions and store it...
Read more >
How to tell cmake to link libcxx correctly? (#18275) · Issues
Except for telling me the linker is gnu's ld, other error messages are the same. Then I give llvm's lld a try,. set(CMAKE_EXE_LINKER_FLAGS...
Read more >
Defining metadata (meta.yaml) - Conda
All the metadata in the conda-build recipe is specified in the meta.yaml file. ... If you don't use these variables then you won't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found