Re: git: 5e6a2d6eb220 - main - Reapply: move libc++ from /usr/lib to /lib

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Thu, 30 Dec 2021 19:52:21 UTC
On 12/30/21 8:58 AM, Cy Schubert wrote:
> This commit results in a different error.
> 
> ld: error: /export/obj/opt/src/git-src/amd64.amd64/tmp/usr/lib/libc++.so:2:
> cannot find /usr/lib/libc++.so.1 inside /export/obj/opt/src/git-src/amd64.am
> d64/tmp
>>>> GROUP ( /usr/lib/libc++.so.1 /usr/lib/libcxxrt.so )
>>>>          ^
> c++: error: linker command failed with exit code 1 (use -v to see
> invocation)
> *** [libclang_rt.asan-x86_64.so.full] Error code 1
> 
> make[6]: stopped in /opt/src/git-src/lib/libclang_rt/asan_dynamic

I suspect that NO_CLEAN builds are broken.  You can try removing
/usr/obj/<mumble>/amd64.amd64/usr/lib/libc++/libc++.ld and building again to see
if that fixes it?  If so, we might need another NO_CLEAN fixup rule to delete
that file it has has the wrong path.

-- 
John Baldwin