[clang] [llvm] [llvm][clang] Allocate a new stack instead of spawning a new thread to get more stack space (PR #133173)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 15 12:37:38 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `ml-opt-devrel-x86-64` running on `ml-opt-devrel-x86-64-b1` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all".

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

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

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
3.077 [108/26/622] Building CXX object unittests/TargetParser/CMakeFiles/TargetParserTests.dir/TargetParserTest.cpp.o
3.118 [107/26/623] Building CXX object unittests/TargetParser/CMakeFiles/TargetParserTests.dir/TripleTest.cpp.o
3.517 [106/26/624] Linking CXX executable unittests/TargetParser/TargetParserTests
3.560 [105/26/625] Building CXX object unittests/Telemetry/CMakeFiles/TelemetryTests.dir/TelemetryTest.cpp.o
3.866 [104/26/626] Linking CXX executable unittests/Telemetry/TelemetryTests
3.905 [103/26/627] Building CXX object unittests/Testing/ADT/CMakeFiles/TestingADTTests.dir/StringMapEntryTest.cpp.o
3.944 [102/26/628] Building CXX object unittests/Testing/ADT/CMakeFiles/TestingADTTests.dir/StringMapTest.cpp.o
4.190 [101/26/629] Linking CXX executable unittests/Testing/ADT/TestingADTTests
4.247 [100/26/630] Building CXX object unittests/Testing/Annotations/CMakeFiles/TestingAnnotationTests.dir/AnnotationsTest.cpp.o
4.303 [99/26/631] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ProgramStackTest.cpp.o
FAILED: unittests/Support/CMakeFiles/SupportTests.dir/ProgramStackTest.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/ml-opt-devrel-x86-64-b1/build/unittests/Support -I/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/Support -I/var/lib/buildbot/.local/lib/python3.7/site-packages/tensorflow/include -I/b/ml-opt-devrel-x86-64-b1/build/include -I/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include -I/b/ml-opt-devrel-x86-64-b1/llvm-project/third-party/unittest/googletest/include -I/b/ml-opt-devrel-x86-64-b1/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/Support/CMakeFiles/SupportTests.dir/ProgramStackTest.cpp.o -MF unittests/Support/CMakeFiles/SupportTests.dir/ProgramStackTest.cpp.o.d -o unittests/Support/CMakeFiles/SupportTests.dir/ProgramStackTest.cpp.o -c /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/Support/ProgramStackTest.cpp
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/Support/ProgramStackTest.cpp: In member function ‘virtual void ProgramStackTest_runOnNewStack_Test::TestBody()’:
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/Support/ProgramStackTest.cpp:33:55: error: call of overloaded ‘runOnNewStack(int, llvm::function_ref<void(int&)>, int&)’ is ambiguous
   33 |   runOnNewStack(0, function_ref<void(int &)>(func2), A);
      |                                                       ^
In file included from /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/unittests/Support/ProgramStackTest.cpp:9:
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include/llvm/Support/ProgramStack.h:48:3: note: candidate: ‘R llvm::runOnNewStack(unsigned int, llvm::function_ref<Ret(Params ...)>, Ts&& ...) [with R = void; Ts = {int&}]’
   48 | R runOnNewStack(unsigned StackSize, function_ref<R(Ts...)> Fn, Ts &&...Args) {
      |   ^~~~~~~~~~~~~
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include/llvm/Support/ProgramStack.h:55:6: note: candidate: ‘void llvm::runOnNewStack(unsigned int, llvm::function_ref<void(Ts ...)>, Ts&& ...) [with Ts = {int&}]’
   55 | void runOnNewStack(unsigned StackSize, function_ref<void(Ts...)> Fn,
      |      ^~~~~~~~~~~~~
4.398 [99/25/632] Linking CXX executable unittests/ExecutionEngine/Orc/OrcJITTests
4.441 [99/24/633] Linking CXX executable unittests/Testing/Annotations/TestingAnnotationTests
4.561 [99/23/634] Linking CXX executable unittests/MC/AMDGPU/AMDGPUMCTests
4.694 [99/22/635] Linking CXX executable unittests/Target/LoongArch/LoongArchTests
4.718 [99/21/636] Linking CXX executable unittests/Target/VE/VETests
4.758 [99/20/637] Linking CXX executable unittests/Passes/PassBuilderBindings/PassesBindingsTests
4.769 [99/19/638] Linking CXX executable unittests/Analysis/AnalysisTests
4.775 [99/18/639] Linking CXX executable unittests/Target/WebAssembly/WebAssemblyTests
4.811 [99/17/640] Linking CXX executable unittests/Target/AArch64/AArch64Tests
4.813 [99/16/641] Linking CXX executable unittests/IR/IRTests
4.848 [99/15/642] Linking CXX executable unittests/Target/ARM/ARMTests
4.961 [99/14/643] Linking CXX executable unittests/Target/SPIRV/SPIRVTests
5.173 [99/13/644] Linking CXX executable unittests/Target/RISCV/RISCVTests
5.189 [99/12/645] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CrashRecoveryTest.cpp.o
5.236 [99/11/646] Linking CXX executable unittests/ExecutionEngine/MCJIT/MCJITTests
5.385 [99/10/647] Linking CXX executable unittests/Passes/Plugins/PluginsTests
5.849 [99/9/648] Linking CXX executable unittests/Target/AMDGPU/AMDGPUTests
6.023 [99/8/649] Linking CXX executable unittests/Target/X86/X86Tests
6.927 [99/7/650] Linking CXX executable unittests/CodeGen/CodeGenTests
6.929 [99/6/651] Linking CXX executable unittests/CodeGen/GlobalISel/GlobalISelTests
7.206 [99/5/652] Linking CXX executable unittests/DebugInfo/DWARF/DebugInfoDWARFTests
7.224 [99/4/653] Linking CXX executable unittests/MIR/MIRTests
7.251 [99/3/654] Linking CXX executable unittests/DebugInfo/LogicalView/DebugInfoLogicalViewTests
7.426 [99/2/655] Linking CXX executable unittests/MI/MITests
7.797 [99/1/656] Linking CXX executable unittests/Target/TargetMachineCTests
ninja: build stopped: subcommand failed.

```

</details>

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


More information about the cfe-commits mailing list