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

Failed to compile under linux #3

Closed
PoisonousJohn opened this issue Oct 9, 2013 · 2 comments
Closed

Failed to compile under linux #3

PoisonousJohn opened this issue Oct 9, 2013 · 2 comments

Comments

@PoisonousJohn
Copy link

Wanted to experiment under linux but got this errors:

./build-static-gcc.sh 
In file included from include/async++.h:106:0,
                 from src/scheduler.cpp:31:
/usr/include/c++/4.7/type_traits: In substitution of ‘template<class _From1, class _To1> static decltype ((__test_aux<_To1>(declval<_From1>()), std::__sfinae_types::__one())) std::__is_convertible_helper<_From, _To, false>::__test(int) [with _From1 = _From1; _To1 = _To1; _From = const async::task_run_handle&; _To = async::task_run_handle] [with _From1 = const async::task_run_handle&; _To1 = async::task_run_handle]’:
/usr/include/c++/4.7/type_traits:1258:70:   required from ‘constexpr const bool std::__is_convertible_helper<const async::task_run_handle&, async::task_run_handle, false>::value’
/usr/include/c++/4.7/type_traits:1263:12:   required from ‘struct std::is_convertible<const async::task_run_handle&, async::task_run_handle>’
/usr/include/c++/4.7/type_traits:116:12:   required from ‘struct std::__and_<std::is_convertible<const async::detail::thread_scheduler_impl::schedule(async::task_run_handle)::<lambda(async::task_run_handle)>&, async::detail::thread_scheduler_impl::schedule(async::task_run_handle)::<lambda(async::task_run_handle)> >, std::is_convertible<const async::task_run_handle&, async::task_run_handle> >’
/usr/include/c++/4.7/tuple:530:44:   required from ‘struct std::_Bind_simple<async::detail::thread_scheduler_impl::schedule(async::task_run_handle)::<lambda(async::task_run_handle)>(async::task_run_handle)>’
/usr/include/c++/4.7/thread:133:9:   required from ‘std::thread::thread(_Callable&&, _Args&& ...) [with _Callable = async::detail::thread_scheduler_impl::schedule(async::task_run_handle)::<lambda(async::task_run_handle)>; _Args = {async::task_run_handle}]’
src/scheduler.cpp:454:18:   required from here
include/async++/scheduler.h:83:2: error: ‘async::task_run_handle::task_run_handle(const async::task_run_handle&)’ is private
In file included from /usr/include/c++/4.7/bits/move.h:57:0,
                 from /usr/include/c++/4.7/bits/stl_pair.h:61,
                 from /usr/include/c++/4.7/utility:72,
                 from /usr/include/c++/4.7/algorithm:61,
                 from src/scheduler.cpp:21:
/usr/include/c++/4.7/type_traits:1252:2: error: within this context
In file included from include/async++.h:106:0,
                 from src/scheduler.cpp:31:
/usr/include/c++/4.7/type_traits: In substitution of ‘template<class _From1, class _To1> static decltype ((__test_aux<_To1>(declval<_From1>()), std::__sfinae_types::__one())) std::__is_convertible_helper<_From, _To, false>::__test(int) [with _From1 = _From1; _To1 = _To1; _From = const async::task_run_handle&; _To = async::task_run_handle] [with _From1 = const async::task_run_handle&; _To1 = async::task_run_handle]’:
/usr/include/c++/4.7/type_traits:1258:70:   required from ‘constexpr const bool std::__is_convertible_helper<const async::task_run_handle&, async::task_run_handle, false>::value’
/usr/include/c++/4.7/type_traits:1263:12:   required from ‘struct std::is_convertible<const async::task_run_handle&, async::task_run_handle>’
/usr/include/c++/4.7/type_traits:116:12:   required from ‘struct std::__and_<std::is_convertible<const async::detail::thread_scheduler_impl::schedule(async::task_run_handle)::<lambda(async::task_run_handle)>&, async::detail::thread_scheduler_impl::schedule(async::task_run_handle)::<lambda(async::task_run_handle)> >, std::is_convertible<const async::task_run_handle&, async::task_run_handle> >’
/usr/include/c++/4.7/tuple:530:44:   required from ‘struct std::_Bind_simple<async::detail::thread_scheduler_impl::schedule(async::task_run_handle)::<lambda(async::task_run_handle)>(async::task_run_handle)>’
/usr/include/c++/4.7/thread:133:9:   required from ‘std::thread::thread(_Callable&&, _Args&& ...) [with _Callable = async::detail::thread_scheduler_impl::schedule(async::task_run_handle)::<lambda(async::task_run_handle)>; _Args = {async::task_run_handle}]’
src/scheduler.cpp:454:18:   required from here
include/async++/scheduler.h:83:2: error: ‘async::task_run_handle::task_run_handle(const async::task_run_handle&)’ is private
In file included from /usr/include/c++/4.7/bits/move.h:57:0,
                 from /usr/include/c++/4.7/bits/stl_pair.h:61,
                 from /usr/include/c++/4.7/utility:72,
                 from /usr/include/c++/4.7/algorithm:61,
                 from src/scheduler.cpp:21:
/usr/include/c++/4.7/type_traits:1252:2: error: within this context
In file included from include/async++.h:106:0,
                 from src/scheduler.cpp:31:
/usr/include/c++/4.7/type_traits: In instantiation of ‘constexpr const bool std::__is_convertible_helper<const async::task_run_handle&, async::task_run_handle, false>::value’:
/usr/include/c++/4.7/type_traits:1263:12:   required from ‘struct std::is_convertible<const async::task_run_handle&, async::task_run_handle>’
/usr/include/c++/4.7/type_traits:116:12:   required from ‘struct std::__and_<std::is_convertible<const async::detail::thread_scheduler_impl::schedule(async::task_run_handle)::<lambda(async::task_run_handle)>&, async::detail::thread_scheduler_impl::schedule(async::task_run_handle)::<lambda(async::task_run_handle)> >, std::is_convertible<const async::task_run_handle&, async::task_run_handle> >’
/usr/include/c++/4.7/tuple:530:44:   required from ‘struct std::_Bind_simple<async::detail::thread_scheduler_impl::schedule(async::task_run_handle)::<lambda(async::task_run_handle)>(async::task_run_handle)>’
/usr/include/c++/4.7/thread:133:9:   required from ‘std::thread::thread(_Callable&&, _Args&& ...) [with _Callable = async::detail::thread_scheduler_impl::schedule(async::task_run_handle)::<lambda(async::task_run_handle)>; _Args = {async::task_run_handle}]’
src/scheduler.cpp:454:18:   required from here
include/async++/scheduler.h:83:2: error: ‘async::task_run_handle::task_run_handle(const async::task_run_handle&)’ is private
In file included from /usr/include/c++/4.7/bits/move.h:57:0,
                 from /usr/include/c++/4.7/bits/stl_pair.h:61,
                 from /usr/include/c++/4.7/utility:72,
                 from /usr/include/c++/4.7/algorithm:61,
                 from src/scheduler.cpp:21:
/usr/include/c++/4.7/type_traits:1258:70: error: within this context
ar: scheduler.o: No such file or directory

gcc (Ubuntu/Linaro 4.7.3-2ubuntu1~12.04) 4.7.3

@Amanieu Amanieu closed this as completed in f6c1a6a Oct 9, 2013
@PoisonousJohn
Copy link
Author

@Amanieu, error still exists =(

@Amanieu
Copy link
Owner

Amanieu commented Oct 9, 2013

Hmm it works fine for me in gcc 4.8. I'm currently installing gcc 4.7 to see what the problem is.

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

2 participants