export to cmake_gcc_arm generates include list in wrong order, doesn't add all libs to PRE_LINK command
See original GitHub issueI 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 inmbed-os/events/
the other inmbed- 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 theEventQueue.h
in theFEATURE_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 toTARGET_LINK_LIBRARIES
fixes the problem. (the libs were added toLD_SYS_LIBS
variable)
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
mbed: mbed-os-5.10.4, 2fd0c5cfb mbed-cli: v1.8.3 from pip
@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.