Unable to build Node

385 views
Skip to first unread message

Ayushman Chhabra

unread,
Sep 7, 2022, 10:19:44 AM9/7/22
to nw.js
I followed the steps in the docs and looked to the buildbot logs if any errors occurred. Building Node fails. I piped the errors into a file but it was too big to upload. This is the first 30 lines and it gives similar errors through the file (which has a length of around 50,000 lines):

ninja: Entering directory `out/Release'
[1/117] CXX obj/third_party/node-nw/src/node.node_metadata.o
FAILED: obj/third_party/node-nw/src/node.node_metadata.o
c++ -MMD -MF obj/third_party/node-nw/src/node.node_metadata.o.d -DV8_DEPRECATION_WARNINGS -DV8_REVERSE_JSARGS -D_GLIBCXX_USE_CXX11_ABI=1 -D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_ISOLATE_CAGE -DV8_VIRTUAL_MEMORY_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -D__STDC_FORMAT_MACROS -DOPENSSL_THREADS -DOPENSSL_NO_ASM '-DNODE_ARCH="x64"' '-DNODE_PLATFORM="linux"' -DNODE_WANT_INTERNALS=1 -DV8_DEPRECATION_WARNINGS=1 -DBUILDING_NW_NODE=1 -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -DV8_SHARED -DUSING_V8_SHARED -DV8_USE_EXTERNAL_STARTUP_DATA '-DNODE_OPENSSL_SYSTEM_CERT_PATH=""' -DHAVE_INSPECTOR=0 -DNODE_SHARED_MODE -D__POSIX__ -DNODE_USE_V8_PLATFORM=1 -DNODE_HAVE_I18N_SUPPORT=1 -DHAVE_OPENSSL=1 -DOPENSSL_API_COMPAT=0x10100000L -DBASE64_STATIC_DEFINE -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DU_STATIC_IMPLEMENTATION -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_C_SOURCE=200112 -DNGHTTP2_STATICLIB -DNDEBUG -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_BUILDING_OPENSSL -DOPENSSL_PIC -I../../third_party/node-nw/src -I../../third_party/node-nw/deps/openssl/openssl/include -Igen../../v8 -I../../v8/include '-I../../buildtools/third_party/libc++/trunk/include' '-I../../buildtools/third_party/libc++' -I../../third_party/node-nw/deps/base64/base64/include -I../../third_party/node-nw/deps/googletest/include -I../../third_party/node-nw/deps/histogram/src -I../../third_party/node-nw/deps/uvwasi/include -I../../third_party/icu/source/i18n -I../../third_party/icu/source/common -I../../third_party/node-nw/deps/zlib -I../../third_party/node-nw/deps/llhttp/include -I../../third_party/node-nw/deps/cares/include -I../../third_party/node-nw/deps/uv/include -I../../third_party/node-nw/deps/nghttp2/lib/includes -I../../third_party/node-nw/deps/brotli/c/include -I../../third_party/node-nw/deps/openssl/openssl/crypto/include -I../../third_party/node-nw/deps/openssl/config/archs/linux-x86_64/no-asm/include -I../../third_party/node-nw/deps/openssl/config/archs/linux-x86_64/no-asm -Wall -Wextra -Wno-unused-parameter -pthread -Wall -Wextra -Wno-unused-parameter -m64 -fPIC -Wno-unused-result -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++17  -c ../../third_party/node-nw/src/node_metadata.cc -o obj/third_party/node-nw/src/node.node_metadata.o
In file included from ../../buildtools/third_party/libc++/trunk/include/__config:13,
                 from ../../buildtools/third_party/libc++/trunk/include/__algorithm/comp.h:12,
                 from ../../buildtools/third_party/libc++/trunk/include/__algorithm/max.h:12,
                 from ../../buildtools/third_party/libc++/trunk/include/string:519,
                 from ../../third_party/node-nw/src/node_metadata.h:6,
                 from ../../third_party/node-nw/src/node_metadata.cc:1:
../../buildtools/third_party/libc++/__config_site:21: warning: "_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS" redefined
   21 | #define _LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS
      |
<command-line>: note: this is the location of the previous definition
In file included from ../../buildtools/third_party/libc++/trunk/include/__type_traits/is_referenceable.h:14,
                 from ../../buildtools/third_party/libc++/trunk/include/__type_traits/add_lvalue_reference.h:13,
                 from ../../buildtools/third_party/libc++/trunk/include/__functional/invoke.h:14,
                 from ../../buildtools/third_party/libc++/trunk/include/type_traits:421,
                 from ../../buildtools/third_party/libc++/trunk/include/__debug:16,
                 from ../../buildtools/third_party/libc++/trunk/include/__algorithm/comp_ref_type.h:13,
                 from ../../buildtools/third_party/libc++/trunk/include/__algorithm/max.h:13,
                 from ../../buildtools/third_party/libc++/trunk/include/string:519,
                 from ../../third_party/node-nw/src/node_metadata.h:6,
                 from ../../third_party/node-nw/src/node_metadata.cc:1:
../../buildtools/third_party/libc++/trunk/include/__type_traits/is_same.h:22:53: error: there are no arguments to ‘__is_same’ that depend on a template parameter, so a declaration of ‘__is_same’ must be available [-fpermissive]
   22 | struct _LIBCPP_TEMPLATE_VIS is_same : _BoolConstant<__is_same(_Tp, _Up)> { };
      |                                                     ^~~~~~~~~
../../buildtools/third_party/libc++/trunk/include/__type_traits/is_same.h:22:53: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../../buildtools/third_party/libc++/trunk/include/__type_traits/is_same.h:22:72: error: template argument 1 is invalid
   22 | struct _LIBCPP_TEMPLATE_VIS is_same : _BoolConstant<__is_same(_Tp, _Up)> { };

I tried gclient sync but still got the same error. Any ideas?

For reference this is a log of the steps I took:

Roger Wang

unread,
Sep 7, 2022, 11:21:01 AM9/7/22
to Ayushman Chhabra, nw.js
Looks like it’s using the system compiler, not the compiler in the Chromium tree.

--
You received this message because you are subscribed to the Google Groups "nw.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nwjs-general...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nwjs-general/5b1f27a4-cd76-4a70-8c3b-99b33ea7a652n%40googlegroups.com.

Ayushman Chhabra

unread,
Sep 7, 2022, 11:58:04 AM9/7/22
to nw.js
I'm guessing I have to change the PATH but not sure how.

Don't know if this is related but I just realised that I'm building nw68 with Node's nw67 branch (since the current branch is 67 instead of 68)

Roger Wang

unread,
Sep 7, 2022, 3:26:36 PM9/7/22
to Ayushman Chhabra, nw.js
You may want to check the configuration step for Node. see if clang=1 is defined in environment or command line.

Ayushman Chhabra

unread,
Sep 8, 2022, 9:54:25 AM9/8/22
to nw.js
Same error as before. I first set the env variables mentioned below, ran the config command and then ran the build command (as mentioned in the buildbot logs).

printenv:

buildtype=Official
building_nw=1
GYP_GENERATOR_FLAGS=output_dir=out clang=1
GYP_DEFINES=target_arch=x64
GYP_CHROMIUM_NO_ACTION=0
GYP_GENERATORS=ninja
disable_nacl=0 PATH=/home/ayushmxn/depot_tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
nwjs_sdk=1

I'll try rebuilding from the start to see if I did anything wrong in the initial steps.

Roger Wang

unread,
Sep 8, 2022, 9:56:23 AM9/8/22
to Ayushman Chhabra, nw.js
it should be added to GYP_DEFINES, not GYP_GENERATOR_FLAGS

Ayushman Chhabra

unread,
Sep 8, 2022, 11:16:04 AM9/8/22
to nw.js
Made some progress - corrected the env variables and got a different much smaller error log :P

Steps:

export GYP_DEFINES=target_arch=x64 building_nw=1 clang=1 nwjs_sdk=1 disable_nacl=0 buildtype=Official
export GYP_CHROMIUM_NO_ACTION=0
export GYP_GENERATORS=ninja

python3 src/third_party/node-nw/tools/gyp/gyp_main.py -I src/third_party/node-nw/common.gypi -D build_type=Release src/third_party/node-nw/node.gyp

ninja -C src/out/Release node
ninja: Entering directory `src/out/Release'
[1/1719] CC obj/third_party/node-nw/deps/zlib/zlib.compress.o
FAILED: obj/third_party/node-nw/deps/zlib/zlib.compress.o
/home/ayushmxn/nwjs/src/third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/third_party/node-nw/deps/zlib/zlib.compress.o.d -DV8_DEPRECATION_WARNINGS -DV8_REVERSE_JSARGS -D_GLIBCXX_USE_CXX11_ABI=1 -D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_ISOLATE_CAGE -DV8_VIRTUAL_MEMORY_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -D__STDC_FORMAT_MACROS -DOPENSSL_THREADS -DOPENSSL_NO_ASM -DHAVE_HIDDEN -DADLER32_SIMD_SSSE3 -DINFLATE_CHUNK_SIMD_SSE2 -DCRC32_SIMD_SSE42_PCLMUL -DINFLATE_CHUNK_READ_64LE -I../../third_party/node-nw/deps/zlib -pthread -Wall -Wextra -Wno-unused-parameter -m64 --sysroot=/home/ayushmxn/nwjs/src/build/linux/debian_sid_amd64-sysroot -nostdinc++ -isystem../../../../buildtools/third_party/libc++/trunk/include -isystem../../../../buildtools/third_party/libc++ -isystem../../../../buildtools/third_party/libc++abi/trunk/include -fPIC -Wno-implicit-fallthrough -O3 -fno-omit-frame-pointer   -c ../../third_party/node-nw/deps/zlib/compress.c -o obj/third_party/node-nw/deps/zlib/zlib.compress.o
In file included from ../../third_party/node-nw/deps/zlib/compress.c:9:
In file included from ../../third_party/node-nw/deps/zlib/zlib.h:34:
../../third_party/node-nw/deps/zlib/zconf.h:459:14: fatal error: 'sys/types.h' file not found
#    include <sys/types.h>      /* for off_t */
             ^~~~~~~~~~~~~
1 error generated.
[2/1719] CC obj/third_party/node-nw/deps/zlib/zlib.adler32.o
FAILED: obj/third_party/node-nw/deps/zlib/zlib.adler32.o
/home/ayushmxn/nwjs/src/third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/third_party/node-nw/deps/zlib/zlib.adler32.o.d -DV8_DEPRECATION_WARNINGS -DV8_REVERSE_JSARGS -D_GLIBCXX_USE_CXX11_ABI=1 -D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_ISOLATE_CAGE -DV8_VIRTUAL_MEMORY_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -D__STDC_FORMAT_MACROS -DOPENSSL_THREADS -DOPENSSL_NO_ASM -DHAVE_HIDDEN -DADLER32_SIMD_SSSE3 -DINFLATE_CHUNK_SIMD_SSE2 -DCRC32_SIMD_SSE42_PCLMUL -DINFLATE_CHUNK_READ_64LE -I../../third_party/node-nw/deps/zlib -pthread -Wall -Wextra -Wno-unused-parameter -m64 --sysroot=/home/ayushmxn/nwjs/src/build/linux/debian_sid_amd64-sysroot -nostdinc++ -isystem../../../../buildtools/third_party/libc++/trunk/include -isystem../../../../buildtools/third_party/libc++ -isystem../../../../buildtools/third_party/libc++abi/trunk/include -fPIC -Wno-implicit-fallthrough -O3 -fno-omit-frame-pointer   -c ../../third_party/node-nw/deps/zlib/adler32.c -o obj/third_party/node-nw/deps/zlib/zlib.adler32.o
In file included from ../../third_party/node-nw/deps/zlib/adler32.c:8:
In file included from ../../third_party/node-nw/deps/zlib/zutil.h:22:
In file included from ../../third_party/node-nw/deps/zlib/zlib.h:34:
../../third_party/node-nw/deps/zlib/zconf.h:459:14: fatal error: 'sys/types.h' file not found
#    include <sys/types.h>      /* for off_t */
             ^~~~~~~~~~~~~
1 error generated.
[3/1719] CC obj/third_party/node-nw/deps/zlib/zlib.gzlib.o
FAILED: obj/third_party/node-nw/deps/zlib/zlib.gzlib.o
/home/ayushmxn/nwjs/src/third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/third_party/node-nw/deps/zlib/zlib.gzlib.o.d -DV8_DEPRECATION_WARNINGS -DV8_REVERSE_JSARGS -D_GLIBCXX_USE_CXX11_ABI=1 -D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_ISOLATE_CAGE -DV8_VIRTUAL_MEMORY_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -D__STDC_FORMAT_MACROS -DOPENSSL_THREADS -DOPENSSL_NO_ASM -DHAVE_HIDDEN -DADLER32_SIMD_SSSE3 -DINFLATE_CHUNK_SIMD_SSE2 -DCRC32_SIMD_SSE42_PCLMUL -DINFLATE_CHUNK_READ_64LE -I../../third_party/node-nw/deps/zlib -pthread -Wall -Wextra -Wno-unused-parameter -m64 --sysroot=/home/ayushmxn/nwjs/src/build/linux/debian_sid_amd64-sysroot -nostdinc++ -isystem../../../../buildtools/third_party/libc++/trunk/include -isystem../../../../buildtools/third_party/libc++ -isystem../../../../buildtools/third_party/libc++abi/trunk/include -fPIC -Wno-implicit-fallthrough -O3 -fno-omit-frame-pointer   -c ../../third_party/node-nw/deps/zlib/gzlib.c -o obj/third_party/node-nw/deps/zlib/zlib.gzlib.o
In file included from ../../third_party/node-nw/deps/zlib/gzlib.c:6:
../../third_party/node-nw/deps/zlib/gzguts.h:21:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
[4/1719] CC obj/third_party/node-nw/deps/zlib/zlib.crc32.o
FAILED: obj/third_party/node-nw/deps/zlib/zlib.crc32.o
/home/ayushmxn/nwjs/src/third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/third_party/node-nw/deps/zlib/zlib.crc32.o.d -DV8_DEPRECATION_WARNINGS -DV8_REVERSE_JSARGS -D_GLIBCXX_USE_CXX11_ABI=1 -D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_ISOLATE_CAGE -DV8_VIRTUAL_MEMORY_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -D__STDC_FORMAT_MACROS -DOPENSSL_THREADS -DOPENSSL_NO_ASM -DHAVE_HIDDEN -DADLER32_SIMD_SSSE3 -DINFLATE_CHUNK_SIMD_SSE2 -DCRC32_SIMD_SSE42_PCLMUL -DINFLATE_CHUNK_READ_64LE -I../../third_party/node-nw/deps/zlib -pthread -Wall -Wextra -Wno-unused-parameter -m64 --sysroot=/home/ayushmxn/nwjs/src/build/linux/debian_sid_amd64-sysroot -nostdinc++ -isystem../../../../buildtools/third_party/libc++/trunk/include -isystem../../../../buildtools/third_party/libc++ -isystem../../../../buildtools/third_party/libc++abi/trunk/include -fPIC -Wno-implicit-fallthrough -O3 -fno-omit-frame-pointer   -c ../../third_party/node-nw/deps/zlib/crc32.c -o obj/third_party/node-nw/deps/zlib/zlib.crc32.o
In file included from ../../third_party/node-nw/deps/zlib/crc32.c:31:
In file included from ../../third_party/node-nw/deps/zlib/deflate.h:16:
In file included from ../../third_party/node-nw/deps/zlib/zutil.h:22:
In file included from ../../third_party/node-nw/deps/zlib/zlib.h:34:
../../third_party/node-nw/deps/zlib/zconf.h:459:14: fatal error: 'sys/types.h' file not found
#    include <sys/types.h>      /* for off_t */
             ^~~~~~~~~~~~~
1 error generated.
[5/1719] CC obj/third_party/node-nw/deps/zlib/zlib.gzclose.o
FAILED: obj/third_party/node-nw/deps/zlib/zlib.gzclose.o
/home/ayushmxn/nwjs/src/third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/third_party/node-nw/deps/zlib/zlib.gzclose.o.d -DV8_DEPRECATION_WARNINGS -DV8_REVERSE_JSARGS -D_GLIBCXX_USE_CXX11_ABI=1 -D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_ISOLATE_CAGE -DV8_VIRTUAL_MEMORY_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -D__STDC_FORMAT_MACROS -DOPENSSL_THREADS -DOPENSSL_NO_ASM -DHAVE_HIDDEN -DADLER32_SIMD_SSSE3 -DINFLATE_CHUNK_SIMD_SSE2 -DCRC32_SIMD_SSE42_PCLMUL -DINFLATE_CHUNK_READ_64LE -I../../third_party/node-nw/deps/zlib -pthread -Wall -Wextra -Wno-unused-parameter -m64 --sysroot=/home/ayushmxn/nwjs/src/build/linux/debian_sid_amd64-sysroot -nostdinc++ -isystem../../../../buildtools/third_party/libc++/trunk/include -isystem../../../../buildtools/third_party/libc++ -isystem../../../../buildtools/third_party/libc++abi/trunk/include -fPIC -Wno-implicit-fallthrough -O3 -fno-omit-frame-pointer   -c ../../third_party/node-nw/deps/zlib/gzclose.c -o obj/third_party/node-nw/deps/zlib/zlib.gzclose.o
In file included from ../../third_party/node-nw/deps/zlib/gzclose.c:6:
../../third_party/node-nw/deps/zlib/gzguts.h:21:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
[6/1719] CC obj/third_party/node-nw/deps/uv/src/unix/libuv.core.o
FAILED: obj/third_party/node-nw/deps/uv/src/unix/libuv.core.o
/home/ayushmxn/nwjs/src/third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/third_party/node-nw/deps/uv/src/unix/libuv.core.o.d -DV8_DEPRECATION_WARNINGS -DV8_REVERSE_JSARGS -D_GLIBCXX_USE_CXX11_ABI=1 -D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_ISOLATE_CAGE -DV8_VIRTUAL_MEMORY_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -D__STDC_FORMAT_MACROS -DOPENSSL_THREADS -DOPENSSL_NO_ASM -DBUILDING_UV_SHARED=1 -D_FILE_OFFSET_BITS=64 -I../../third_party/node-nw/deps/uv/include -I../../third_party/node-nw/deps/uv/src -pthread -Wall -Wextra -Wno-unused-parameter -m64 --sysroot=/home/ayushmxn/nwjs/src/build/linux/debian_sid_amd64-sysroot -nostdinc++ -isystem../../../../buildtools/third_party/libc++/trunk/include -isystem../../../../buildtools/third_party/libc++ -isystem../../../../buildtools/third_party/libc++abi/trunk/include -fPIC -fvisibility=hidden -g --std=gnu89 -Wall -Wextra -Wno-unused-parameter -Wstrict-prototypes -fno-strict-aliasing -Wno-varargs -O3 -fno-omit-frame-pointer   -c ../../third_party/node-nw/deps/uv/src/unix/core.c -o obj/third_party/node-nw/deps/uv/src/unix/libuv.core.o
In file included from ../../third_party/node-nw/deps/uv/src/unix/core.c:21:
In file included from ../../third_party/node-nw/deps/uv/include/uv.h:56:
../../third_party/node-nw/deps/uv/include/uv/errno.h:25:10: error: 'errno.h' file not found with <angled> include; use "quotes" instead
#include <errno.h>
         ^~~~~~~~~
         "errno.h"
In file included from ../../third_party/node-nw/deps/uv/src/unix/core.c:21:
../../third_party/node-nw/deps/uv/include/uv.h:59:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
2 errors generated.
[7/1719] CC obj/third_party/node-nw/deps/zlib/zlib.deflate.o
FAILED: obj/third_party/node-nw/deps/zlib/zlib.deflate.o
/home/ayushmxn/nwjs/src/third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/third_party/node-nw/deps/zlib/zlib.deflate.o.d -DV8_DEPRECATION_WARNINGS -DV8_REVERSE_JSARGS -D_GLIBCXX_USE_CXX11_ABI=1 -D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_ISOLATE_CAGE -DV8_VIRTUAL_MEMORY_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -D__STDC_FORMAT_MACROS -DOPENSSL_THREADS -DOPENSSL_NO_ASM -DHAVE_HIDDEN -DADLER32_SIMD_SSSE3 -DINFLATE_CHUNK_SIMD_SSE2 -DCRC32_SIMD_SSE42_PCLMUL -DINFLATE_CHUNK_READ_64LE -I../../third_party/node-nw/deps/zlib -pthread -Wall -Wextra -Wno-unused-parameter -m64 --sysroot=/home/ayushmxn/nwjs/src/build/linux/debian_sid_amd64-sysroot -nostdinc++ -isystem../../../../buildtools/third_party/libc++/trunk/include -isystem../../../../buildtools/third_party/libc++ -isystem../../../../buildtools/third_party/libc++abi/trunk/include -fPIC -Wno-implicit-fallthrough -O3 -fno-omit-frame-pointer   -c ../../third_party/node-nw/deps/zlib/deflate.c -o obj/third_party/node-nw/deps/zlib/zlib.deflate.o
../../third_party/node-nw/deps/zlib/deflate.c:51:10: fatal error: 'assert.h' file not found
#include <assert.h>
         ^~~~~~~~~~
1 error generated.
[8/1719] CC obj/third_party/node-nw/deps/uv/src/libuv.random.o
FAILED: obj/third_party/node-nw/deps/uv/src/libuv.random.o
/home/ayushmxn/nwjs/src/third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/third_party/node-nw/deps/uv/src/libuv.random.o.d -DV8_DEPRECATION_WARNINGS -DV8_REVERSE_JSARGS -D_GLIBCXX_USE_CXX11_ABI=1 -D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_ISOLATE_CAGE -DV8_VIRTUAL_MEMORY_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -D__STDC_FORMAT_MACROS -DOPENSSL_THREADS -DOPENSSL_NO_ASM -DBUILDING_UV_SHARED=1 -D_FILE_OFFSET_BITS=64 -I../../third_party/node-nw/deps/uv/include -I../../third_party/node-nw/deps/uv/src -pthread -Wall -Wextra -Wno-unused-parameter -m64 --sysroot=/home/ayushmxn/nwjs/src/build/linux/debian_sid_amd64-sysroot -nostdinc++ -isystem../../../../buildtools/third_party/libc++/trunk/include -isystem../../../../buildtools/third_party/libc++ -isystem../../../../buildtools/third_party/libc++abi/trunk/include -fPIC -fvisibility=hidden -g --std=gnu89 -Wall -Wextra -Wno-unused-parameter -Wstrict-prototypes -fno-strict-aliasing -Wno-varargs -O3 -fno-omit-frame-pointer   -c ../../third_party/node-nw/deps/uv/src/random.c -o obj/third_party/node-nw/deps/uv/src/libuv.random.o
In file included from ../../third_party/node-nw/deps/uv/src/random.c:22:
In file included from ../../third_party/node-nw/deps/uv/include/uv.h:56:
../../third_party/node-nw/deps/uv/include/uv/errno.h:25:10: error: 'errno.h' file not found with <angled> include; use "quotes" instead
#include <errno.h>
         ^~~~~~~~~
         "errno.h"
In file included from ../../third_party/node-nw/deps/uv/src/random.c:22:
../../third_party/node-nw/deps/uv/include/uv.h:59:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
2 errors generated.
[9/1719] CC obj/third_party/node-nw/deps/openssl/openssl/ssl/openssl.tls_depr.o
FAILED: obj/third_party/node-nw/deps/openssl/openssl/ssl/openssl.tls_depr.o
/home/ayushmxn/nwjs/src/third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/third_party/node-nw/deps/openssl/openssl/ssl/openssl.tls_depr.o.d -DV8_DEPRECATION_WARNINGS -DV8_REVERSE_JSARGS -D_GLIBCXX_USE_CXX11_ABI=1 -D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_ISOLATE_CAGE -DV8_VIRTUAL_MEMORY_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -D__STDC_FORMAT_MACROS -DOPENSSL_THREADS -DOPENSSL_NO_ASM -DOPENSSL_NO_HW -DOPENSSL_API_COMPAT=0x10100001L -DSTATIC_LEGACY -DNDEBUG -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_BUILDING_OPENSSL -DOPENSSL_PIC '-DMODULESDIR="/home/ayushmxn/nwjs/src/out/Release/obj/lib/openssl-modules"' '-DOPENSSLDIR="/home/ayushmxn/nwjs/src/out/Release/obj/lib"' '-DOPENSSLDIR="/etc/ssl"' '-DENGINESDIR="/dev/null"' -DTERMIOS -I../../third_party/node-nw/deps/openssl/openssl -I../../third_party/node-nw/deps/openssl/openssl/include -I../../third_party/node-nw/deps/openssl/openssl/crypto -I../../third_party/node-nw/deps/openssl/openssl/crypto/include -I../../third_party/node-nw/deps/openssl/openssl/crypto/modes -I../../third_party/node-nw/deps/openssl/openssl/crypto/ec/curve448 -I../../third_party/node-nw/deps/openssl/openssl/crypto/ec/curve448/arch_32 -I../../third_party/node-nw/deps/openssl/openssl/providers/common/include -I../../third_party/node-nw/deps/openssl/openssl/providers/implementations/include -I../../third_party/node-nw/deps/openssl/config -I../../third_party/node-nw/deps/openssl/config/archs/linux-x86_64/no-asm -I../../third_party/node-nw/deps/openssl/config/archs/linux-x86_64/no-asm/include -I../../third_party/node-nw/deps/openssl/config/archs/linux-x86_64/no-asm/crypto -I../../third_party/node-nw/deps/openssl/config/archs/linux-x86_64/no-asm/crypto/include/internal -I../../third_party/node-nw/deps/openssl/config/archs/linux-x86_64/no-asm/providers/common/include -pthread -Wall -Wextra -Wno-unused-parameter -m64 --sysroot=/home/ayushmxn/nwjs/src/build/linux/debian_sid_amd64-sysroot -nostdinc++ -isystem../../../../buildtools/third_party/libc++/trunk/include -isystem../../../../buildtools/third_party/libc++ -isystem../../../../buildtools/third_party/libc++abi/trunk/include -fPIC -Wall -O3 -pthread -m64 -Wall -O3 -Wno-missing-field-initializers -O3 -fno-omit-frame-pointer   -c ../../third_party/node-nw/deps/openssl/openssl/ssl/tls_depr.c -o obj/third_party/node-nw/deps/openssl/openssl/ssl/openssl.tls_depr.o
In file included from <built-in>:373:
<command line>:22:9: warning: 'OPENSSLDIR' macro redefined [-Wmacro-redefined]
#define OPENSSLDIR "/etc/ssl"
        ^
<command line>:21:9: note: previous definition is here
#define OPENSSLDIR "/home/ayushmxn/nwjs/src/out/Release/obj/lib"
        ^
In file included from ../../third_party/node-nw/deps/openssl/openssl/ssl/tls_depr.c:13:
In file included from ../../third_party/node-nw/deps/openssl/openssl/include/openssl/engine.h:24:
In file included from ../../third_party/node-nw/deps/openssl/openssl/include/openssl/bn.h:20:
In file included from ../../third_party/node-nw/deps/openssl/openssl/include/openssl/e_os2.h:234:
/home/ayushmxn/nwjs/src/third_party/llvm-build/Release+Asserts/lib/clang/15.0.0/include/inttypes.h:21:15: fatal error: 'inttypes.h' file not found
#include_next <inttypes.h>
              ^~~~~~~~~~~~
1 warning and 1 error generated.
[10/1719] CC obj/third_party/node-nw/deps/openssl/openssl/ssl/openssl.tls_srp.o
FAILED: obj/third_party/node-nw/deps/openssl/openssl/ssl/openssl.tls_srp.o
/home/ayushmxn/nwjs/src/third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/third_party/node-nw/deps/openssl/openssl/ssl/openssl.tls_srp.o.d -DV8_DEPRECATION_WARNINGS -DV8_REVERSE_JSARGS -D_GLIBCXX_USE_CXX11_ABI=1 -D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_ISOLATE_CAGE -DV8_VIRTUAL_MEMORY_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -D__STDC_FORMAT_MACROS -DOPENSSL_THREADS -DOPENSSL_NO_ASM -DOPENSSL_NO_HW -DOPENSSL_API_COMPAT=0x10100001L -DSTATIC_LEGACY -DNDEBUG -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_BUILDING_OPENSSL -DOPENSSL_PIC '-DMODULESDIR="/home/ayushmxn/nwjs/src/out/Release/obj/lib/openssl-modules"' '-DOPENSSLDIR="/home/ayushmxn/nwjs/src/out/Release/obj/lib"' '-DOPENSSLDIR="/etc/ssl"' '-DENGINESDIR="/dev/null"' -DTERMIOS -I../../third_party/node-nw/deps/openssl/openssl -I../../third_party/node-nw/deps/openssl/openssl/include -I../../third_party/node-nw/deps/openssl/openssl/crypto -I../../third_party/node-nw/deps/openssl/openssl/crypto/include -I../../third_party/node-nw/deps/openssl/openssl/crypto/modes -I../../third_party/node-nw/deps/openssl/openssl/crypto/ec/curve448 -I../../third_party/node-nw/deps/openssl/openssl/crypto/ec/curve448/arch_32 -I../../third_party/node-nw/deps/openssl/openssl/providers/common/include -I../../third_party/node-nw/deps/openssl/openssl/providers/implementations/include -I../../third_party/node-nw/deps/openssl/config -I../../third_party/node-nw/deps/openssl/config/archs/linux-x86_64/no-asm -I../../third_party/node-nw/deps/openssl/config/archs/linux-x86_64/no-asm/include -I../../third_party/node-nw/deps/openssl/config/archs/linux-x86_64/no-asm/crypto -I../../third_party/node-nw/deps/openssl/config/archs/linux-x86_64/no-asm/crypto/include/internal -I../../third_party/node-nw/deps/openssl/config/archs/linux-x86_64/no-asm/providers/common/include -pthread -Wall -Wextra -Wno-unused-parameter -m64 --sysroot=/home/ayushmxn/nwjs/src/build/linux/debian_sid_amd64-sysroot -nostdinc++ -isystem../../../../buildtools/third_party/libc++/trunk/include -isystem../../../../buildtools/third_party/libc++ -isystem../../../../buildtools/third_party/libc++abi/trunk/include -fPIC -Wall -O3 -pthread -m64 -Wall -O3 -Wno-missing-field-initializers -O3 -fno-omit-frame-pointer   -c ../../third_party/node-nw/deps/openssl/openssl/ssl/tls_srp.c -o obj/third_party/node-nw/deps/openssl/openssl/ssl/openssl.tls_srp.o
In file included from <built-in>:373:
<command line>:22:9: warning: 'OPENSSLDIR' macro redefined [-Wmacro-redefined]
#define OPENSSLDIR "/etc/ssl"
        ^
<command line>:21:9: note: previous definition is here
#define OPENSSLDIR "/home/ayushmxn/nwjs/src/out/Release/obj/lib"
        ^
In file included from ../../third_party/node-nw/deps/openssl/openssl/ssl/tls_srp.c:20:
In file included from ../../third_party/node-nw/deps/openssl/openssl/include/openssl/crypto.h:1:
In file included from ../../third_party/node-nw/deps/openssl/openssl/include/openssl/../../../config/crypto.h:2:
In file included from ../../third_party/node-nw/deps/openssl/config/./crypto_no-asm.h:11:
../../third_party/node-nw/deps/openssl/config/./archs/linux-x86_64/no-asm/include/openssl/crypto.h:25:11: fatal error: 'stdlib.h' file not found
# include <stdlib.h>
          ^~~~~~~~~~
1 warning and 1 error generated.
ninja: build stopped: subcommand failed.



Ayushman Chhabra

unread,
Sep 16, 2022, 3:19:39 PM9/16/22
to nw.js
Giving this another shot. If I want to build the debug version of NW.js and do component builds, would the environment variables be is_debug=true and is_component_build=true?

Ayushman Chhabra

unread,
Sep 16, 2022, 3:22:07 PM9/16/22
to nw.js
> Giving this another shot. If I want to build the debug version of NW.js and do component builds, would the environment variables be is_debug=true and is_component_build=true?

If I'm trying to build the sdk build for linux64?

Fíla

unread,
Sep 19, 2022, 11:27:43 AM9/19/22
to nw.js
Same issue :-/

Dne pátek 16. září 2022 v 21:22:07 UTC+2 uživatel ayus...@outlook.com napsal:

Fíla

unread,
Sep 19, 2022, 11:29:57 AM9/19/22
to nw.js
Log: https://pastebin.com/ckrLHtfQ

Dne pondělí 19. září 2022 v 17:27:43 UTC+2 uživatel Fíla napsal:

Andriy Savchenko

unread,
Dec 16, 2022, 3:32:48 PM12/16/22
to nw.js
Did you find a solution?

понеділок, 19 вересня 2022 р. о 18:29:57 UTC+3 Fíla пише:

Andriy Savchenko

unread,
Dec 18, 2022, 4:26:41 AM12/18/22
to nw.js
The problem was caused by missing src/build/linux/debian_sid_amd64-sysroot
gclient hooks create src/build/linux/debian_bullseye_amd64-sysroot instead.

пʼятниця, 16 грудня 2022 р. о 22:32:48 UTC+2 Andriy Savchenko пише:

Ayushman Chhabra

unread,
Dec 19, 2022, 11:52:02 PM12/19/22
to nw.js
Turns out Chromium has switched to bullseye. Changing the sysroot name in node's common.gypi file should make it work.

Ayushman Chhabra

unread,
Mar 15, 2023, 2:29:40 AM3/15/23
to nw.js
Reply all
Reply to author
Forward
0 new messages