<p dir="ltr">What's the actual intent of the test? Willing to help fix it, but don't want to destroy the value of it. </p>
<br><div class="gmail_quote"><div dir="ltr">On Wed, Aug 3, 2016, 15:52 Reid Kleckner <<a href="mailto:rnk@google.com">rnk@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">We normally avoid this problem by carefully defining interceptors in TUs that don't include system headers, but when you add gtest into the mix, that's not possible.<div><br></div><div>Maybe we should just intercept malloc instead. It seems unlikely that a libc implementation will provide an inline definition of malloc.</div></div><div class="gmail_extra"><br><div class="gmail_quote"></div></div><div class="gmail_extra"><div class="gmail_quote">On Wed, Aug 3, 2016 at 12:19 PM, Steve Downey via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Posting to the list first, rather than filing a bug because I'm not sure this is still an intended configuration:<br><br>With LLVM configured as:<br><div>CXX=clang++ CC=clang cmake ../llvm/  \</div><div>-DCMAKE_BUILD_TYPE=Release \</div><div>-DCMAKE_INSTALL_PREFIX=~/install/llvm-master/ \</div><div>-DLLVM_TARGETS_TO_BUILD=host \</div><div>-DLLVM_ENABLE_ASSERTIONS=true \</div><div>-DLLVM_ENABLE_LIBCXX=yes \</div><div>-DLLVM_ENABLE_LIBCXXABI=yes</div><div><br>The check-all target is failing to compile the interception tests:<br><div>/home/sdowney/bld/llvm-master/llvm/projects/compiler-rt/lib/interception/tests/interception_linux_test.cc:26:18: error: redefinition of 'isdigit'</div><div>INTERCEPTOR(int, isdigit, int d) {</div><div>                 ^</div><div>/usr/include/ctype.h:185:1: note: previous definition is here</div><div>__isctype_f (digit)</div><div>^</div><div>/usr/include/ctype.h:93:3: note: expanded from macro '__isctype_f'</div><div>  is##type (int __c) __THROW                                                  \</div><div>  ^</div><div><scratch space>:835:1: note: expanded from here</div><div>isdigit</div></div><div><br>Without the tests, clang builds and appears to work. And in the checkin prior to the interception tests, the tests all passed. <br></div></div>
<br></blockquote></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>
</blockquote></div>