Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Dec 2015 22:25:18 -0800
From:      Tim Gustafson <>
Subject:   Can't Build FreeBSD 10.2
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help
I have a FreeBSD 10.0 box onto which I've downloaded a fresh copy of
10.2 into /usr/src via subversion, like this:

rm -R /usr/src /usr/obj
svn checkout /usr/src

I'm currently on revision 292152.  Then I did:

cd /usr/src
make buildworld

And I'm getting the following error:


>>> stage 1.1: legacy release compatibility shims
cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/usr/src/tmp  INSTALL="sh
 WORLDTMP=/usr/obj/usr/src/tmp  VERSION="FreeBSD 10.2-RELEASE amd64
1002000"  MAKEFLAGS="-m /usr/src/tools/build/mk  -m /usr/src/share/mk"
 COMPILER_TYPE=clang make  -f Makefile.inc1  DESTDIR=
===> tools/build (obj,includes,depend,all,install)
/usr/obj/usr/src/tmp/usr/src/tools/build created for /usr/src/tools/build
set -e; cd /usr/src/tools/build; make buildincludes; make installincludes
rm -f .depend
mkdep -f .depend -a
-I/usr/obj/usr/src/tmp/legacy/usr/include -std=gnu99
cc  -O2 -pipe  -I/usr/src/tools/build/../../contrib/libc-pwcache
-I/usr/src/tools/build/../../lib/libc/include -std=gnu99
-I/usr/obj/usr/src/tmp/legacy/usr/include -c
/usr/src/tools/build/../../contrib/libc-pwcache/pwcache.c -o pwcache.o
In file included from
/usr/include/stdlib.h:54:9: error: unknown type name '___wchar_t'; did
you mean '__wchar_t'?
typedef ___wchar_t      wchar_t;
/usr/include/x86/_types.h:145:14: note: '__wchar_t' declared here
typedef int             __wchar_t;
1 error generated.
*** Error code 1

make[3]: stopped in /usr/src/tools/build
*** Error code 1

make[2]: stopped in /usr/src
*** Error code 1

make[1]: stopped in /usr/src
*** Error code 1

make: stopped in /usr/src


I tried building the RELENG-10.0 and RELENG-10.1 and am getting the
same behavior on both.  What am I doing wrong here?  Is something
hosed on my 10.0 system such that there's some library missing or
something?  It seems that freebsd-update is also not working.  When I

freebsd-update upgrade -r 10.2

it spends a bunch of time downloading stuff, but then it spits out the
following line about a hundred times:

/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory

and then it starts prompting me to delete a whole bunch of stuff that
I know it shouldn't be, like:

The following file will be removed, as it no longer exists in
FreeBSD 10.2-RELEASE: /boot/device.hints
Does this look reasonable (y/n)?

If I answer "no" to that question, freebsd-update immediately exits.

Is my system totally broken or is there some way to save it?


Tim Gustafson

Want to link to this message? Use this URL: <>