apparently works fine when it is build with ninja instead using direct make
El viernes, 3 de junio de 2016, 15:08:55 (UTC-5), Jose Madrigal escribió: > > Hi!! > > Im try to instrument libc++ and libc++abi for ASan as shown in > https://github.com/google/sanitizers/wiki/MemorySanitizerLibcxxHowTo > > then a try to build googletest with the instrumented libc++ using the same > steps in the example but when I'm doing the "make -j12" to build it throw > some errors > these are some of them: > > > clang-3.8/home/yosef/Desktop/ASAN/googletest/googlemock/src/gmock_main.cc:32: > In file included from > /home/yosef/Desktop/ASAN/libcxx_asan/include/c++/v1/iostream:38: > In file included from > /home/yosef/Desktop/ASAN/libcxx_asan/include/c++/v1/ios:215: > In file included from > /home/yosef/Desktop/ASAN/libcxx_asan/include/c++/v1/iosfwd:90: > /home/yosef/Desktop/ASAN/libcxx_asan/include/c++/v1/wchar.h:133:77: error: > use of undeclared identifier 'wcschr' > wchar_t* __libcpp_wcschr(const wchar_t* __s, wchar_t __c) {return > (wchar_t*)wcschr(__s, __c);} > > In file included from > /home/yosef/Desktop/ASAN/googletest/googlemock/src/gmock_main.cc:32: > In file included from > /home/yosef/Desktop/ASAN/libcxx_asan/include/c++/v1/iostream:38: > In file included from > /home/yosef/Desktop/ASAN/libcxx_asan/include/c++/v1/ios:215: > /home/yosef/Desktop/ASAN/libcxx_asan/include/c++/v1/iosfwd:176:14: error: > use of undeclared identifier 'mbstate_t' > typedef fpos<mbstate_t> streampos; > > /home/yosef/Desktop/ASAN/googletest/googletest/src/gtest-all.cc:39: > In file included from > /home/yosef/Desktop/ASAN/googletest/googletest/include/gtest/gtest.h:55: > In file included from > /home/yosef/Desktop/ASAN/libcxx_asan/include/c++/v1/ostream:138: > In file included from > /home/yosef/Desktop/ASAN/libcxx_asan/include/c++/v1/ios:216: > In file included from > /home/yosef/Desktop/ASAN/libcxx_asan/include/c++/v1/__locale:15: > In file included from > /home/yosef/Desktop/ASAN/libcxx_asan/include/c++/v1/string:440: > /home/yosef/Desktop/ASAN/libcxx_asan/include/c++/v1/cstdio:108:9: error: > no member named 'FILE' in the global namespace > using ::FILE;In file included from > > there are more errors. But it seems a problem from the libcxx or I just > did something wrong or miss something when I instrument libc++ > there is someone has been through this? I hope someone can point me out > in the right direction > > Thanks! > > > > > -- You received this message because you are subscribed to the Google Groups "address-sanitizer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
