Skip to content

Conversation

@hqzing
Copy link
Contributor

@hqzing hqzing commented Aug 4, 2025

Node.js currently experimentally supports the OpenHarmony platform, and we can cross-compile Node.js for the OpenHarmony using the ohos-sdk.

However, the PR #59234 from a few days ago caused the compilation failure on the OpenHarmony platform.

The log is as follows:

make[1]: printf: Argument list too long
make[1]: *** [deps/openssl/openssl.target.mk:1337: /root/auto_sync/output/2025-07-30/node-ohos/out/Release/obj.target/deps/openssl/libopenssl.a] Error 127
make[1]: *** Waiting for unfinished jobs....
rm cc0ae594b47059c6d4f3fed11027e19cf65ff752.intermediate 5375dc893f377c01b6180c592cc7d13f21f1b93a.intermediate
make: *** [Makefile:135: node] Error 2

The reason for this failure is that the increase in the number of OpenSSL files has led to an increase in the length of the arguments for printf, causing the error 'Argument list too long'.

To fix this compilation failure, I replaced WriteDoCmd with WriteMakeRule to resolve the issue of the argument length limit.

@aduh95
Copy link
Contributor

aduh95 commented Aug 19, 2025

/cc @nodejs/gyp

@gengjiawen gengjiawen merged commit 0cf7a14 into nodejs:main Aug 20, 2025
42 checks passed
@hqzing hqzing deleted the fix_compile_openharmony branch August 27, 2025 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants