Comments (4)
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
from asyncio.
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.
from asyncio.
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...>;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
from asyncio.
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
from asyncio.
Related Issues (17)
- 单元测试报错 HOT 2
- 关于task.h中的await_transform和co_await如何执行 HOT 2
- OSX compilation troubles HOT 1
- Python: run_soon_threadsafe
- Compatability with cppcoro HOT 2
- vcpkg HOT 2
- Benchmark: more options
- 不支持 windows?
- cmake error: Could not find a package configuration file provided by "fmt" HOT 6
- Can't compile it with gcc 11 HOT 3
- wait_for控制超时导致coredump HOT 7
- heap-use-after-free HOT 4
- Release test pass in GCC 11.2 :-)
- [Feature Request] TLS Support? HOT 2
- No install target?
- Just a comparison HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asyncio.