-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
nodejs: Bump to 16.x #7505
nodejs: Bump to 16.x #7505
Conversation
So, let me first explain what changes I have made here and why since this PR is gonna be large This comment contains problems faced while building node 16.6.1
This has been fixed by a temporary patch. x64/push_registers_asm.cc has been patched in a way: #if defined(V8_TARGET_ARCH_ARM64) || defined(V8_TARGET_ARCH_X86_64)
//original content of the file
#else
// Content of ia32 ASM registers.cc
#endif This ensures that both cross compile and host builds work. This patch should be removed as soon as upstream fixes it.
The lines in strikes have been fixed and need no attention |
Problems faced while building node 16.9.1
Besides these problems, problems with node 16.6.1 were also persistent without patches |
@xeffyr, I got it working for aarch64 and arm. And I tested the binaries and they worked. And only i686 is failing with undefined references for functions declared in |
Flag order could matter (see #3092). Try if patching histograp.gyp, adding |
We are passing flags to `configure.py` in order to tell the nodejs build toolchain to use shared libraries. The toolchain seems to mistakenly also try use shared libraries for host build, but it does not add respective linker flags (For example `-lz` for zlib). This commit hardcodes these flags to be always passed to linker by setting linker to linker + LDFLAGS of shared libraries
This patch also needs to be sent upstream. The nodejs team has done this for linux but somehow didn't do it for android
I don't think much people use x86_64, and anyways it was already blacklisted, I might look into it later
The -u flags are required only for i686. So why add them to all archs?
This PR is now ready to merge. The previous CI passed 🥳. I have also declared myself as a maintainer for this package so that this package stays updated |
No description provided.