Solved Buildworld failed

Hello!

I try to build new world and kernel, but receive error:
Code:
In file included from /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/system_error.cpp:14:
In file included from /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/Support/system_error.h:228:
In file included from /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/Support/type_traits.h:20:
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/../../lib/clang/include/llvm/Support/DataTypes.h:36:10: fatal error:
'cmath' file not found
#include <cmath>
^
1 error generated.
mkdep: compile failed
*** [.depend] Error code 1

Stop in /usr/src/lib/clang/libllvmsupport.
*** [bootstrap-tools] Error code 1

Stop in /usr/src.
*** [_bootstrap-tools] Error code 1

Stop in /usr/src.
*** Error code 1

Stop.
make: stopped in /usr/src
Full log available on pastbin http://pastebin.com/BmQtNXBG

/usr/src version now for 9.3-release, but this error i see an in version 10.3:
Code:
Path: .
Working Copy Root Path: /usr/src
URL: svn://svn.freebsd.org/base/releng/9.3
Relative URL: ^/releng/9.3
Repository Root: svn://svn.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 302306
Node Kind: directory
Schedule: normal
Last Changed Author: delphij
Last Changed Rev: 301301
Last Changed Date: 2016-06-04 08:46:52 +0300 (Sat, 04 Jun 2016)
How build new world successful?
Code:
FreeBSD <*> 10.3-RELEASE-p4 FreeBSD 10.3-RELEASE-p4 #0: Sat May 28 12:23:44 UTC 2016  root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

/etc/make.conf clean
 
So you're trying to build version 9.3, what version of FreeBSD are you currently using (just to get a complete picture)?

Also important: how did you get the source tree? I assume you used svn to get it, but are you sure that there were no errors during the download? Reason I'm asking is because I came across this here:

Code:
In file included from /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/ADT/SmallVector.h:17:
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include/llvm/Support/AlignOf.h:19:10: fatal error: 'cstddef' file
 not found
#include <cstddef>
 ^
1 error generated.
Which makes me wonder if your source tree is actually complete. So my suggestion would be to start there: make sure you got the full, complete, source tree.
 
So you're trying to build version 9.3, what version of FreeBSD are you currently using (just to get a complete picture)?
This shouldn't be a problem actually. I've regularly built release(7) for 9.3 and 10.x on 11-CURRENT.

Granted, you generally do this in a separate directory, not in the system's /usr/src/. That directory really should only contain sources for the same version as the host.
 
I need downgrade from 10.3 to 9.3 version.
If you want even more problems. Source downgrading is not recommended and not supported.

Source version 10.3 not build too with same error.
Fix this issue instead. Especially since both have the same error, the issue isn't with 9.3 or 10.3 but with some local configuration of your system.
 
Code:
svn co 
svn://svn.freebsd.org/base/releng/9.3 /usr/src
Use this instead:

Code:
rm -rf /usr/src/*
svn co https://svn.freebsd.org/base/releng/10.3 /usr/src

Then:
Code:
cd /usr/src
make clean
make buildworld
 
If you still have a problem with rebuild then do a clean FreeBSD 9.3 install in virtual environment and do a build in /usr/src. Once the build is completed, copy /usr/src and /usr/obj to your FreeBSD 10.3 system and do installkernel and installworld.

As SirDice said, it is not recommended to downgrade unless if you want further problems or your system will become unbootable due to different version config settings.

Any particular reason why you want to downgrade?
 
Code:
svn co
svn://svn.freebsd.org/base/releng/9.3 /usr/src
Use this instead:

Code:
rm -rf /usr/src/*
svn co https://svn.freebsd.org/base/releng/10.3 /usr/src

Then:
Code:
cd /usr/src
make clean
make buildworld
I need version 9.3. Also i tryed this steps before start topic.

If you still have a problem with rebuild then do a clean FreeBSD 9.3 install in virtual environment and do a build in /usr/src. Once the build is completed, copy /usr/src and /usr/obj to your FreeBSD 10.3 system and do installkernel and installworld.

As SirDice said, it is not recommended to downgrade unless if you want further problems or your system will become unbootable due to different version config settings.

Any particular reason why you want to downgrade?
This server need ISPmanager 4 version, which work only on 9.x version. I not like this panel, but server owner need only isp.

Please clean up your /usr/obj and try again, it's mandatory to do so when switching sources from one major version of FreeBSD to another.

Some error....
 
I suggest you find a panel that does work on 10.x. FreeBSD 9.x is going to be End-of-Life at the end of the year. And as I said before downgrading isn't really supported or recommended. So if you really want to install FreeBSD 9.x you're going to have to reinstall.
 
Back
Top