Skip to content

[BUG] esp32s3 builds fail with "Invalid size of struct __lock" #15137

Description

@lupyuen

Description / Steps to reproduce the issue

ESP32-S3 builds are failing for the past 12 hours:
https://github.com/NuttX/nuttx/actions/runs/12263479539/job/34215187224#step:7:761

Configuration/Tool: esp32s3-devkit/rtc
In file included from chip/esp32s3_libc_stubs.c:25:
chip/esp32s3_libc_stubs.c: In function 'esp_setup_syscall_table':
Error: chip/esp32s3_libc_stubs.c:418:3: error: static assertion failed: "Invalid size of struct __lock"
  418 |   static_assert(sizeof(struct __lock) >= sizeof(mutex_t),
      |   ^~~~~~~~~~~~~
make[1]: *** [Makefile:146: esp32s3_libc_stubs.o] Error 1
make[1]: Target 'libarch.a' not remade because of errors.

More details at nuttx-dashboard.org
Screenshot 2024-12-11 at 4 39 23 PM

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

Ubuntu LTS at GitHub Actions

NuttX Version

master

Issue Architecture

[Arch: xtensa]

Issue Area

[Area: Board support]

Verification

  • I have verified before submitting the report.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Arch: xtensaIssues related to the Xtensa architectureArea: Board supportBoard support issuesOS: LinuxIssues related to Linux (building system, etc)Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions