Skip to content

Conversation

@MeowShe
Copy link
Contributor

@MeowSheMeowShe commented Feb 1, 2024

On Android, unlike Linux, there are no separate libpthread or librt libraries. That functionality is included directly in libc, which does not need to be explicitly linked against. (Native APIs | Android NDK)

Fix: #50184

Remove librt library dependency when building Node.js for Android, as it does not exist on Android.

Related to PR #51646, as part of a series of build fixes for Android.

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/gyp
  • @nodejs/v8-update

@nodejs-github-botnodejs-github-bot added needs-ci PRs that need a full CI run. tools Issues and PRs related to the tools directory. v8 engine Issues and PRs related to the V8 dependency. labels Feb 1, 2024
@MeowSheMeowShe changed the title build: remove librt lib link for Android compatibilitybuild: remove librt library dependency for Android compatibilityFeb 1, 2024
@lpincalpinca added the request-ci Add this label to start a Jenkins CI on a PR. label Feb 3, 2024
@github-actionsgithub-actionsbot removed the request-ci Add this label to start a Jenkins CI on a PR. label Feb 3, 2024
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@MeowShe
Copy link
ContributorAuthor

Could we re-request CI again?

@MeowSheMeowShe closed this Feb 10, 2024
@MeowSheMeowShe reopened this Feb 10, 2024
@lpinca
Copy link
Member

Could we re-request CI again?

It is under security embargo.

@MeowShe
Copy link
ContributorAuthor

Could we re-request CI again?

It is under security embargo.

Anything should I do for that?

@lpinca
Copy link
Member

No, thank you.

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@lpincalpinca added the commit-queue Add this label to land a pull request using GitHub Actions. label Feb 25, 2024
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Feb 25, 2024
@nodejs-github-botnodejs-github-bot merged commit 56ced19 into nodejs:mainFeb 25, 2024
@nodejs-github-bot
Copy link
Collaborator

Landed in 56ced19

@MeowSheMeowShe deleted the android-v8_gypfiles branch February 26, 2024 04:19
marco-ippolito pushed a commit that referenced this pull request Feb 26, 2024
PR-URL: #51632Fixes: #50184 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
marco-ippolito pushed a commit that referenced this pull request Feb 26, 2024
PR-URL: #51632Fixes: #50184 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
marco-ippolito pushed a commit that referenced this pull request Feb 27, 2024
PR-URL: #51632Fixes: #50184 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
@marco-ippolitomarco-ippolito mentioned this pull request Mar 1, 2024
richardlau pushed a commit that referenced this pull request Mar 25, 2024
PR-URL: #51632Fixes: #50184 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
richardlau pushed a commit that referenced this pull request Mar 25, 2024
PR-URL: #51632Fixes: #50184 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
@richardlaurichardlau mentioned this pull request Mar 25, 2024
rdw-msft pushed a commit to rdw-msft/node that referenced this pull request Mar 26, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ciPRs that need a full CI run.toolsIssues and PRs related to the tools directory.v8 engineIssues and PRs related to the V8 dependency.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v8: "ld.lld: error: unable to find library -lrt" when building for android aarch64

4 participants

@MeowShe@nodejs-github-bot@lpinca@joyeecheung