Skip to content

Error compiling Cython file with noexcept on Archer2 cluster #1

@tristan0299

Description

@tristan0299

Hello CWIPI developers,

I’m trying to build CWIPI from source on the Archer2 cluster by following the standard steps:

_**git clone https://github.com/onera/cwipi.git

[submodule "external/paradigm"]
path = external/paradigm
url = https://github.com/onera/paradigm.git

git submodule sync external/paradigm
git submodule update --init external/paradigm
mkdir build
cd build
cmake ..
-DCMAKE_INSTALL_PREFIX=/path/
-DCWP_ENABLE_PYTHON_BINDINGS=ON
-DCWP_ENABLE_SHARED=ON

make
make install**_

During the make phase, the build fails while compiling the Cython-generated C source, with the following error:
Error compiling Cython file:
...
const int distant_points_barycentric_coordinates_index[],
const double distant_points_barycentric_coordinates[],
int stride,
cwipi_solver_type_t solver_type,
const void *local_field,
void *distant_field) noexcept:
^
/path/to/cwipi/build/Cython/cwipi/cwipi.pyx:1325:40: Syntax error in C variable declaration

Questions:

Are there specific compiler requirements (e.g., a minimum C++ standard or a particular compiler) needed to build the Python bindings?

Should the Cython output be compiled as C++ rather than C?

Is there a recommended Cython version or cythonize command-line flag to avoid inserting noexcept?

Any advice on how to resolve this build error on an HPC environment like Archer2 would be greatly appreciated. Thank you!

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