From owner-freebsd-current@freebsd.org Mon Sep 21 14:49:10 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 B197D3F38AD; Mon, 21 Sep 2020 14:49:10 +0000 (UTC) (envelope-from chardon.frederic@gmail.com) Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) (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 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bw6lT5b2Kz4LSP; Mon, 21 Sep 2020 14:49:09 +0000 (UTC) (envelope-from chardon.frederic@gmail.com) Received: by mail-io1-xd30.google.com with SMTP id m17so15688787ioo.1; Mon, 21 Sep 2020 07:49:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=bccWvwPLdytfvuXL+hyCpeH1HrSLp39CfHL56e70DHM=; b=dM1hZYYMM5+bdLuGLXSZOJiAgGpcHZNNm6SNqQzvR2huMhGL+KERtl0G9k+n52Bm0G lIdUsgZlvJy76f8PeNWlUnHbMqKV/41jnW722XnOI81Xx7xeI63CUN4Wuzh46iuxaHpP /WGeyOSswIq8O2OXoIk4m205/N38Hpiu05DCTopdUdOxQ5sGsomoyXrChgw3oEzBLKKe Wapclmf7qMW+GjpS6RrUm3PsgGJSwKcyBfVl6Wemf+qQmBa02zn+4i1msMukvoDFXerJ 9/+rphjscbLes68PXYbMBAbEhb3IS34g4fTrmzZ3C3redGVLBLZ1dIyRf+Bs3uTsAyFH 4XZw== X-Gm-Message-State: AOAM530qlCh2NsVE2M8P5+lqJWabTvb/Xsx3SwfkqZ9TGqx9qoqzC6GO 7DrTkGwAGRn9AW1yWnI//yUqYx1U79zMLewETK7yf+4x6b6fA6cg X-Google-Smtp-Source: ABdhPJxvH9yzDLKpd6iEXyLmi8Z33UL4NSltfGM+IgC/eHIkgnxt33wkA7vGsPjrsS22j3v9mKUxfecpIEF6W5H3r+8= X-Received: by 2002:a02:1004:: with SMTP id 4mr299147jay.127.1600699748359; Mon, 21 Sep 2020 07:49:08 -0700 (PDT) MIME-Version: 1.0 References: <1AFD8BB9-F598-451A-A1D9-16D550402E3E@FreeBSD.org> In-Reply-To: <1AFD8BB9-F598-451A-A1D9-16D550402E3E@FreeBSD.org> From: Frederic Chardon Date: Mon, 21 Sep 2020 16:48:57 +0200 Message-ID: Subject: Re: objcopy "text file busy" build failure with populated /usr/obj To: Mark Murray Cc: freebsd-arm , freebsd-current Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4Bw6lT5b2Kz4LSP X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.47 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.984]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.03)[-1.027]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d30:from]; NEURAL_HAM_SHORT(-0.46)[-0.462]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm,freebsd-current]; RCVD_COUNT_TWO(0.00)[2] 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: Mon, 21 Sep 2020 14:49:10 -0000 Le dim. 20 sept. 2020 =C3=A0 16:59, Mark Murray 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.