Skip to content

Building out of the box IMB release 2021.10 with oneapi release 2025.2.0 fails #66

@zachdworkin

Description

@zachdworkin

Download and install out of the box oneapi 2025.2.0
Download IMB release 2021.10
source intel/oneapi/2025.2.0/setvars.sh
cd to IMB release
make -j all fails with this error

In file included from helpers/original_benchmark.h:40:
../src_c/IMB_prototypes.h:424:5: error: 'main' should not be 'extern "C"' [-Werror,-Wmain]
424 | int main(int argc, char **argv);
| ^
1 error generated.

If you comment out that line or remove the -Werror the build passes

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