Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] lpcxpresso-lpc54628/nsh fails to build: 'priv' is used uninitialized (spin_lock_irqsave) #15679

Closed
1 task done
lupyuen opened this issue Jan 24, 2025 · 0 comments · Fixed by #15683
Closed
1 task done
Labels
Arch: arm Issues related to ARM (32-bit) architecture Area: Board support Board support issues OS: Linux Issues related to Linux (building system, etc) Type: Bug Something isn't working

Comments

@lupyuen
Copy link
Member

lupyuen commented Jan 24, 2025

Description / Steps to reproduce the issue

lpcxpresso-lpc54628:nsh fails to build with a Spin Lock Error:

https://github.com/NuttX/nuttx/actions/runs/12935919991/job/36080453959#step:7:570

Configuration/Tool: lpcxpresso-lpc54628/nsh,CONFIG_ARM_TOOLCHAIN_CLANG
chip/lpc54_i2c_master.c: In function 'lpc54_i2cbus_initialize':
Error: chip/lpc54_i2c_master.c:917:29: error: 'priv' is used uninitialized [-Werror=uninitialized]
  917 |   flags = spin_lock_irqsave(&priv->spinlock);
      |                             ^~~~~~~~~~~~~~~
chip/lpc54_i2c_master.c:911:26: note: 'priv' was declared here
  911 |   struct lpc54_i2cdev_s *priv;
      |                          ^~~~

NuttX Build History says that the Breaking Commit is somewhere between these 2 commits:

https://nuttx-dashboard.org/d/fe2q876wubc3kc/nuttx-build-history?from=now-7d&to=now&timezone=browser&var-arch=$__all&var-subarch=$__all&var-board=lpcxpresso-lpc54628&var-config=nsh&var-group=$__all&var-Filters=

Image

NuttX Dashboard shows other similar errors:

https://nuttx-dashboard.org/d/fe2bqg6uk7nr4a/build-logs-from-nuttx-build-farm?from=now-2d&to=now&timezone=browser&var-arch=$__all&var-subarch=$__all&var-board=$__all&var-config=$__all&var-group=$__all&var-Filters=user%7C%3D%7CNuttX

Image

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

Ubuntu LTS at GitHub CI

NuttX Version

master

Issue Architecture

[Arch: arm]

Issue Area

[Area: Board support]

Host information

No response

Verification

  • I have verified before submitting the report.
@lupyuen lupyuen added the Type: Bug Something isn't working label Jan 24, 2025
@github-actions github-actions bot added Arch: arm Issues related to ARM (32-bit) architecture Area: Board support Board support issues OS: Linux Issues related to Linux (building system, etc) labels Jan 24, 2025
This was linked to pull requests Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: arm Issues related to ARM (32-bit) architecture Area: Board support Board support issues OS: Linux Issues related to Linux (building system, etc) Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant