[llvm] [mlir] [OMPIRBuilder] Avoid invalid debug location. (PR #151306)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 11 10:51:47 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-fuzzer` running on `sanitizer-buildbot6` while building `llvm,mlir` at step 2 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/32/builds/23041

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
[4/79] Linking CXX shared module unittests/Passes/Plugins/TestPlugin.so
[5/79] Linking CXX shared module unittests/Analysis/InlineOrderPlugin.so
[6/79] Generating VCSVersion.inc
[7/77] Linking CXX shared module unittests/CodeGen/CGPluginTest/CGTestPlugin.so
[8/77] Linking CXX shared module unittests/Support/DynamicLibrary/SecondLib.so
[9/77] Linking CXX shared module unittests/Passes/Plugins/DoublerPlugin.so
[10/77] Linking CXX shared module unittests/Analysis/InlineAdvisorPlugin.so
[11/77] Linking CXX shared module unittests/Support/DynamicLibrary/PipSqueak.so
[12/77] Linking CXX executable bin/llvm-config
[13/77] Building CXX object lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/OMPIRBuilder.cpp.o
FAILED: lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/OMPIRBuilder.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm_build0/lib/Frontend/OpenMP -I/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/lib/Frontend/OpenMP -I/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm_build0/include -I/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/OMPIRBuilder.cpp.o -MF lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/OMPIRBuilder.cpp.o.d -o lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/OMPIRBuilder.cpp.o -c /home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:9008:5: error: use of undeclared identifier 'restoreIPandDebugLoc'
 9008 |     restoreIPandDebugLoc(Builder, CodeGenIP);
      |     ^
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:9027:7: error: use of undeclared identifier 'restoreIPandDebugLoc'
 9027 |       restoreIPandDebugLoc(Builder, CodeGenIP);
      |       ^
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:9037:5: error: use of undeclared identifier 'restoreIPandDebugLoc'
 9037 |     restoreIPandDebugLoc(Builder, CodeGenIP);
      |     ^
3 errors generated.
ninja: build stopped: subcommand failed.
Step 7 (stage1 build all) failure: stage1 build all (failure)
...
[4/79] Linking CXX shared module unittests/Passes/Plugins/TestPlugin.so
[5/79] Linking CXX shared module unittests/Analysis/InlineOrderPlugin.so
[6/79] Generating VCSVersion.inc
[7/77] Linking CXX shared module unittests/CodeGen/CGPluginTest/CGTestPlugin.so
[8/77] Linking CXX shared module unittests/Support/DynamicLibrary/SecondLib.so
[9/77] Linking CXX shared module unittests/Passes/Plugins/DoublerPlugin.so
[10/77] Linking CXX shared module unittests/Analysis/InlineAdvisorPlugin.so
[11/77] Linking CXX shared module unittests/Support/DynamicLibrary/PipSqueak.so
[12/77] Linking CXX executable bin/llvm-config
[13/77] Building CXX object lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/OMPIRBuilder.cpp.o
FAILED: lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/OMPIRBuilder.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm_build0/lib/Frontend/OpenMP -I/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/lib/Frontend/OpenMP -I/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm_build0/include -I/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/OMPIRBuilder.cpp.o -MF lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/OMPIRBuilder.cpp.o.d -o lib/Frontend/OpenMP/CMakeFiles/LLVMFrontendOpenMP.dir/OMPIRBuilder.cpp.o -c /home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:9008:5: error: use of undeclared identifier 'restoreIPandDebugLoc'
 9008 |     restoreIPandDebugLoc(Builder, CodeGenIP);
      |     ^
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:9027:7: error: use of undeclared identifier 'restoreIPandDebugLoc'
 9027 |       restoreIPandDebugLoc(Builder, CodeGenIP);
      |       ^
/home/b/sanitizer-x86_64-linux-fuzzer/build/llvm-project/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:9037:5: error: use of undeclared identifier 'restoreIPandDebugLoc'
 9037 |     restoreIPandDebugLoc(Builder, CodeGenIP);
      |     ^
3 errors generated.
ninja: build stopped: subcommand failed.
program finished with exit code 1
elapsedTime=40.381514

```

</details>

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


More information about the llvm-commits mailing list