Skip to content

armclang support broken #62589

@tejlmand

Description

@tejlmand

Notes (delete this)
Merging of PR: #60031 broke armclang support.

Describe the bug
PR #60031 has remove build targets from the build system, causing failures when building with armclang.

CMake Error at /projects/github/ncs/zephyr/cmake/linker/armlink/target.cmake:74 (target_link_libraries):
  Error evaluating generator expression:                                                                                                                                                                                                      

    $<TARGET_OBJECTS:arch__arm__core__aarch32__cortex_m>                                                                                                                                                                                      

  Objects of target "arch__arm__core__aarch32__cortex_m" referenced but no                                                                                                                                                                    
  such target exists.                                                                                                                                                                                                                         
Call Stack (most recent call first):                                                                                                                                                                                                          
  /projects/github/ncs/zephyr/CMakeLists.txt:1427 (toolchain_ld_link_elf)                                                                                                                                                                     

....

To Reproduce
Set ZEPHYR_TOOLCHAIN_VARIANT=armclang and build.

Expected behavior

Impact
Not possible to build using armclang

Logs and console output
See above.

Environment (please complete the following information):

Additional context
Add any other context that could be relevant to your issue, such as pin setting,
target configuration, ...

Metadata

Metadata

Assignees

Labels

bugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions