Open sigmundklaa opened 1 month ago
@sigmundklaa - can you potentially reproduce this with an in-tree board?
CC @dleach02
@sigmundklaa - can you potentially reproduce this with an in-tree board?
Yes ofcourse. I get the same error when compiling for the nxp/s32z2xxdc2/s32z270/rtu1
board, using:
west build -p always -b s32z2xxdc2/s32z270/rtu1 samples/hello_world -- -DCONFIG_XIP=y
I am facing the same problem, trying to compile zephyr for another chip in the family. My toolchain is even older, GCC 7.5.0 (big endian).
@sigmundklaa hello, I managed to build the zephyr toolchain (GCC 12.x) for armv7-r big-endian. Please check https://github.com/zephyrproject-rtos/sdk-ng/pull/765
Here's direct link to the download: https://github.com/zephyrproject-rtos/sdk-ng/suites/24251779094/artifacts/1546357536
@ntavish Nice! I can check it out later. Did that in any way impact the XIP issue though?
I think so, don't see it anymore, although I have several other errors right now and possibly my build stops before that (seems unlikely though).
Just tested, same error on GCC 12.2:
I think @sigmundklaa's reasoning is correct and the two cannot be combined, please check the PR I made.
When a Cortex A/R based SoC is compiled with
CONFIG_XIP=y
, linking fails with the following syntax error:I am compiling for an
ARM Cortex R4F
, using out-of-tree SoC support for the TMS570LS1224 which is linked at the bottom of the issue. The cause seems to be the below line (fromlinker_zephyr_pre0.cmd:175
):which is the result of: https://github.com/zephyrproject-rtos/zephyr/blob/d9b3ffa5eafc1f7e6dad0e57f01d9e787cfd0fc5/include/zephyr/arch/arm/cortex_a_r/scripts/linker.ld#L277
From what I can tell, combining
ALIGN_WITH_INPUT
andALIGN
is not supported, however I'm not sure of this. For me, replacingSECTION_DATA_PROLOGUE
withSECTION_PROLOGUE
fixed the issue, but I don't know if that is the best solution.To Reproduce Steps to reproduce the behavior:
Expected behavior Successful compilation
Impact Prevents compilation
Environment (please complete the following information):
Additional context My setup, including a patched big endian ARM GCC toolchain, is available at https://github.com/OrbitNTNU/zephyr-hw