-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Copy link
Labels
area: XtensaXtensa ArchitectureXtensa ArchitecturebugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bugLow impact/importance bug
Description
Describe the bug
Building for Xtensa architecture using a recent Cadence toolchain fails with undefined reference errors to _xtos_pso_savearea
and _xtos_core_restore_nw
in file arch/xtensa/core/startup/reset_vector.S
.
It seems these symbols have been renamed to xthal_pso_savearea
and xthal_core_restore_nw
. Build succeeds if above symbols are replaced with these.
To Reproduce
Not straightforward to reproduce as it only happens on a custom Xtensa core with #define XCHAL_HAVE_PSO_CDM 1
and #define XCHAL_HAVE_PSO_FULL_RETENTION 0
. Sample cores have XCHAL_HAVE_PSO_CDM
set to 0 so the issue does not occur for them.
Expected behavior
Successful build.
Impact
Showstopper.
Logs and console output
xt-ld: zephyr/arch/arch/xtensa/core/startup/libarch__xtensa__core__startup.a(reset_vector.S.obj): in function `__start':
C:/Proj/Zephyr/zephyrproject/zephyr/arch/xtensa/core/startup/reset_vector.S:40: undefined reference to `_xtos_pso_savearea'
xt-ld: C:/Proj/Zephyr/zephyrproject/zephyr/arch/xtensa/core/startup/reset_vector.S:40: undefined reference to `_xtos_core_restore_nw'
xt-ld: zephyr/arch/arch/xtensa/core/startup/libarch__xtensa__core__startup.a(reset_vector.S.obj): in function `_ResetHandler':
C:/Proj/Zephyr/zephyrproject/zephyr/arch/xtensa/core/startup/reset_vector.S:334: undefined reference to `_xtos_core_restore_nw'
clang: error: Xtensa-ld command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
Environment:
- OS: Windows 10
- Toolchain: Cadence RJ-2024.03
- Commit SHA: 1a89e16
Metadata
Metadata
Assignees
Labels
area: XtensaXtensa ArchitectureXtensa ArchitecturebugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bugLow impact/importance bug