Solved Failure of make buildworld at libsqlite3

I'm getting a failure of make buildworld at:
Code:
===> usr.bin/svn/lib/libsqlite3 (all)
cc  -O2 -pipe -march=core2  -DHAVE_CONFIG_H -I/usr/src/usr.bin/svn/lib/libsqlite3  -I/usr/src/usr.bin/svn/lib/libsqlite3/../../../../contrib/apr/include/arch/unix -I/usr/src/usr.bin/svn/lib/libsqlite3/../../../../contrib/apr/include -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1  -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1  -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1  -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_USLEEP=1  -DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1  -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1  -DHAVE_READLINE=1 -DHAVE_POSIX_FALLOCATE=1  -I/usr/src/usr.bin/svn/lib/libsqlite3/../../../../contrib/sqlite3 -D_REENTRANT=1 -DSQLITE_THREADSAFE=1  -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -std=gnu99 -Qunused-arguments  -fstack-protector -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -c /usr/src/usr.bin/svn/lib/libsqlite3/../../../../contrib/sqlite3/sqlite3.c -o sqlite3.o
/usr/src/usr.bin/svn/lib/libsqlite3/../../../../contrib/sqlite3/sqlite3.c:7868:3: error: unknown type name
  'strwct'; did you mean 'struct'?
  strwct _ht {  /* the hash table */
  ^~~~~~
  struct
1 error generated.
*** Error code 1

Stop.
make[6]: stopped in /usr/src/usr.bin/svn/lib/libsqlite3
*** Error code 1

Stop.
make[5]: stopped in /usr/src/usr.bin/svn/lib
*** Error code 1

Stop.
make[4]: stopped in /usr/src/usr.bin/svn
*** Error code 1

Stop.
make[3]: stopped in /usr/src/usr.bin
*** 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

uname -a reports:
Code:
FreeBSD Acer 10.1-RELEASE-p14 FreeBSD 10.1-RELEASE-p14 #0 r284988: Wed Jul  1 09:36:06 PDT 2015  root@Acer:/usr/obj/usr/src/sys/ACER  amd64

svn info /usr/src shows:
Code:
Path: /usr/src
Working Copy Root Path: /usr/src
URL: svn://svn0.us-west.freebsd.org/base/releng/10.1
Relative URL: ^/releng/10.1
Repository Root: svn://svn0.us-west.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 285418
Node Kind: directory
Schedule: normal
Last Changed Author: delphij
Last Changed Rev: 284985
Last Changed Date: 2015-06-30 16:21:37 -0700 (Tue, 30 Jun 2015)

My /etc/src.conf:
Code:
WITHOUT_LPR=yes

and /etc/make.conf:
Code:
CPUTYPE?=core2
WRKDIRPREFIX=/ram
WITH_CCACHE_BUILD=yes
CCACHE_CPP2=1
WITH_BDB_VER=6
QT4_OPTIONS=QGTKSTYLE
QT5_OPTIONS=QGTKSTYLE
OVERRIDE_LINUX_BASE_PORT=c6
OVERRIDE_LINUX_NONBASE_PORTS=c6
WITH_CUPS=yes
CUPS_OVERWRITE_BASE=yes

Has anyone else had this problem?
 
Not sure if this will help but have you tried deleting/backing up /usr/obj and starting the build from scratch with a fresh source tree?
 
Not sure if this will help but have you tried deleting/backing up /usr/obj and starting the build from scratch with a fresh source tree?
Yes, I tried the
Code:
# chflags -R noschg /usr/obj/usr
# rm -rf /usr/obj/usr
# cd /usr/src
# make cleandir
# make cleandir
outlined in the handbook. And then followed up with make -j4 buildworld
I've also run it without the -j4 option. I subsequently ran svn update /usr/src bringing the version to 285435. But with the same results.

kpa said:
Run svnlite diff /usr/src. If the command reports any differences run # svnlite revert -R /usr/src to revert any local modifications, accidental or otherwise.
svnlite diff /usr/src reports nothing.

I'm thinking that svn update /usr/src is missing something that's been corrupted, so I'm going to totally wipe /usr/src and checkout the source again. Will try the build again tonight.
 
I guess my /usr/src got corrupted somehow. Removing it completely and checking out the source from the beginning did the trick. Thanks for the tips.
 
Back
Top