From owner-freebsd-stable@FreeBSD.ORG Sat Sep 29 14:09:57 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5FDD1106566C for ; Sat, 29 Sep 2012 14:09:57 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (m209-73.dsl.rawbw.com [198.144.209.73]) by mx1.freebsd.org (Postfix) with ESMTP id 2D1378FC08 for ; Sat, 29 Sep 2012 14:09:56 +0000 (UTC) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.14.5/8.14.5) with ESMTP id q8TE9uqB033725; Sat, 29 Sep 2012 07:09:56 -0700 (PDT) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.14.5/8.14.5/Submit) id q8TE9tFw033724; Sat, 29 Sep 2012 07:09:55 -0700 (PDT) (envelope-from david) Date: Sat, 29 Sep 2012 07:09:55 -0700 From: David Wolfskill To: Norbert Aschendorff Message-ID: <20120929140955.GF1645@albert.catwhisker.org> References: <5066CD86.1020900@yahoo.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pVF9EYSGkiif4dMH" Content-Disposition: inline In-Reply-To: <5066CD86.1020900@yahoo.de> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-stable@freebsd.org 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:09:57 -0000 --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--