nnstreamer / nnstreamer

:twisted_rightwards_arrows: Neural Network (NN) Streamer, Stream Processing Paradigm for Neural Network Apps/Devices.
https://nnstreamer.ai
GNU Lesser General Public License v2.1
710 stars 174 forks source link

brew install doesn't work on MacOS #4430

Open shortcipher3 opened 7 months ago

shortcipher3 commented 7 months ago

Issue Description

Followed instructions to install on my M1 mac with brew from here and it failed.

Expected Result

Installation of nnstreamer plugins to my mac.

How to Reproduce

$ brew tap nnstreamer/neural-network
$ brew install nnstreamer

Further Information

➜ brew install nnstreamer
==> Downloading https://formulae.brew.sh/api/formula.jws.json
############################################################################################################################################################################################################################################## 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json

==> Fetching nnstreamer/neural-network/nnstreamer
==> Downloading https://raw.githubusercontent.com/nnstreamer/homebrew-neural-network/master/Formula/nnstreamer-patches/0001-Local-Tests-Skip-the-SSAT-based-test-cases-that-fail.patch
Already downloaded: /Users/me/Library/Caches/Homebrew/downloads/59a19102c9769da77974dcdda3245f1f8edbdd71df5ee2991171e6d48c93333b--0001-Local-Tests-Skip-the-SSAT-based-test-cases-that-fail.patch
==> Downloading https://raw.githubusercontent.com/nnstreamer/homebrew-neural-network/master/Formula/nnstreamer-patches/0002-Local-Query-Common-Replace-EREMOTEIO-with-ENOTCONN.patch
Already downloaded: /Users/me/Library/Caches/Homebrew/downloads/0c68840d69c9dec22c27bd19f67d4db52b523edbc533b7b45b790975bf4188ea--0002-Local-Query-Common-Replace-EREMOTEIO-with-ENOTCONN.patch
==> Downloading https://raw.githubusercontent.com/nnstreamer/homebrew-neural-network/master/Formula/nnstreamer-patches/0003-Local-Tests-FilterExtCommon-Add-a-missing-parameter-.patch
Already downloaded: /Users/me/Library/Caches/Homebrew/downloads/eb50fb0c94605c868da5d5b2022cfeee0c88468f26de1311dfa6b786ee4a6318--0003-Local-Tests-FilterExtCommon-Add-a-missing-parameter-.patch
==> Downloading https://github.com/nnstreamer/nnstreamer/archive/refs/tags/v2.0.0.tar.gz
Already downloaded: /Users/me/Library/Caches/Homebrew/downloads/b75e4f412d282a7c02528d42252c86bf41667385597eb96e25b9f1e3b527fdff--nnstreamer-2.0.0.tar.gz
==> Installing nnstreamer from nnstreamer/neural-network
==> Patching
==> Applying 0001-Local-Tests-Skip-the-SSAT-based-test-cases-that-fail.patch
patching file 'tests/nnstreamer_flatbuf/runTest.sh'
patching file 'tests/nnstreamer_flexbuf/runTest.sh'
patching file 'tests/nnstreamer_grpc/runTest.sh'
patching file 'tests/nnstreamer_protobuf/runTest.sh'
patching file 'tests/nnstreamer_query/runTest.sh'
patching file 'tests/nnstreamer_repo_dynamicity/runTest.sh'
==> Applying 0002-Local-Query-Common-Replace-EREMOTEIO-with-ENOTCONN.patch
patching file 'gst/nnstreamer/tensor_query/tensor_query_common.c'
==> Applying 0003-Local-Tests-FilterExtCommon-Add-a-missing-parameter-.patch
patching file 'tests/nnstreamer_filter_extensions_common/meson.build'
==> rm -rf build
==> meson build --sysconfdir=/opt/homebrew/Cellar/nnstreamer/2.0.0/etc
==> ninja -C build
Last 15 lines from /Users/me/Library/Logs/Homebrew/nnstreamer/03.ninja:
/opt/homebrew/Cellar/abseil/20240116.1/include/absl/functional/internal/any_invocable.h:380:44: error: 'T' does not refer to a value
struct IsInPlaceType<absl::in_place_type_t<T>> : std::true_type {};
                                           ^
/opt/homebrew/Cellar/abseil/20240116.1/include/absl/functional/internal/any_invocable.h:379:17: note: declared here
template <class T>
                ^
/opt/homebrew/Cellar/abseil/20240116.1/include/absl/functional/internal/any_invocable.h:380:46: error: expected unqualified-id
struct IsInPlaceType<absl::in_place_type_t<T>> : std::true_type {};
                                             ^
/opt/homebrew/Cellar/abseil/20240116.1/include/absl/functional/internal/any_invocable.h:476:27: error: no template named 'in_place_type_t' in namespace 'absl'
  explicit CoreImpl(absl::in_place_type_t<QualTRef>, Args&&... args) {
                    ~~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
ninja: build stopped: subcommand failed.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/nnstreamer/homebrew-neural-network/issues
taos-ci commented 7 months ago

:octocat: cibot: Thank you for posting issue #4430. The person in charge will reply soon.

myungjoo commented 7 months ago

@wooksong Is this the issue related with C++OO ? (It's you that mentioned this, right?)

wooksong commented 7 months ago

@wooksong Is this the issue related with C++OO ? (It's you that mentioned this, right?)

That was a different issue.

But similarly, it seems that error messages in this issue are related to using c++17 features on < c++17 .