Skip to content

Python toolchain build failure: configure: error: in `/Python-3.8.6': 236.6 configure: error: cannot compute sizeof (long double) #66

@benfrancis

Description

@benfrancis

In working on upgrading the add-on builder to support Node.js 20 I have discovered that the add-on builder Docker image for Python is now failing to build.

configure: error: in `/Python-3.8.6':
236.6 configure: error: cannot compute sizeof (long double)

It appears that the Docker images for the Python toolchain actually download and compile specific versions of Python from source, and compiling (now quite oudated) older versions of Python on Debian Bookworm is failing.

I would also like to upgrade the version of Python used in the OS image of WebThings Gateway and add support for a newer version (3.11.2?) to the add-on builder to match.

The Node.js images use nvm to install a specific version of Node.js and I'm wondering why the Python images compile Python from source. Would it be better to use something like venv for Python rather than trying to build from source? I'm not sure if there's a reason that the Docker images compile Python from source, e.g. if there weren't pre-built packages for some of the architectures we support?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Product Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions