Page MenuHomePhabricator

arcivanov (Arcadiy Ivanov)
User

Projects

User does not belong to any projects.

User Details

User Since
Feb 3 2022, 7:33 PM (43 w, 1 d)

Recent Activity

May 25 2022

arcivanov added a comment to D126122: Fix RUNPATH not accounting for LLVM_ENABLE_PER_TARGET_RUNTIME_DIR.

I'm not sure what to do here to validate this as builds keep randomly failing due to timeouts.

May 25 2022, 10:17 PM · Restricted Project, Restricted Project

May 24 2022

arcivanov updated the diff for D126122: Fix RUNPATH not accounting for LLVM_ENABLE_PER_TARGET_RUNTIME_DIR.

Windows doesn't need the rpath.

May 24 2022, 10:07 PM · Restricted Project, Restricted Project
arcivanov added a comment to D126122: Fix RUNPATH not accounting for LLVM_ENABLE_PER_TARGET_RUNTIME_DIR.
$ ldd libc++.so.1.0 
        linux-vdso.so.1 (0x00007ffe0af16000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f823dd6b000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f823dc8f000)
        libatomic.so.1 => /lib64/libatomic.so.1 (0x00007f823dc85000)
        libc++abi.so.1 => /home/user/Documents/src/project/llvm.twostage.bin/lib/x86_64-unknown-linux-gnu/./libc++abi.so.1 (0x00007f823dc4c000)
        libunwind.so.1 => /home/user/Documents/src/project/llvm.twostage.bin/lib/x86_64-unknown-linux-gnu/./libunwind.so.1 (0x00007f823dc40000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f823e095000)
May 24 2022, 6:06 PM · Restricted Project, Restricted Project
arcivanov added a comment to D126122: Fix RUNPATH not accounting for LLVM_ENABLE_PER_TARGET_RUNTIME_DIR.
$ ldd clang-14 
        linux-vdso.so.1 (0x00007ffeb49f7000)
        libclang-cpp.so.14 => /home/user/Documents/src/project/llvm.twostage.bin/bin/./../lib/libclang-cpp.so.14 (0x00007fc547ad7000)
        libLLVM-14.so => /home/user/Documents/src/project/llvm.twostage.bin/bin/./../lib/libLLVM-14.so (0x00007fc54437f000)
        libc++.so.1 => /home/user/Documents/src/project/llvm.twostage.bin/bin/./../lib/x86_64-unknown-linux-gnu/libc++.so.1 (0x00007fc54428b000)
        libc++abi.so.1 => /home/user/Documents/src/project/llvm.twostage.bin/bin/./../lib/x86_64-unknown-linux-gnu/libc++abi.so.1 (0x00007fc544252000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fc54414b000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fc54412e000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fc543f25000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fc54b739000)
        libz.so.1 => /lib64/libz.so.1 (0x00007fc543f0b000)
        libxml2.so.2 => /lib64/libxml2.so.2 (0x00007fc543d81000)
        libatomic.so.1 => /lib64/libatomic.so.1 (0x00007fc543d77000)
        libunwind.so.1 => /home/user/Documents/src/project/llvm.twostage.bin/bin/./../lib/x86_64-unknown-linux-gnu/libunwind.so.1 (0x00007fc543d69000)
        liblzma.so.5 => /lib64/liblzma.so.5 (0x00007fc543d3d000)
May 24 2022, 6:03 PM · Restricted Project, Restricted Project
arcivanov updated the diff for D126122: Fix RUNPATH not accounting for LLVM_ENABLE_PER_TARGET_RUNTIME_DIR.

When libcxx and libcxxabi depend on shared libunwind that is installed with them in the target-triple directory, both libraries also require an '$ORIGIN' runpath.

May 24 2022, 5:28 PM · Restricted Project, Restricted Project

May 22 2022

arcivanov added a comment to D126122: Fix RUNPATH not accounting for LLVM_ENABLE_PER_TARGET_RUNTIME_DIR.

The saga continues. The libcxx/abi do not appear to have any rpath reference to the libunwind:

May 22 2022, 11:26 AM · Restricted Project, Restricted Project

May 21 2022

arcivanov added a comment to D126122: Fix RUNPATH not accounting for LLVM_ENABLE_PER_TARGET_RUNTIME_DIR.

Well, this affects *at least* runtimes libunwind, libcxx and libcxxabi and at least on Linux.
The situation occurs when project are built depending on any of those runtimes being directly colocated, i.e. referenced by runpath.

May 21 2022, 2:37 PM · Restricted Project, Restricted Project
arcivanov requested review of D126122: Fix RUNPATH not accounting for LLVM_ENABLE_PER_TARGET_RUNTIME_DIR.
May 21 2022, 11:39 AM · Restricted Project, Restricted Project

Feb 4 2022

arcivanov planned changes to D118964: Fix broken 2-stage build when -tblgen tools may depend on runpath that is not yet built.
Feb 4 2022, 6:09 AM · Restricted Project, Restricted Project
arcivanov added a comment to D118964: Fix broken 2-stage build when -tblgen tools may depend on runpath that is not yet built.

So this change is insufficient as additional tools (lldb-tblgen and clang-ast-dump) will fail thereafter.
Since all those tools depend on libc++ being available for stage2-bins, the libc++ needs to be built on stage two (along with unwind and compiler-rt in my case).
The way I've tried to fix above is treating the symptom and not the cause.

Feb 4 2022, 6:08 AM · Restricted Project, Restricted Project

Feb 3 2022

arcivanov requested review of D118964: Fix broken 2-stage build when -tblgen tools may depend on runpath that is not yet built.
Feb 3 2022, 8:16 PM · Restricted Project, Restricted Project