From owner-freebsd-current@freebsd.org Sat Sep 12 09:11:57 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 9F71A3D0DF7 for ; Sat, 12 Sep 2020 09:11:57 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from gmailer.gwdg.de (gmailer.gwdg.de [134.76.11.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BpRhX5BJQz4cQD; Sat, 12 Sep 2020 09:11:56 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from excmbx-03.um.gwdg.de ([134.76.9.218] helo=email.gwdg.de) by mailer.gwdg.de with esmtp (GWDG Mailer) (envelope-from ) id 1kH1ZY-000774-V3; Sat, 12 Sep 2020 11:11:52 +0200 Received: from krabat.raven.hur (10.250.9.199) by EXCMBX-03.um.gwdg.de (134.76.9.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2044.4; Sat, 12 Sep 2020 11:11:52 +0200 Subject: Re: buildworld: "cp: /dev/null: Invalid argument" To: "Hartmann, O." CC: Michael Gmelin , "Hartmann, O." , Alan Somers , Ryan Stone , Michael Butler , FreeBSD Current References: <20200912095411.0c307601@hermann.fritz.box> <7F24FA2C-C8D3-4755-B208-A6C048107905@grem.de> <20200912110517.3ba20143@hermann.fritz.box> Reply-To: From: Rainer Hurling Message-ID: <96aaed0b-365b-5c46-5c05-ce65da4ef47d@gwdg.de> Date: Sat, 12 Sep 2020 11:11:37 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200912110517.3ba20143@hermann.fritz.box> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.250.9.199] X-ClientProxiedBy: excmbx-14.um.gwdg.de (134.76.9.225) To EXCMBX-03.um.gwdg.de (134.76.9.218) X-Virus-Scanned: (clean) by clamav X-Rspamd-Queue-Id: 4BpRhX5BJQz4cQD X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.36 / 15.00]; HAS_REPLYTO(0.00)[rhurlin@FreeBSD.org]; HAS_XOIP(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:134.76.10.0/23]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.98)[-0.982]; RCPT_COUNT_SEVEN(0.00)[7]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:680, ipnet:134.76.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[134.76.11.17:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.976]; FREEFALL_USER(0.00)[rhurlin]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.002]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; DMARC_NA(0.00)[gwdg.de]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; RWL_MAILSPIKE_VERYGOOD(0.00)[134.76.11.17:from]; FREEMAIL_CC(0.00)[grem.de,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 09:11:57 -0000 Am 12.09.20 um 11:05 schrieb Hartmann, O.: > On Sat, 12 Sep 2020 10:03:18 +0200 > Michael Gmelin wrote: > >>> On 12. Sep 2020, at 09:55, Hartmann, O. >>> wrote: >>> >>> On 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: >>>>>>> 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: >>>>>>>> >>>>>>>> It seems that SVN r365549 broke "cp /dev/null ..." >>>>>>>> >>>>>>>> imb >>>>>>>> >>>>>>>> On 9/10/20 10:35 AM, Michael Butler wrote: >>>>>>>>> Is anyone else seeing failures like this in building world >>>>>>>>> and, in >>>>> my >>>>>>>>> case, cron jobs as well? >>>>>>>>> >>>>>>>>> >>>>>>>>> Building >>>>> /usr/obj/usr/src/amd64.amd64/stand/i386/zfsboot/zfsboot.ldr >>>>>>>>> --- 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 >>>>>>> /usr/obj/usr/src/amd64.amd64/kerberos5/usr.sbin/iprop-log/iprop-log >>>>>>> >>>>>>>>> --- all_subdir_stand --- >>>>>>>>> >>>>>>>>> make[5]: stopped in /usr/src/stand/i386/zfsboot >>>>>>>>> .ERROR_TARGET='zfsboot.ldr' >>>>>>>>> >>>>>>> >>>>> .ERROR_META_FILE='/usr/obj/usr/src/amd64.amd64/stand/i386/zfsboot/zfsboot.ldr.meta' >>>>> >>>>>>> >>>>>>>>> .MAKE.LEVEL='5' >>>>>>>>> MAKEFILE='' >>>>>>>>> .MAKE.MODE='meta missing-filemon=yes missing-meta=yes >>>>>>>>> silent=yes >>>>>>> verbose' >>>>>>>>> _ERROR_CMD='cp /dev/null zfsboot.ldr;' >>>>>>>>> .CURDIR='/usr/src/stand/i386/zfsboot' >>>>>>>>> .MAKE='make' >>>>>>>>> .OBJDIR='/usr/obj/usr/src/amd64.amd64/stand/i386/zfsboot' >>>>>>>>> .TARGETS='all' >>>>>>>>> DESTDIR='/usr/obj/usr/src/amd64.amd64/tmp' >>>>>>>>> LD_LIBRARY_PATH='' >>>>>>>>> MACHINE='amd64' >>>>>>>>> MACHINE_ARCH='amd64' >>>>>>>>> MAKEOBJDIRPREFIX='' >>>>>>>>> MAKESYSPATH='/usr/src/share/mk' >>>>>>>>> MAKE_VERSION='20200902' >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> 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" >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> 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" >>>>>>> >>>>>> _______________________________________________ >>>>>> 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" >>>>> >>>>> 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 >>> >>> 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=revision&revision=365643 >> >> -m >> >>> Thanks in advance, >>> >>> oh >> _______________________________________________ >> 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 > For me the build proceeds, after I did a 'make install' in /usr/src/bin/cp (with updated utils.c!). HTH, Rainer