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

build: use --whole-archive for pthread with --fully-static #30199

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

addaleax
Copy link
Member

This resolves a crash during the build of Node.js when built
with ./configure --fully-static.

Fixes: #30180

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

This resolves a crash during the build of Node.js when built
with `./configure --fully-static`.

Fixes: nodejs#30180
@nodejs-github-bot nodejs-github-bot added the build Issues and PRs related to build files or the CI. label Oct 31, 2019
@gengjiawen
Copy link
Member

Is possible to add a CI job for this ? Possible can be done via #30057

@addaleax
Copy link
Member Author

addaleax commented Nov 1, 2019

@gengjiawen I guess, but I think that’s something someone else might have to do :)

@addaleax

This comment has been minimized.

@addaleax addaleax added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. and removed author ready PRs that have at least one approval, no pending requests for changes, and a CI started. labels Nov 1, 2019
@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

@BridgeAR

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

@addaleax

This comment has been minimized.

@BridgeAR BridgeAR added the wip Issues and PRs that are still a work in progress. label Jan 2, 2020
@gireeshpunathil
Copy link
Member

gireeshpunathil commented Jan 20, 2020

ping @addaleax - is this stuck because there is not a proper CI job to test this, or any other concerns w.r.t the change itself?

edit - I see recent conversations on this PR, so stuck may be a little off to use!

@addaleax
Copy link
Member Author

@gireeshpunathil It’s stuck because it isn’t at the top of my priority list :)

is this stuck because there is not a proper CI job to test this, or any other concerns w.r.t the change itself?

Neither. CI doesn’t pass because this doesn’t work on all platforms; I assume the next step would be to figure out which platforms those are and how to turn that into a condition in the gypfile.

Fresh CI: https://ci.nodejs.org/job/node-test-commit/34986/

@BridgeAR BridgeAR force-pushed the master branch 2 times, most recently from 8ae28ff to 2935f72 Compare May 31, 2020 12:19
@jasnell jasnell added the stalled Issues and PRs that are stalled. label Jun 25, 2020
@BethGriggs
Copy link
Member

BethGriggs commented Sep 3, 2020

Rerunning CI to see which platforms are failing - I've seen a report (outside of GH) of another user hitting an error when building with --fully-static, and it appears to be fixed by this PR.

From a suggestion from @miladfarca, ['-static', '-no-pie'] allows my --fully-static build to complete on Alpine too. I've only tested that in an Alpine Docker container on S390x, though.

CI: https://ci.nodejs.org/job/node-test-commit/40593

@nodejs-github-bot

This comment has been minimized.

@alexnagelberg
Copy link

CI doesn’t pass because this doesn’t work on all platforms; I assume the next step would be to figure out which platforms those are and how to turn that into a condition in the gypfile.

How is it passing without the patch? It literally won't build at all with the fully static option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI. stalled Issues and PRs that are stalled. wip Issues and PRs that are still a work in progress.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot compile node
10 participants