Skip to content

Build failure: error: cannot ‘dynamic_cast’ ‘source’ (of type ‘const class duckdb::CatalogEntry*’) to type ‘const class duckdb::DuckTableEntry*’ #239

@inglesp

Description

@inglesp

What happens?

On a freshly-cloned repo, uv sync --no-build-isolation fails with:

      /home/inglesp/tmp/duckdb-python/external/duckdb/src/include/duckdb/common/helper.hpp:265:57: error: cannot ‘dynamic_cast’ ‘source’ (of type ‘const class duckdb::CatalogEntry*’)
      to type ‘const class duckdb::DuckTableEntry*’ (target is not pointer or reference to complete type)
        265 |         D_ASSERT(reinterpret_cast<const T *>(source) == dynamic_cast<const T *>(source));
            |

See this gist for the full output, which is too long for this field.

To Reproduce

I ran:

git clone --recurse-submodules https://github.com/duckdb/duckdb-python
cd duckdb-python/
uv sync --no-install-project
uv sync --no-build-isolation

OS:

Ubuntu 22.04, x86_64

DuckDB Package Version:

Latest head (3f1f615)

Python Version:

3.14.0

Full Name:

Peter Inglesby

Affiliation:

Bennett Institute of Applied Data Science, Oxford University

What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.

I have tested with a source build

Did you include all relevant data sets for reproducing the issue?

Not applicable - the reproduction does not require a data set

Did you include all code required to reproduce the issue?

  • Yes, I have

Did you include all relevant configuration to reproduce the issue?

  • Yes, I have

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions