From owner-freebsd-current@freebsd.org Mon Nov 23 12:18:25 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 16F4F2EA08E for ; Mon, 23 Nov 2020 12:18:25 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (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 4CfmQS234Sz3nYX; Mon, 23 Nov 2020 12:18:24 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: by mail-wr1-x42e.google.com with SMTP id 64so4965617wra.11; Mon, 23 Nov 2020 04:18:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=8jd8rDvl16dNdsUrJPN/qLCQpxtTt+vIIT2wXI4GdyQ=; b=V92x2vd7TXkIQkZifVc9k7E9QuZPNyhXrj6IzuplKpYoPfJ+r7MbCWNtvi0oqfQu5m nBJ2FaxgZ0O0OK62OpzUg23ilSquieuKH+BcA5ZEXYr7UnnKt82seJ1OQ7tKYk26e16X ij75fuOVeY3+d3tTAQ3SqiMQgGPlvQeO0x7JeT00lEEKQRmjdEQSzfV4IY1ucfQP4lmD aFTPiIC8NjzTfM4jhhvxA3dyLfRpmyq+1oQoeOY6a+u5csMU+AqFQYMdrmqkRzsTCS46 SdKxe5eHQBhGKB3qNy5rEKdBYr+4DYGaxHhpIucXI1YhoQRixOwVlyWBXPIN1HRrfRqA 2v8w== X-Gm-Message-State: AOAM532/fwaUsKMU83OAXhlLRa2eNyNEF8Vvajv9TMzydQcTUxW7sjui rMOInufkduJbg8WvhpWBFHe0Susbdn5dVA== X-Google-Smtp-Source: ABdhPJzG20QCJdeVxeeslQxQOcZpPCZJL62BCZMYVygl/cNBig4/L7vhYlAZmEBPRfQN1lIdd3chmw== X-Received: by 2002:adf:c3c8:: with SMTP id d8mr30428339wrg.366.1606133901986; Mon, 23 Nov 2020 04:18:21 -0800 (PST) Received: from [10.8.23.162] ([192.173.128.34]) by smtp.gmail.com with ESMTPSA id e5sm18668610wrs.84.2020.11.23.04.18.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Nov 2020 04:18:21 -0800 (PST) Subject: usr.bin/xinstall r366697 versus: buildworld: lib/libc: install: short write to libc.so.7.debug: [_libinstall] Error code 71 To: Dimitry Andric Cc: FreeBSD-CURRENT , Kyle Evans , Alex Richardson , Ryan Moeller , Matthew Macy References: <746a3af4-3daf-9029-bf48-23efa3f5da8e@gmail.com> <37d2a873-8cb9-b858-fa06-4bbfcf006835@gmail.com> <1e9e8649-0fe7-4b83-078d-f67908e2f430@gmail.com> <40C5DB30-4B7C-4A51-8069-B4E67298C558@FreeBSD.org> From: Graham Perrin Message-ID: <9b6bbf0b-93d2-123e-ee5c-f8de660b150a@gmail.com> Date: Mon, 23 Nov 2020 12:18:20 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <40C5DB30-4B7C-4A51-8069-B4E67298C558@FreeBSD.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4CfmQS234Sz3nYX X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; RCPT_COUNT_FIVE(0.00)[6]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.50)[-0.502]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::42e:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::42e:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::42e:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 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, 23 Nov 2020 12:18:25 -0000 On 22/11/2020 12:00, Dimitry Andric wrote: > … > I'd guess it's an unintended side-effect of > https://svnweb.freebsd.org/base?view=revision&revision=366697 > ("install(1): Avoid unncessary fstatfs() calls and use mmap() based on > size"). > > If you only revert usr.bin/xinstall to r366696, and then rebuild it, > does it still occur? > > -Dimitry Thank you! Success with r366696: ---- root@mowa219-gjp4-8570p:~ # date ; uname -v Sun Nov 22 14:36:10 GMT 2020 FreeBSD 13.0-CURRENT #71 r367081: Tue Oct 27 23:56:28 GMT 2020 root@momh167-gjp4-8570p:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG root@mowa219-gjp4-8570p:~ # svn up /usr/src && portsnap auto Updating '/usr/src': At revision 367936. Looking up portsnap.FreeBSD.org mirrors... 4 mirrors found. Fetching snapshot tag from ipv4.aws.portsnap.freebsd.org... done. Latest snapshot on server matches what we already have. No updates needed. Ports tree is already up to date. root@mowa219-gjp4-8570p:~ # svn update -r366696 /usr/src/usr.bin/xinstall Updating '/usr/src/usr.bin/xinstall': U    /usr/src/usr.bin/xinstall/xinstall.c Updated to revision 366696. root@mowa219-gjp4-8570p:~ # cd /usr/src/usr.bin/xinstall/ root@mowa219-gjp4-8570p:/usr/src/usr.bin/xinstall # make echo xinstall.full: /usr/lib/libc.a /usr/lib/libmd.a >> .depend cc  -O2 -pipe -fno-common   -I/usr/src/contrib/mtree -I/usr/src/lib/libnetbsd -g -MD  -MF.depend.xinstall.o -MTxinstall.o -std=gnu99 -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments    -c /usr/src/usr.bin/xinstall/xinstall.c -o xinstall.o cc  -O2 -pipe -fno-common   -I/usr/src/contrib/mtree -I/usr/src/lib/libnetbsd -g -MD  -MF.depend.getid.o -MTgetid.o -std=gnu99 -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments    -c /usr/src/contrib/mtree/getid.c -o getid.o cc -O2 -pipe -fno-common -I/usr/src/contrib/mtree -I/usr/src/lib/libnetbsd -g -std=gnu99 -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments    -o xinstall.full xinstall.o getid.o -L/usr/obj/usr/src/amd64.amd64/lib/libmd -lmd objcopy --only-keep-debug xinstall.full install.debug objcopy --strip-debug --add-gnu-debuglink=install.debug xinstall.full xinstall gzip -cn /usr/src/usr.bin/xinstall/install.1 > install.1.gz ===> tests (all) echo '#! /usr/libexec/atf-sh' > install_test.tmp cat /usr/src/usr.bin/xinstall/tests/install_test.sh >>install_test.tmp chmod +x install_test.tmp mv install_test.tmp install_test root@mowa219-gjp4-8570p:/usr/src/usr.bin/xinstall # make install install  -s -o root -g wheel -m 555   xinstall /usr/bin/install install  -o root -g wheel -m 444  install.debug /usr/lib/debug/usr/bin/install.debug install  -o root -g wheel -m 444 install.1.gz /usr/share/man/man1/ ===> tests (install) install  -o root  -g wheel -m 555  install_test /usr/tests/usr.bin/xinstall/install_test installing DIRS testsFILESDIR install  -d -m 0755 -o root  -g wheel  /usr/tests/usr.bin/xinstall install  -o root  -g wheel -m 444  Kyuafile /usr/tests/usr.bin/xinstall/Kyuafile root@mowa219-gjp4-8570p:/usr/src/usr.bin/xinstall # cd /usr/src && make -j3 buildworld && make -j3 buildkernel KERNCONF=GENERIC-NODEBUG … -------------------------------------------------------------- >>> Kernel build for GENERIC-NODEBUG completed on Sun Nov 22 22:43:02 GMT 2020 -------------------------------------------------------------- >>> Kernel(s)  GENERIC-NODEBUG built in 4973 seconds, ncpu: 4, make -j3 -------------------------------------------------------------- root@mowa219-gjp4-8570p:/usr/src # beadm create r367936a Created successfully root@mowa219-gjp4-8570p:/usr/src # beadm activate r367936a Activated successfully root@mowa219-gjp4-8570p:/usr/src # exit logout grahamperrin@mowa219-gjp4-8570p:~ % exit