[compiler-rt] Fix 16-byte alignment for vec allocators on AIX (PR #184967)

via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 6 00:48:01 PST 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/asan/CMakeFiles/RTAsan_dynamic.x86_64.dir/asan_malloc_linux.cpp.o</summary>

```
FAILED: compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic.x86_64.dir/asan_malloc_linux.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DASAN_DYNAMIC=1 -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/asan/.. -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 -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -nostdinc++ -fno-rtti -Wno-format -ftls-model=initial-exec -MD -MT compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic.x86_64.dir/asan_malloc_linux.cpp.o -MF compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic.x86_64.dir/asan_malloc_linux.cpp.o.d -o compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic.x86_64.dir/asan_malloc_linux.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:61:10: error: use of undeclared identifier 'asan_vec_malloc'
61 |   return asan_vec_malloc(size, &stack);
|          ^~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:69:10: error: use of undeclared identifier 'asan_vec_calloc'
69 |   return asan_vec_calloc(nmemb, size, &stack);
|          ^~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:76:10: error: use of undeclared identifier 'asan_vec_realloc'; did you mean 'asan_realloc'?
76 |   return asan_vec_realloc(ptr, size, &stack);
|          ^~~~~~~~~~~~~~~~
|          asan_realloc
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/asan_allocator.h:288:7: note: 'asan_realloc' declared here
288 | void *asan_realloc(void *p, uptr size, BufferedStackTrace *stack);
|       ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:115:39: error: use of undeclared identifier 'SANITIZER_AIX'
115 |     return DlsymAlloc::Allocate(size, SANITIZER_AIX ? 16 : kWordSize);
|                                       ^~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:126:47: error: use of undeclared identifier 'SANITIZER_AIX'
126 |     return DlsymAlloc::Callocate(nmemb, size, SANITIZER_AIX ? 16 : kWordSize);
|                                               ^~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:137:43: error: use of undeclared identifier 'SANITIZER_AIX'
137 |     return DlsymAlloc::Realloc(ptr, size, SANITIZER_AIX ? 16 : kWordSize);
|                                           ^~~~~~~~~~~~~
6 errors generated.
```
</details>
<details>
<summary>compiler-rt/lib/asan/CMakeFiles/RTAsan.x86_64.dir/asan_malloc_linux.cpp.o</summary>

```
FAILED: compiler-rt/lib/asan/CMakeFiles/RTAsan.x86_64.dir/asan_malloc_linux.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/asan/.. -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 -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -nostdinc++ -fno-rtti -Wno-format -MD -MT compiler-rt/lib/asan/CMakeFiles/RTAsan.x86_64.dir/asan_malloc_linux.cpp.o -MF compiler-rt/lib/asan/CMakeFiles/RTAsan.x86_64.dir/asan_malloc_linux.cpp.o.d -o compiler-rt/lib/asan/CMakeFiles/RTAsan.x86_64.dir/asan_malloc_linux.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:61:10: error: use of undeclared identifier 'asan_vec_malloc'
61 |   return asan_vec_malloc(size, &stack);
|          ^~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:69:10: error: use of undeclared identifier 'asan_vec_calloc'
69 |   return asan_vec_calloc(nmemb, size, &stack);
|          ^~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:76:10: error: use of undeclared identifier 'asan_vec_realloc'; did you mean 'asan_realloc'?
76 |   return asan_vec_realloc(ptr, size, &stack);
|          ^~~~~~~~~~~~~~~~
|          asan_realloc
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/asan_allocator.h:288:7: note: 'asan_realloc' declared here
288 | void *asan_realloc(void *p, uptr size, BufferedStackTrace *stack);
|       ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:115:39: error: use of undeclared identifier 'SANITIZER_AIX'
115 |     return DlsymAlloc::Allocate(size, SANITIZER_AIX ? 16 : kWordSize);
|                                       ^~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:126:47: error: use of undeclared identifier 'SANITIZER_AIX'
126 |     return DlsymAlloc::Callocate(nmemb, size, SANITIZER_AIX ? 16 : kWordSize);
|                                               ^~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:137:43: error: use of undeclared identifier 'SANITIZER_AIX'
137 |     return DlsymAlloc::Realloc(ptr, size, SANITIZER_AIX ? 16 : kWordSize);
|                                           ^~~~~~~~~~~~~
6 errors 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/184967


More information about the llvm-commits mailing list