From owner-freebsd-current@FreeBSD.ORG Wed Jun 5 18:53:30 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 243D18CF; Wed, 5 Jun 2013 18:53:30 +0000 (UTC) (envelope-from dt71@gmx.com) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by mx1.freebsd.org (Postfix) with ESMTP id A6C3F1AD4; Wed, 5 Jun 2013 18:53:29 +0000 (UTC) Received: from [192.168.1.80] ([145.236.66.114]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MWSwU-1UurlS2BMA-00XgEv; Wed, 05 Jun 2013 20:53:28 +0200 Message-ID: <51AF891A.3080906@gmx.com> Date: Wed, 05 Jun 2013 20:53:14 +0200 From: dt71@gmx.com User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:20.0) Gecko/20100101 Firefox/20.0 SeaMonkey/2.17.1 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: another external compiler topic Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:3Rr7ppEoMCwYf3RdCdp+zET7jzQG6XNWgUGhHAQrKbrkIjl15uf RIrJ1TIqB9VHd4U85LeMaViTijGlHH51vUZ6KXyY/weeKbawc48EBEO6MAHWhR7T7FYG7ro QmG4OmsiyrA3UKcLiL/cwbedysny73S6VLAuSyDN7LcjH0vVc1cFDQYqd5M2IV0d4JvoJgS Ub+ovyGftjHTLzLMoy3uQ== Cc: brooks@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jun 2013 18:53:30 -0000 For the diagnosis of an error related to external compilers, I'll post full setup information. Compiler version string: "clang version 3.4 (trunk 182723)". Installed system revision: 251046. Checked out source tree revision: 251352. The following 2 configuration files were used to build the installed system, as well as the new system. (However, see the "compiler" note later on.) ======= make.conf begins ======= CPUTYPE=native KERNCONF=MYCONF COMPILER_TYPE=clang CROSS_COMPILER_PREFIX= WITHOUT_FORMAT_EXTENSIONS=1 CC=/path/to/clang CPP=/path/to/clang-cpp CXX=/path/to/clang++ NO_CLEAN=1 NO_KERNELCLEAN=1 NO_MODULES=1 MALLOC_PRODUCTION=1 ======= make.conf ends ======= ======= src.conf begins ======= WITHOUT_ACCT=1 WITHOUT_ACPI=1 WITHOUT_AMD=1 WITHOUT_APM=1 WITHOUT_AT=1 WITHOUT_ATF=1 WITHOUT_ATM=1 WITHOUT_AUDIT=1 WITHOUT_AUTHPF=1 WITHOUT_BIND=1 WITHOUT_BLUETOOTH=1 WITHOUT_BSNMP=1 WITHOUT_CALENDAR=1 WITHOUT_CDDL=1 WITHOUT_CLANG=1 WITHOUT_CLANG_IS_CC=1 WITHOUT_CTM=1 WITHOUT_CVS=1 WITHOUT_DICT=1 WITHOUT_ED_CRYPTO=1 WITHOUT_FDT=1 WITHOUT_FLOPPY=1 WITHOUT_FREEBSD_UPDATE=1 WITHOUT_GAMES=1 WITHOUT_GCC=1 WITHOUT_GCOV=1 WITHOUT_GDB=1 WITHOUT_GPIB=1 WITHOUT_GPIO=1 WITHOUT_HESIOD=1 WITHOUT_HTML=1 WITHOUT_INET6=1 WITHOUT_INFO=1 # [1] WITHOUT_IPFILTER=1 WITHOUT_IPFW=1 WITHOUT_IPX=1 WITHOUT_JAIL=1 WITHOUT_KDUMP=1 WITHOUT_KVM=1 WITHOUT_LDNS=1 WITHOUT_LEGACY_CONSOLE=1 WITHOUT_LOCATE=1 WITHOUT_LPR=1 WITHOUT_MAIL=1 WITHOUT_NDIS=1 WITHOUT_NETGRAPH=1 WITHOUT_NLS=1 WITHOUT_NLS_CATALOGS=1 WITHOUT_NTP=1 WITHOUT_PC_SYSINSTALL=1 WITHOUT_PF=1 WITHOUT_PKGTOOLS=1 WITHOUT_PMC=1 WITHOUT_PORTSNAP=1 WITHOUT_PPP=1 WITHOUT_PROFILE=1 WITHOUT_QUOTAS=1 WITHOUT_RCMDS=1 WITHOUT_RCS=1 WITHOUT_RESCUE=1 WITHOUT_SENDMAIL=1 WITHOUT_SHAREDOCS=1 WITHOUT_SYSINSTALL=1 WITHOUT_TELNET=1 WITHOUT_WIRELESS=1 WITHOUT_WPA_SUPPLICANT_EAPOL=1 WITH_BSD_GREP=1 WITH_BSD_PATCH=1 ======= src.conf ends ======= For the interested reader, regarding "# [1]": ======= /usr/bin/makeinfo begins ======= B= for i in "$@" ; do if test -n "$B" ; then echo fuck this shit > "$i" exit 0 fi if test "$i" = -o ; then B=1 fi done ======= /usr/bin/makeinfo ends ======= The following are output log snippets. (Snippet 2 contains an error that follows snippet 1; key term: parallel builds (most likely).) ======= `make buildworld` snippet 1 begins ======= building shared library libkadm5srv.so.11 ===> kerberos5/lib/libkafs5 (all) /i/a/clang -O2 -pipe -march=native -I/usr/src/kerberos5/lib/libkafs5/../../../crypto/heimdal/lib/kafs -I/usr/src/kerberos5/li b/libkafs5/../../../crypto/heimdal/lib/krb5 -I/usr/obj/usr/src/kerberos5/lib/libkafs5/../libkrb5/ -I/usr/src/kerberos5/lib/li bkafs5/../../../crypto/heimdal/lib/roken -DHAVE_CONFIG_H -I/usr/src/kerberos5/lib/libkafs5/../../include -std=gnu99 -Qunused-ar guments -fstack-protector -c /usr/src/kerberos5/lib/libkafs5/../../../crypto/heimdal/lib/kafs/afssys.c -o afssys.o In file included from /usr/src/kerberos5/lib/libkafs5/../../../crypto/heimdal/lib/kafs/afssys.c:34: In file included from /usr/src/kerberos5/lib/libkafs5/../../../crypto/heimdal/lib/kafs/kafs_locl.h:99: /usr/src/kerberos5/lib/libkafs5/../../../crypto/heimdal/lib/krb5/krb5-v4compat.h:39:10: fatal error: 'krb_err.h' file not found ======= `make buildworld` snippet 1 ends ======= ======= `make buildworld` snippet 2 begins ======= ===> kerberos5/lib/libkafs5 (install) sh /usr/src/tools/install.sh -C -o root -g wheel -m 444 libkafs5.a /usr/obj/usr/src/tmp/usr/lib install: libkafs5.a: No such file or directory ======= `make buildworld` snippet 2 ends ======= When building the system that is currently installed, the following "compiler" was used: ======= /path/to/clang begins ======= #!/bin/sh /path/to/real/clang "$@" || /path/to/real/clang --sysroot=/usr/obj/usr/src/tmp "$@" ======= /path/to/clang ends ======= Also, the following patch was applied to the source tree: ======= diff begins ======= Index: Makefile.inc1 =================================================================== --- Makefile.inc1 (revision 251352) +++ Makefile.inc1 (working copy) @@ -722,7 +722,7 @@ ITOOLS= [ awk cap_mkdb cat chflags chmod chown \ date echo egrep find grep id install ${_install-info} \ ln lockf make mkdir mtree ${_nmtree_itools} mv pwd_mkdb \ - rm sed sh sysctl test true uname wc ${_zoneinfo} + rm sed sh sysctl test true uname wc ${_zoneinfo} btxld ls mv cp dd # # distributeworld Index: usr.bin/xlint/llib/Makefile =================================================================== --- usr.bin/xlint/llib/Makefile (revision 251352) +++ usr.bin/xlint/llib/Makefile (working copy) @@ -9,9 +9,9 @@ CLEANFILES+= ${LIBS} llib-lposix.ln: llib-lposix - ${LINT} ${LINTFLAGS} -Cposix ${.ALLSRC} + CC=${CC:Q} ${LINT} ${LINTFLAGS} -Cposix ${.ALLSRC} llib-lstdc.ln: llib-lstdc - ${LINT} ${LINTFLAGS} -Cstdc ${.ALLSRC} + CC=${CC:Q} ${LINT} ${LINTFLAGS} -Cstdc ${.ALLSRC} .include ======= diff ends =======