From owner-freebsd-questions@FreeBSD.ORG Wed May 23 20:52:21 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 115DA1065688; Wed, 23 May 2012 20:52:21 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id 8E05E8FC0A; Wed, 23 May 2012 20:52:20 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) with esmtp (envelope-from ) id <1SXIXW-0004Bw-1A>; Wed, 23 May 2012 22:52:14 +0200 Received: from e178040087.adsl.alicedsl.de ([85.178.40.87] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) with esmtpsa (envelope-from ) id <1SXIXV-0004w4-Oh>; Wed, 23 May 2012 22:52:14 +0200 Message-ID: <4FBD4DF5.5080502@zedat.fu-berlin.de> Date: Wed, 23 May 2012 22:52:05 +0200 From: "O. Hartmann" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120502 Thunderbird/12.0.1 MIME-Version: 1.0 To: Garrett Cooper References: <4FB7A63C.70509@zedat.fu-berlin.de> In-Reply-To: X-Enigmail-Version: 1.5pre Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigEFF48EA4D047EC40F5E58B45" X-Originating-IP: 85.178.40.87 Cc: Current FreeBSD , freebsd-questions@freebsd.org Subject: Re: CURRENT: buildworld fails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 May 2012 20:52:21 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigEFF48EA4D047EC40F5E58B45 Content-Type: multipart/mixed; boundary="------------060907030507050307080104" This is a multi-part message in MIME format. --------------060907030507050307080104 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 05/19/12 22:33, Garrett Cooper wrote: > On Sat, May 19, 2012 at 6:55 AM, O. Hartmann > wrote: >> Since approx. a week for now, I can not build FreeBSD 10.0-CURRENT/amd= 64 >> anymore! This happens to be on ALL(!) FreeBSD 10 boxes around here I >> maintain. >=20 > ... >=20 >> b) build and install /usr/src/lib via "make clean cleandepend depend o= bj >> all install" doesn't work anymore, it fails with >> ."/usr/src/lib/Makefile", line 179: Malformed conditional (${MK_NAND} = !=3D >> "no") >> "/usr/src/lib/Makefile", line 181: if-less endif >=20 > 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. >=20 > 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= =2E 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] =3D=3D=3D> bin/ed (all) cc -O2 -pipe -DDES -std=3Dgnu99 -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=3Dgnu99 -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=3Dgnu99 -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=3Dgnu99 -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=3Dgnu99 -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=3Dgnu99 -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=3Dgnu99 -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=3Dgnu99 -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=3Dgnu99 -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 =3D=3D=3D> bin/expr (all) cc -O2 -pipe -std=3Dgnu99 -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=3D/usr/obj/usr/src/tmp INSTALL=3D"sh /usr/src/tools/install.sh" PATH=3D/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/u= sr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/sbin:/bin:/usr/sbin:/usr/bi= n WORLDTMP=3D/usr/obj/usr/src/tmp VERSION=3D"FreeBSD 10.0-CURRENT amd64 1000013" MAKEFLAGS=3D"-m /usr/src/tools/build/mk -m /usr/src/share/mk TARGET=3Damd64 TARGET_ARCH=3Damd64" make -f Makefile.inc1 DESTDIR=3D BOOTSTRAPPING=3D1000013 SSP_CFLAGS=3D -DWITHOUT_HTML -DWITHOUT_INFO -DNO_LINT -DWITHOUT_MAN -DNO_PIC -DNO_PROFILE -DNO_SHARED -DNO_CPU_CFLAGS -DNO_WARNS -DNO_CTF bootstrap-tools =3D=3D=3D> 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=3D'clang' mkdep -f .depend -a -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/tools/clang/inc= lude -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=3D\"x86_64-unknown-freebsd10.0\" -DDEFAULT_SYSROOT=3D\"\" -I/usr/obj/usr/src/tmp/legacy/usr/include -std=3Dgnu99 /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/regco= mp.c /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/reger= ror.c /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/regex= ec.c /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/regfr= ee.c /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/regst= rlcpy.c /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/regco= mp.c:38:10: fatal error: 'sys/types.h' file not found #include ^ 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. --------------060907030507050307080104 Content-Type: text/plain; charset=us-ascii; name="src.conf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="src.conf" =2Eif !defined(NO_CLANG) CC=3D clang CXX=3D clang++ CPP=3D clang-cpp ## Don't die on warnings NO_WERROR=3D WERROR=3D ### Don't forget this when using Jails! #NO_FSCHG=3D # CFLAGS=3D -pipe -O3 -fno-strict-aliasing COPTFLAGS=3D -pipe -O3 =2Eendif # WITH_CLANG_IS_CC=3D YES # WITH_CLANG=3D YES WITH_CLANG_EXTRAS=3D YES # WITH_BIND_LIBS=3D YES WITH_BIND_SIGCHASE=3D YES WITH_BIND_LARGE_FILE=3D YES # WITH_IDEA=3D YES WITH_HESIOD=3D YES # #WITH_ICONV=3D YES #WITH_BSD_GREP=3D YES WITH_BSD_SORT=3D YES # WITH_LIBCPLUSPLUS=3D YES # #WITH_OFED=3D YES # #PORTS_MODULES=3D x11/nvidia-driver # MALLOC_PRODUCTION=3D YES --------------060907030507050307080104-- --------------enigEFF48EA4D047EC40F5E58B45 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQEcBAEBAgAGBQJPvU39AAoJEOgBcD7A/5N8rgMH/i11WQd7RtplyLqAosVx6RcF uaOpSg9/Z4dK7UvY61Lq+tstEv/qoKS+5l9wb2yIf1RlICCKvYgztqisy9UEhLnr Gdn56ugrFbMcXVBwJ3uIW9Q6UKG4pA5DyVfYnOSnjcAuCJ127cw5UjhNTOsKd7aJ D5Ex+AqqOxvkoqHed12NkfwBxrPAMk84s8YlR4rt0/D8YS8XkXMIp3PpbjSWg4gZ tUC3gg6XRqPukx4SdiJ9Mpgp0HcYmsRFCNe2kJQedNu9NVeB/C+jiBbz1uGew2Gn +dxUdPs9LaA3pOM6yjHDIxyXliPm9mlNh98H6qMZHCf5J9uqFKDIm6E2vERRm84= =HfyN -----END PGP SIGNATURE----- --------------enigEFF48EA4D047EC40F5E58B45--