From nobody Thu Dec 30 22:04:27 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2A99D192522F; Thu, 30 Dec 2021 22:04:30 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JQ2P96v9Lz4YLm; Thu, 30 Dec 2021 22:04:29 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from [10.0.1.4] (ralph.baldwin.cx [66.234.199.215]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 409DC3A8F; Thu, 30 Dec 2021 22:04:29 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: <5a24eb16-078f-15c5-dcd4-ecef33d15ac7@FreeBSD.org> Date: Thu, 30 Dec 2021 14:04:27 -0800 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: git: 5e6a2d6eb220 - main - Reapply: move libc++ from /usr/lib to /lib [add /usr/lib/libc++.so.1 -> ../../lib/libc++.so.1 ?] Content-Language: en-US To: Mark Millard , Dimitry Andric , Ed Maste , freebsd-current , "dev-commits-src-main@freebsd.org" References: <45118DB4-F8C4-4F96-9CAA-5DC5DCFFEB7E@yahoo.com> <3140C5F6-495F-441C-AA6B-542F3BC53B62@yahoo.com> <5F8AF0B2-3AF3-4BE4-B5D1-9030F2605FFD@yahoo.com> From: John Baldwin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640901870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=S5TFK53b1uRLs5nXyNP2qRfp+3su2wcSWDxr0/jrEqw=; b=pt1tOHT/6xwvP4Lo3NOAM4shMh3wMxXPtCw1YctwV+ITZFOMfqcCcNBW8ApspP3mE7ZL2f kqDcQ2+ANe6Hxx9rpjMPpytLwzsCmM/4j2Bj3YEvt/q/rUyc4bBQP8+gXq7Ik37vMt/LHU A/z6AUkueS9lygjuEIEyH08Fi67bmj0lGPpyfG5Syo8U/XgLW8+6yJYaSOUe/5zcv3UoYS 9FG0cGItE3slwcLTg7NcEIVtTbFDK98MFIutHJrm8L3SOrQxscCzMcKScmG5fKMeXxMLzx Zw3YaANoPfT3auk/0jxGkg4Ypu4qv1+rEmRtxQ+w6rWheEn44g9XvWlncqXoHw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640901870; a=rsa-sha256; cv=none; b=E1Ke9p/LFWa8IoDMY3iUgtiXWEruR276v1dyYVcLrcmjl+CAEbC5KlCEKWFgdJJDcwPRiw QJFdndZnayuFXa/cSlNvvR0IMA4vOir14+tK3rrK9dQUdKd2OsTq/1FmNqid9VK8IKYmLS +0bLEEkC12y39UuSY2qp4JCCGJEyVFS24yNVQTSA2pw4oOZiqvbElFlNUpB+4/2copI0DX nXM+3bcubE6GXX8cNguCzlP+ebvRDaXl/dbhwSkNrVaabagUeUvy9KbqQciIGTE6IdbyIf tu+uUbvvITW8g+L1qMPmuzu/X/zQfhIGoopieRh1eUDAL5kMhFrxWpZVvKS7yw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 12/30/21 1:09 PM, Mark Millard wrote: > > > On 2021-Dec-30, at 13:05, Mark Millard wrote: > >> This asks a question in a different direction that my prior >> reports about my builds vs. Cy's reported build. >> >> Background: >> >> /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/tmp/usr/lib/libc++.so:GROUP ( /lib/libc++.so.1 /usr/lib/libcxxrt.so >> and: >> lrwxr-xr-x 1 root wheel 23 Dec 29 13:17:01 2021 /usr/lib/libcxxrt.so -> ../../lib/libcxxrt.so.1 >> >> Why did libc++.so.1 not get a: >> >> /usr/lib/libc++.so.1 -> ../../lib/libc++.so.1 > > I forgot to remove the .1 on the left hand side: > > /usr/lib/libc++.so -> ../../lib/libc++.so.1 Because for libc++.so we don't just symlink to the current version of the library (as we do for most other shared libraries) to tell the compiler what to link against for -lc++, instead we use a linker script that tells the compiler to link against both of those libraries when -lc++ is encountered. I have finally reproduced Cy's build error locally and am testing my fix. If it works I'll commit it. -- John Baldwin