Date: Mon, 21 Sep 2020 16:48:57 +0200 From: Frederic Chardon <chardon.frederic@gmail.com> To: Mark Murray <markm@freebsd.org> Cc: freebsd-arm <freebsd-arm@freebsd.org>, freebsd-current <freebsd-current@freebsd.org> Subject: Re: objcopy "text file busy" build failure with populated /usr/obj Message-ID: <CAMODbknOWn_OsqAz%2B6Pi-tvdYdT7dt6dE=bkitPQ_SgjnZcPKQ@mail.gmail.com> In-Reply-To: <1AFD8BB9-F598-451A-A1D9-16D550402E3E@FreeBSD.org> References: <1AFD8BB9-F598-451A-A1D9-16D550402E3E@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Le dim. 20 sept. 2020 =C3=A0 16:59, Mark Murray <markm@freebsd.org> a =C3= =A9crit : > > Hi * > > I've been getting these build failures for a while (weeks/months). The ma= chine 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 content= s of a previous build, and /usr/src with updated ("svn update") sources, th= en 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=3Dar= m64 CPUTYPE=3Dcortex-a72 CC=3D"/usr/local/bin/ccache cc -target aarch64-un= known-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++ -targ= et aarch64-unknown-freebsd13.0 --sysroot=3D/usr/obj/usr/src/arm64.aarch64/t= mp -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin" CPP=3D"cpp -target aarch6= 4-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/s= rc/arm64.aarch64/tmp/bin:/usr/obj/usr/src/arm64.aarch64/tmp/usr/sbin:/usr/o= bj/usr/src/arm64.aarch64/tmp/usr/bin:/usr/obj/usr/src/arm64.aarch64/tmp/leg= acy/usr/sbin:/usr/obj/usr/src/arm64.aarch64/tmp/legacy/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/arm= 64.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 o= bjcopy > 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 > -- Hi I got the same on amd64 with a meta mode build, on zfs as well. Oddly (or not), it happens only if I make buildworld as a normal user, but not as root. A second make buildworld always succeed.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMODbknOWn_OsqAz%2B6Pi-tvdYdT7dt6dE=bkitPQ_SgjnZcPKQ>