Re: Building FreeBSD-STABLE
On 09/29/2012 04:55 PM, Dimitry Andric wrote: > On 2012-09-29 16:16, Norbert Aschendorff wrote: > ... >> 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++ > > There is your problem. Never assign to CFLAGS or CXXFLAGS using the = > operator, always add to them, using the += operator instead. Oh, ok. I thought that the flags in CFLAGS or CXXFLAGS are added to the compiler calls. Thank you for clarifying that. > Also, you don't need to duplicate flags in CXXFLAGS, which are already > in CFLAGS. You should only add C++ specific flags to CXXFLAGS. > > Last but not least, -pipe is completely unnecessary, it is already the > default. Nice to know :) Thanks. --Norbert ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Building FreeBSD-STABLE
On 2012-09-29 16:16, Norbert Aschendorff wrote: ... 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++ There is your problem. Never assign to CFLAGS or CXXFLAGS using the = operator, always add to them, using the += operator instead. Also, you don't need to duplicate flags in CXXFLAGS, which are already in CFLAGS. You should only add C++ specific flags to CXXFLAGS. Last but not least, -pipe is completely unnecessary, it is already the default. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Building FreeBSD-STABLE
On Sat, Sep 29, 2012 at 04:30:09PM +0200, Norbert Aschendorff wrote: > Seems to help, thank you :) Great! :-) > But what exactly messed it up? Do you have an idea? I don't, but there are folks on the list who do, I'm sure. I've just learned to "like vanilla" -- and reserve changes to times when I have reasons for them. :-} Peace, david -- David H. Wolfskill da...@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. pgpjP9Th58SsG.pgp Description: PGP signature
Re: Building FreeBSD-STABLE
Seems to help, thank you :) But what exactly messed it up? Do you have an idea? --Norbert ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Building FreeBSD-STABLE
On Sat, Sep 29, 2012 at 04:16:08PM +0200, Norbert Aschendorff wrote: > ... > stable/9. Sorry, I was implying it. :-} Clarity often helps. > ... > >> > 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. For the task at hand, at least, I suggest to just move /etc/make.conf aside: you shouldn't need it to merely (re)build FreeBSD. Once you get it working, you can start "seasoning to taste," as it were. > ... > 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++ OK -- but as above, you should not need to do this for buiding FreeBSD. > ... Oh -- and I'm presently running: FreeBSD g1-227.catwhisker.org 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #258 240989M: Thu Sep 27 04:50:32 PDT 2012 r...@g1-227.catwhisker.org:/usr/obj/usr/src/sys/CANARY i386 on my laptop -- though I rebuilt earlier today, with sources at: g1-227(9.1-P)[4] svn info /usr/src Path: /usr/src Working Copy Root Path: /usr/src URL: file:///svn/freebsd/src/base/stable/9 Repository Root: file:///svn/freebsd/src/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 241044 Node Kind: directory Schedule: normal Last Changed Author: delphij Last Changed Rev: 241038 Last Changed Date: 2012-09-28 13:29:06 -0700 (Fri, 28 Sep 2012) g1-227(9.1-P)[5] Peace, david -- David H. Wolfskill da...@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. pgpQazxDQISto.pgp Description: PGP signature
Re: Building FreeBSD-STABLE
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 da...@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. > ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Building FreeBSD-STABLE
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 da...@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. pgpS9pjNOWu27.pgp Description: PGP signature