Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error with clang-13 #83

Open
mid-kid opened this issue Jan 10, 2022 · 3 comments
Open

Build error with clang-13 #83

mid-kid opened this issue Jan 10, 2022 · 3 comments

Comments

@mid-kid
Copy link
Contributor

mid-kid commented Jan 10, 2022

/var/tmp/portage/media-libs/tg_owt-0_pre20211207/work/tg_owt-d5c3d43b959c7e9e7d8004b9b7fdadd12ce7d589/src/modules/congestion_controller/goog_cc/loss_based_bwe_v2.cc:288:10: error: no matching member function for call to 'emplace'
  config.emplace();
  ~~~~~~~^~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/optional:868:2: note: candidate template ignored: requirement 'is_constructible_v<webrtc::LossBasedBweV2::Config>' was not satisfied [with _Args = <>]
        emplace(_Args&&... __args)
        ^
/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/optional:879:2: note: candidate function template not viable: requires at least argument '__il', but no arguments were provided
        emplace(initializer_list<_Up> __il, _Args&&... __args)
        ^
1 error generated.

I'm not sure how to even begin solving this, nor why it was introduced in this version of clang.

https://bugs.gentoo.org/830845

@msva
Copy link

msva commented Feb 14, 2022

btw, I also tried with clang-12, and there were same error.

I'd bet on problems on GCC's side.

// btw, building with libcxx is kinda unlikely way to "fix issue", as it will require to build a tons of stuff (of tdesktop deps) with libcxx too. When it gone for glib, I given up...

@mymedia2
Copy link
Contributor

mymedia2 commented Feb 14, 2022 via email

@mid-kid
Copy link
Contributor Author

mid-kid commented Feb 14, 2022

GCC supplies libstdc++ which clang can (and often by default does) compile/link against. It's not a crazy idea.

msva added a commit to msva/tg_owt that referenced this issue Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants