Skip to content

build_mpos.sh: fix macOS build on Clang 21#142

Open
bitcoin3us wants to merge 1 commit into
MicroPythonOS:mainfrom
bitcoin3us:fix/macos-clang21-build
Open

build_mpos.sh: fix macOS build on Clang 21#142
bitcoin3us wants to merge 1 commit into
MicroPythonOS:mainfrom
bitcoin3us:fix/macos-clang21-build

Conversation

@bitcoin3us
Copy link
Copy Markdown
Contributor

Summary

Clang 21 added -Wunterminated-string-initialization. Under the build's -Werror, the macOS build fails compiling secp256k1:

error: initializer-string for character array is too long [-Werror,-Wunterminated-string-initialization]
static const unsigned char bip340_algo[13] = "BIP0340/nonce";

bip340_algo[13] is an intentionally non-null-terminated 13-byte tag in secp256k1. This extends the existing macOS Clang warning-suppression line in build_mpos.sh with -Wno-error=unterminated-string-initialization, matching the gnu-folding-constant / missing-field-initializers suppressions already on that line.

Test plan

  • scripts/build_mpos.sh macOS completes and produces lvgl_micropy_macOS on Clang 21

🤖 Generated with Claude Code

Clang 21 added -Wunterminated-string-initialization, which fails the
-Werror build when compiling secp256k1's intentionally non-null-terminated
bip340_algo[13] tag. Extend the existing macOS Clang warning suppression
with -Wno-error=unterminated-string-initialization.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant