Skip to content

llvm: do not declare sigaction twice when a module imports os.signal - #4245

Merged
BaseMax merged 1 commit into
mainfrom
fix-32bit-extern-types
Nov 25, 2026
Merged

BaseMax merged 1 commit into
mainfrom
fix-32bit-extern-types

Conversation

@BaseMax

@BaseMax BaseMax commented Nov 25, 2026

Copy link
Copy Markdown
Member

The Linux i686 and armhf release builds failed with invalid redefinition of function 'sigaction'.

The LLVM prologue declares sigaction and sigaltstack for the crash handler, and os.signal declares sigaction as an extern too. The prologue only skipped names it always declares, so any LLVM build that imports os.signal emitted it twice. The compiler itself started importing os.signal with hot reload (#4231), so the release builds hit it.

Externs named sigaction or sigaltstack are now treated as already declared whenever the crash handler is on. A program that installs a signal handler builds and runs with the LLVM backend on macOS again, and the compiler cross-compiles to objects for i686-linux-musl and armv7-linux-musleabihf.

@BaseMax
BaseMax requested a review from a team as a code owner November 25, 2026 19:56
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@BaseMax
BaseMax merged commit 79e6fec into main Nov 25, 2026
17 of 18 checks passed
@BaseMax
BaseMax deleted the fix-32bit-extern-types branch November 25, 2026 19:57
@BaseMax BaseMax mentioned this pull request Nov 25, 2026
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