reproduce-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #61811] jinja2, extension-helpers, pybind11 not found, even though


From: Boud Roukema
Subject: [bug #61811] jinja2, extension-helpers, pybind11 not found, even though installed; pyyaml error
Date: Sat, 24 Sep 2022 15:58:54 -0400 (EDT)

Follow-up Comment #9, bug #61811 (project reproduce):

Commit 67daeee [0], which is one commit beyond core maneage 4318670, works for
me to solve the 'pyyaml' compilation bug listed below here in bug #61811. The
solution is to update from pyyaml-5.1 to pyyaml-6.0. (This seems to be
independent from the other set of python bugs listed here.)

The cause of the problem is stated in the python documentation: Py_REFCNT
changed in implementation to a function [1], so increasing its value with
'++Py_REFCNT' is invalid, which is why the error message states 'lvalue
required as increment operand'. An 'lvalue' is a 'left-hand value', i.e. that
can be put in the left-hand part of an assignment operation, written '=' in C;
the "value" of a function is (I guess) the address of the function in RAM, so
augmenting the value of that address would be nonsense.

To see the problem for yourself, try compiling the standalone program

int Py_REFCNT(const double *o){
};

int main(void){
  double x;
  ++Py_REFCNT(&x);
}

with a C compiler. You should obtain the same error as when installing
pyyaml-5.1 with python-3.10.6. Grep your log file if you didn't notice the bug
before.

Commit 67daeee also adds 'setuptools_scm' dependencies for the python build
rules for 'soupsieve' and 'webencodings', since otherwise these builds may
fail (depending on the speed and parallel nature of compiles; these *did* fail
for me); see also bug #63054 [2].

Astropy (for example) has to be enabled in TARGETS.conf for 67daeee to be
tested. 

[0]
https://codeberg.org/boud/maneage_dev/commit/67daeee967fafd44e6f8199748f5cae4dd7ad5d6
 
[1] https://docs.python.org/3/c-api/structures.html#c.Py_REFCNT

[2] https://savannah.nongnu.org/bugs/?63054



    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?61811>

_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]