From owner-freebsd-current@freebsd.org Sun Mar 12 10:36:23 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CF7FDD081F0 for ; Sun, 12 Mar 2017 10:36:23 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9640610B0 for ; Sun, 12 Mar 2017 10:36:23 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::c52b:f4eb:5bf4:e273] (unknown [IPv6:2001:7b8:3a7:0:c52b:f4eb:5bf4:e273]) (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 6F6F52EA32; Sun, 12 Mar 2017 11:36:20 +0100 (CET) From: Dimitry Andric Message-Id: <1C4E6A09-86AD-4DC7-AA65-336A1643E070@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_41B95E0F-96E1-4E0A-A996-DE3C34E4B13B"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: buildworld error Date: Sun, 12 Mar 2017 11:36:11 +0100 In-Reply-To: <201703120146.v2C1keSL088648@slippy.cwsent.com> Cc: Roberto Rodriguez Jr , FreeBSD Current To: Cy Schubert References: <201703120146.v2C1keSL088648@slippy.cwsent.com> X-Mailer: Apple Mail (2.3259) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Sun, 12 Mar 2017 10:36:23 -0000 --Apple-Mail=_41B95E0F-96E1-4E0A-A996-DE3C34E4B13B Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 12 Mar 2017, at 02:46, Cy Schubert wrote: > > In message <5CB065B0-5A7D-4A50-A722-8EA579A67188@FreeBSD.org>, Dimitry > Andric w > rites: >> >> >> --Apple-Mail=_A0AD1F4B-1279-4DA7-85F9-FB9846A878D7 >> Content-Transfer-Encoding: quoted-printable >> Content-Type: text/plain; >> charset=us-ascii >> >> On 12 Mar 2017, at 01:55, Roberto Rodriguez Jr = >> wrote: >>> =20 >>> Now... >>> make buildworld >> ... >>> In file included from /usr/src/contrib/llvm/lib/Support/APInt.cpp:15: >>> In file included from = >> /usr/src/contrib/llvm/include/llvm/ADT/APInt.h:20: >>> In file included from >>> /usr/src/contrib/llvm/include/llvm/Support/MathExtras.h:19: >>> In file included from /usr/include/c++/v1/algorithm:634: >>> In file included from /usr/include/c++/v1/memory:604: >>> /usr/include/c++/v1/new:73:10: fatal error: '__undef___deallocate' = >> file not >>> found >>> #include <__undef___deallocate> >>> ^ >> >> Yes, this is because of the bad advice to run "make delete-old" before >> you had run "make installworld". You had an older version of libc++ in >> /usr/include/c++, but that still required the __undef___deallocate >> header, which has now been deleted by "make delete-old". >> >> Your best chance is to build and install libc++ first, if possible, by >> doing: >> >> cd /usr/src/lib/libc++ >> make obj >> make depend >> make >> make install >> >> Then retry building world. > > If this actually fixes it, it (the build) is wrong. You shouldn't have to > build and install src in order to build another part of src. > > The procedure has always been documented as make installworld first then > make delete-old. Failing to do so will on rare occasions bite you when > building a port. Yes, but in this case Roberto ran "make delete-old" *before* installing world, on your advice. That is definitely something that should be avoided. E.g., "make delete-old" should only ever be run with exactly the same source tree that your current world was installed from. And preferably right after "make installworld" and updating /etc. -Dimitry --Apple-Mail=_41B95E0F-96E1-4E0A-A996-DE3C34E4B13B 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.0.30 iEYEARECAAYFAljFJKMACgkQsF6jCi4glqMSSQCg4Pbv9YGsRSbSXsl3dLdUOV2l 3BYAni5W3WMifJlYr41du/rfQAjTshvX =hdrh -----END PGP SIGNATURE----- --Apple-Mail=_41B95E0F-96E1-4E0A-A996-DE3C34E4B13B--