[libc-commits] [compiler-rt] [libc] [PoC][libc] add libc drived internal build of scudo (PR #187595)

via libc-commits libc-commits at lists.llvm.org
Thu Mar 19 14:54:49 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

The build failed before running any tests. Click on a failure below to see the details.

<details>
<summary>compiler-rt/lib/scudo/standalone/CMakeFiles/RTScudoStandaloneCWrappers.x86_64.dir/wrappers_c.cpp.o</summary>

```
FAILED: compiler-rt/lib/scudo/standalone/CMakeFiles/RTScudoStandaloneCWrappers.x86_64.dir/wrappers_c.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/../.. -I/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -Wall -Werror -Wno-unused-parameter -O3 -DNDEBUG -std=c++17 -m64 -Werror=conversion -Wall -Wextra -pedantic -g -nostdinc++ -fvisibility=hidden -fno-exceptions -Wno-pedantic -fno-lto -O3 -Werror=thread-safety -fno-omit-frame-pointer -DGWP_ASAN_HOOKS -MD -MT compiler-rt/lib/scudo/standalone/CMakeFiles/RTScudoStandaloneCWrappers.x86_64.dir/wrappers_c.cpp.o -MF compiler-rt/lib/scudo/standalone/CMakeFiles/RTScudoStandaloneCWrappers.x86_64.dir/wrappers_c.cpp.o.d -o compiler-rt/lib/scudo/standalone/CMakeFiles/RTScudoStandaloneCWrappers.x86_64.dir/wrappers_c.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_c.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_c.cpp:31:64: error: variable does not have a constant initializer
31 | scudo::Allocator<scudo::Config, SCUDO_PREFIX(malloc_postinit)> SCUDO_ALLOCATOR;
|                                                                ^~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_c.cpp:25:25: note: expanded from macro 'SCUDO_ALLOCATOR'
25 | #define SCUDO_ALLOCATOR Allocator
|                         ^~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_c.cpp:30:1: note: required by 'require_constant_initialization' attribute here
30 | SCUDO_REQUIRE_CONSTANT_INITIALIZATION
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/internal_defs.h:73:18: note: expanded from macro 'SCUDO_REQUIRE_CONSTANT_INITIALIZATION'
73 |   __attribute__((__require_constant_initialization__))
|                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/combined.h:1049:50: note: non-constexpr function 'initPThreadOnce' cannot be used in a constant expression
1049 |   typename LibcPAL::PThreadOnceT PostInitNonce = LibcPAL::initPThreadOnce();
|                                                  ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_c.cpp:31:64: note: in call to 'Allocator()'
31 | scudo::Allocator<scudo::Config, SCUDO_PREFIX(malloc_postinit)> SCUDO_ALLOCATOR;
|                                                                ^~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_c.cpp:25:25: note: expanded from macro 'SCUDO_ALLOCATOR'
25 | #define SCUDO_ALLOCATOR Allocator
|                         ^~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/libc_pal.h:366:23: note: declared here
366 |   static PThreadOnceT initPThreadOnce() {
|                       ^
1 error generated.
```
</details>
<details>
<summary>compiler-rt/lib/scudo/standalone/CMakeFiles/clang_rt.scudo_standalone-x86_64.dir/wrappers_c.cpp.o</summary>

```
FAILED: compiler-rt/lib/scudo/standalone/CMakeFiles/clang_rt.scudo_standalone-x86_64.dir/wrappers_c.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/../.. -I/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -Wall -Werror -Wno-unused-parameter -O3 -DNDEBUG -std=c++17 -m64 -fno-lto -Werror=conversion -Wall -Wextra -pedantic -g -nostdinc++ -fvisibility=hidden -fno-exceptions -Wno-pedantic -O3 -Werror=thread-safety -fno-omit-frame-pointer -DGWP_ASAN_HOOKS -MD -MT compiler-rt/lib/scudo/standalone/CMakeFiles/clang_rt.scudo_standalone-x86_64.dir/wrappers_c.cpp.o -MF compiler-rt/lib/scudo/standalone/CMakeFiles/clang_rt.scudo_standalone-x86_64.dir/wrappers_c.cpp.o.d -o compiler-rt/lib/scudo/standalone/CMakeFiles/clang_rt.scudo_standalone-x86_64.dir/wrappers_c.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_c.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_c.cpp:31:64: error: variable does not have a constant initializer
31 | scudo::Allocator<scudo::Config, SCUDO_PREFIX(malloc_postinit)> SCUDO_ALLOCATOR;
|                                                                ^~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_c.cpp:25:25: note: expanded from macro 'SCUDO_ALLOCATOR'
25 | #define SCUDO_ALLOCATOR Allocator
|                         ^~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_c.cpp:30:1: note: required by 'require_constant_initialization' attribute here
30 | SCUDO_REQUIRE_CONSTANT_INITIALIZATION
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/internal_defs.h:73:18: note: expanded from macro 'SCUDO_REQUIRE_CONSTANT_INITIALIZATION'
73 |   __attribute__((__require_constant_initialization__))
|                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/combined.h:1049:50: note: non-constexpr function 'initPThreadOnce' cannot be used in a constant expression
1049 |   typename LibcPAL::PThreadOnceT PostInitNonce = LibcPAL::initPThreadOnce();
|                                                  ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_c.cpp:31:64: note: in call to 'Allocator()'
31 | scudo::Allocator<scudo::Config, SCUDO_PREFIX(malloc_postinit)> SCUDO_ALLOCATOR;
|                                                                ^~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_c.cpp:25:25: note: expanded from macro 'SCUDO_ALLOCATOR'
25 | #define SCUDO_ALLOCATOR Allocator
|                         ^~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/libc_pal.h:366:23: note: declared here
366 |   static PThreadOnceT initPThreadOnce() {
|                       ^
1 error generated.
```
</details>
<details>
<summary>compiler-rt/lib/scudo/standalone/CMakeFiles/clang_rt.scudo_standalone-dynamic-x86_64.dir/wrappers_c.cpp.o</summary>

```
FAILED: compiler-rt/lib/scudo/standalone/CMakeFiles/clang_rt.scudo_standalone-dynamic-x86_64.dir/wrappers_c.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DCOMPILER_RT_SHARED_LIB -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dclang_rt_scudo_standalone_dynamic_x86_64_EXPORTS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/../.. -I/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -Wall -Werror -Wno-unused-parameter -O3 -DNDEBUG -std=c++17 -fPIC -m64 -fno-lto -Werror=conversion -Wall -Wextra -pedantic -g -nostdinc++ -fvisibility=hidden -fno-exceptions -Wno-pedantic -O3 -Werror=thread-safety -fno-omit-frame-pointer -DGWP_ASAN_HOOKS -MD -MT compiler-rt/lib/scudo/standalone/CMakeFiles/clang_rt.scudo_standalone-dynamic-x86_64.dir/wrappers_c.cpp.o -MF compiler-rt/lib/scudo/standalone/CMakeFiles/clang_rt.scudo_standalone-dynamic-x86_64.dir/wrappers_c.cpp.o.d -o compiler-rt/lib/scudo/standalone/CMakeFiles/clang_rt.scudo_standalone-dynamic-x86_64.dir/wrappers_c.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_c.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_c.cpp:31:64: error: variable does not have a constant initializer
31 | scudo::Allocator<scudo::Config, SCUDO_PREFIX(malloc_postinit)> SCUDO_ALLOCATOR;
|                                                                ^~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_c.cpp:25:25: note: expanded from macro 'SCUDO_ALLOCATOR'
25 | #define SCUDO_ALLOCATOR Allocator
|                         ^~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_c.cpp:30:1: note: required by 'require_constant_initialization' attribute here
30 | SCUDO_REQUIRE_CONSTANT_INITIALIZATION
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/internal_defs.h:73:18: note: expanded from macro 'SCUDO_REQUIRE_CONSTANT_INITIALIZATION'
73 |   __attribute__((__require_constant_initialization__))
|                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/combined.h:1049:50: note: non-constexpr function 'initPThreadOnce' cannot be used in a constant expression
1049 |   typename LibcPAL::PThreadOnceT PostInitNonce = LibcPAL::initPThreadOnce();
|                                                  ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_c.cpp:31:64: note: in call to 'Allocator()'
31 | scudo::Allocator<scudo::Config, SCUDO_PREFIX(malloc_postinit)> SCUDO_ALLOCATOR;
|                                                                ^~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_c.cpp:25:25: note: expanded from macro 'SCUDO_ALLOCATOR'
25 | #define SCUDO_ALLOCATOR Allocator
|                         ^~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/scudo/standalone/libc_pal.h:366:23: note: declared here
366 |   static PThreadOnceT initPThreadOnce() {
|                       ^
1 error generated.
```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the libc-commits mailing list