Skip to content

fix potential CMake race condition in built files for Clang 18.1.8 + LLVM 18.1.8#25319

Merged
boegel merged 1 commit intoeasybuilders:developfrom
Crivella:fix-LLVM_buildrace
Feb 18, 2026
Merged

fix potential CMake race condition in built files for Clang 18.1.8 + LLVM 18.1.8#25319
boegel merged 1 commit intoeasybuilders:developfrom
Crivella:fix-LLVM_buildrace

Conversation

@Crivella
Copy link
Copy Markdown
Contributor

Potential fix by using patch from

To fix reported errors of like:

…
make[2]: Entering directory '/ngc/tools/build_image/tmp/Clang/18.1.8/GCCcore-13.3.0/llvm.obj.1'
[ 70%] Building CXX object tools/mlir/lib/Dialect/Affine/Analysis/CMakeFiles/obj.MLIRAffineAnalysis.dir/AffineAnalysis.cpp.o
cd /ngc/tools/build_image/tmp/Clang/18.1.8/GCCcore-13.3.0/llvm.obj.1/tools/mlir/lib/Dialect/Affine/Analysis && /tmp/eb-ngin6dc0/tmp5ckebd7e/rpath_wrappers/gxx_wrapper/g++ -DGTEST_HAS_RTTI=0 -DMLIR_CUDA_CONVERSIONS_ENABLED=0 -DMLIR_ROCM_CONVERSIONS_ENABLED=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/ngc/tools/build_image/tmp/Clang/18.1.8/GCCcore-13.3.0/llvm.obj.1/tools/mlir/lib/Dialect/Affine/Analysis -I/ngc/tools/build_image/tmp/Clang/18.1.8/GCCcore-13.3.0/llvm-project-18.1.8.src/mlir/lib/Dialect/Affine/Analysis -I/ngc/tools/build_image/tmp/Clang/18.1.8/GCCcore-13.3.0/llvm.obj.1/include -I/ngc/tools/build_image/tmp/Clang/18.1.8/GCCcore-13.3.0/llvm-project-18.1.8.src/llvm/include -I/ngc/tools/build_image/tmp/Clang/18.1.8/GCCcore-13.3.0/llvm-project-18.1.8.src/mlir/include -I/ngc/tools/build_image/tmp/Clang/18.1.8/GCCcore-13.3.0/llvm.obj.1/tools/mlir/include -O2 -ftree-vectorize -march=native -fno-math-errno -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -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 -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/mlir/lib/Dialect/Affine/Analysis/CMakeFiles/obj.MLIRAffineAnalysis.dir/AffineAnalysis.cpp.o -MF CMakeFiles/obj.MLIRAffineAnalysis.dir/AffineAnalysis.cpp.o.d -o CMakeFiles/obj.MLIRAffineAnalysis.dir/AffineAnalysis.cpp.o -c /ngc/tools/build_image/tmp/Clang/18.1.8/GCCcore-13.3.0/llvm-project-18.1.8.src/mlir/lib/Dialect/Affine/Analysis/AffineAnalysis.cpp
In file included from /ngc/tools/build_image/tmp/Clang/18.1.8/GCCcore-13.3.0/llvm-project-18.1.8.src/mlir/lib/Dialect/Affine/Analysis/AffineAnalysis.cpp:20:
/ngc/tools/build_image/tmp/Clang/18.1.8/GCCcore-13.3.0/llvm-project-18.1.8.src/mlir/include/mlir/Dialect/Func/IR/FuncOps.h:29:10: fatal error: mlir/Dialect/Func/IR/FuncOps.h.inc: No such file or directory
   29 | #include "mlir/Dialect/Func/IR/FuncOps.h.inc"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [tools/mlir/lib/Dialect/Affine/Analysis/CMakeFiles/obj.MLIRAffineAnalysis.dir/build.make:79: tools/mlir/lib/Dialect/Affine/Analysis/CMakeFiles/obj.MLIRAffineAnalysis.dir/AffineAnalysis.cpp.o] Error 1
make[2]: Leaving directory '/ngc/tools/build_image/tmp/Clang/18.1.8/GCCcore-13.3.0/llvm.obj.1'
make[1]: *** [CMakeFiles/Makefile2:168647: tools/mlir/lib/Dialect/Affine/Analysis/CMakeFiles/obj.MLIRAffineAnalysis.dir/all] Error 2
make[1]: Leaving directory '/ngc/tools/build_image/tmp/Clang/18.1.8/GCCcore-13.3.0/llvm.obj.1'
make: *** [Makefile:159: all] Error 2

@github-actions github-actions Bot added 2024a issues & PRs related to 2024a common toolchains change labels Feb 18, 2026
@Crivella
Copy link
Copy Markdown
Contributor Author

@boegelbot please test @ jsc-zen3
CORE_CNT=16
EB_ARGS="--installpath=/tmp/pr-25319"

@boegelbot
Copy link
Copy Markdown
Collaborator

@Crivella: Request for testing this PR well received on jsczen3l1.int.jsc-zen3.fz-juelich.de

PR test command 'if [[ develop != 'develop' ]]; then EB_BRANCH=develop ./easybuild_develop.sh 2> /dev/null 1>&2; EB_PREFIX=/home/boegelbot/easybuild/develop source init_env_easybuild_develop.sh; fi; EB_PR=25319 EB_ARGS="--installpath=/tmp/pr-25319" EB_CONTAINER= EB_REPO=easybuild-easyconfigs EB_BRANCH=develop /opt/software/slurm/bin/sbatch --job-name test_PR_25319 --ntasks="16" ~/boegelbot/eb_from_pr_upload_jsc-zen3.sh' executed!

  • exit code: 0
  • output:
Submitted batch job 9736

Test results coming soon (I hope)...

Details

- notification for comment with ID 3919863439 processed

Message to humans: this is just bookkeeping information for me,
it is of no use to you (unless you think I have a bug, which I don't).

@boegelbot
Copy link
Copy Markdown
Collaborator

Test report by @boegelbot
SUCCESS
Build succeeded for 2 out of 2 (total: 4 hours 31 mins 0 secs) (2 easyconfigs in total)
jsczen3c1.int.jsc-zen3.fz-juelich.de - Linux Rocky Linux 9.7, x86_64, AMD EPYC-Milan Processor (zen3), Python 3.9.23
See https://gist.github.com/boegelbot/3e8c3001122777e92735628ae6c0c4a2 for a full test report.

@boegel boegel changed the title LLVM: Fix potential CMake race condition in built files fix potential CMake race condition in built files for Clang 18.1.8 + LLVM 18.1.8 Feb 18, 2026
Copy link
Copy Markdown
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@boegel boegel added bug fix and removed change labels Feb 18, 2026
@boegel boegel added this to the next release (5.2.1) milestone Feb 18, 2026
@boegel
Copy link
Copy Markdown
Member

boegel commented Feb 18, 2026

Going in, thanks @Crivella!

@boegel boegel merged commit 7741967 into easybuilders:develop Feb 18, 2026
8 checks passed
@Crivella
Copy link
Copy Markdown
Contributor Author

Test report by @Crivella
FAILED
Build succeeded for 1 out of 2 (total: 8 hours 36 mins 22 secs) (2 easyconfigs in total)
crivella-desktop - Linux Ubuntu 22.04.5 LTS (Jammy Jellyfish), x86_64, 13th Gen Intel(R) Core(TM) i9-13900K (skylake), Python 3.11.14
See https://gist.github.com/Crivella/246fd2f8ffdd03b2884678576db03695 for a full test report.

@Crivella
Copy link
Copy Markdown
Contributor Author

Gonna have a look at the tests, but definitely unrelated to this PR

@Crivella Crivella deleted the fix-LLVM_buildrace branch February 18, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2024a issues & PRs related to 2024a common toolchains bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants