Date: Sat, 29 Sep 2012 16:16:08 +0200 From: Norbert Aschendorff <norbert.aschendorff@yahoo.de> To: freebsd-stable@freebsd.org Subject: Re: Building FreeBSD-STABLE Message-ID: <506702A8.1060101@yahoo.de> In-Reply-To: <20120929140955.GF1645@albert.catwhisker.org> References: <5066CD86.1020900@yahoo.de> <20120929140955.GF1645@albert.catwhisker.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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. >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?506702A8.1060101>