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=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?)
> 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?
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url :
http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20120929/16278cc1/attachment.pgp