Skip to content

libtbx build failing on Ubuntu 24.04.2 LTS #2926

@dagewa

Description

@dagewa

python3 bootstrap.py --libtbx is failing with an error for me on Ubuntu 24.02.2 LTS. It looks like the critical bit is here:

/tmp/conda_base/bin/x86_64-conda-linux-gnu-c++ -o boost/libs/timer/src/cpu_timer.o -c -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /tmp/conda_base/include -std=c++14 -I/tmp/modules/boost -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /tmp/conda_base/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /tmp/conda_base/include -DBOOST_SYSTEM_NO_DEPRECATED=1 -DBOOST_TIMER_DYN_LINK=1 -I/tmp/modules -I/tmp/modules/cctbx_project -I/tmp/build/annlib_adaptbx/include -I/tmp/conda_base/include /tmp/modules/boost/libs/timer/src/cpu_timer.cpp
In file included from /tmp/conda_base/include/python3.12/Python.h:44,
                 from /tmp/modules/boost/boost/python/detail/wrap_python.hpp:178,
                 from /tmp/modules/boost/boost/python/detail/prefix.hpp:13,
                 from /tmp/modules/boost/boost/python/object/life_support.hpp:7,
                 from /tmp/modules/boost/libs/python/src/object/life_support.cpp:5:
/tmp/modules/boost/libs/python/src/object/life_support.cpp: In function 'PyObject* boost::python::objects::make_nurse_and_patient(PyObject*, PyObject*)':
/tmp/conda_base/include/python3.12/object.h:223:30: error: lvalue required as left operand of assignment
  223 | #  define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))
      |                       ~~~~~~~^~~~~~~~~~~~~~~~~~~~

Full stderr: error.txt

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