Skip to content

Instantly share code, notes, and snippets.

@adamlaska
Created October 17, 2022 10:35
Show Gist options
  • Save adamlaska/c42aa00fda0f24ad520ee476ed5d25a0 to your computer and use it in GitHub Desktop.
Save adamlaska/c42aa00fda0f24ad520ee476ed5d25a0 to your computer and use it in GitHub Desktop.
cd $HOME/nwjs/src && ninja -C out/nw nwjs
ninja: Entering directory `out/nw'
[1/6] SOLINK ./lib/libheadless_non_renderer.so
FAILED: lib/libheadless_non_renderer.so lib/libheadless_non_renderer.so.TOC
python3 "../../build/toolchain/gcc_solink_wrapper.py" --readelf="../../third_party/llvm-build/Release+Asserts/bin/llvm-readelf" --nm="../../third_party/llvm-build/Release+Asserts/bin/llvm-nm" --sofile="./lib/libheadless_non_renderer.so" --tocfile="./lib/libheadless_non_renderer.so.TOC" --output="./lib/libheadless_non_renderer.so" -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,-soname="libheadless_non_renderer.so" -Werror -fuse-ld=lld -Wl,--fatal-warnings -Wl,--build-id -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,--color-diagnostics -Wl,--no-call-graph-profile-sort -m64 -no-canonical-prefixes -Wl,--gdb-index -rdynamic -Wl,-z,defs -Wl,--as-needed -nostdlib++ --sysroot=../../build/linux/debian_bullseye_amd64-sysroot -o "./lib/libheadless_non_renderer.so" @"./lib/libheadless_non_renderer.so.rsp"
ld.lld: error: duplicate symbol: headless::HeadlessContentMainDelegate::HeadlessContentMainDelegate(std::__1::unique_ptr<headless::HeadlessBrowserImpl, std::__1::default_delete<headless::HeadlessBrowserImpl>>)
>>> defined at headless_content_main_delegate.cc:160 (../../headless/lib/headless_content_main_delegate.cc:160)
>>> obj/headless/headless_non_renderer/headless_content_main_delegate.o:(headless::HeadlessContentMainDelegate::HeadlessContentMainDelegate(std::__1::unique_ptr<headless::HeadlessBrowserImpl, std::__1::default_delete<headless::HeadlessBrowserImpl>>))
>>> defined at headless_content_main_delegate.cc:160 (../../headless/lib/headless_content_main_delegate.cc:160)
>>> obj/headless/headless_shared_sources/headless_content_main_delegate.o:(.text+0x0)
ld.lld: error: duplicate symbol: vtable for headless::HeadlessContentMainDelegate
>>> defined at headless_content_main_delegate.cc
>>> obj/headless/headless_non_renderer/headless_content_main_delegate.o:(vtable for headless::HeadlessContentMainDelegate)
>>> defined at headless_content_main_delegate.cc
>>> obj/headless/headless_shared_sources/headless_content_main_delegate.o:(.data.rel.ro+0x0)
ld.lld: error: duplicate symbol: headless::HeadlessContentMainDelegate::Init()
>>> defined at headless_content_main_delegate.cc:170 (../../headless/lib/headless_content_main_delegate.cc:170)
>>> obj/headless/headless_non_renderer/headless_content_main_delegate.o:(headless::HeadlessContentMainDelegate::Init())
>>> defined at headless_content_main_delegate.cc:170 (../../headless/lib/headless_content_main_delegate.cc:170)
>>> obj/headless/headless_shared_sources/headless_content_main_delegate.o:(.text+0xA0)
ld.lld: error: duplicate symbol: headless::HeadlessContentMainDelegate::HeadlessContentMainDelegate(headless::HeadlessBrowser::Options)
>>> defined at headless_content_main_delegate.cc:166 (../../headless/lib/headless_content_main_delegate.cc:166)
>>> obj/headless/headless_non_renderer/headless_content_main_delegate.o:(headless::HeadlessContentMainDelegate::HeadlessContentMainDelegate(headless::HeadlessBrowser::Options))
>>> defined at headless_content_main_delegate.cc:166 (../../headless/lib/headless_content_main_delegate.cc:166)
>>> obj/headless/headless_shared_sources/headless_content_main_delegate.o:(.text+0x130)
ld.lld: error: duplicate symbol: headless::HeadlessContentMainDelegate::~HeadlessContentMainDelegate()
>>> defined at headless_content_main_delegate.cc:175 (../../headless/lib/headless_content_main_delegate.cc:175)
>>> obj/headless/headless_non_renderer/headless_content_main_delegate.o:(headless::HeadlessContentMainDelegate::~HeadlessContentMainDelegate())
>>> defined at headless_content_main_delegate.cc:175 (../../headless/lib/headless_content_main_delegate.cc:175)
>>> obj/headless/headless_shared_sources/headless_content_main_delegate.o:(.text+0x1D0)
ld.lld: error: duplicate symbol: headless::HeadlessContentMainDelegate::~HeadlessContentMainDelegate()
>>> defined at headless_content_main_delegate.cc:175 (../../headless/lib/headless_content_main_delegate.cc:175)
>>> obj/headless/headless_non_renderer/headless_content_main_delegate.o:(headless::HeadlessContentMainDelegate::~HeadlessContentMainDelegate())
>>> defined at headless_content_main_delegate.cc:175 (../../headless/lib/headless_content_main_delegate.cc:175)
>>> obj/headless/headless_shared_sources/headless_content_main_delegate.o:(.text+0x2D0)
ld.lld: error: duplicate symbol: headless::HeadlessContentMainDelegate::~HeadlessContentMainDelegate()
>>> defined at headless_content_main_delegate.cc:175 (../../headless/lib/headless_content_main_delegate.cc:175)
>>> obj/headless/headless_non_renderer/headless_content_main_delegate.o:(headless::HeadlessContentMainDelegate::~HeadlessContentMainDelegate())
>>> defined at headless_content_main_delegate.cc:175 (../../headless/lib/headless_content_main_delegate.cc:175)
>>> obj/headless/headless_shared_sources/headless_content_main_delegate.o:(.text+0x1D0)
ld.lld: error: duplicate symbol: headless::HeadlessContentMainDelegate::BasicStartupComplete()
>>> defined at headless_content_main_delegate.cc:180 (../../headless/lib/headless_content_main_delegate.cc:180)
>>> obj/headless/headless_non_renderer/headless_content_main_delegate.o:(headless::HeadlessContentMainDelegate::BasicStartupComplete())
>>> defined at headless_content_main_delegate.cc:180 (../../headless/lib/headless_content_main_delegate.cc:180)
>>> obj/headless/headless_shared_sources/headless_content_main_delegate.o:(.text+0x300)
ld.lld: error: duplicate symbol: headless::HeadlessContentMainDelegate::options()
>>> defined at headless_content_main_delegate.cc:442 (../../headless/lib/headless_content_main_delegate.cc:442)
>>> obj/headless/headless_non_renderer/headless_content_main_delegate.o:(headless::HeadlessContentMainDelegate::options())
>>> defined at headless_content_main_delegate.cc:442 (../../headless/lib/headless_content_main_delegate.cc:442)
>>> obj/headless/headless_shared_sources/headless_content_main_delegate.o:(.text+0x610)
ld.lld: error: duplicate symbol: headless::HeadlessContentMainDelegate::InitLogging(base::CommandLine const&)
>>> defined at headless_content_main_delegate.cc:229 (../../headless/lib/headless_content_main_delegate.cc:229)
>>> obj/headless/headless_non_renderer/headless_content_main_delegate.o:(headless::HeadlessContentMainDelegate::InitLogging(base::CommandLine const&))
>>> defined at headless_content_main_delegate.cc:229 (../../headless/lib/headless_content_main_delegate.cc:229)
>>> obj/headless/headless_shared_sources/headless_content_main_delegate.o:(.text+0x680)
ld.lld: error: duplicate symbol: headless::HeadlessContentMainDelegate::InitCrashReporter(base::CommandLine const&)
>>> defined at headless_content_main_delegate.cc:318 (../../headless/lib/headless_content_main_delegate.cc:318)
>>> obj/headless/headless_non_renderer/headless_content_main_delegate.o:(headless::HeadlessContentMainDelegate::InitCrashReporter(base::CommandLine const&))
>>> defined at headless_content_main_delegate.cc:318 (../../headless/lib/headless_content_main_delegate.cc:318)
>>> obj/headless/headless_shared_sources/headless_content_main_delegate.o:(.text+0xE20)
ld.lld: error: duplicate symbol: headless::HeadlessContentMainDelegate::PreSandboxStartup()
>>> defined at headless_content_main_delegate.cc:352 (../../headless/lib/headless_content_main_delegate.cc:352)
>>> obj/headless/headless_non_renderer/headless_content_main_delegate.o:(headless::HeadlessContentMainDelegate::PreSandboxStartup())
>>> defined at headless_content_main_delegate.cc:352 (../../headless/lib/headless_content_main_delegate.cc:352)
>>> obj/headless/headless_shared_sources/headless_content_main_delegate.o:(.text+0xF70)
ld.lld: error: duplicate symbol: headless::HeadlessContentMainDelegate::RunProcess(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, content::MainFunctionParams)
>>> defined at headless_content_main_delegate.cc:377 (../../headless/lib/headless_content_main_delegate.cc:377)
>>> obj/headless/headless_non_renderer/headless_content_main_delegate.o:(headless::HeadlessContentMainDelegate::RunProcess(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, content::MainFunctionParams))
>>> defined at headless_content_main_delegate.cc:377 (../../headless/lib/headless_content_main_delegate.cc:377)
>>> obj/headless/headless_shared_sources/headless_content_main_delegate.o:(.text+0x1420)
ld.lld: error: duplicate symbol: headless::SIGTERMProfilingShutdown(int)
>>> defined at headless_content_main_delegate.cc:403 (../../headless/lib/headless_content_main_delegate.cc:403)
>>> obj/headless/headless_non_renderer/headless_content_main_delegate.o:(headless::SIGTERMProfilingShutdown(int))
>>> defined at headless_content_main_delegate.cc:403 (../../headless/lib/headless_content_main_delegate.cc:403)
>>> obj/headless/headless_shared_sources/headless_content_main_delegate.o:(.text+0x16B0)
ld.lld: error: duplicate symbol: headless::SetUpProfilingShutdownHandler()
>>> defined at headless_content_main_delegate.cc:412 (../../headless/lib/headless_content_main_delegate.cc:412)
>>> obj/headless/headless_non_renderer/headless_content_main_delegate.o:(headless::SetUpProfilingShutdownHandler())
>>> defined at headless_content_main_delegate.cc:412 (../../headless/lib/headless_content_main_delegate.cc:412)
>>> obj/headless/headless_shared_sources/headless_content_main_delegate.o:(.text+0x17A0)
ld.lld: error: duplicate symbol: headless::HeadlessContentMainDelegate::ZygoteForked()
>>> defined at headless_content_main_delegate.cc:420 (../../headless/lib/headless_content_main_delegate.cc:420)
>>> obj/headless/headless_non_renderer/headless_content_main_delegate.o:(headless::HeadlessContentMainDelegate::ZygoteForked())
>>> defined at headless_content_main_delegate.cc:420 (../../headless/lib/headless_content_main_delegate.cc:420)
>>> obj/headless/headless_shared_sources/headless_content_main_delegate.o:(.text+0x1880)
ld.lld: error: duplicate symbol: headless::HeadlessContentMainDelegate::GetInstance()
>>> defined at headless_content_main_delegate.cc:438 (../../headless/lib/headless_content_main_delegate.cc:438)
>>> obj/headless/headless_non_renderer/headless_content_main_delegate.o:(headless::HeadlessContentMainDelegate::GetInstance())
>>> defined at headless_content_main_delegate.cc:438 (../../headless/lib/headless_content_main_delegate.cc:438)
>>> obj/headless/headless_shared_sources/headless_content_main_delegate.o:(.text+0x1960)
ld.lld: error: duplicate symbol: headless::HeadlessContentMainDelegate::CreateContentClient()
>>> defined at headless_content_main_delegate.cc:448 (../../headless/lib/headless_content_main_delegate.cc:448)
>>> obj/headless/headless_non_renderer/headless_content_main_delegate.o:(headless::HeadlessContentMainDelegate::CreateContentClient())
>>> defined at headless_content_main_delegate.cc:448 (../../headless/lib/headless_content_main_delegate.cc:448)
>>> obj/headless/headless_shared_sources/headless_content_main_delegate.o:(.text+0x1970)
ld.lld: error: duplicate symbol: headless::HeadlessContentMainDelegate::CreateContentBrowserClient()
>>> defined at headless_content_main_delegate.cc:453 (../../headless/lib/headless_content_main_delegate.cc:453)
>>> obj/headless/headless_non_renderer/headless_content_main_delegate.o:(headless::HeadlessContentMainDelegate::CreateContentBrowserClient())
>>> defined at headless_content_main_delegate.cc:453 (../../headless/lib/headless_content_main_delegate.cc:453)
>>> obj/headless/headless_shared_sources/headless_content_main_delegate.o:(.text+0x1990)
ld.lld: error: duplicate symbol: headless::HeadlessContentMainDelegate::CreateContentRendererClient()
>>> defined at headless_content_main_delegate.cc:460 (../../headless/lib/headless_content_main_delegate.cc:460)
>>> obj/headless/headless_non_renderer/headless_content_main_delegate.o:(headless::HeadlessContentMainDelegate::CreateContentRendererClient())
>>> defined at headless_content_main_delegate.cc:460 (../../headless/lib/headless_content_main_delegate.cc:460)
>>> obj/headless/headless_shared_sources/headless_content_main_delegate.o:(.text+0x19F0)
ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
diff --git a/headless/BUILD.gn b/headless/BUILD.gn
index fd2c556571..cdf16eabbc 100644
--- a/headless/BUILD.gn
+++ b/headless/BUILD.gn
@@ -304,8 +304,6 @@ source_set("headless_shared_sources") {
sources = [
"app/headless_shell_switches.cc",
"app/headless_shell_switches.h",
- "lib/headless_content_main_delegate.cc",
- "lib/headless_content_main_delegate.h",
"lib/headless_content_client.cc",
"lib/headless_content_client.h",
"public/headless_browser.cc",
@@ -627,8 +625,10 @@ if (!is_component_build) {
static_library("headless_renderer") {
defines = []
sources = [
- #"lib/browser/headless_web_contents_impl.cc",
- #"lib/browser/headless_web_contents_impl.h",
+ "lib/browser/headless_web_contents_impl.cc",
+ "lib/browser/headless_web_contents_impl.h",
+ "lib/headless_content_main_delegate.cc",
+ "lib/headless_content_main_delegate.h",
"lib/renderer/headless_content_renderer_client.cc",
"lib/renderer/headless_content_renderer_client.h",
"lib/utility/headless_content_utility_client.cc",
@@ -940,8 +940,8 @@ static_library("headless_shell_lib") {
sources += [
"lib/browser/headless_content_browser_client.cc",
"lib/browser/headless_content_browser_client.h",
- #"lib/utility/headless_content_utility_client.cc",
- #"lib/utility/headless_content_utility_client.h",
+ "lib/utility/headless_content_utility_client.cc",
+ "lib/utility/headless_content_utility_client.h",
]
}
cd $HOME/nwjs/src && ninja -C out/Release node
ninja: Entering directory `out/Release'
[1/1720] 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.
[2/1720] 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/1720] 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/1720] 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.
[5/1720] 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.
[6/1720] 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.
[7/1720] 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.
[8/1720] 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.
[9/1720] 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="/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 ../../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/16.0.0/include/inttypes.h:21:15: fatal error: 'inttypes.h' file not found
#include_next <inttypes.h>
^~~~~~~~~~~~
1 error generated.
[10/1720] 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="/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 ../../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 error generated.
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment