From owner-freebsd-current@freebsd.org Sun Mar 12 19:35:28 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 3E187D09C47 for ; Sun, 12 Mar 2017 19:35:28 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 090AF10F3; Sun, 12 Mar 2017 19:35:27 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from spqr.komquats.com ([96.50.22.10]) by shaw.ca with SMTP id n9ERc8prWC3JIn9EScx0EI; Sun, 12 Mar 2017 13:32:45 -0600 X-Authority-Analysis: v=2.2 cv=XbT59Mx5 c=1 sm=1 tr=0 a=jvE2nwUzI0ECrNeyr98KWA==:117 a=jvE2nwUzI0ECrNeyr98KWA==:17 a=kj9zAlcOel0A:10 a=6Iz7jQTuP9IA:10 a=6I5d2MoRAAAA:8 a=BWvPGDcYAAAA:8 a=pGLkceISAAAA:8 a=YxBL1-UpAAAA:8 a=JsQqJ9nhXVJts-AkDfQA:9 a=CjuIK1q_8ugA:10 a=IjZwj45LgO3ly-622nXo:22 a=pxhY87DP9d2VeQe4joPk:22 a=6kGIvZw6iX1k4Y-7sg4_:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id 25E5F3B6; Sun, 12 Mar 2017 12:32:43 -0700 (PDT) Received: from slippy (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id v2CJWglX044258; Sun, 12 Mar 2017 12:32:42 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201703121932.v2CJWglX044258@slippy.cwsent.com> X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.6 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Dimitry Andric cc: Cy Schubert , Roberto Rodriguez Jr , FreeBSD Current Subject: Re: buildworld error In-Reply-To: Message from Dimitry Andric of "Sun, 12 Mar 2017 11:36:11 +0100." <1C4E6A09-86AD-4DC7-AA65-336A1643E070@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 12 Mar 2017 12:32:42 -0700 X-CMAE-Envelope: MS4wfGoCalMyX1tO+YBOOnhDlzngPru+adQ5s1L9XLzVC7vIfySVTYMnJgcpNnIFcPp46hJWwWE2VIqseT32A5f8BBVUzkTDVvKb4q9TOnaLvWAo+pdho7Gj GmGY/Z+WLrNIeJcxCi2DiUBVVbBjmakHZzT8cea4YHh52RTQVnTS7qfNrmMVHMWjc65jHHM8Z9WOBdIHqBQ7+agl8Kx4O42pp5eVqrJ8cVfqfyvPjAD6Pmy6 a1TvFIzqr3pCzAjBMV3aVg== 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 19:35:28 -0000 In message <1C4E6A09-86AD-4DC7-AA65-336A1643E070@FreeBSD.org>, Dimitry Andric w rites: > > > --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. That's not what I was talking about. I should have worded that better, as in for next time. People should run make delete-old after the previous installworld and prior to the next buildworld. Even so, the contents of the current /usr/include should not affect the current buildworld. In practice this is still the case. r307800 is a good example of this. I wouldn't be surprised there's more of this in src. > > 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. Exactly! -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.