[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 llvm-commits llvm-commits at lists.llvm.org
Tue Apr 15 11:25:57 PDT 2025


llvm-ci wrote:

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

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

<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.763 [97/26/632] Building CXX object unittests/TextAPI/CMakeFiles/TextAPITests.dir/TextStubV1Tests.cpp.o
3.777 [96/26/633] Linking CXX executable unittests/Testing/Support/TestingSupportTests
3.797 [95/26/634] Building CXX object unittests/TextAPI/CMakeFiles/TextAPITests.dir/TextStubV2Tests.cpp.o
3.810 [94/26/635] Building CXX object unittests/TextAPI/CMakeFiles/TextAPITests.dir/TextStubV3Tests.cpp.o
3.842 [93/26/636] Building CXX object unittests/TextAPI/CMakeFiles/TextAPITests.dir/TextStubV4Tests.cpp.o
3.864 [92/26/637] Building CXX object unittests/TextAPI/CMakeFiles/TextAPITests.dir/TextStubV5Tests.cpp.o
3.898 [91/26/638] Building CXX object unittests/TextAPI/CMakeFiles/TextAPITests.dir/RecordTests.cpp.o
3.929 [90/26/639] Building CXX object unittests/Transforms/Instrumentation/CMakeFiles/InstrumentationTests.dir/MemProfUseTest.cpp.o
3.986 [89/26/640] Building CXX object unittests/Transforms/Coroutines/CMakeFiles/CoroTests.dir/ExtraRematTest.cpp.o
4.035 [88/26/641] 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-rel-x86-64-b1/build/unittests/Support -I/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/Support -I/var/lib/buildbot/.local/lib/python3.7/site-packages/tensorflow/include -I/b/ml-opt-rel-x86-64-b1/build/include -I/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/include -I/b/ml-opt-rel-x86-64-b1/llvm-project/third-party/unittest/googletest/include -I/b/ml-opt-rel-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-rel-x86-64-b1/llvm-project/llvm/unittests/Support/ProgramStackTest.cpp
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/unittests/Support/ProgramStackTest.cpp: In member function ‘virtual void ProgramStackTest_runOnNewStack_Test::TestBody()’:
/b/ml-opt-rel-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-rel-x86-64-b1/llvm-project/llvm/unittests/Support/ProgramStackTest.cpp:9:
/b/ml-opt-rel-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-rel-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.055 [88/25/642] Linking CXX executable unittests/Target/WebAssembly/WebAssemblyTests
4.064 [88/24/643] Linking CXX executable unittests/MC/AMDGPU/AMDGPUMCTests
4.077 [88/23/644] Linking CXX executable unittests/Passes/PassBuilderBindings/PassesBindingsTests
4.143 [88/22/645] Linking CXX executable unittests/Target/VE/VETests
4.147 [88/21/646] Linking CXX executable unittests/Target/LoongArch/LoongArchTests
4.184 [88/20/647] Linking CXX executable unittests/TextAPI/TextAPITests
4.222 [88/19/648] Linking CXX executable unittests/Target/AArch64/AArch64Tests
4.223 [88/18/649] Linking CXX executable unittests/Analysis/AnalysisTests
4.283 [88/17/650] Linking CXX executable unittests/Target/SPIRV/SPIRVTests
4.285 [88/16/651] Linking CXX executable unittests/IR/IRTests
4.323 [88/15/652] Linking CXX executable unittests/Target/RISCV/RISCVTests
4.384 [88/14/653] Linking CXX executable unittests/Target/ARM/ARMTests
4.634 [88/13/654] Linking CXX executable unittests/Passes/Plugins/PluginsTests
4.805 [88/12/655] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CrashRecoveryTest.cpp.o
4.870 [88/11/656] Linking CXX executable unittests/ExecutionEngine/MCJIT/MCJITTests
5.327 [88/10/657] Linking CXX executable unittests/Target/AMDGPU/AMDGPUTests
5.370 [88/9/658] Linking CXX executable unittests/Target/X86/X86Tests
5.466 [88/8/659] Linking CXX executable unittests/Transforms/Coroutines/CoroTests
6.231 [88/7/660] Linking CXX executable unittests/CodeGen/GlobalISel/GlobalISelTests
6.336 [88/6/661] Linking CXX executable unittests/CodeGen/CodeGenTests
6.357 [88/5/662] Linking CXX executable unittests/MIR/MIRTests
6.488 [88/4/663] Linking CXX executable unittests/MI/MITests
6.550 [88/3/664] Linking CXX executable unittests/DebugInfo/DWARF/DebugInfoDWARFTests
6.691 [88/2/665] Linking CXX executable unittests/DebugInfo/LogicalView/DebugInfoLogicalViewTests
7.124 [88/1/666] Linking CXX executable unittests/Target/TargetMachineCTests
ninja: build stopped: subcommand failed.

```

</details>

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


More information about the llvm-commits mailing list