From owner-freebsd-stable@freebsd.org Sat Mar 27 11:57:43 2021 Return-Path: Delivered-To: freebsd-stable@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 16B8D5C196E for ; Sat, 27 Mar 2021 11:57:43 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F6y5M04Jmz3NPF; Sat, 27 Mar 2021 11:57:43 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:470:7a58:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id D04CE25F9; Sat, 27 Mar 2021 11:57:42 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58:0:d9eb:63b4:b990:f2bf] (unknown [IPv6:2001:470:7a58:0:d9eb:63b4:b990:f2bf]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 8540A3ED32; Sat, 27 Mar 2021 12:57:40 +0100 (CET) From: Dimitry Andric Message-Id: <392639F2-04C0-4953-B706-B9F27CD3826B@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_D9C5C9B2-6398-40DF-A422-1B0D0057B064"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: build failed for 12.2-p5 Date: Sat, 27 Mar 2021 12:57:27 +0100 In-Reply-To: <4dd371b4-7135-fc0d-ce62-ae68467cb289@quip.cz> Cc: freebsd-stable stable To: Miroslav Lachman <000.fbsd@quip.cz> References: <4dd371b4-7135-fc0d-ce62-ae68467cb289@quip.cz> X-Mailer: Apple Mail (2.3654.60.0.2.21) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Mar 2021 11:57:43 -0000 --Apple-Mail=_D9C5C9B2-6398-40DF-A422-1B0D0057B064 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 27 Mar 2021, at 12:39, Miroslav Lachman <000.fbsd@quip.cz> wrote: >=20 > I compiled 12.2-p4 from sources 2 days ago but any attempt to build = update for 12.2-p5 ends with error. >=20 > Previous build was done on 11.4: >=20 > # cd /usr/src/ > # git clone https://github.com/freebsd/freebsd.git -b releng/12.2 ./ > # make buildworld > # make buildkernel >=20 > 11.4 machine was upgraded to 12.2 (I did also run mergemaster) so now = I have FreeBSD 12.2-RELEASE-p4 amd64 GENERIC >=20 > # cd /usr/src/ > # git pull --ff-only > # make -DNO_CLEAN buildworld >=20 > it ends with the following error >=20 > sh /usr/src/tools/install.sh -s -o root -g wheel -m 555 xinstall = /usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin/install > sh /usr/src/tools/install.sh -o root -g wheel -m 444 install.debug = /usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/lib/debug/usr/bin/install.debu= g > *** Signal 11 You'll need to debug the core dump to see what it segfaulted on. In this case, I would first suspect the hardware. Run a full memtest86 for 24 hours to see if it results in any errors. > Stop. > make[3]: stopped in /usr/src/usr.bin/xinstall > *** Error code 1 >=20 > Usr: 437.951s Krnl: 15.620s Totl: 7:48.92s CPU: 96.7% swppd: 0 = I/O: 55800+84576 >=20 > I tried without -DNO_CLEAN but it failed again >=20 > sh /usr/src/tools/install.sh -o root -g wheel -m 444 = make-roken.debug = /usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/lib/debug/usr/bin/make-roken.d= ebug > =3D=3D=3D> kerberos5/lib/libroken (obj,all,install) > [Creating objdir = /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/kerberos5/lib/libroken...] > make-roken > roken.h > *** Signal 11 This won't help you at all, if the first build failed then there is no reason the next will work. If your hardware is faulty then you will only run into random errors like this, which is why I would suggest checking your hardware first. Now, the roken.h file that was produced is obviously prematurely cut off, which is almost certainly the cause for the next failure: > # make -DNO_CLEAN buildkernel >=20 > cc -O2 -pipe -fno-common -I/usr/src/crypto/heimdal/lib/roken -I. = -DHAVE_CONFIG_H -I/usr/src/kerberos5/include -g -MD = -MF.depend.copyhostent.o -MTcopyhostent.o -std=3Dgnu99 = -Qunused-arguments = -I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include -c = /usr/src/crypto/heimdal/lib/roken/copyhostent.c -o copyhostent.o > /usr/src/crypto/heimdal/lib/roken/copyhostent.c:42:1: error: unknown = type name > 'ROKEN_LIB_FUNCTION' > ROKEN_LIB_FUNCTION struct hostent * ROKEN_LIB_CALL > ^ > /usr/src/crypto/heimdal/lib/roken/copyhostent.c:42:51: error: expected = ';' after top level > declarator > ROKEN_LIB_FUNCTION struct hostent * ROKEN_LIB_CALL > ^ > ; Since the roken.h file is bad, it won't compile. Delete the bad roken.h, or maybe your entire /usr/obj, and after your hardware turns out to be okay, try again. -Dimitry --Apple-Mail=_D9C5C9B2-6398-40DF-A422-1B0D0057B064 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iFwEARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCYF8dpwAKCRCwXqMKLiCW o/ImAJUTYzs/owqAbBMer7YnwuK7XaaWAKD/L9KgMttXNcwAZTRtzfrDspQPzw== =DLsM -----END PGP SIGNATURE----- --Apple-Mail=_D9C5C9B2-6398-40DF-A422-1B0D0057B064--