Skip to content

multiple build failures with XCC toolchain #3947

@zephyrbot

Description

@zephyrbot

Reported by Andrew Boie:

We are experiencing multiple build failures with the XCC toolchain.

Steps to reproduce:

  1. Set up XCC on local workstation, you need both Xplorer 7.0.4 and 6.0.4
  2. export ZEPHYR_GCC_VARIANT=xcc
  3. Run sanitycheck --all

This bug needs to be split by root cause, there are a few of them:

  1. Use of self-referential designated initializers for wait queue members of kernel objects, like fifo/lifos
  2. Designated initializers for anonymous structs/unions
  3. { 0 } initializers where the first member of the initialized struct is not a scalar type
  4. Some problem with D_233L which results in 'file truncted' errors

It is NOT necessarily the case that we should just change all our code to work around limitations of this compiler.
We may instead pull up to a newer XCC version for all SOC targets and use its built-in clang support.

End result of this bug is all issues fixed, sanitycheck --all passes, or bugs filed for individual issues.

(Imported from Jira ZEP-2517)

Metadata

Metadata

Assignees

Labels

area: XtensaXtensa ArchitecturebugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions