Installation error
Opened this issue · 4 comments
Get this error while installing on a mac:
In file included from /Users/atulbansal/base/projects/cpp/asyncio/include/asyncio/event_loop.h:9:
/Users/atulbansal/base/projects/cpp/asyncio/include/asyncio/handle.h:9:10: fatal error: 'source_location' file not found
#include <source_location>
^~~~~~~~~~~~~~~~~
1 error generated.
Get this error while installing on a mac:
In file included from /Users/atulbansal/base/projects/cpp/asyncio/include/asyncio/event_loop.h:9: /Users/atulbansal/base/projects/cpp/asyncio/include/asyncio/handle.h:9:10: fatal error: 'source_location' file not found #include <source_location> ^~~~~~~~~~~~~~~~~ 1 error generated.
using gcc & libstdc++ instead
Same problem.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal
$ gcc --version
gcc (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Other projects with coroutines and different C++20 features compile without problem.
Also if I remove this header and all references to source-location, I get errors.
/home/user/devbox/asyncio/test/st/echo_server.cpp:46:35: required from here
/usr/include/c++/10/concepts:73:10: fatal error: template instantiation depth exceeds maximum of 900 (use ‘-ftemplate-depth=’ to increase the maximum)
73 | && requires(add_rvalue_reference_t<_From> (&__f)()) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
74 | static_cast<_To>(__f());
| ~~~~~~~~~~~~~~~~~~~~~~~~
75 | };
| ~
And also
/home/user/devbox/asyncio/test/st/echo_server.cpp:46:35: required from here
/usr/include/c++/10/concepts:139:30: error: the value of ‘std::is_constructible_v<asyncio::ScheduledTask<asyncio::Task<> >, asyncio::ScheduledTask<asyncio::Task > >’ is not usable in a constant expression
139 | = destructible<_Tp> && is_constructible_v<_Tp, _Args...>;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Same problem. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.6 LTS Release: 20.04 Codename: focal
$ gcc --version gcc (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Other projects with coroutines and different C++20 features compile without problem.
only support gcc-11/12