Date: Sat, 29 Sep 2012 07:09:55 -0700 From: David Wolfskill <david@catwhisker.org> To: Norbert Aschendorff <norbert.aschendorff@yahoo.de> Cc: freebsd-stable@freebsd.org Subject: Re: Building FreeBSD-STABLE Message-ID: <20120929140955.GF1645@albert.catwhisker.org> In-Reply-To: <5066CD86.1020900@yahoo.de> References: <5066CD86.1020900@yahoo.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--pVF9EYSGkiif4dMH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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.) > If I want to build world (make buildworld), I get the following errors: > http://pastebin.com/raw.php?i=3DYrs8JSwg 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) =2E.. until I decided to migrate to clang/llvm in stable/9 & head). What are you trying to accomplish by setting them to these values?) > If I set CC and CXX to clang/clang++, the same error appears: >=20 > --- > /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/APFlo= at.cpp:15:10: > fatal error: 'llvm/ADT/APFloat.h' file not found > #include "llvm/ADT/APFloat.h" > ^ > 1 error generated. > --- >=20 > The error stems obviously from C++ files including files from the wrong > place (following code taken from contrib/llvm/lib/Support/APInt.cpp): >=20 > #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" >=20 > 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? >=20 > 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? 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=20 PORTS_MODULES=3Dx11/nvidia-driver CC=3Dclang CXX=3Dclang++ CPP=3Dclang-cpp WITH_LIBCPLUSPLUS=3Dyes g1-227(9.1-P)[2]=20 (That's on my laptop.) Peace, david --=20 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. --pVF9EYSGkiif4dMH Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlBnATMACgkQmprOCmdXAD2yqQCdFlEgKkSLPo3Yxq847Yla7+C7 lIgAnj8PCvUx7W+380n6qQOZDGw5qkEl =6JHD -----END PGP SIGNATURE----- --pVF9EYSGkiif4dMH--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120929140955.GF1645>