[Bug 200868] [CURRENT r284407] buildworld failure due to missing #includes and weird share/mk issues

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jun 15 08:06:43 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200868

            Bug ID: 200868
           Summary: [CURRENT r284407] buildworld failure due to missing
                    #includes and weird share/mk issues
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: ohartman at zedat.fu-berlin.de

After I udated sources from r284336 to >r284404, I'm unable to "buildworld
buildkernel" a system.

The buildworld process bails out at different steps depending on the settings
in /etc/src.conf - but either with or without a custom /etc/src.conf, the
sources do not build anymore. A very early failure is triggered if one is using
the options
[...]
#
CXXFLAGS+=              -std=c++11
#
WITH_CLANG_FULL=        YES
WITH_CLANG_EXTRAS=      YES
WITH_LLDB=              YES
[...]

After a few initial steps, my system stops building with the error I attached
below as an extraction.

Avoiding any /etc/src.conf (my removing it) makes the buildprocess bailing out
later in the process.

The problem is seen on all platfoprms I use/maintain and also seen by many
other users.


regards,
Oliver

[...]
===> 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
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-freebsd11.0\"
-DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd11.0\" -DDEFAULT_SYSROOT=\"\"
-I/usr/obj/usr/src/tmp/legacy/usr/include -std=gnu99  
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/ConvertUTF.c
/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
mkdep -f .depend -a      -std=c++11 -std=c++11  -stdlib=libc++   
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/APFloat.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/APInt.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/APSInt.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/ARMBuildAttrs.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/ARMWinEH.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Allocator.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Atomic.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/BlockFrequency.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/BranchProbability.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/CommandLine.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Compression.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/ConvertUTFWrapper.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/CrashRecoveryContext.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/DAGDeltaAlgorithm.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/DataExtractor.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Debug.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/DeltaAlgorithm.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Dwarf.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/DynamicLibrary.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Errno.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/ErrorHandling.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/FileOutputBuffer.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/FoldingSet.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/FormattedStream.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/GraphWriter.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Hashing.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Host.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/IntEqClasses.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/IntervalMap.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/IntrusiveRefCntPtr.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/IsInf.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/IsNAN.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/LEB128.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/LineIterator.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Locale.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/LockFileManager.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/MD5.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/ManagedStatic.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/MathExtras.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Memory.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/MemoryBuffer.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/MemoryObject.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Mutex.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Options.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Path.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/PluginLoader.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/PrettyStackTrace.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Process.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Program.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/RWMutex.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/RandomNumberGenerator.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Regex.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/ScaledNumber.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/SearchForAddressOfSpecialSymbol.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Signals.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/SmallPtrSet.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/SmallVector.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/SourceMgr.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/SpecialCaseList.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Statistic.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/StreamingMemoryObject.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/StringExtras.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/StringMap.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/StringPool.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/StringRef.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/TargetRegistry.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/ThreadLocal.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Threading.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/TimeValue.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Timer.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/ToolOutputFile.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Triple.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Twine.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Unicode.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Valgrind.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Watchdog.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/YAMLParser.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/YAMLTraits.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/circular_raw_ostream.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/raw_os_ostream.cpp
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/raw_ostream.cpp 
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/APFloat.cpp:15:10:
fatal error: 'llvm/ADT/APFloat.h' file not found
#include "llvm/ADT/APFloat.h"
         ^
1 error generated.
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/APInt.cpp:15:10:
fatal error: 'llvm/ADT/APInt.h' file not found
#include "llvm/ADT/APInt.h"
[...]

[...]

1 error generated.
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/raw_ostream.cpp:14:10:
fatal error: 'llvm/Support/raw_ostream.h' file not found
#include "llvm/Support/raw_ostream.h"
         ^
1 error generated.
mkdep: compile failed
*** Error code 1

Stop.
make[3]: stopped in /usr/src/lib/clang/libllvmsupport
.CURDIR='/usr/src/lib/clang/libllvmsupport'
.MAKE='make'
.OBJDIR='/usr/obj/usr/src/tmp/usr/src/lib/clang/libllvmsupport'
.TARGETS='depend'
DESTDIR=''
LD_LIBRARY_PATH=''
MACHINE='amd64'
MACHINE_ARCH='amd64'
MAKEOBJDIRPREFIX='/usr/obj/usr/src/tmp'
MAKESYSPATH=''
MAKE_VERSION='20150606'
SRCTOP='/usr/src'
OBJTOP=''
.MAKE.MAKEFILES='/usr/src/share/mk/sys.mk /usr/src/share/mk/bsd.mkopt.mk
/etc/make.conf /usr/local/etc/ports.conf /usr/src/share/mk/local.sys.mk
/usr/src/share/mk/src.sys.mk /etc/src.conf /usr/src/share/mk/bsd.cpu.mk
/usr/src/lib/clang/libllvmsupport/Makefile /usr/src/share/mk/src.opts.mk
/usr/src/share/mk/bsd.own.mk /usr/src/share/mk/bsd.opts.mk
/usr/src/share/mk/bsd.compiler.mk /usr/src/lib/clang/clang.lib.mk
/usr/src/lib/clang/clang.build.mk /usr/src/tools/build/mk/bsd.lib.mk
/usr/src/share/mk/bsd.lib.mk /usr/src/share/mk/bsd.init.mk
/usr/src/share/mk/local.init.mk /usr/src/share/mk/bsd.libnames.mk
/usr/src/share/mk/src.libnames.mk /usr/src/share/mk/bsd.symver.mk
/usr/src/share/mk/bsd.nls.mk /usr/src/share/mk/bsd.files.mk
/usr/src/share/mk/bsd.incs.mk /usr/src/share/mk/bsd.links.mk
/usr/src/share/mk/bsd.dep.mk /usr/src/share/mk/bsd.obj.mk
/usr/src/share/mk/bsd.subdir.mk /usr/src/share/mk/bsd.sys.mk
/usr/src/tools/build/mk/Makefile.boot'
.PATH='. /usr/src/lib/clang/libllvmsupport
/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support'
*** Error code 1

Stop.
make[2]: stopped in /usr/src
.CURDIR='/usr/src'
.MAKE='make'
.OBJDIR='/usr/obj/usr/src/tmp/usr/src'
.TARGETS='bootstrap-tools'
DESTDIR=''
LD_LIBRARY_PATH=''
MACHINE='amd64'
MACHINE_ARCH='amd64'
MAKEOBJDIRPREFIX='/usr/obj/usr/src/tmp'
MAKESYSPATH=''
MAKE_VERSION='20150606'
SRCTOP='/usr/src'
OBJTOP=''
.MAKE.MAKEFILES='/usr/src/share/mk/sys.mk /usr/src/share/mk/bsd.mkopt.mk
/etc/make.conf /usr/local/etc/ports.conf /usr/src/share/mk/local.sys.mk
/usr/src/share/mk/src.sys.mk /etc/src.conf /usr/src/share/mk/bsd.cpu.mk
/usr/src/Makefile.inc1 /usr/src/share/mk/src.opts.mk
/usr/src/share/mk/bsd.own.mk /usr/src/share/mk/bsd.opts.mk
/usr/src/share/mk/bsd.compiler.mk /usr/src/share/mk/bsd.arch.inc.mk
/usr/src/share/mk/bsd.subdir.mk /usr/src/share/mk/bsd.init.mk
/usr/src/share/mk/local.init.mk'
.PATH='. /usr/src'
*** Error code 1

[...]

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list