I'm running into a problem in updating my 10-STABLE system from source. A "make buildworld" quits immediately. I tried a fresh svn checkout for base/stable/10 and then tried to run buildworld again, but got the same error. I've been scratching my head over this for hours, but must be missing something simple. I have ccache installed and have been using it for a fairly long time now. My /etc/src.conf contains just two lines: PORTS_MODULES=multimedia/cuse4bsd-kmod sysutils/pefs-kmod # emulators/virtualbox-ose-kmod WITH_LLDB=yes My /etc/make.conf is rather longer, so I'll append it following .sig below. Here's what happens. Script started on Thu Oct 6 23:31:47 2016 hellas# cd /usr/src hellas# nice make buildworld Unknown modifier '[' "/usr/src/Makefile.inc1", line 1113: Malformed conditional (${BUILDKERNELS:[) Unknown modifier '[' "/usr/src/Makefile.inc1", line 1122: if-less endif Unknown modifier '[' "/usr/src/Makefile.inc1", line 1144: Malformed conditional (${BUILDKERNELS:[) Unknown modifier '[' "/usr/src/Makefile.inc1", line 1161: if-less endif Unknown modifier '[' "/usr/src/Makefile.inc1", line 1183: Malformed conditional (${BUILDKERNELS:[) Unknown modifier '[' "/usr/src/Makefile.inc1", line 1190: if-less endif bmake: fatal errors encountered -- cannot continue *** Error code 1 Stop. make: stopped in /usr/src hellas# exit exit Script done on Thu Oct 6 23:37:00 2016 This just started happening after my machine had been down for a couple of days after a hang that damaged stuff in /usr/home. I had already restored /usr/local from backups before narrowing down the weird behavior I was seeing in wmaker to /usr/home corruption. So /usr/home has now been restored to good condition, too, but perhaps I need to restore something else as well. This mess was part of my justification to myself for the fresh checkout of /usr/src, but that doesn't seem to have made any difference in the buildworld failure. If anyone else can see what's wrong and clue me in, I'd be grateful. I'm subscribed to the digest for this list, so please Cc: me directly, so I'll get replies right away. Thanks in advance! Scott Bennett, Comm. ASMELG, CFIAG ********************************************************************** * Internet: bennett at sdf.org *xor* bennett at freeshell.org * *--------------------------------------------------------------------* * "A well regulated and disciplined militia, is at all times a good * * objection to the introduction of that bane of all free governments * * -- a standing army." * * -- Gov. John Hancock, New York Journal, 28 January 1790 * ********************************************************************** /etc/make.conf contains: CPUTYPE?=core2 CFLAGS+="-mtune=core2" SVNFLAGS?="-r RELENG_10" # build ports with clang stack protector WITH_SSP=yes SSP_CFLAGS=-fstack-protector-all # added for ports system use to avoid dialogs by SJB 4 May 2007 BATCH=YES # added for new pkg system --SJB 10 December 2014 WITH_PKGNG=yes # build ports using ccache --SJB 19 January 2015 WITH_CCACHE_BUILD=yes ## buildworld and buildkernel using ccache --SJB 26 January 2015 .if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) .if !defined(NOCCACHE) && exists(/usr/local/libexec/ccache/world/cc) CC:=${CC:C,^cc,/usr/local/libexec/ccache/world/cc,1} CXX:=${CXX:C,^c\+\+,/usr/local/libexec/ccache/world/c++,1} CCACHE_COMPILERCHECK=content CCACHE_DIR=/buildwork/ccache.freebsd .endif .else CFLAGS+="-mssse3" #CFLAGS+="-mssse3 -msse4.1" .endif # added to deal with ccache bug 8460 --SJB 2 November 2013 # bug has been reported fixed, so try without this workaround #CCACHE_CPP2=1 # added as a better specification of -j by SJB 17 November 2009 MAKE_JOBS_NUMBER=4 # put build tree where there is plenty of temporary workspace WRKDIRPREFIX=/buildwork/ports DEFAULT_VERSIONS+= ssl=openssl # Allow updating of Mesa3D from 7.4.4 to 7.6.1 and libdrm from 2.4.12 to 2.4.17 WITHOUT_NOUVEAU=yes # Use ATLAS libraries in ports that use BLAS libraries OPTIONS_SET=ATLAS # Tell gnustep-related ports to use base system's compiler GNUSTEP_WITH_BASE_GCC=yes GNUSTEP_WITHOUT_LIBOBJC=yes QT4_OPTIONS= CUPS NAS QGTKSTYLE # Begin portconf settings # Do not touch these lines .if !empty(.CURDIR:M/usr/ports*) && exists(/usr/local/libexec/portconf) _PORTCONF!=/usr/local/libexec/portconf .if ${_PORTCONF} != "|" .for i in ${_PORTCONF:S/^|//:S/|/ /g} ${i:C/^([^=]*)=.*/\1/}=${i:C/^[^=]*=//:S/%/ /g} .endfor .endif .endif # End portconf settings
On Thu, Oct 6, 2016 at 10:16 PM, Scott Bennett <bennett at sdf.org> wrote:> I'm running into a problem in updating my 10-STABLE system from > source. > A "make buildworld" quits immediately. I tried a fresh svn checkout for > base/stable/10 and then tried to run buildworld again, but got the same > error. > I've been scratching my head over this for hours, but must be missing > something > simple. > I have ccache installed and have been using it for a fairly long time > now. > My /etc/src.conf contains just two lines: > > PORTS_MODULES=multimedia/cuse4bsd-kmod sysutils/pefs-kmod # > emulators/virtualbox-ose-kmod > WITH_LLDB=yes > > My /etc/make.conf is rather longer, so I'll append it following .sig below. > > Here's what happens. > > Script started on Thu Oct 6 23:31:47 2016 > hellas# cd /usr/src > hellas# nice make buildworld > Unknown modifier '[' > > "/usr/src/Makefile.inc1", line 1113: Malformed conditional > (${BUILDKERNELS:[) > Unknown modifier '[' > > "/usr/src/Makefile.inc1", line 1122: if-less endif > Unknown modifier '[' > > "/usr/src/Makefile.inc1", line 1144: Malformed conditional > (${BUILDKERNELS:[) > Unknown modifier '[' > > "/usr/src/Makefile.inc1", line 1161: if-less endif > Unknown modifier '[' > > "/usr/src/Makefile.inc1", line 1183: Malformed conditional > (${BUILDKERNELS:[) > Unknown modifier '[' > > "/usr/src/Makefile.inc1", line 1190: if-less endif > bmake: fatal errors encountered -- cannot continue > *** Error code 1 > > Stop. > make: stopped in /usr/src > hellas# exit > exit > > Script done on Thu Oct 6 23:37:00 2016 > > This just started happening after my machine had been down for a > couple > of days after a hang that damaged stuff in /usr/home. I had already > restored > /usr/local from backups before narrowing down the weird behavior I was > seeing > in wmaker to /usr/home corruption. So /usr/home has now been restored to > good condition, too, but perhaps I need to restore something else as well. > This mess was part of my justification to myself for the fresh checkout of > /usr/src, but that doesn't seem to have made any difference in the > buildworld > failure. > If anyone else can see what's wrong and clue me in, I'd be grateful. > I'm subscribed to the digest for this list, so please Cc: me directly, so > I'll get replies right away. > Thanks in advance! > > > Scott Bennett, Comm. ASMELG, CFIAG >Could something else have gotten corrupted?> ls -i /bin/[65795 /bin/[> ls -i /bin/test65795 /bin/test The values (inode) will not match these, but must be identical. '[' needs to be a hard link to test. I'm suspicious that something happened to this link. If this is the case, other corruption may have occurred, but, if you can re-create the hardlink (ln /bin/test /bin/[) and successfully make buildworld and make buildkernel, it's likely that you can reinstall the system and the system will be fine. Of course, things could be damaged in the installed ports, too. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman at gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683