From owner-freebsd-current@freebsd.org Sat Sep 12 10:42: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 835593D2F3C for ; Sat, 12 Sep 2020 10:42:10 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (Client CN "mail.evolve.de", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BpThd1jYYz3SwN; Sat, 12 Sep 2020 10:42:08 +0000 (UTC) (envelope-from freebsd@grem.de) Received: by mail.evolve.de (OpenSMTPD) with ESMTP id fe7877e8; Sat, 12 Sep 2020 10:42:05 +0000 (UTC) Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id 34969e12 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Sat, 12 Sep 2020 10:42:02 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Subject: Re: buildworld: "cp: /dev/null: Invalid argument" From: Michael Gmelin In-Reply-To: <20200912110517.3ba20143@hermann.fritz.box> Cc: "Hartmann, O." , Alan Somers , Ryan Stone , Michael Butler , FreeBSD Current Date: Sat, 12 Sep 2020 12:42:01 +0200 Message-Id: <9C73604D-D23C-4D91-8DFB-EEADC65B5E6C@grem.de> References: <20200912110517.3ba20143@hermann.fritz.box> To: "Hartmann, O." X-Mailer: iPhone Mail (17H35) X-Rspamd-Queue-Id: 4BpThd1jYYz3SwN X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.07 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[grem.de:s=20180501]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:213.239.217.29/32]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[grem.de]; ARC_NA(0.00)[]; RCPT_COUNT_FIVE(0.00)[6]; NEURAL_HAM_LONG(-0.98)[-0.982]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[grem.de:+]; NEURAL_HAM_SHORT(-1.13)[-1.134]; NEURAL_HAM_MEDIUM(-0.95)[-0.950]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:213.239.192.0/18, country:DE]; FREEMAIL_CC(0.00)[walstatt.org,freebsd.org,gmail.com,protected-networks.net]; MAILMAN_DEST(0.00)[FreeBSD-current] 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 10:42:10 -0000 > On 12. Sep 2020, at 11:06, Hartmann, O. wrote: >=20 > =EF=BB=BFOn Sat, 12 Sep 2020 10:03:18 +0200 > Michael Gmelin wrote: >=20 >>> On 12. Sep 2020, at 09:55, Hartmann, O. >>> wrote: >>> =EF=BB=BFOn Fri, 11 Sep 2020 07:18:33 -0600 >>> Alan Somers wrote: >>>>> On Fri, Sep 11, 2020 at 1:57 AM O. Hartmann >>>>> wrote: >>>>> On Thu, 10 Sep 2020 10:44:08 -0600 >>>>> Alan Somers wrote: >>>>>> No, it's devfs. I'll fix it. >>>>>> On Thu, Sep 10, 2020 at 10:18 AM Ryan Stone >>>>>> wrote: =20 >>>>>>> I'm curious: does this give a similar issue? >>>>>>> touch /tmp/foo >>>>>>> cp /tmp/foo /tmo/foo2 >>>>>>> I'm wondering if the issue is that copy_file_range isn't >>>>>>> handling empty files, or if it's a devfs issue. >>>>>>> On Thu, Sep 10, 2020 at 11:45 AM Michael Butler >>>>>>> wrote: =20 >>>>>>>> It seems that SVN r365549 broke "cp /dev/null ..." >>>>>>>> imb >>>>>>>>>> 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? >>>>>>>>>>> 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-lo= g >>>>>>>>>>> --- all_subdir_stand --- >>>>>>>>>>> make[5]: stopped in /usr/src/stand/i386/zfsboot >>>>>>>>>>> .ERROR_TARGET=3D'zfsboot.ldr' >>>>>>> .ERROR_META_FILE=3D'/usr/obj/usr/src/amd64.amd64/stand/i386/zfsboot/= zfsboot.ldr.meta' >>>>>>>>>>> .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' >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> 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" >>>>>>>> _______________________________________________ >>>>>>>> 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" >>>>>>> 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. >>>>>>> oh >>>>>> I don't know why it's intermittent, but in any case this patch >>>>>> should fix it: >>>>>> https://reviews.freebsd.org/D26395 >>>>>> -Alan =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. >>>> When will the pacth be committed? >> Alan already committed it: >> https://svnweb.freebsd.org/base?view=3Drevision&revision=3D365643 >> -m >>> Thanks in advance, >>> 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" >=20 > Sources at: >=20 > At revision 365652. >=20 > Host is running kernel FreeBSD 13.0-CURRENT #20 r365382: Fri Sep 11 > 19:01:26 CEST 2020 amd64. >=20 > make -j4 buildworld buildkernel >=20 > quit with same error as shown below. >=20 > Is there anything that has to prepared before to successfully apply and > run this patch? Well, you have a broken cp binary on your system, which makes the build proc= ess fail. The workaround Rainer posted earlier (install cp from the source tree before= buildworld) should do the trick. -m >=20 > [...] > --- 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 >=20 > make[4]: stopped in /usr/src/stand/libsa32 > --- all_subdir_rescue --- > *** [iscsictl_make] Error code 2