[compiler-rt] [compiler-rt] Implement `DumpAllRegisters` for arm-linux and aarch64-linux (PR #100398)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 29 20:03:16 PDT 2024
ZijunZhaoCCK wrote:
Hi @chestnykh,
we see some undeclared identifier errors on our Android build.
```
/tmpfs/src/git/out/stage2/./bin/clang++ --target=arm-unknown-linux-musleabihf --sysroot=/tmpfs/src/git/prebuilts/build-tools/sysroots/arm-unknown-linux-musleabihf -DHAVE_RPC_XDR_H=0 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmpfs/src/git/out/llvm-project/compiler-rt/lib/sanitizer_common/.. -ffile-prefix-map=/tmpfs/src/git/= --target=arm-unknown-linux-musleabihf -D_LIBCPP_HAS_MUSL_LIBC -D_LARGEFILE64_SOURCE=1 -include stdc-predef.h -march=armv7-a -Wno-unused-command-line-argument -D_LIBCPP_AVAILABILITY_HAS_NO_VERBOSE_ABORT=1 -mllvm -regalloc-enable-advisor=release -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -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 -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Wno-unused-parameter -O3 -DNDEBUG -fPIC -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++ -Wno-format -fno-rtti -Wframe-larger-than=570 -Wglobal-constructors -std=c++17 -MD -MT compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.armhf.dir/sanitizer_linux.cpp.o -MF compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.armhf.dir/sanitizer_linux.cpp.o.d -o compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.armhf.dir/sanitizer_linux.cpp.o -c /tmpfs/src/git/out/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
/tmpfs/src/git/out/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp:2183:5: error: use of undeclared identifier 'REG_R0'
2183 | MAKE_CASE(0);
| ^
/tmpfs/src/git/out/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp:2181:14: note: expanded from macro 'MAKE_CASE'
2181 | case REG_R##N: \
| ^
<scratch space>:181:1: note: expanded from here
181 | REG_R0
| ^
```
But nothing to do with our Android downstream patch. That's kind of weird. Do you have any idea why it happens?
https://github.com/llvm/llvm-project/pull/100398
More information about the llvm-commits
mailing list