[PATCH][www] Mention that libcxx is necessary on OS X

Kuba Brecka via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 7 03:36:55 PDT 2015


I’m also curious what exact test failed for you with the "can't find iostream” error.  AFAIK, you should currently receive the explaining message instead.

But anyway, I’d also like to see libcxx[abi] mentioned in the Getting started page.

Kuba

> On 04 Sep 2015, at 23:07, Yuri Gribov <tetra2005 at gmail.com <mailto:tetra2005 at gmail.com>> wrote:
> 
> Oh, nice so this was actually done by Kuba to fix sanitizer unittests:
> 
>       "echo '#include <iostream>' | ${COMPILER_RT_TEST_COMPILER} -E -x c++ - > /dev/null"
>       "if [ $? != 0 ] "
>       "  then echo"
>       "  echo 'Your just-built clang cannot find C++ headers, which are needed to build and run compiler-rt tests.'"
>       "  echo 'You should copy or symlink your system C++ headers into ${LLVM_BINARY_DIR}/include/c++'"
>       "  if [ -d $(dirname $(dirname $(xcrun -f clang)))/include/c++ ]"
>       "    then echo 'e.g. with:'"
>       "    echo '  cp -r' $(dirname $(dirname $(xcrun -f clang)))/include/c++ '${LLVM_BINARY_DIR}/include/'"
>       "  elif [ -d $(dirname $(dirname $(xcrun -f clang)))/lib/c++ ]"
>       "    then echo 'e.g. with:'"
>       "    echo '  cp -r' $(dirname $(dirname $(xcrun -f clang)))/lib/c++ '${LLVM_BINARY_DIR}/include/'"
>       "  fi"
>       "  echo 'This can also be fixed by checking out the libcxx project from llvm.org <http://llvm.org/> and installing the headers'"
>       "  echo 'into your build directory:'"
>       "  echo '  cd ${LLVM_SOURCE_DIR}/projects && svn co http://llvm.org/svn/llvm-project/libcxx/trunk <http://llvm.org/svn/llvm-project/libcxx/trunk> libcxx'"
>       "  echo '  cd ${LLVM_BINARY_DIR} && make -C ${LLVM_SOURCE_DIR}/projects/libcxx installheaders HEADER_DIR=${LLVM_BINARY_DIR}/include'"
>       "  echo"
>       "  false"
>       "fi"
> 
> What I mean is that we should either fix the tests, or describe precisely the scenario in which libcxx+libcxxabi is needed.... because it's not always needed. I suspect it's just needed when testing the sanitizers (but I might be wrong).
> 
> What if I s/mandatory on OS X, optional otherwise/required to run tests on OS X/ ?
> 
> -Y

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150907/6bfcda3b/attachment.html>


More information about the cfe-commits mailing list