Git Product home page Git Product logo

Comments (9)

ireddick avatar ireddick commented on June 10, 2024 1

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.

targos avatar targos commented on June 10, 2024

macOS 10.15 is no longer supported to build node. We require at least macOS 11.

from node.

tobbi avatar tobbi commented on June 10, 2024

To me it seems like the build error might not be specific to OS X 10.15.

from node.

targos avatar targos commented on June 10, 2024

It's specific to the clang version that ships with Xcode on 10.15

from node.

tobbi avatar tobbi commented on June 10, 2024

Assuming I fixed that locally and put it under a platform-specific #ifdef guard, would you accept patches?

from node.

tobbi avatar tobbi commented on June 10, 2024

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.

targos avatar targos commented on June 10, 2024

Official macOS releases are built with Xcode 13.2.1 too and we don't get this error 🤔

from node.

wehrwein1 avatar wehrwein1 commented on June 10, 2024

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.

baldr9 avatar baldr9 commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.