[libcxx-commits] [PATCH] D107799: [CMake] Enable LLVM_ENABLE_PER_TARGET_RUNTIME_DIR by default on Linux

Fangrui Song via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jun 8 01:20:01 PDT 2022


MaskRay added a comment.

In D107799#3565680 <https://reviews.llvm.org/D107799#3565680>, @glandium wrote:

>> But it is irrelevant here
>
> It is relevant, I'm telling you that's precisely the setup that's broken. That it builds with GCC *is* irrelevant.

Please give the full command line as requested, not just describe what happened which others may not be able to comprehend.
I have given my cmake command line and here is additional information:

  -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
  ...
  -- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.13")

If I use `-DCMAKE_INSTALL_PREFIX=/tmp/install/custom2`, the `ninja install` installed clang can find libc++ and asan runtime as well:

  % /tmp/install/custom2/bin/clang++ --stdlib=libc++ -fsanitize=address a.cc -Wl,-t
  ...
  /tmp/install/custom2/lib/clang/15.0.0/lib/x86_64-unknown-linux-gnu/libclang_rt.asan_cxx.a(ubsan_type_hash_win.cpp.o)
  /tmp/a-952d5e.o
  /tmp/install/custom2/bin/../lib/x86_64-unknown-linux-gnu/libc++.so.1
  /tmp/install/custom2/bin/../lib/x86_64-unknown-linux-gnu/libc++abi.so
  /lib/x86_64-linux-gnu/libm.so.6
  ...
  /usr/lib/x86_64-linux-gnu/libc_nonshared.a(elf-init.oS)
  /usr/lib/x86_64-linux-gnu/libc_nonshared.a(atexit.oS)
  /lib64/ld-linux-x86-64.so.2
  /lib/x86_64-linux-gnu/libgcc_s.so.1
  /usr/lib/gcc/x86_64-linux-gnu/11/crtendS.o
  /lib/x86_64-linux-gnu/crtn.o


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107799/new/

https://reviews.llvm.org/D107799



More information about the libcxx-commits mailing list