[Openmp-commits] [openmp] Reland: [OpenMP] Add ompTest library to OpenMP (PR #154786)

Michał Górny via Openmp-commits openmp-commits at lists.llvm.org
Tue Aug 26 02:57:23 PDT 2025


mgorny wrote:

I'm seeing build failures with this change, while using runtimes build:

```
FAILED: [code=1] openmp/tools/omptest/CMakeFiles/omptest.dir/src/InternalEvent.cpp.o 
/usr/lib/ccache/bin/aarch64-unknown-linux-gnu-g++ -DOPENMP_LIBOMPTEST_BUILD_STANDALONE -D_GLIBCXX_USE_CXX11_ABI=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Domptest_EXPORTS -I/var/tmp/portage/llvm-runtimes/openmp-22.0.0.9999/work/openmp/tools/omptest/include  -O2 -pipe -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Wcast-qual -Wimplicit-fallthrough -Wsign-compare -Wno-extra -Wno-pedantic -Wno-maybe-uninitialized -fno-semantic-interposition -fdata-sections -std=c++17 -fPIC -MD -MT openmp/tools/omptest/CMakeFiles/omptest.dir/src/InternalEvent.cpp.o -MF openmp/tools/omptest/CMakeFiles/omptest.dir/src/InternalEvent.cpp.o.d -o openmp/tools/omptest/CMakeFiles/omptest.dir/src/InternalEvent.cpp.o -c /var/tmp/portage/llvm-runtimes/openmp-22.0.0.9999/work/openmp/tools/omptest/src/InternalEvent.cpp
In file included from /var/tmp/portage/llvm-runtimes/openmp-22.0.0.9999/work/openmp/tools/omptest/include/InternalEvent.h:17,
                 from /var/tmp/portage/llvm-runtimes/openmp-22.0.0.9999/work/openmp/tools/omptest/src/InternalEvent.cpp:14:
/var/tmp/portage/llvm-runtimes/openmp-22.0.0.9999/work/openmp/tools/omptest/include/InternalEventCommon.h:17:10: fatal error: omp-tools.h: No such file or directory
   17 | #include "omp-tools.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
```

and similar.

Configured via:

```
cmake -C /var/tmp/portage/llvm-runtimes/openmp-22.0.0.9999/work/runtimes_build-.arm64/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DLLVM_ENABLE_RUNTIMES=openmp -DOPENMP_STANDALONE_BUILD=ON -DOPENMP_LIBDIR_SUFFIX=64 -DLIBOMP_USE_HWLOC=yes -DLIBOMP_OMPD_GDB_SUPPORT=yes -DLIBOMP_OMPT_SUPPORT=yes -DLIBOMP_INSTALL_ALIASES=OFF -DLIBOMP_COPY_EXPORTS=OFF -DOPENMP_LLVM_LIT_EXECUTABLE=/usr/bin/lit -DOPENMP_LIT_ARGS=-vv;-j;96 -DOPENMP_TEST_C_COMPILER=/usr/lib/ccache/bin/aarch64-unknown-linux-gnu-clang -DOPENMP_TEST_CXX_COMPILER=/usr/lib/ccache/bin/aarch64-unknown-linux-gnu-clang++ -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/llvm-runtimes/openmp-22.0.0.9999/work/runtimes_build-.arm64/gentoo_toolchain.cmake /var/tmp/portage/llvm-runtimes/openmp-22.0.0.9999/work/runtimes
```

The file's present, so I guess it's a missing include directory:

```
# find /var/tmp/portage/llvm-runtimes/openmp-22.0.0.9999/work/runtimes_build-.arm64 -name omp-tools.h
/var/tmp/portage/llvm-runtimes/openmp-22.0.0.9999/work/runtimes_build-.arm64/openmp/runtime/src/omp-tools.h
```

https://github.com/llvm/llvm-project/pull/154786


More information about the Openmp-commits mailing list