fix(environment): add libnode-dev for Ubuntu/Debian to fix Node loader build#742
fix(environment): add libnode-dev for Ubuntu/Debian to fix Node loader build#7420xShubhamSolanki wants to merge 1 commit into
Conversation
|
Hi @viferga, I’ve opened a fresh PR (#742) to address the Node loader build issue on Ubuntu 24.04, with a cleaner commit history and a proper reproduction test. In this PR:
From what i found, the issue comes from missing system node headers. Without This change ensures metacall correctly detects and uses the system Node instead of hitting that failing fallback. Regarding PR #622 ,it seems more focused on newer Debian versions and Node 22, while this specifically targets the current Ubuntu 24 (Noble) setup. Happy to refine this further based on your feedback. Would appreciate your review whenever you have time. |
|
The teats are completely wrong, add only the package and go the ci and add Ubuntu 24 for testing: core/.github/workflows/linux-test.yml Line 25 in a862280 Also there's a PR that already started working on this, but it is not ready, you can use it as reference. |
…r build Without libnode-dev, CMake cannot find Node.js shared library and headers, falling back to source build which fails on Ubuntu 24+ (Python 3.12 removed distutils). Fixes metacall#732
3bd24d1 to
ff5dbb2
Compare
|
Hi @viferga, Thank you for the guidance. I think i understood your point now as the project prefers automated validation via CI rather than manual test scripts to keep the repository clean.I have pushed a clean update that aligns with your feedback:
i have also looked at #622 for reference. Let me know if you would like me to align this fix further with any other specific environment changes you have in mind, or if this minimal approach is sufficient. Could you please approve the workflows to run? Ready for your review whenever you have a moment |
Then it doesn't make sense because as it is right now the tests are passing, you're not reproducing the issue you're solving.. I thought you were referring to Ubuntu forky, not noble. |
|
If the bug isn't reproduced in the CI, I cannot merge the patch. Create a new PR that reproduces the issue. Right now node is not getting compiled in the ci. |
Summary
Test Plan
Run
./tools/test/check-node-headers.shon fresh Ubuntu 24 without libnode-dev:Fixes #732
Type of change
Checklist:
make testorctest -VV -R <test-name>)../docker-compose.sh test &> outputand attached the output.OPTION_BUILD_ADDRESS_SANITIZERor./docker-compose.sh test-address-sanitizer &> outputandOPTION_TEST_MEMORYCHECK.OPTION_BUILD_THREAD_SANITIZERor./docker-compose.sh test-thread-sanitizer &> output.Helgrindin case my code works with threading.make clang-formatin order to format my code and my code follows the style guidelines.