From owner-freebsd-questions@freebsd.org Sun Dec 13 06:25:21 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8E49A42451 for ; Sun, 13 Dec 2015 06:25:21 +0000 (UTC) (envelope-from tjg@tgustafson.com) Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5F4681468 for ; Sun, 13 Dec 2015 06:25:21 +0000 (UTC) (envelope-from tjg@tgustafson.com) Received: by mail-wm0-x232.google.com with SMTP id p66so22521378wmp.1 for ; Sat, 12 Dec 2015 22:25:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tgustafson-com.20150623.gappssmtp.com; s=20150623; h=mime-version:date:message-id:subject:from:to:content-type; bh=PUhkohTDR4k1KokK78PgYzFEpUGla71Te7w3oQQzOtg=; b=G/dEhSAedGaE6RUwKvdxfPG9nCGKxz2XkMhk5Q6wdt+PlgAiK3ULpkFHxHsc7ye0Cr lPbm5CaQQRfqD+UoLgqvSuoZyJL9Jf3x1Xg0LebINkRO9nRytvsqzmy9eD0+K2zP6xkL JyrvQ/mNEbwJ+/9emvqsIPKzPrlb6Ui8j7Dyf8N1MH7Yw57YxLeMjNt8GuHvZPiTrV22 KbWBdBDXHyl8pihBh7tGRGuaxXGJhWcNvdJIs/0dLlMWW24MTyq2l3B3nqczi8HTiXjy VCrlGc2ixFCeAjq6xtRqfVZDW9RxLy28tWLdk9itQAfbYHlvDc7NopwiXPSUk+qjvim2 iq9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=PUhkohTDR4k1KokK78PgYzFEpUGla71Te7w3oQQzOtg=; b=RltceCDUtu7IRshIaDI0G6H0eb8IeflTFWrmTukiZ0RT5b92qp0udTrWmTRr999OKR ZOJ93s3r7hJhh5ycQRdZVIqnki1W4CWVqQuszRc+HYw164SCNhE/jmOT1Wu47AFiykWp Yj2bLtx6ry7fEP+cnND9lZCPrAYXcWFMdIq6iT0QJ8aZKbmscp/ZTiJC6z1uO3UweCHL 6lmLy5GG6LY3RncwbJ5nTvtGkKEZGCCS9xsajytT7pLIwzCK3TNoPjTUqzKX3CmZ6Vo4 bUW/OEQkxdMTYxJIMUvZob2DFI5/x4q9X+8atpZPFhjrDN9rEWbobRi0dc6uA5mo1fbU PJqg== X-Gm-Message-State: ALoCoQmWq9QVkLwVLnffCsyFBQYLHsJHuBinbaMZU/KuRqX69etC1CgG5HMKYdVB6zf44zZdkc4Mr+4nIukml22kgENrbVczaA== MIME-Version: 1.0 X-Received: by 10.194.59.108 with SMTP id y12mr30040676wjq.33.1449987918163; Sat, 12 Dec 2015 22:25:18 -0800 (PST) Received: by 10.28.238.154 with HTTP; Sat, 12 Dec 2015 22:25:18 -0800 (PST) Date: Sat, 12 Dec 2015 22:25:18 -0800 Message-ID: Subject: Can't Build FreeBSD 10.2 From: Tim Gustafson To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Dec 2015 06:25:21 -0000 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 http://svn.freebsd.org/base/releng/10.2 /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 /usr/src/tools/install.sh" PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/legacy/bin:/sbin:/bin:/usr/sbin:/usr/bin 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= BOOTSTRAPPING=1002000 SSP_CFLAGS= -DWITHOUT_HTML -DWITHOUT_INFO -DNO_LINT -DWITHOUT_MAN -DNO_PIC -DNO_PROFILE -DNO_SHARED _BOOTSTRAP_MAKEINFO=yes -DNO_CPU_CFLAGS -DNO_WARNS -DNO_CTF -DEARLY_BUILD -DNO_TESTS legacy ===> 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/src/tools/build/../../contrib/libc-pwcache -I/usr/src/tools/build/../../lib/libc/include -I/usr/obj/usr/src/tmp/legacy/usr/include -std=gnu99 /usr/src/tools/build/../../contrib/libc-pwcache/pwcache.c 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/src/tools/build/../../contrib/libc-pwcache/pwcache.c:91: /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 Stop. make[3]: stopped in /usr/src/tools/build *** Error code 1 Stop. make[2]: stopped in /usr/src *** Error code 1 Stop. make[1]: stopped in /usr/src *** Error code 1 Stop. 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 run: 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 tjg@tgustafson.com