Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samples: code_relocation_nocopy: undefined reference to z_arm_platform_init for nrf5340dk/nrf5340/cpuapp #71515

Closed
gmarull opened this issue Apr 15, 2024 · 1 comment
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx

Comments

@gmarull
Copy link
Member

gmarull commented Apr 15, 2024

Describe the bug

samples/application_development/code_relocation_nocopy does not build for nrf5340dk/nrf5340/cpuapp. Build results in a linker error:

...
/home/gmarull/zephyr-sdk-0.16.4/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/arch/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a(reset.S.obj): in function `__start':
/home/gmarull/ws/nordic/zephyrproject/zephyr/arch/arm/core/cortex_m/reset.S:97: undefined reference to `z_arm_platform_init'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

To Reproduce

west build -b nrf5340dk/nrf5340/cpuapp samples/application_development/code_relocation_nocopy -T sample.application_development.code_relocation_nocopy -p

Expected behavior

Sample builds

Impact

Showstopper

Logs and console output

See above.

Environment (please complete the following information):

  • OS: Linux
  • Toolchain Zephyr SDK 0.16.4
  • Commit SHA or Version used 4959a02

Additional context

Discovered as part of the sdk-zephyr upmerge, in NCS CI.

@gmarull gmarull added bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx labels Apr 15, 2024
@gmarull
Copy link
Member Author

gmarull commented Apr 15, 2024

Duplicate of #71511

@gmarull gmarull marked this as a duplicate of #71511 Apr 15, 2024
@gmarull gmarull closed this as completed Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx
Projects
None yet
Development

No branches or pull requests

2 participants