From owner-freebsd-stable@FreeBSD.ORG Sat Sep 29 14:16:16 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4367106566B for ; Sat, 29 Sep 2012 14:16:16 +0000 (UTC) (envelope-from norbert.aschendorff@yahoo.de) Received: from nm36-vm2.bullet.mail.ne1.yahoo.com (nm36-vm2.bullet.mail.ne1.yahoo.com [98.138.229.114]) by mx1.freebsd.org (Postfix) with SMTP id 7A4798FC0A for ; Sat, 29 Sep 2012 14:16:16 +0000 (UTC) Received: from [98.138.90.52] by nm36.bullet.mail.ne1.yahoo.com with NNFMP; 29 Sep 2012 14:16:10 -0000 Received: from [98.138.226.133] by tm5.bullet.mail.ne1.yahoo.com with NNFMP; 29 Sep 2012 14:16:10 -0000 Received: from [127.0.0.1] by smtp220.mail.ne1.yahoo.com with NNFMP; 29 Sep 2012 14:16:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1348928170; bh=B8yudAMl5s0S7VQ0SmYGBgf4JW1l76xuIi0xTZOVtW8=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=RiwDSKdg111khM8GgBBy3VmYXelEzAnmwGR8cB1iZaTChdaxLtn+xzHw8XCE1E1GwtK7fPvysX2apSXGc5EXkwZsVyIyWWUQlruU+lv/yUzxfxLaTpbncyHX/X4hVtB1YT3/+b/WT8rk0F/Y/Y2Rk1dNwTpSAuO9IIzxZXNshXw= X-Yahoo-Newman-Id: 61151.8685.bm@smtp220.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: WX9ujDMVM1khJCtpLfV.Aj324LZTqr57JCOnDzRld6cKhgt IEaigbf_3yGo6nn3uFHXAJ9pTCEUaBAG2qEUnddQ_lGxKT0HPg4VT9pBsNKB H1Bbs6tiUJsTqSnnuq35mGMn3TLE6Y99eTa9wOoW4XwCm1P_56kGsIly6ROo W8yMIQP_hdl4SK1b3GEW4cx5QTDBW_x4xbkUBmq0sF0H1saE1vZHOyWtf4C7 DnXXjdfW5Z4DA36MUpo5PuU1KSUiON2W5xA_Z_a5R5Q0QEoNAIOFw0D8DPb6 FMrOI8BQaerUm7BwgACI4C4dFqMmExOYHwE9qb64tRZ7kKoO0xihKn_qa4K9 APm_smm_zNfpmNNPN9B1xM1yzvvyi2UWyx8U2126vqzGDAzqw69qPejDBz3h 8zQaIRS5qqJOTNMgVzK7Yh2TYgberYaCk0zuDvQupyZ_JHZlL.yYEw6ny3bG E1.LU8GoeSZ836CuMEcl0vXHNXd.N5kA9lTCE_gd1omRMsTwZ_T7rHF2SA55 PAcT7c8elf8aX_xTx X-Yahoo-SMTP: d20YFqmswBAWc4wd23BcX3DKFU.SSFWadKORXj_BQPQ- Received: from vostro-linux.goebo.site (norbert.aschendorff@85.216.84.153 with plain) by smtp220.mail.ne1.yahoo.com with SMTP; 29 Sep 2012 07:16:09 -0700 PDT Message-ID: <506702A8.1060101@yahoo.de> Date: Sat, 29 Sep 2012 16:16:08 +0200 From: Norbert Aschendorff User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120418 Icedove/11.0 MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <5066CD86.1020900@yahoo.de> <20120929140955.GF1645@albert.catwhisker.org> In-Reply-To: <20120929140955.GF1645@albert.catwhisker.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: Building FreeBSD-STABLE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 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, 29 Sep 2012 14:16:16 -0000 On 09/29/2012 04:09 PM, David Wolfskill wrote: > On Sat, Sep 29, 2012 at 12:29:26PM +0200, Norbert Aschendorff wrote: >> > Hey, >> > I downloaded FreeBSD-STABLE source via SVN and I'm now at r241038 from >> > 2012-09-28 22:29:06 +0200 (Fri, 28 Sep 2012). > On which branch? (stable/7, stable/8, and stable/9 are all > possibilities, for example.) stable/9. Sorry, I was implying it. >> > If I want to build world (make buildworld), I get the following errors: >> > http://pastebin.com/raw.php?i=Yrs8JSwg > Hmmm.... > >> > I've set the CC and CXX variables in make.conf to gcc respectively g++. > Why? (You should not need to do this -- I never did (for years) > ... until I decided to migrate to clang/llvm in stable/9 & head). > What are you trying to accomplish by setting them to these values?) I tried it with some ports and forgot to remove it. Today I saw it again, changed it to explicit other values to test it. >> > If I set CC and CXX to clang/clang++, the same error appears: >> > >> > --- >> > /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/APFloat.cpp:15:10: >> > fatal error: 'llvm/ADT/APFloat.h' file not found >> > #include "llvm/ADT/APFloat.h" >> > ^ >> > 1 error generated. >> > --- >> > >> > The error stems obviously from C++ files including files from the wrong >> > place (following code taken from contrib/llvm/lib/Support/APInt.cpp): >> > >> > #include "llvm/ADT/APInt.h" >> > #include "llvm/ADT/FoldingSet.h" >> > #include "llvm/ADT/Hashing.h" >> > #include "llvm/ADT/SmallString.h" >> > #include "llvm/ADT/StringRef.h" >> > #include "llvm/Support/Debug.h" >> > #include "llvm/Support/ErrorHandling.h" >> > #include "llvm/Support/MathExtras.h" >> > #include "llvm/Support/raw_ostream.h" >> > >> > The files included here are actually located at >> > contrib/llvm/include/llvm. As far as I currently see, all files needed >> > by the C++ files are there, so the only action which should be taken is >> > to change/add a C Preprocessor include switch in the correct Makefile, >> > right? >> > >> > Or is the error located between chair and screen and I don't see the >> > solution? >> > ... > Perhaps if you were to provide the precise content of /etc/make.conf and > /etc/src.conf, that might help. Also: Are you certain that your svn > checkout or update completed successfully, so your src working copy is > complete? src.conf does not exist here, and make.conf contains this: # added by use.perl 2012-08-23 17:45:18 PERL_VERSION=5.14.2 CFLAGS=-pipe #CC=clang #CC=gcc CXXFLAGS=-pipe #CXX=clang++ #CXX=g++ > FWIW, in switching to clang/llvm, I left /etc/make.conf alone (as I > wasn't trying to switch to clang/llvm for ports at this time); rather, I > set up /etc/src.conf: > > g1-227(9.1-P)[1] cat /etc/src.conf > PORTS_MODULES=x11/nvidia-driver > CC=clang > CXX=clang++ > CPP=clang-cpp > WITH_LIBCPLUSPLUS=yes > g1-227(9.1-P)[2] > > (That's on my laptop.) > > Peace, > david > -- David H. Wolfskill david@catwhisker.org Depriving a girl or boy of an > opportunity for education is evil. See > http://www.catwhisker.org/~david/publickey.gpg for my public key. >