Comments (9)
I am experiencing something similar on Mac OS 11.7.10
I'm building v22.1 via Homebrew (I'm aware that Homebrew no longer officially supports this OS version)
Clang: 13.0.0 build 1300
macOS: 11.7.10-x86_64
CLT: 13.2.0.0.1.1638488800
Xcode: 13.2.1
../deps/v8/src/wasm/wasm-engine.cc:157:19: error: no viable overloaded '='
source_url_ = String::cast(script->name())->ToCString();
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3435:17: note: candidate function not viable: no known conversion from 'std::unique_ptr<char []>' to 'const std::shared_ptr<char const[]>' for 1st argument
shared_ptr& operator=(const shared_ptr& __r) _NOEXCEPT;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3443:9: note: candidate template ignored: could not match 'shared_ptr' against 'unique_ptr'
operator=(const shared_ptr<_Yp>& __r) _NOEXCEPT;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3445:17: note: candidate function not viable: no known conversion from 'std::unique_ptr<char []>' to 'std::shared_ptr<char const[]>' for 1st argument
shared_ptr& operator=(shared_ptr&& __r) _NOEXCEPT;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3453:9: note: candidate template ignored: could not match 'shared_ptr' against 'unique_ptr'
operator=(shared_ptr<_Yp>&& __r);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3473:9: note: candidate template ignored: requirement '!is_array<char []>::value' was not satisfied [with _Yp = char [], _Dp = std::default_delete<char []>]
operator=(unique_ptr<_Yp, _Dp>&& __r);
^
1 error generated.
from node.
macOS 10.15 is no longer supported to build node. We require at least macOS 11.
from node.
To me it seems like the build error might not be specific to OS X 10.15.
from node.
It's specific to the clang version that ships with Xcode on 10.15
from node.
Assuming I fixed that locally and put it under a platform-specific #ifdef
guard, would you accept patches?
from node.
Does this need to be reported upstream to the maintainers of v8 or to what extent is the version bundled with nodejs up-to-date with that?
from node.
Official macOS releases are built with Xcode 13.2.1 too and we don't get this error 🤔
from node.
Had similar issue to @ireddick -- install node v22.1 from source via homebrew on macOS 11 failed, re: wasm-engine
Clang="Apple clang version 13.0.0 (clang-1300.0.29.30)"
macOS=11.7.10 (older OS, unsupported by homebrew)
Xcode CommandLineTools: 13.2.0.0.1.1638488800 (ref)
Error: node "make install" step failing on wasm-engine.o:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3445:17: note: candidate function not viable: no known conversion from 'std::unique_ptr<char []>' to 'std::shared_ptr<char const[]>' for 1st argument
shared_ptr& operator=(shared_ptr&& __r) _NOEXCEPT;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3453:9: note: candidate template ignored: could not match 'shared_ptr' against 'unique_ptr'
operator=(shared_ptr<_Yp>&& __r);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3473:9: note: candidate template ignored: requirement '!is_array<char []>::value' was not satisfied [with _Yp = char [], _Dp = std::default_delete<char []>]
operator=(unique_ptr<_Yp, _Dp>&& __r);
^
1 error generated.
make[1]: *** [/private/tmp/node-20240508-1940-mkq0xj/node-v22.1.0/out/Release/obj.target/v8_base_without_compiler/deps/v8/src/wasm/wasm-engine.o] Error 1
..
make: *** [node] Error 2
Workaround (sufficient for my needs): revert to older node version in homebrew: node@20 (ref), build/install completed without error
from node.
I'm getting a similar error when using brew to upgrade node:
==> Upgrading node
21.7.1 -> 22.2.0
==> ./configure --without-npm --without-corepack --with-intl=system-icu --shared-libuv --shared-nghttp2 --shared-openssl
==> make install
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3453:9: note: candidate template ignored: could not match 'shared_ptr' against 'unique_ptr'
operator=(shared_ptr<_Yp>&& __r);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/memory:3473:9: note: candidate template ignored: requirement '!is_array<char []>::value' was not satisfied [with _Yp = char [], _Dp = std::default_delete<char []>]
operator=(unique_ptr<_Yp, _Dp>&& __r);
Clang="Apple clang version 13.0.0 (clang-1300.0.29.30)"
macOS=11.7.10 (older OS, unsupported by homebrew)
Xcode CommandLineTools: 13.2.0.0.1.1638488800
from node.
Related Issues (20)
- Verify env parameter when napi_get_uv_event_loop functions is called. HOT 2
- TypeError: Missing internal module 'node:crypto' HOT 14
- Disable `NODE_OPTIONS` via CLI HOT 4
- Node 20 not supporting prepack script HOT 2
- Passing `-j32` for ninja no longer works HOT 24
- Tracking issue: latest ESM Integration support
- Module Hooks cannot be registered from worker thread in 22.2.0+ HOT 18
- [REG 20.9->20.10] stream: Pipe is stopped after error on another pipe from the same source HOT 5
- Update Undici to backport a fix in Node.js 20.x HOT 1
- Not able to download nodejs for windows HOT 1
- Unhandled Error on Start HOT 3
- Support registering worker specific custom ESM loader hooks (Regression from #52706) HOT 10
- Lambdas in node 18.x (18.20.3) and problems with axios HPE_INVALID_HEADER_TOKEN HOT 2
- Xcode
- Relative `require()` in `commonjs` source not processed by ESM Loader HOT 2
- test_runner: `before` hook runs even if it's not followed by any test HOT 7
- The registration order of http server listen depends on the Node.js version HOT 5
- Ambiguous steps in `PACKAGE_IMPORTS_EXPORTS_RESOLVE` reference documentation HOT 8
- Memory leak or GC overrun in sort() HOT 2
- (Discuss) `_stream_*`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node.