[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 12:49:03 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `lld-x86_64-ubuntu-fast` running on `as-builder-4` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/33/builds/14912
<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)
...
2.571 [2/47/711] Linking CXX executable unittests/ObjCopy/ObjCopyTests
2.605 [2/46/712] Linking CXX executable unittests/Bitcode/BitcodeTests
2.668 [2/45/713] Linking CXX executable unittests/Object/ObjectTests
2.724 [2/44/714] Linking CXX executable unittests/ObjectYAML/ObjectYAMLTests
2.846 [2/43/715] Linking CXX executable unittests/ProfileData/ProfileDataTests
2.871 [2/42/716] Linking CXX executable unittests/SandboxIR/SandboxIRTests
3.014 [2/41/717] Linking CXX executable unittests/FuzzMutate/FuzzMutateTests
3.194 [2/40/718] Linking CXX executable unittests/Transforms/Vectorize/VectorizeTests
3.475 [2/39/719] Linking CXX executable unittests/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerTests
3.670 [2/38/720] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ProgramStackTest.cpp.o
FAILED: unittests/Support/CMakeFiles/SupportTests.dir/ProgramStackTest.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/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/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/unittests/Support -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/Support -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/include -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/include -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/third-party/unittest/googletest/include -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/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 -Wctad-maybe-unsupported -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 /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/Support/ProgramStackTest.cpp
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/Support/ProgramStackTest.cpp: In member function ‘virtual void ProgramStackTest_runOnNewStack_Test::TestBody()’:
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/Support/ProgramStackTest.cpp:33:16: 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 /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/unittests/Support/ProgramStackTest.cpp:9:
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/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) {
| ^~~~~~~~~~~~~
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/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,
| ^~~~~~~~~~~~~
3.718 [2/37/721] Linking CXX executable unittests/MC/MCTests
3.974 [2/36/722] Linking CXX executable unittests/Transforms/IPO/IPOTests
4.467 [2/35/723] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CrashRecoveryTest.cpp.o
5.110 [2/34/724] Linking CXX executable unittests/tools/llvm-cfi-verify/CFIVerifyTests
5.234 [2/33/725] Linking CXX executable unittests/Target/LoongArch/LoongArchTests
5.340 [2/32/726] Linking CXX executable unittests/Target/VE/VETests
5.558 [2/31/727] Linking CXX executable unittests/Target/ARM/ARMTests
5.696 [2/30/728] Linking CXX executable unittests/Target/WebAssembly/WebAssemblyTests
5.753 [2/29/729] Linking CXX executable unittests/Target/PowerPC/PowerPCTests
6.016 [2/28/730] Linking CXX executable unittests/Target/SPIRV/SPIRVTests
6.084 [2/27/731] Linking CXX executable unittests/Target/AArch64/AArch64Tests
6.237 [2/26/732] Linking CXX executable unittests/Target/RISCV/RISCVTests
6.297 [2/25/733] Linking CXX executable unittests/Transforms/Coroutines/CoroTests
6.321 [2/24/734] Linking CXX executable unittests/Frontend/LLVMFrontendTests
6.331 [2/23/735] Linking CXX executable unittests/tools/llvm-mca/LLVMMCATests
6.661 [2/22/736] Linking CXX executable unittests/Transforms/Instrumentation/InstrumentationTests
6.927 [2/21/737] Linking CXX executable unittests/Passes/PassBuilderBindings/PassesBindingsTests
7.074 [2/20/738] Linking CXX executable unittests/Transforms/Utils/UtilsTests
7.248 [2/19/739] Linking CXX executable unittests/ExecutionEngine/Orc/OrcJITTests
7.506 [2/18/740] Linking CXX executable unittests/Target/X86/X86Tests
7.665 [2/17/741] Linking CXX executable unittests/MC/AMDGPU/AMDGPUMCTests
7.764 [2/16/742] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
8.023 [2/15/743] Linking CXX executable unittests/IR/IRTests
8.194 [2/14/744] Linking CXX executable unittests/Target/AMDGPU/AMDGPUTests
8.205 [2/13/745] Linking CXX executable unittests/ExecutionEngine/MCJIT/MCJITTests
8.297 [2/12/746] Linking CXX executable unittests/Analysis/AnalysisTests
```
</details>
https://github.com/llvm/llvm-project/pull/133173
More information about the llvm-commits
mailing list