Skip to content

'nogil' keyword / GIL issues on RHEL8 using Python 3.11 #192

@ralphlange

Description

@ralphlange
python3.11 -m cython -I ../p4p -o _p4p.cpp --cplus ../p4p/_p4p.pyx
[WARN] warning: /mnt/ITER/langer/work/CODAC/m-epics-p4p/target/p4p-4.2.1/src/p4p/pvxs/data.pxd:96:15: Rvalue-reference as function argument not supported
[WARN] warning: /mnt/ITER/langer/work/CODAC/m-epics-p4p/target/p4p-4.2.1/src/p4p/pvxs/data.pxd:111:13: Rvalue-reference as function argument not supported
[WARN] warning: /mnt/ITER/langer/work/CODAC/m-epics-p4p/target/p4p-4.2.1/src/p4p/pvxs/data.pxd:96:15: Rvalue-reference as function argument not supported
[WARN] warning: /mnt/ITER/langer/work/CODAC/m-epics-p4p/target/p4p-4.2.1/src/p4p/pvxs/data.pxd:111:13: Rvalue-reference as function argument not supported
[WARN] warning: /mnt/ITER/langer/work/CODAC/m-epics-p4p/target/p4p-4.2.1/src/p4p/_p4p.pyx:45:72: The keyword 'nogil' should appear at the end of the function signature line. Placing it before 'except' or 'noexcept' will be disallowed in a future version of Cython.
[ERROR] performance hint: /mnt/ITER/langer/work/CODAC/m-epics-p4p/target/p4p-4.2.1/src/p4p/_gw.pyx:351:4: Exception check on 'GWProvider_makeChannel' will always require the GIL to be acquired. Declare 'GWProvider_makeChannel' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions.
[WARN] performance hint: /mnt/ITER/langer/work/CODAC/m-epics-p4p/target/p4p-4.2.1/src/p4p/_gw.pyx:374:4: Exception check on 'GWProvider_audit' will always require the GIL to be acquired.
[WARN] Possible solutions:
[ERROR] 1. Declare 'GWProvider_audit' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions.
[ERROR] 2. Use an 'int' return type on 'GWProvider_audit' to allow an error code to be returned.
[WARN] warning: /mnt/ITER/langer/work/CODAC/m-epics-p4p/target/p4p-4.2.1/src/p4p/pvxs/sharedArray.pxd:28:20: Rvalue-reference as function argument not supported

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