Skip to content

ffi: port semi-colon fix for riscv64 (and others)#63794

Open
sxa wants to merge 1 commit into
nodejs:mainfrom
sxa:riscv_libffi_fix
Open

ffi: port semi-colon fix for riscv64 (and others)#63794
sxa wants to merge 1 commit into
nodejs:mainfrom
sxa:riscv_libffi_fix

Conversation

@sxa
Copy link
Copy Markdown
Member

@sxa sxa commented Jun 8, 2026

This PR pulls across the fix which has been accepted upstream at libffi/libffi#968 and will therefore be in any future versions of libffi that we take.

@ShogunPanda I'm not sure if we have implemented any specific rules/restrictions on taking fixes like this so hopefully this is ok to go in as a patch since I had it merged upstream before raising this.

Fixes nodejs/unofficial-builds#235 which has the explanation of when and why it occurs.

While this includes all platforms which would have the same issue I'll note that loongarch does not show the problem in the unofficial builds on that platform but that is likely because it is using gcc and node clang. Also noting that we have loongarch64 in this PR as opposed to the upstream loongarch directory - that is because of this upstream change where the directory was renamed.

FYI @nodejs/platform-loong64 @nodejs/platform-riscv64

Signed-off-by: Stewart X Addison <sxa@ibm.com>
@sxa sxa requested a review from ShogunPanda June 8, 2026 14:40
@sxa sxa self-assigned this Jun 8, 2026
@sxa sxa added the riscv64 Issues and PRs related to the riscv64 architecture. label Jun 8, 2026
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/ffi
  • @nodejs/security-wg

@nodejs-github-bot nodejs-github-bot added dependencies Pull requests that update a dependency file. needs-ci PRs that need a full CI run. labels Jun 8, 2026
@sxa sxa added request-ci Add this label to start a Jenkins CI on a PR. and removed needs-ci PRs that need a full CI run. labels Jun 8, 2026
@ShogunPanda
Copy link
Copy Markdown
Contributor

@sxa I'm not sure about this. I guess we should wait for a official libffi fix and then run the update, or am I wrong?
FWIW, I don't mind accepting this, you did an amazing job following it up. I just want to follow the right procedure.

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

Labels

dependencies Pull requests that update a dependency file. request-ci Add this label to start a Jenkins CI on a PR. riscv64 Issues and PRs related to the riscv64 architecture.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build break on v26.2.0+ on Linux/riscv64 with libffi being enabled by default

3 participants