GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — uvloop fails to build with Python 3.13.0a5: error: implicit declaration of function ‘_Py_RestoreSignals’ · Issue #603 · MagicStack/uvloop

uvloop fails to build with Python 3.13.0a5: error: implicit declaration of function ‘_Py_RestoreSignals’ #603

New issue
Copy link
New issue
Copy link
Closed
#604
Closed
uvloop fails to build with Python 3.13.0a5: error: implicit declaration of function ‘_Py_RestoreSignals’#603
#604
Copy link

Description

@befeleme
befeleme
opened on Mar 27, 2024
Issue body actions
  • uvloop version: 0.19.0
  • Python version: 3.13.0a5
  • Platform: Fedora Linux 41
  • Can you reproduce the bug with PYTHONASYNCIODEBUG in env?: n/a
  • Does uvloop behave differently from vanilla asyncio? How?: n/a

I try to build uvloop for Fedora Linux 41 with Python 3.13.0a5.
The build fails with the information below.

  uvloop/loop.c: In function ‘__pyx_f_6uvloop_4loop_9UVProcess__after_fork’:
  uvloop/loop.c:129617:5: error: implicit declaration of function ‘_Py_RestoreSignals’ [-Werror=implicit-function-declaration]
  129617 |     _Py_RestoreSignals();
         |     ^~~~~~~~~~~~~~~~~~
Reacted by Sylvain MOUQUET, Nikita, El Laggron, Oleg Korsak and Nikolai Romashchenko

Activity

  1. befeleme commented on Apr 30, 2024

    @befeleme
    befeleme
    on Apr 30, 2024
    ContributorAuthor
    More actions

    _Py_RestoreSignals() has apparently been moved to internal CPython: python/cpython@c9ce983

  2. hroncok commented on Apr 30, 2024

    @hroncok
    hroncok
    on Apr 30, 2024
    Contributor
    More actions

    https://github.com/python/cpython/blob/v3.13.0a6/Modules/signalmodule.c#L1931-L1951

    Maybe this can be inlined?

  3. wRAR commented on May 28, 2024

    @wRAR
    wRAR
    on May 28, 2024
    More actions

    This one is a warning here on a pyenv-installed 3.13.0b1 (not sure if -Werror=implicit-function-declaration in the original report comes from Fedora defaults or what), but there are multiple actual errors:

          uvloop/loop.c:4446:105: error: invalid type argument of ‘->’ (have ‘int’)
           4446 |     __pyx_assertions_enabled_flag = ! _PyInterpreterState_GetConfig(__Pyx_PyThreadState_Current->interp)->optimization_level;
                |                                                                                                         ^~
    [...]
          uvloop/loop.c: In function ‘__Pyx_PyInt_As_int’:
          uvloop/loop.c:177390:27: error: too few arguments to function ‘_PyLong_AsByteArray’
          177390 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
                 |                           ^~~~~~~~~~~~~~~~~~~
    [...]
    
    Reacted by Nikita and Edgar Ramírez Mondragón
  4. root-kidik commented on Jun 5, 2024

    @root-kidik
    root-kidik
    on Jun 5, 2024
    More actions

    +1

  5. fantix
    closed this as completedin #604on Aug 15, 2024
  6. fantix
    added a commit that references this issue on Aug 15, 2024

    uvloop 0.20.0

    2d35f10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.