[PATCH] D32197: [TySan] A Type Sanitizer (Runtime Library)
Sam James via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 7 00:07:57 PST 2023
thesamesam added a comment.
I was able to build the LLVM and Clang components but not the Runtime part on top of commit 2708869801ae00f4681f6b2d9d69b25b3fce26b6 <https://reviews.llvm.org/rG2708869801ae00f4681f6b2d9d69b25b3fce26b6>:
[761/1099] /usr/lib/ccache/bin/x86_64-pc-linux-gnu-clang++ -I/var/tmp/portage/sys-libs/compiler-rt-sanitizers-17.0.0_pre20230304/work/compiler-rt/lib/tysan/.. -DNDEBUG -
O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -Wall -Wno-unused-parameter -std=c++17 -fcolor-diagnostics -m64 -MD -MT lib/ty
san/CMakeFiles/RTTysan_dynamic.x86_64.dir/tysan_interceptors.cpp.o -MF lib/tysan/CMakeFiles/RTTysan_dynamic.x86_64.dir/tysan_interceptors.cpp.o.d -o lib/tysan/CMakeFiles/R
TTysan_dynamic.x86_64.dir/tysan_interceptors.cpp.o -c /var/tmp/portage/sys-libs/compiler-rt-sanitizers-17.0.0_pre20230304/work/compiler-rt/lib/tysan/tysan_interceptors.cpp
FAILED: lib/tysan/CMakeFiles/RTTysan_dynamic.x86_64.dir/tysan_interceptors.cpp.o
/usr/lib/ccache/bin/x86_64-pc-linux-gnu-clang++ -I/var/tmp/portage/sys-libs/compiler-rt-sanitizers-17.0.0_pre20230304/work/compiler-rt/lib/tysan/.. -DNDEBUG -O2 -pipe -m
arch=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -Wall -Wno-unused-parameter -std=c++17 -fcolor-diagnostics -m64 -MD -MT lib/tysan/CMakeFi
les/RTTysan_dynamic.x86_64.dir/tysan_interceptors.cpp.o -MF lib/tysan/CMakeFiles/RTTysan_dynamic.x86_64.dir/tysan_interceptors.cpp.o.d -o lib/tysan/CMakeFiles/RTTysan_dyna
mic.x86_64.dir/tysan_interceptors.cpp.o -c /var/tmp/portage/sys-libs/compiler-rt-sanitizers-17.0.0_pre20230304/work/compiler-rt/lib/tysan/tysan_interceptors.cpp
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-17.0.0_pre20230304/work/compiler-rt/lib/tysan/tysan_interceptors.cpp:207:22: error: use of undeclared identifier 'mmap64'; did you mean 'mmap'?
INTERCEPT_FUNCTION(mmap64);
^~~~~~
mmap
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-17.0.0_pre20230304/work/compiler-rt/lib/tysan/../interception/interception.h:278:71: note: expanded from macro 'INTERCEPT_FUNCTION'
# define INTERCEPT_FUNCTION(func) INTERCEPT_FUNCTION_LINUX_OR_FREEBSD(func)
^
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-17.0.0_pre20230304/work/compiler-rt/lib/tysan/../interception/interception_linux.h:35:35: note: expanded from macro 'INTERCEPT_FUNCTION_LINUX_OR_FREEBSD'
(::__interception::uptr) & (func), \
^
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-17.0.0_pre20230304/work/compiler-rt/lib/tysan/tysan_interceptors.cpp:79:21: note: 'mmap' declared here
INTERCEPTOR(void *, mmap, void *addr, SIZE_T length, int prot, int flags,
^
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-17.0.0_pre20230304/work/compiler-rt/lib/tysan/tysan_interceptors.cpp:207:3: error: no member named 'real_mmap64' in namespace '__interception'; did you mean 'real_mmap'?
INTERCEPT_FUNCTION(mmap64);
^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-17.0.0_pre20230304/work/compiler-rt/lib/tysan/../interception/interception.h:278:35: note: expanded from macro 'INTERCEPT_FUNCTION'
# define INTERCEPT_FUNCTION(func) INTERCEPT_FUNCTION_LINUX_OR_FREEBSD(func)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-17.0.0_pre20230304/work/compiler-rt/lib/tysan/../interception/interception_linux.h:34:36: note: expanded from macro 'INTER
Happy to do this via email or similar if it's fine with you as it might be easier.
Full log at http://sprunge.us/gfnzM5.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D32197/new/
https://reviews.llvm.org/D32197
More information about the llvm-commits
mailing list