Skip to content

Instantly share code, notes, and snippets.

@ahcox
Last active August 18, 2017 00:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahcox/9ce507f383ec7820fc245f9ea90297ee to your computer and use it in GitHub Desktop.
Save ahcox/9ce507f383ec7820fc245f9ea90297ee to your computer and use it in GitHub Desktop.
Error log using stlab develop branch at commit 255379c430c002d75efe1e3218ea4fc92255421a Author: Sean Parent Date: Tue Jul 25 23:25:59 2017 -0700 Backing out an unintentional change.
/Applications/CLion.app/Contents/bin/cmake/bin/cmake --build /Users/ahcox/Library/Caches/CLion2016.2/cmake/generated/stlab_experiments-e68879c1/e68879c1/Debug --target async_error_repro2 -- -j 8
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ahcox/Library/Caches/CLion2016.2/cmake/generated/stlab_experiments-e68879c1/e68879c1/Debug
[ 50%] Building CXX object CMakeFiles/async_error_repro2.dir/async_error_repro2.cpp.o
In file included from /Users/ahcox/checkouts/stlab_experiments/async_error_repro2.cpp:9:
In file included from /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:22:
In file included from /Users/ahcox/checkouts/stlab/stlab/concurrency/executor_base.hpp:16:
/Users/ahcox/checkouts/stlab/stlab/concurrency/task.hpp:78:52: error: no matching function for call to object of type 'std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> >'
R invoke(Args&&... args) override { return _f(std::forward<Args>(args)...); }
^~
/Users/ahcox/checkouts/stlab/stlab/concurrency/task.hpp:75:9: note: in instantiation of member function 'stlab::v1::task<SharedState &()>::model<std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> >, true>::invoke' requested here
model(F0&& f) : _f(std::forward<F0>(f)) {}
^
/Users/ahcox/checkouts/stlab/stlab/concurrency/task.hpp:118:17: note: in instantiation of function template specialization 'stlab::v1::task<SharedState &()>::model<std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> >, true>::model<std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
model<f_t, sizeof(model<f_t, true>) <= small_object_size>(std::forward<F>(f));
^
/Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:493:63: note: in instantiation of function template specialization 'stlab::v1::task<SharedState &()>::task<std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
shared(executor_t s, F f) : shared_base<R>(std::move(s)), _f(std::move(f)) {
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2206:15: note: in instantiation of function template specialization 'stlab::v1::detail::shared<SharedState &()>::shared<std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
__second_(_VSTD::forward<_Args2>(_VSTD::get<_I2>(__second_args))...)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2469:15: note: in instantiation of function template specialization 'std::__1::__libcpp_compressed_pair_imp<std::__1::allocator<stlab::v1::detail::shared<SharedState &()> >, stlab::v1::detail::shared<SharedState &()>, 1>::__libcpp_compressed_pair_imp<std::__1::allocator<stlab::v1::detail::shared<SharedState &()> > &, stlab::v1::detail::default_executor_type &&, std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > &&, 0, 0, 1>' requested here
: base(__pc, _VSTD::move(__first_args), _VSTD::move(__second_args),
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3812:16: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all)
: __data_(piecewise_construct, _VSTD::forward_as_tuple(__a),
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4423:26: note: in instantiation of function template specialization 'std::__1::__shared_ptr_emplace<stlab::v1::detail::shared<SharedState &()>, std::__1::allocator<stlab::v1::detail::shared<SharedState &()> > >::__shared_ptr_emplace<stlab::v1::detail::default_executor_type, std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4787:29: note: in instantiation of function template specialization 'std::__1::shared_ptr<stlab::v1::detail::shared<SharedState &()> >::make_shared<stlab::v1::detail::default_executor_type, std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
return shared_ptr<_Tp>::make_shared(_VSTD::forward<_Args>(__args)...);
^
/Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:824:19: note: in instantiation of function template specialization 'std::__1::make_shared<stlab::v1::detail::shared<SharedState &()>, stlab::v1::detail::default_executor_type, std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
auto p = std::make_shared<detail::shared<Sig>>(std::move(s), std::move(f));
^
/Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1277:14: note: in instantiation of function template specialization 'stlab::v1::package<SharedState &(), stlab::v1::detail::default_executor_type, std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
auto p = package<std::result_of_t<F(Args...)>()>(executor,
^
/Users/ahcox/checkouts/stlab_experiments/async_error_repro2.cpp:42:32: note: in instantiation of function template specialization 'stlab::v1::async<stlab::v1::detail::default_executor_type, (lambda at /Users/ahcox/checkouts/stlab_experiments/async_error_repro2.cpp:19:25) &, const int &, const long double &, std::__1::reference_wrapper<SharedState> >' requested here
auto stlabFuture1 = stlab::async(stlab::default_executor, taskNonConst, i, f, std::ref(inOut)); // Fail [expect: compile as std::ref used]
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:2158:9: note: candidate template ignored: substitution failure [with _Args = <>]: implicit instantiation of undefined template 'std::__1::__bind_return<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), std::__1::tuple<int, long double, std::__1::reference_wrapper<SharedState> >, std::__1::tuple<>, false>'
operator()(_Args&& ...__args)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:2167:9: note: candidate template ignored: substitution failure [with _Args = <>]: implicit instantiation of undefined template 'std::__1::__bind_return<const (lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const std::__1::tuple<int, long double, std::__1::reference_wrapper<SharedState> >, std::__1::tuple<>, false>'
operator()(_Args&& ...__args) const
^
In file included from /Users/ahcox/checkouts/stlab_experiments/async_error_repro2.cpp:9:
In file included from /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:22:
In file included from /Users/ahcox/checkouts/stlab/stlab/concurrency/executor_base.hpp:16:
/Users/ahcox/checkouts/stlab/stlab/concurrency/task.hpp:78:52: error: no matching function for call to object of type 'std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> >'
R invoke(Args&&... args) override { return _f(std::forward<Args>(args)...); }
^~
/Users/ahcox/checkouts/stlab/stlab/concurrency/task.hpp:75:9: note: in instantiation of member function 'stlab::v1::task<void ()>::model<std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> >, true>::invoke' requested here
model(F0&& f) : _f(std::forward<F0>(f)) {}
^
/Users/ahcox/checkouts/stlab/stlab/concurrency/task.hpp:118:17: note: in instantiation of function template specialization 'stlab::v1::task<void ()>::model<std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> >, true>::model<std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
model<f_t, sizeof(model<f_t, true>) <= small_object_size>(std::forward<F>(f));
^
/Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:493:63: note: in instantiation of function template specialization 'stlab::v1::task<void ()>::task<std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
shared(executor_t s, F f) : shared_base<R>(std::move(s)), _f(std::move(f)) {
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2206:15: note: in instantiation of function template specialization 'stlab::v1::detail::shared<void ()>::shared<std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
__second_(_VSTD::forward<_Args2>(_VSTD::get<_I2>(__second_args))...)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2469:15: note: in instantiation of function template specialization 'std::__1::__libcpp_compressed_pair_imp<std::__1::allocator<stlab::v1::detail::shared<void ()> >, stlab::v1::detail::shared<void ()>, 1>::__libcpp_compressed_pair_imp<std::__1::allocator<stlab::v1::detail::shared<void ()> > &, stlab::v1::detail::default_executor_type &&, std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > &&, 0, 0, 1>' requested here
: base(__pc, _VSTD::move(__first_args), _VSTD::move(__second_args),
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3812:16: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all)
: __data_(piecewise_construct, _VSTD::forward_as_tuple(__a),
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4423:26: note: in instantiation of function template specialization 'std::__1::__shared_ptr_emplace<stlab::v1::detail::shared<void ()>, std::__1::allocator<stlab::v1::detail::shared<void ()> > >::__shared_ptr_emplace<stlab::v1::detail::default_executor_type, std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4787:29: note: in instantiation of function template specialization 'std::__1::shared_ptr<stlab::v1::detail::shared<void ()> >::make_shared<stlab::v1::detail::default_executor_type, std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
return shared_ptr<_Tp>::make_shared(_VSTD::forward<_Args>(__args)...);
^
/Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:824:19: note: in instantiation of function template specialization 'std::__1::make_shared<stlab::v1::detail::shared<void ()>, stlab::v1::detail::default_executor_type, std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
auto p = std::make_shared<detail::shared<Sig>>(std::move(s), std::move(f));
^
/Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1277:14: note: in instantiation of function template specialization 'stlab::v1::package<void (), stlab::v1::detail::default_executor_type, std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
auto p = package<std::result_of_t<F(Args...)>()>(executor,
^
/Users/ahcox/checkouts/stlab_experiments/async_error_repro2.cpp:46:37: note: in instantiation of function template specialization 'stlab::v1::async<stlab::v1::detail::default_executor_type, (lambda at /Users/ahcox/checkouts/stlab_experiments/async_error_repro2.cpp:26:38) &, const int &, const long double &, std::__1::reference_wrapper<SharedState> >' requested here
auto stlabFutureNoRet1 = stlab::async(stlab::default_executor, taskNonConst_02_no_return, i, f, std::ref(inOut)); // Fails
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:2158:9: note: candidate template ignored: substitution failure [with _Args = <>]: implicit instantiation of undefined template 'std::__1::__bind_return<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), std::__1::tuple<int, long double, std::__1::reference_wrapper<SharedState> >, std::__1::tuple<>, false>'
operator()(_Args&& ...__args)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:2167:9: note: candidate template ignored: substitution failure [with _Args = <>]: implicit instantiation of undefined template 'std::__1::__bind_return<const (lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const std::__1::tuple<int, long double, std::__1::reference_wrapper<SharedState> >, std::__1::tuple<>, false>'
operator()(_Args&& ...__args) const
^
2 errors generated.
make[3]: *** [CMakeFiles/async_error_repro2.dir/async_error_repro2.cpp.o] Error 1
make[2]: *** [CMakeFiles/async_error_repro2.dir/all] Error 2
make[1]: *** [CMakeFiles/async_error_repro2.dir/rule] Error 2
make: *** [async_error_repro2] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment