Re: CURRENT: buildworld fails

From: O. Hartmann <ohartman_at_zedat.fu-berlin.de>
Date: Wed, 23 May 2012 22:52:05 +0200
On 05/19/12 22:33, Garrett Cooper wrote:
> On Sat, May 19, 2012 at 6:55 AM, O. Hartmann
> <ohartman_at_zedat.fu-berlin.de> wrote:
>> Since approx. a week for now, I can not build FreeBSD 10.0-CURRENT/amd64
>> anymore! This happens to be on ALL(!) FreeBSD 10 boxes around here I
>> maintain.
> 
> ...
> 
>> b) build and install /usr/src/lib via "make clean cleandepend depend obj
>> all install" doesn't work anymore, it fails with
>> ."/usr/src/lib/Makefile", line 179: Malformed conditional (${MK_NAND} !=
>> "no")
>> "/usr/src/lib/Makefile", line 181: if-less endif
> 
> Your mk files in /usr/share/mk are out of synch with your build tree.
> If you opt out of using buildworld, then you need to do 'make -C
> share/mk install' beforehand.
> 
> Thanks,
> -Garrett

My problems became more desperate.

Since May, 15th, I'm unable to compile a buildworld and I suspect I
messed up my OS somehow.

I have already completely deleted /usr/src and checked out via SVN again.

Deleting /etc/src.conf and /etc/make.conf, performing buildworld with
the system's original make.conf (using the legacy GCC 4.2.1) ends up
with the below shown error.

Try to compile with CLANG as suggested via the Wiki page and the
attached /etc/src.conf gives a very short approach in how to trap into a
error, also shown below.

My problems occured around the May, 15th and hit ALL of my FreeBSD
10-CURRENT/amd64 boxes on which I do most time daily buildworld. Two of
them could be fixed, I did this two days ago by

cd /usr/src
make installincludes
make -C {lib|libexec|sbin ...} clean cleandepend depend obj all install

On one specific machine it didn't work that way. I found out that
several binaries in the system's tree remained dated on 15th May, so
like "ld" or other essential pieces. Therefore I suspect a crushed system.

Does anyhow do have any idea how to repair the system? I can compile a
kernel, but I can not compile ports (or even update them, I receive
multiple weird errors of missing header files or "changed" libstdc++.so.

The idea was to take a very recent binary installation set and install
this selective peice by piece over the existing installation, but I need
to preserve /etc and other directories. Any ideas ?

Help is appreciated and thanks in advance,

Oliver
[ BUILD with legacy gcc 4.2.1]

===> bin/ed (all)
cc -O2 -pipe  -DDES -std=gnu99 -fstack-protector -Wsystem-headers
-Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type
-Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter
-Wcast-align -Wchar-subscripts -Winline -Wnested-externs
-Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c
/usr/src/bin/ed/buf.c
cc -O2 -pipe  -DDES -std=gnu99 -fstack-protector -Wsystem-headers
-Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type
-Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter
-Wcast-align -Wchar-subscripts -Winline -Wnested-externs
-Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c
/usr/src/bin/ed/cbc.c
cc -O2 -pipe  -DDES -std=gnu99 -fstack-protector -Wsystem-headers
-Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type
-Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter
-Wcast-align -Wchar-subscripts -Winline -Wnested-externs
-Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c
/usr/src/bin/ed/glbl.c
cc -O2 -pipe  -DDES -std=gnu99 -fstack-protector -Wsystem-headers
-Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type
-Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter
-Wcast-align -Wchar-subscripts -Winline -Wnested-externs
-Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c
/usr/src/bin/ed/io.c
cc -O2 -pipe  -DDES -std=gnu99 -fstack-protector -Wsystem-headers
-Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type
-Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter
-Wcast-align -Wchar-subscripts -Winline -Wnested-externs
-Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c
/usr/src/bin/ed/main.c
cc -O2 -pipe  -DDES -std=gnu99 -fstack-protector -Wsystem-headers
-Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type
-Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter
-Wcast-align -Wchar-subscripts -Winline -Wnested-externs
-Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c
/usr/src/bin/ed/re.c
cc -O2 -pipe  -DDES -std=gnu99 -fstack-protector -Wsystem-headers
-Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type
-Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter
-Wcast-align -Wchar-subscripts -Winline -Wnested-externs
-Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c
/usr/src/bin/ed/sub.c
cc -O2 -pipe  -DDES -std=gnu99 -fstack-protector -Wsystem-headers
-Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type
-Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter
-Wcast-align -Wchar-subscripts -Winline -Wnested-externs
-Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c
/usr/src/bin/ed/undo.c
cc -O2 -pipe  -DDES -std=gnu99 -fstack-protector -Wsystem-headers
-Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type
-Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter
-Wcast-align -Wchar-subscripts -Winline -Wnested-externs
-Wredundant-decls -Wold-style-definition -Wno-pointer-sign  -o ed buf.o
cbc.o glbl.o io.o main.o re.o sub.o undo.o -lcrypto
gzip -cn /usr/src/bin/ed/ed.1 > ed.1.gz
===> bin/expr (all)
cc -O2 -pipe  -std=gnu99 -fstack-protector -Wsystem-headers -Werror
-Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual
-Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align
-Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
-Wold-style-definition -Wno-pointer-sign -c expr.c
cc1: warnings being treated as errors
/usr/src/bin/expr/expr.y: In function 'main':
/usr/src/bin/expr/expr.y:291: warning: implicit declaration of function
'yyparse'
/usr/src/bin/expr/expr.y:291: warning: nested extern declaration of
'yyparse'
expr.c: At top level:
expr.c:813: warning: no previous prototype for 'yyparse'
*** [expr.o] Error code 1

Stop in /usr/src/bin/expr.
*** [all] Error code 1

Stop in /usr/src/bin.
*** [bin.all__D] Error code 1

Stop in /usr/src.
*** [everything] Error code 1

Stop in /usr/src.
*** [buildworld] Error code 1

Stop in /usr/src.


[ BUILD with CLANG as with attached /etc/src.conf]

--------------------------------------------------------------
>>> stage 1.2: bootstrap tools
--------------------------------------------------------------
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:/sbin:/bin:/usr/sbin:/usr/bin
 WORLDTMP=/usr/obj/usr/src/tmp  VERSION="FreeBSD 10.0-CURRENT amd64
1000013"  MAKEFLAGS="-m /usr/src/tools/build/mk  -m /usr/src/share/mk
TARGET=amd64 TARGET_ARCH=amd64" make -f Makefile.inc1  DESTDIR=
BOOTSTRAPPING=1000013  SSP_CFLAGS=  -DWITHOUT_HTML -DWITHOUT_INFO
-DNO_LINT -DWITHOUT_MAN  -DNO_PIC -DNO_PROFILE -DNO_SHARED
-DNO_CPU_CFLAGS -DNO_WARNS -DNO_CTF bootstrap-tools
===> lib/clang/libllvmsupport (obj,depend,all,install)
/usr/obj/usr/src/tmp/usr/src/lib/clang/libllvmsupport created for
/usr/src/lib/clang/libllvmsupport
rm -f .depend
CC='clang' mkdep -f .depend -a
-I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include
-I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/tools/clang/include
-I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support
-I.
-I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/../../lib/clang/include
-DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS
-D__STDC_CONSTANT_MACROS
-DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd10.0\"
-DDEFAULT_SYSROOT=\"\" -I/usr/obj/usr/src/tmp/legacy/usr/include
-std=gnu99
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/regcomp.c
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/regerror.c
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/regexec.c
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/regfree.c
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/regstrlcpy.c
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/regcomp.c:38:10:
fatal error: 'sys/types.h' file not found
#include <sys/types.h>
         ^
1 error generated.
mkdep: compile failed
*** [.depend] Error code 1

Stop in /usr/src/lib/clang/libllvmsupport.
*** [bootstrap-tools] Error code 1

Stop in /usr/src.
*** [_bootstrap-tools] Error code 1

Stop in /usr/src.
*** [buildworld] Error code 1

Stop in /usr/src.






Received on Wed May 23 2012 - 18:52:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:27 UTC