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 <bsd.prog.mk>
======= diff ends =======
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to