From owner-freebsd-current@freebsd.org Sat Sep 12 09:05:54 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 96CD13D0C1C for ; Sat, 12 Sep 2020 09:05:54 +0000 (UTC) (envelope-from o.hartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BpRYY3dXrz4c63; Sat, 12 Sep 2020 09:05:52 +0000 (UTC) (envelope-from o.hartmann@walstatt.org) X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from hermann.fritz.box ([89.14.98.0]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M1Ycl-1kFdUo30Cx-0033tI; Sat, 12 Sep 2020 11:05:21 +0200 Date: Sat, 12 Sep 2020 11:05:17 +0200 From: "Hartmann, O." To: Michael Gmelin Cc: "Hartmann, O." , Alan Somers , Ryan Stone , Michael Butler , FreeBSD Current Subject: Re: buildworld: "cp: /dev/null: Invalid argument" Message-ID: <20200912110517.3ba20143@hermann.fritz.box> In-Reply-To: <7F24FA2C-C8D3-4755-B208-A6C048107905@grem.de> References: <20200912095411.0c307601@hermann.fritz.box> <7F24FA2C-C8D3-4755-B208-A6C048107905@grem.de> Organization: walstatt.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/La9guvz7A=Qp_3AB7Y84Yf/"; protocol="application/pgp-signature" X-Provags-ID: V03:K1:VaNYgIQe+lwZ15IjjveAdCOkwVGq6Rc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P39hSxD27rmUC8agPxKntVJMcEXxJrVjowKM2NP7N+JVNHB08j/+7MBO+9HMbih/ 8jHeswwYNROuL9JGQ48BwiyQxUnK+zqm7I4wj0gN1QlrV8h/IA46v/LSMEoMOWnx3l8Hm/334 HxnelFBUZgP5xCppT+0rnzZpCrogWM9Y1Pov80wjkPgxD1bQQ4z2NZ0qrwiA7gw3M20w8Im/n FKqhMvhyvIILwBWay6tW2qUVa8FCsUDOUWLBeOacvTDxW+t1zUj13Yir94/zoGc7cDbT1LdCK jLacf2UdzBUQY37agutnS5LK1Zs018sOmacUT8pgPuLtU6+MhIwUdjfXhtBKfvl8PohTkkQ30 0GqgrqKAujagyyDc6bVG9tpmKxqdFBuxn6zrMamKBpZVW/6aLo6oHCNklQt2F1gzi03aRBSJ6 2Ri+PFoB9TDaXFnHum2cymRhK4NahPDNdNgy5vA== X-Rspamd-Queue-Id: 4BpRYY3dXrz4c63 X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.29 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmx.net:s=badeba3b8450]; RCVD_IN_DNSWL_LOW(-0.10)[212.227.17.20:from]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_LONG(-0.93)[-0.932]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[walstatt.org]; NEURAL_HAM_MEDIUM(-0.79)[-0.785]; RCPT_COUNT_FIVE(0.00)[6]; HAS_ORG_HEADER(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[212.227.17.20:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmx.net:+]; NEURAL_HAM_SHORT(-1.07)[-1.069]; RECEIVED_SPAMHAUS_PBL(0.00)[89.14.98.0:received]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_CC(0.00)[walstatt.org,freebsd.org,gmail.com,protected-networks.net]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MAILMAN_DEST(0.00)[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: Sat, 12 Sep 2020 09:05:54 -0000 --Sig_/La9guvz7A=Qp_3AB7Y84Yf/ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sat, 12 Sep 2020 10:03:18 +0200 Michael Gmelin wrote: > > On 12. Sep 2020, at 09:55, Hartmann, O. > > wrote: > >=20 > > =EF=BB=BFOn Fri, 11 Sep 2020 07:18:33 -0600 > > Alan Somers wrote: > > =20 > >>> On Fri, Sep 11, 2020 at 1:57 AM O. Hartmann > >>> wrote: > >>>=20 > >>> On Thu, 10 Sep 2020 10:44:08 -0600 > >>> Alan Somers wrote: > >>> =20 > >>>> No, it's devfs. I'll fix it. > >>>>=20 > >>>> On Thu, Sep 10, 2020 at 10:18 AM Ryan Stone > >>>> wrote: =20 > >>>>> I'm curious: does this give a similar issue? > >>>>>=20 > >>>>> touch /tmp/foo > >>>>> cp /tmp/foo /tmo/foo2 > >>>>>=20 > >>>>> I'm wondering if the issue is that copy_file_range isn't > >>>>> handling empty files, or if it's a devfs issue. > >>>>>=20 > >>>>>=20 > >>>>> On Thu, Sep 10, 2020 at 11:45 AM Michael Butler > >>>>> wrote: =20 > >>>>>>=20 > >>>>>> It seems that SVN r365549 broke "cp /dev/null ..." > >>>>>>=20 > >>>>>> imb > >>>>>>=20 > >>>>>> On 9/10/20 10:35 AM, Michael Butler wrote: =20 > >>>>>>> Is anyone else seeing failures like this in building world > >>>>>>> and, in =20 > >>> my =20 > >>>>>>> case, cron jobs as well? > >>>>>>>=20 > >>>>>>>=20 > >>>>>>> Building =20 > >>> /usr/obj/usr/src/amd64.amd64/stand/i386/zfsboot/zfsboot.ldr =20 > >>>>>>> --- all_subdir_sbin --- > >>>>>>> Building /usr/obj/usr/src/amd64.amd64/sbin/bsdlabel/bsdlabel > >>>>>>> --- all_subdir_stand --- > >>>>>>> --- zfsboot.ldr --- > >>>>>>> cp: /dev/null: Invalid argument > >>>>>>> *** [zfsboot.ldr] Error code 1 > >>>>>>> make[5]: *** zfsboot.ldr removed > >>>>>>> --- all_subdir_kerberos5 --- > >>>>>>> Building =20 > >>>>> /usr/obj/usr/src/amd64.amd64/kerberos5/usr.sbin/iprop-log/iprop-log > >>>>> =20 > >>>>>>> --- all_subdir_stand --- > >>>>>>>=20 > >>>>>>> make[5]: stopped in /usr/src/stand/i386/zfsboot > >>>>>>> .ERROR_TARGET=3D'zfsboot.ldr' > >>>>>>> =20 > >>>>> =20 > >>> .ERROR_META_FILE=3D'/usr/obj/usr/src/amd64.amd64/stand/i386/zfsboot/z= fsboot.ldr.meta' > >>> =20 > >>>>> =20 > >>>>>>> .MAKE.LEVEL=3D'5' > >>>>>>> MAKEFILE=3D'' > >>>>>>> .MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes > >>>>>>> silent=3Dyes =20 > >>>>> verbose' =20 > >>>>>>> _ERROR_CMD=3D'cp /dev/null zfsboot.ldr;' > >>>>>>> .CURDIR=3D'/usr/src/stand/i386/zfsboot' > >>>>>>> .MAKE=3D'make' > >>>>>>> .OBJDIR=3D'/usr/obj/usr/src/amd64.amd64/stand/i386/zfsboot' > >>>>>>> .TARGETS=3D'all' > >>>>>>> DESTDIR=3D'/usr/obj/usr/src/amd64.amd64/tmp' > >>>>>>> LD_LIBRARY_PATH=3D'' > >>>>>>> MACHINE=3D'amd64' > >>>>>>> MACHINE_ARCH=3D'amd64' > >>>>>>> MAKEOBJDIRPREFIX=3D'' > >>>>>>> MAKESYSPATH=3D'/usr/src/share/mk' > >>>>>>> MAKE_VERSION=3D'20200902' > >>>>>>>=20 > >>>>>>> _______________________________________________ > >>>>>>> freebsd-current@freebsd.org mailing list > >>>>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-current > >>>>>>> To unsubscribe, send any mail to " =20 > >>>>> freebsd-current-unsubscribe@freebsd.org" =20 > >>>>>>=20 > >>>>>>=20 > >>>>>> _______________________________________________ > >>>>>> freebsd-current@freebsd.org mailing list > >>>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-current > >>>>>> To unsubscribe, send any mail to " =20 > >>>>> freebsd-current-unsubscribe@freebsd.org" > >>>>> =20 > >>>> _______________________________________________ > >>>> freebsd-current@freebsd.org mailing list > >>>> https://lists.freebsd.org/mailman/listinfo/freebsd-current > >>>> To unsubscribe, send any mail to " =20 > >>> freebsd-current-unsubscribe@freebsd.org" > >>>=20 > >>> I still get this error on a couple of boxes, while others seem to > >>> buildworld > >>> fine. All boxes are at CURRENT revision 365625. It is a bit > >>> looking weird to > >>> me. Running now a make cleanworld/cleandir on the specific boxes > >>> and start building OS again. > >>>=20 > >>> oh > >>> =20 > >>=20 > >> I don't know why it's intermittent, but in any case this patch > >> should fix it: > >> https://reviews.freebsd.org/D26395 > >> -Alan =20 > >=20 > > I checked on ALL CURRENT boxes. After "make cleanworld cleandir" (or > > just deleting usr/obj/) and starting a fresh build, those boxes > > with an newer kernel all fail at the very same point. We use > > META_MODE on some boxes, switched to WITHOUT_CLEAN these days and > > cleanded up on some systems therefore. That might be the reason why > > the problem occurs not consistently on all systems. > >=20 > > When will the pacth be committed? > > =20 >=20 > Alan already committed it: >=20 > https://svnweb.freebsd.org/base?view=3Drevision&revision=3D365643 >=20 > -m >=20 > > Thanks in advance, > >=20 > > oh =20 > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" Sources at: At revision 365652. Host is running kernel FreeBSD 13.0-CURRENT #20 r365382: Fri Sep 11 19:01:26 CEST 2020 amd64. make -j4 buildworld buildkernel quit with same error as shown below. Is there anything that has to prepared before to successfully apply and run this patch? [...] --- beforedepend --- mkdir -p xlocale arpa; for i in a.out.h assert.h elf.h limits.h nlist.h setjmp.h stddef.h stdbool.h string.h strings.h time.h unistd.h uuid.h; do ln -sf /usr/src/include/$i $i; done; ln -sf /usr/src/sys/amd64/include/stdarg.h stdarg.h; ln -sf /usr/src/sys/sys/errno.h errno.h; ln -sf /usr/src/sys/sys/stdint.h stdint.h; ln -sf /usr/src/include/arpa/inet.h arpa/inet.h; ln -sf /usr/src/include/arpa/tftp.h arpa/tftp.h; for i in _time.h _strings.h _string.h; do [ -f xlocale/$i ] || cp /dev/null xlocale/$i; done; for i in ctype.h fcntl.h signal.h stdio.h stdlib.h; do ln -sf /usr/src/stand/libsa/stand.h $i; done cp: /dev/null: Invalid argument *** [beforedepend] Error code 1 make[4]: stopped in /usr/src/stand/libsa32 --- all_subdir_rescue --- *** [iscsictl_make] Error code 2 --Sig_/La9guvz7A=Qp_3AB7Y84Yf/ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQSy8IBxAPDkqVBaTJ44N1ZZPba5RwUCX1yPTQAKCRA4N1ZZPba5 RyZ2AP42U9JsckXOO3VF+cBs4xqa3rjMVxywHuE5lpYOoNR8fgEAt9ugg42FC+nj Mqwq3v8LYbJNtUhgRSXMKoHMz1j7ywg= =KcqK -----END PGP SIGNATURE----- --Sig_/La9guvz7A=Qp_3AB7Y84Yf/--