Failed to build FreeRTOS/Demo/ for xtensa

the source is the recent tip (main). Has anyone seen the compilation erros?

Best Regards,

./xtensa/Xplorer-9.0.20-workspaces/workspace/FreeRTOS/FreeRTOS/Source/portable/ThirdParty/XCC/Xtensa/xtensa_context.h: Assembler messages:

./xtensa/Xplorer-9.0.20-workspaces/workspace/FreeRTOS/FreeRTOS/Source/portable/ThirdParty/XCC/Xtensa/xtensa_context.h:102: Error: unknown pseudo-op: `.pushsection.text'

./xtensa/Xplorer-9.0.20-workspaces/workspace/FreeRTOS/FreeRTOS/Source/portable/ThirdParty/XCC/Xtensa/xtensa_context.h:102: Error: junk at end of line, first unrecognized character is `X'

./xtensa/Xplorer-9.0.20-workspaces/workspace/FreeRTOS/FreeRTOS/Source/portable/ThirdParty/XCC/Xtensa/xtensa_context.h:146: Warning: .popsection without corresponding .pushsection; ignored

./xtensa/Xplorer-9.0.20-workspaces/workspace/FreeRTOS/FreeRTOS/Source/portable/ThirdParty/XCC/Xtensa/xtensa_context.h:203: Error: unknown pseudo-op: `.pushsection.text'

./xtensa/Xplorer-9.0.20-workspaces/workspace/FreeRTOS/FreeRTOS/Source/portable/ThirdParty/XCC/Xtensa/xtensa_context.h:223: Warning: .popsection without corresponding .pushsection; ignored

./xtensa/Xplorer-9.0.20-workspaces/workspace/FreeRTOS/FreeRTOS/Source/portable/ThirdParty/XCC/Xtensa/portasm.S:210: Error: invalid symbolic operand (opcode l32i.n)

./xtensa/Xplorer-9.0.20-workspaces/workspace/FreeRTOS/FreeRTOS/Source/portable/ThirdParty/XCC/Xtensa/portasm.S:379: Error: invalid symbolic operand (opcode l32i.n)

./xtensa/Xplorer-9.0.20-workspaces/workspace/FreeRTOS/FreeRTOS/Source/portable/ThirdParty/XCC/Xtensa/portasm.S:436: Error: invalid symbolic operand (opcode l32i.n)

There are some formatting issues from a recently merged PR. Can you revert xtensa_context.h to just before PR #768 was merged? The parent commit is d6bccb1 so for example you might use git checkout d6bccb1 portable/ThirdParty/XCC/Xtensa/xtensa_context.h. Then let us know if that works for you.

1 Like

Hi Jeff,

Thanks. Following your suggestion of using xtensa_context.h from d6bccb1 commit, the RTOSDemo built successfully.

Best Regards,

Thank you for reporting back! We will get it fixed.

The fixed has been merged with this PR - Revert Formatting on the XCC/Xtensa portable files by Skptak · Pull Request #948 · FreeRTOS/FreeRTOS-Kernel · GitHub.

Thank you @jefftenney and @flyingjt!