Error during make buildworld

I've not done a full rebuild for a while, and it now appears I am unable to.

Here is the tail of the log: http://pastebin.com/byxcWnZL

System:
Code:
FreeBSD blackbox.hansons 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #1: Sun Nov 11 19:22:17 NZDT 2012     root@blackbox.hansons:/usr/obj/usr/src/sys/GENERIC  i386

My /etc/make.conf:
Code:
OVERRIDE_LINUX_BASE_PORT=f10
OVERRIDE_LINUX_NONBASE_PORTS=f10
WITHOUT_NOUVEAU=yes
# added by use.perl 2012-08-23 18:27:09
PERL_VERSION=5.14.2
WITH_PKGNG=yes
SRC_BASE=/usr/src/stable/9

My /etc/src.conf:
Code:
CC=clang
CXX=clang++
CPP=clang-cpp
 
Why is the source directory /usr/src/stable/9? In theory, the source directory should not matter. In reality, it might. Unless you have other versions of FreeBSD in /usr/src, the checkout should be just to /usr/src.

The first three lines of make.conf are obsolete.
 
caesius said:
Code:
SRC_BASE=/usr/src/stable/9
[snip]
CC=clang
We will of course try to help if we can, but the best place for -STABLE issues is probably the freebsd-stable mailing list. Of course some overlap exists, but many people on that list are not on these forums and vice versa.

On another note, FreeBSD 9 still uses gcc(1) as the default compiler. You are of course perfectly free to try building with clang(1) instead, but for the time being you can then expect the occasional issue to arise. Judging from your output, it appears that there's a linking problem, which could conceivably be caused by some kind of gcc-clang difference that hasn't been (fully) resolved yet.
 
wblock@ said:
Why is the source directory /usr/src/stable/9? In theory, the source directory should not matter. In reality, it might. Unless you have other versions of FreeBSD in /usr/src, the checkout should be just to /usr/src.

The first three lines of make.conf are obsolete.

I have both STABLE and HEAD checked out. I use the latter to build Raspberry Pi images. But I will move this elsewhere and put my system's source at /usr/src just in case.

Thanks for the heads up about the obsolete lines though.

fonz said:
On another note, FreeBSD 9 still uses gcc(1) as the default compiler. You are of course perfectly free to try building with clang(1) instead, but for the time being you can then expect the occasional issue to arise. Judging from your output, it appears that there's a linking problem, which could conceivably be caused by some kind of gcc-clang difference that hasn't been (fully) resolved yet.

This error was the reason I tried building with clang. Before that, /etc/src.conf did not exist.
 
Code:
benjamin@blackbox> cat /etc/make.conf
WITHOUT_NOUVEAU=yes
# added by use.perl 2012-08-23 18:27:09
PERL_VERSION=5.14.2
WITH_PKGNG=yes

Someone on FreeNode suggested it could be a shell problem, and to try using tcsh instead of zsh. I tried changing to tcsh before running

Code:
sudo make buildworld

but that failed with the same error.
 
To eliminate as many variables as possible, move /usr/src elsewhere and check out a fresh copy. Then don't use sudo, but log in as root or use [cmd=]su -[/cmd].
 
I used su to change to root, then ran the same command again. Same problem.

I did a fresh checkout when I moved everything to /usr/src. So it is fresh. I will delete it, check it out again and rebuild it as root just to be sure.

Here is what I've done, for reference:

Code:
root@blackbox:/home/benjamin # mv /usr/src /usr/src_old
root@blackbox:/home/benjamin # svn co svn://svn.freebsd.org/base/stable/9 /usr/src
 
You can try to build the world without boot blocks temporarily. When you have a working world and kernel installed turn the compilation of boot blocks back on again and install the new boot blocks and loader(8). This setting in src.conf(5) should do it:

Code:
WITHOUT_BOOT=1
 
Back
Top