From nobody Fri Jul 28 19:00:46 2023 X-Original-To: dev-commits-src-all@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 4RCH5s19gfz4pXSH; Fri, 28 Jul 2023 19:00:49 +0000 (UTC) (envelope-from garga@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 4RCH5s0mL2z3L3M; Fri, 28 Jul 2023 19:00:49 +0000 (UTC) (envelope-from garga@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690570849; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KdH9P7eXzd5LsoivBDrLdL80x1fApGRqAyTAeJDudJI=; b=kU44gd1uEaUAULXZ4KDN9jdXTmzFGFfOlnXoJ39AaVH6/v7xHH0E6tEpD2QeooXt48j6St Knv3gHaqZNKkKPjWOXpZOmjyvC577ytZtq+nE22yIbY5Gitn1EP116UHvj9EGUK3DA1aAD qF8FIxVDClAERTfsvwbqkYdShwmNBhMLBO8oXGX3vzPC1chD6CHfXHxsBO35F+iSOv+BNE JELekGJjyEMlME47xBDHshkTooZyqAScYqu/8HwkAKXyR1uuV5qMsu8yeeEp8Lyztks+Fl r67d7k4H2r+8fkzFDEHCec6lPtUR3BcAAcpi0ty/z8s4r3ofXLSsfbyA6zJiqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690570849; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KdH9P7eXzd5LsoivBDrLdL80x1fApGRqAyTAeJDudJI=; b=Gg7RFQAYfjlSp/FDr3V0MsCc0tecywtMTNxUoI97DwCBEpzSry9dvsCK053plKh9pC1WsT eXxNeLqbAS99zXwrGyXFFE0KZDC2CtEgQQGjn2tBPTaK34lzVxCDo5HbQOSslSSuSVa6eS KunBeMWf7niTcmfDMQEyuoxBX6F/PVOty+5kOMsI+AoHdPWb7fclVr+JK07X/iIdXM5cag H5fKOwV+7YHE/fSL0ndt3gOss79Q11Z9G1VX83uJ0xRupjKBqyyFARLleSE4GC/oTj+Lvo dM27Uned3wW9Ss4sqYd/pg9d5KDfSLMhomwyyp+eUOqJVMz89zE6ZTZozmuSfQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690570849; a=rsa-sha256; cv=none; b=YM6Wug9MeoWPdiN/aHK8DuAR6ijhhE7mWMlT7Su68Mn4zKcOOGyTZWsLksw8ao/R+gGwzq qdWrCQ9z9rxoniUfAhIE6RefIdvAAKnYSwCPaMpWQC3M738h3KceUgf3yC7kjfR8ba7WF6 rPXE8j7gmoOjHbv/tbtqKz5DJdDVSZn6FM4iKiPTioLBBsEAduFpZgIlZ+vBmEZMf9cNoT lm2PcuCOze2mG8+jjvOkdJltXkOSNH9hbySyIeXv7rHOVas/yIvYx280yDztL7eiaStrwl G8vmQxCeEXfRiZx2l+UEIUzW7Atf6aW41W1DoqFZ6gcGfdp/QwMg8EyniS1uWw== Received: from [172.21.4.170] (dynamic-177-53-82-16.telecominternet.net.br [177.53.82.16]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: garga) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RCH5r2L5rz1BBr; Fri, 28 Jul 2023 19:00:48 +0000 (UTC) (envelope-from garga@FreeBSD.org) Message-ID: <2a3f4f6d-2c2f-ed19-5218-c102e4c97939@FreeBSD.org> Date: Fri, 28 Jul 2023 16:00:46 -0300 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: git: 65f28f63a73d - main - tools/build: Create toolchain symlinks for non-absolute compiler/linker Content-Language: en-US To: Jessica Clarke Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" References: <202307270412.36R4C2vh097664@gitrepo.freebsd.org> <622fce0c-403b-35fa-9134-a432390a8b44@FreeBSD.org> <58E4AA7F-1F35-49AE-BF77-418589DABC6B__17151.853830886$1690570136$gmane$org@freebsd.org> From: Renato Botelho In-Reply-To: <58E4AA7F-1F35-49AE-BF77-418589DABC6B__17151.853830886$1690570136$gmane$org@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 28/07/23 15:48, Jessica Clarke wrote: > On 28 Jul 2023, at 19:40, Renato Botelho wrote: >> >> On 27/07/23 01:12, Jessica Clarke wrote: >>> The branch main has been updated by jrtc27: >>> URL: https://cgit.FreeBSD.org/src/commit/?id=65f28f63a73d3371d9d724a2018be6d1ada0d3e0 >>> commit 65f28f63a73d3371d9d724a2018be6d1ada0d3e0 >>> Author: Jessica Clarke >>> AuthorDate: 2023-07-27 04:10:47 +0000 >>> Commit: Jessica Clarke >>> CommitDate: 2023-07-27 04:10:47 +0000 >>> tools/build: Create toolchain symlinks for non-absolute compiler/linker >>> If any of the toolchain variables are not absolute then we need to >>> create a symlink in WORLDTMP/legacy/bin in order to make them available >>> during a BUILD_WITH_STRICT_TMPPATH build. >>> Reviewed by: brooks, jhb >>> Differential Revision: https://reviews.freebsd.org/D41188 >> >> I'm having problems with etcupdate and I suspect this can be the commit that caused the trouble. After installworld/installkernel on a chroot Boot Environment directory, etcupdate fails with following error message: >> >> Failed to build new tree. >> >> I've checked etcupdate log and saw this: >> >> cd /usr/src/tools/build; make DIRPRFX=tools/build/ DESTDIR=/var/db/etcupdate/etcupdate-8C3uJ1L/usr/obj/usr/src/amd64.amd64/tmp/legacy host-symlinks >> Linking host tools into /var/db/etcupdate/etcupdate-8C3uJ1L/usr/obj/usr/src/amd64.amd64/tmp/legacy/bin >> cp: /usr/bin/basename: Cross-device link > > That’ll be 246364454fc1 ("etcupdate: Use new buildetc and installetc > targets when available”) which exposed; this commit is just for > cc/c++/cpp/ld, and creates actual symlinks. On FreeBSD we copy rather > than symlink tools so that we don’t have issues during installworld. > But we’re not actually trying to create any hardlinks, just copy. What > you’re discovering is that you’re on one of the FreeBSD versions where > ZFS’s clone_range is broken (exposes EXDEV when it’s supposed to be > handled by the kernel with a fallback implementation) and cp is using > clone_range. Update your kernel first and all should be good. You are right. After reboot with new kernel etcupdate works again. Thank you! -- Renato Botelho