nw.js icon indicating copy to clipboard operation
nw.js copied to clipboard

node compilation issue on nw65 branch

Open rebeccasf opened this issue 2 years ago • 9 comments

NWJS Version : Branch nw65 Operating System : Ubuntu 20.04

Expected behavior

$ ninja -C out/Release node should execute with no errors.

Actual behavior

Compilation halt due to file not found in sysroot.

How to reproduce

<!-

Follow the documentation and use nw65 branch for all components (nw.js, node, v8 and chromium). args.gn will be the same as official settings: is_debug=false is_component_ffmpeg=true target_cpu="x64"

Build nwjs is able to complete with no errors. Build node

~/nwjs/src ((HEAD detached at origin/nw65)) $ ninja -C out/Release node ninja: Entering directory `out/Release' [1/1703] CC obj/third_party/node-nw/deps/zlib/zlib.adler32.o FAILED: obj/third_party/node-nw/deps/zlib/zlib.adler32.o /home/rebecca.chang/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_MACRO S -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 -W all -Wextra -Wno-unused-parameter -m64 --sysroot=/home/rebecca.chang/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.

->

rebeccasf avatar Jun 01 '22 05:06 rebeccasf

The official build configuration and steps could help: http://buildbot-master.nwjs.io:8010/waterfall

On Tue, May 31, 2022 at 11:26 PM Rebecca Chang Swee Fun < @.***> wrote:

NWJS Version : Branch nw65 Operating System : Ubuntu 20.04 Expected behavior

$ ninja -C out/Release node should execute with no errors. Actual behavior

Compilation halt due to file not found in sysroot. How to reproduce

<!-

Follow the documentation and use nw65 branch for all components (nw.js, node, v8 and chromium). args.gn will be the same as official settings: is_debug=false is_component_ffmpeg=true target_cpu="x64"

Build nwjs is able to complete with no errors. Build node

~/nwjs/src ((HEAD detached at origin/nw65)) $ ninja -C out/Release node ninja: Entering directory `out/Release' [1/1703] CC obj/third_party/node-nw/deps/zlib/zlib.adler32.o FAILED: obj/third_party/node-nw/deps/zlib/zlib.adler32.o /home/rebecca.chang/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_MACRO S -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 -W all -Wextra -Wno-unused-parameter -m64 --sysroot=/home/rebecca.chang/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.

->

— Reply to this email directly, view it on GitHub https://github.com/nwjs/nw.js/issues/7897, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABIMGJA5NOHF7NVIHTTMKTVM3YADANCNFSM5XPZALYQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

rogerwang avatar Jun 01 '22 05:06 rogerwang

//EDIT: fixed - https://github.com/nwjs/nw.js/commit/e3e843a60e878ac534c117b6742ff706086bfd48

Same problem with 0.65.0 vs 0.65.1 dev (with nodejs 18.3.0).

I checked watterfall and config seem same...

Error log is:

$ ninja -C out/Release node
ninja: Entering directory `out/Release'
[1/2] CXX obj\third_party\node-nw\src\node.node_http2.obj
FAILED: obj/third_party/node-nw/src/node.node_http2.obj 
ninja -t msvc -e environment.x86 -- "..\..\third_party\llvm-build\Release+Asserts\bin\clang-cl" -m32 /nologo /showIncludes /FC @obj\third_party\node-nw\src\node.node_http2.obj.rsp /c ..\..\third_party\node-nw\src\node_http2.cc /Foobj\third_party\node-nw\src\node.node_http2.obj /Fdobj\third_party\node-nw\node.cc.pdb 
In file included from ..\..\third_party\node-nw\src\node_http2.cc:1:
In file included from ..\..\third_party\node-nw\src/node_http2.h:7:
In file included from ..\..\buildtools\third_party\libc++\trunk\include\cstdint:143:
In file included from ..\..\buildtools\third_party\libc++\trunk\include\__config:13:
..\..\buildtools\third_party\libc++\__config_site(21,9): warning: '_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS' macro redefined [-Wmacro-redefined]
#define _LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS
        ^
<command line>(5,9): note: previous definition is here
#define _LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS 1
        ^
In file included from ..\..\third_party\node-nw\src\node_http2.cc:1:
In file included from ..\..\third_party\node-nw\src/node_http2.h:8:
..\..\third_party\node-nw\deps\nghttp2\lib\includes\nghttp2/nghttp2.h(930,9): error: unknown type name 'ssize_t'
typedef ssize_t (*nghttp2_data_source_read_callback)(
        ^
..\..\third_party\node-nw\deps\nghttp2\lib\includes\nghttp2/nghttp2.h(1331,9): error: unknown type name 'ssize_t'
typedef ssize_t (*nghttp2_send_callback)(nghttp2_session *session,
        ^

// ...

@rogerwang

panther7 avatar Jun 06 '22 10:06 panther7

@rebeccasf @panther7 can we continue this thread in the Gitter/Google/ Discord chatroom? I'm trying to build NW.js on my local machine and having a tough time.

ayushmanchhabra avatar Aug 23 '22 04:08 ayushmanchhabra

I’m fine with using Google nwjs groups

rebeccasf avatar Aug 23 '22 08:08 rebeccasf

@rebeccasf it seems I got a similar error to you, were you able to figure this out?

# set env variables
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

# generate ninja build files
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

# try building Node
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.

ayushmanchhabra avatar Sep 08 '22 15:09 ayushmanchhabra

Actualy, from nwjs 0.67 i have this error:

Generating essential build files...
Done. Made 17430 targets from 3052 files in 6984ms
Generating node gyp files...
Updating projects from gyp files...
gyp: Duplicate basenames in sources section, see list above
static library third_party/node-nw/deps/base64/base64.gyp:base64#target has several files with the same basename:
  codec: base64/lib/arch/generic/codec.c base64/lib/arch/neon32/codec.c base64/lib/arch/neon64/codec.c
libtool on Mac cannot handle that. Use --no-duplicate-basename-check to disable this validation.

panther7 avatar Sep 09 '22 14:09 panther7

Generating essential build files... Done. Made 17430 targets from 3052 files in 6984ms Generating node gyp files... Updating projects from gyp files... gyp: Duplicate basenames in sources section, see list above static library third_party/node-nw/deps/base64/base64.gyp:base64#target has several files with the same basename: codec: base64/lib/arch/generic/codec.c base64/lib/arch/neon32/codec.c base64/lib/arch/neon64/codec.c libtool on Mac cannot handle that. Use --no-duplicate-basename-check to disable this validation.

I did not spend more time on nw65 since Roger is not maintaining it. I went back to nw64 and work from there.

rebeccasf avatar Sep 12 '22 01:09 rebeccasf

IMHO, i felt the release is too frequent and a lot of changes in the components are not being tracked properly, hence the downstream users are having hard time to figure out what is wrong. So, what ever is working for me, I will just stick with that.

rebeccasf avatar Sep 12 '22 01:09 rebeccasf

I agree

IMHO, i felt the release is too frequent and a lot of changes in the components are not being tracked properly, hence the downstream users are having hard time to figure out what is wrong. So, what ever is working for me, I will just stick with that.

Completely agree!

ayushmanchhabra avatar Sep 12 '22 12:09 ayushmanchhabra