From owner-freebsd-current@freebsd.org Sun Sep 20 14:59:11 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3460B3E460F; Sun, 20 Sep 2020 14:59:11 +0000 (UTC) (envelope-from markm@FreeBSD.org) Received: from gromit.grondar.org (gromit.grondar.org [IPv6:2a01:348:e::1]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BvW1V6GZrz4f7B; Sun, 20 Sep 2020 14:59:10 +0000 (UTC) (envelope-from markm@FreeBSD.org) Received: from [2a02:8011:300b:42:15a1:5d87:ad1a:446e] by gromit.grondar.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94 (FreeBSD)) (envelope-from ) id 1kK0ns-000GqH-PO; Sun, 20 Sep 2020 15:59:00 +0100 From: Mark Murray Content-Type: multipart/signed; boundary="Apple-Mail=_3DD0343E-9EDD-4E34-A1B0-1C13C7B42097"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Date: Sun, 20 Sep 2020 15:58:59 +0100 Subject: objcopy "text file busy" build failure with populated /usr/obj Cc: freebsd-current To: freebsd-arm Message-Id: <1AFD8BB9-F598-451A-A1D9-16D550402E3E@FreeBSD.org> X-Mailer: Apple Mail (2.3608.120.23.2.1) X-Rspamd-Queue-Id: 4BvW1V6GZrz4f7B X-Spamd-Bar: / X-Spamd-Result: default: False [0.00 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; ASN(0.00)[asn:39326, ipnet:2a01:348::/32, country:GB] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Sep 2020 14:59:11 -0000 --Apple-Mail=_3DD0343E-9EDD-4E34-A1B0-1C13C7B42097 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi * I've been getting these build failures for a while (weeks/months). The = machine is a MacchiatoBin DoubleShot (arm64, Quad core). with SATA disks = and zfs filesystem. If I empty out /usr/obj, then the build works, but = takes a few hours. If I do a no-clean build with /obj/obj populated with = he contents of a previous build, and /usr/src with updated ("svn = update") sources, then the below nearly always happens early in the = rebuild. It is in "stage 4.4: building everything" that this happens. = The build is parallel (-j8), and I have manually de-threaded the output. The generated command-line from the logfile is: cd /usr/src; _PARALLEL_SUBDIR_OK=3D1 MACHINE_ARCH=3Daarch64 = MACHINE=3Darm64 CPUTYPE=3Dcortex-a72 CC=3D"/usr/local/bin/ccache cc = -target aarch64-unknown-freebsd13.0 = --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tmp = -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin" CXX=3D"/usr/local/bin/ccache= c++ -target aarch64-unknown-freebsd13.0 = --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tmp = -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin" CPP=3D"cpp -target = aarch64-unknown-freebsd13.0 --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tmp= -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin" AS=3D"as" AR=3D"ar" = LD=3D"ld" LLVM_LINK=3D"" NM=3Dnm OBJCOPY=3D"objcopy" RANLIB=3Dranlib = STRINGS=3D SIZE=3D"size" STRIPBIN=3D"strip" INSTALL=3D"install -U" = PATH=3D/usr/obj/usr/src/arm64.aarch64/tmp/bin:/usr/obj/usr/src/arm64.aarch= 64/tmp/usr/sbin:/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin:/usr/obj/usr/sr= c/arm64.aarch64/tmp/legacy/usr/sbin:/usr/obj/usr/src/arm64.aarch64/tmp/leg= acy/usr/bin:/usr/obj/usr/src/arm64.aarch64/tmp/legacy/bin:/usr/obj/usr/src= /arm64.aarch64/tmp/legacy/usr/libexec::/sbin:/bin:/usr/sbin:/usr/bin = SYSROOT=3D/usr/obj/usr/src/arm64.aarch64/tmp make -f Makefile.inc1 = BWPHASE=3Deverything DESTDIR=3D/usr/obj/usr/src/arm64.aarch64/tmp all Anyone else seeing this? objcopy --strip-debug --add-gnu-debuglink=3Dobjcopy.debug objcopy.full = objcopy objcopy: open objcopy failed: Text file busy --- all_subdir_usr.bin/objcopy --- *** [objcopy] Error code 1 make[4]: stopped in /usr/src/usr.bin/objcopy M -- --Apple-Mail=_3DD0343E-9EDD-4E34-A1B0-1C13C7B42097 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 Comment: GPGTools - http://gpgtools.org iQEzBAEBCgAdFiEEyzPHvybPbOpU9MCxQlsJDh9CUqAFAl9nbjMACgkQQlsJDh9C UqBwAwf+OyKMBoTzCRAJkzadH2KolarOTCxMXp33bY046WrSkZ8gO9iC21e6527P Kmn/AwskG7G1W1DtoLp4HJpfhjaCysllDVQRUCj8lB3/bWpYyE9WjPLxCos44oTv fTV/KwfcDomEdWAsGvJCyell5aHFblhjaNud/jhVh//+em5rOi2/lfJqLj5ujiFX B+DAotfnQlHz38+MTxlH8X8rhHp+ZB+Di236xl482B53QEET+Y8s1EmiawUi93/l l1VhHQfdUW6P7YYfxRDtM8QvX8X1RmG3KM4DEmyzcnmehrfwtbGuU+bhIE7VFV15 gPsEspYLGBUoaWgL8xPSMNqL/4BkXQ== =PnDi -----END PGP SIGNATURE----- --Apple-Mail=_3DD0343E-9EDD-4E34-A1B0-1C13C7B42097--