Giter Club home page Giter Club logo

Comments (4)

netcan avatar netcan commented on May 14, 2024

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.

hrissan avatar hrissan commented on May 14, 2024

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.

hrissan avatar hrissan commented on May 14, 2024

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.

netcan avatar netcan commented on May 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.