From nobody Fri Jul 28 18:48:26 2023 X-Original-To: dev-commits-src-main@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 4RCGqq5Dx1z4pQXw for ; Fri, 28 Jul 2023 18:48:39 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RCGqq3Ybdz3HFw for ; Fri, 28 Jul 2023 18:48:39 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-31771bb4869so2454385f8f.0 for ; Fri, 28 Jul 2023 11:48:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690570117; x=1691174917; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cw5Rzp21Ip4TpUWdc+UxgDsF6GF9DO2xAFAcZYRXFiU=; b=hRsp/R7/PkD1k1y6HDK8K4eQVd88WVpZsZEWci4oD+5ucNbss3At4sNPEBAMww4fLg mSElqn5p+C/o1Rw53DX3XHZCoUgMKHSLtynTAaRiNtU4dQC1APC4ShlErYqD6o9jlp/x gAyqHsJoFHMLsrjMRRpCFZ5sF9JZD3n6HjD4zwoIYi5WAPXKVTqRMa4+MvHizUWQqAaX CXa01Cp1FmsFSbifYcInrrmbw4D/tJ2HDpvYYK8eBylnnpmODyq3br0UXELvu0A+hqcp XaYvmRWGIP25Zl6hG9Jy14Jz08qwc707UZlEKRlbAFq8AVGNAymWJuWLPOfHVc7I+tqY e4LA== X-Gm-Message-State: ABy/qLZMDqIASOwl8AqbkegD+3pDiNhF/FWTug+XW3hUvbO8VXzcPAVS b7210ORoBPhLivZKZErzvCI7qA== X-Google-Smtp-Source: APBJJlH3T/aZItXVr4gkYe2I0iNhbfl/fO/KfBM0FgBnZR6Tku+k5fCYd/WeJuwm7AJEv0Kv2rLcJQ== X-Received: by 2002:a5d:444e:0:b0:315:9e1b:4ea6 with SMTP id x14-20020a5d444e000000b003159e1b4ea6mr2587320wrr.58.1690570117390; Fri, 28 Jul 2023 11:48:37 -0700 (PDT) Received: from smtpclient.apple ([131.111.5.246]) by smtp.gmail.com with ESMTPSA id y4-20020a05600c20c400b003fd2e89620asm7475811wmm.40.2023.07.28.11.48.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Jul 2023 11:48:37 -0700 (PDT) Content-Type: text/plain; charset=utf-8 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Re: git: 65f28f63a73d - main - tools/build: Create toolchain symlinks for non-absolute compiler/linker From: Jessica Clarke In-Reply-To: <622fce0c-403b-35fa-9134-a432390a8b44@FreeBSD.org> Date: Fri, 28 Jul 2023 19:48:26 +0100 Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <58E4AA7F-1F35-49AE-BF77-418589DABC6B@freebsd.org> References: <202307270412.36R4C2vh097664@gitrepo.freebsd.org> <622fce0c-403b-35fa-9134-a432390a8b44@FreeBSD.org> To: Renato Botelho X-Mailer: Apple Mail (2.3731.600.7) X-Rspamd-Queue-Id: 4RCGqq3Ybdz3HFw X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated On 28 Jul 2023, at 19:40, Renato Botelho wrote: >=20 > 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=3D65f28f63a73d3371d9d724a2018be6d1= ada0d3e0 >> 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 >=20 > 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: >=20 > Failed to build new tree. >=20 > I've checked etcupdate log and saw this: >=20 > cd /usr/src/tools/build; make DIRPRFX=3Dtools/build/ = DESTDIR=3D/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=E2=80=99ll be 246364454fc1 ("etcupdate: Use new buildetc and = installetc targets when available=E2=80=9D) 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=E2=80=99t have issues during = installworld. But we=E2=80=99re not actually trying to create any hardlinks, just = copy. What you=E2=80=99re discovering is that you=E2=80=99re on one of the FreeBSD = versions where ZFS=E2=80=99s clone_range is broken (exposes EXDEV when it=E2=80=99s = 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. Jess