base/projects/clang3.8.0-import -r294096 buildworld targeting arm (for rpi2): assertion failed

Mark Millard markmi at dsl-only.net
Fri Jan 15 22:15:33 UTC 2016


My attempted buildworld of -r294096 from amd64 targeting arm for an rpi2 stopped with:

> --- all_subdir_usr.sbin ---
> Assertion failed: (Offset <= PieceOffset && "overlapping or duplicate pieces"), function finalize, file /usr/src/lib/clang/libllvmasmprinter/../../../contrib/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp, line 1561.
. . .
> --- all_subdir_usr.sbin ---
> clang: note: diagnostic msg: 
> ********************
> 
> PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
> Preprocessed source(s) and associated run script(s) are located at:
> clang: note: diagnostic msg: /tmp/parser-392d84.c
> clang: note: diagnostic msg: /tmp/parser-392d84.sh
> clang: note: diagnostic msg: 
> 
> ********************
> *** [parser.o] Error code 254
> 
> make[4]: stopped in /usr/src/usr.sbin/nscd
> 1 error

Detailed context:

make.conf: empty.

src.conf:

> TO_TYPE=armv6
> #
> KERNCONF=RPI2-NODBG
> TARGET=arm
> .if ${.MAKE.LEVEL} == 0
> TARGET_ARCH=${TO_TYPE}
> .export TARGET_ARCH
> .endif
> #
> WITH_FAST_DEPEND=
> WITH_LIBCPLUSPLUS=
> WITH_BINTOOLS_BOOTSTRAP=
> WITH_CLANG=
> WITH_CLANG_IS_CC=
> WITH_CLANG_FULL=
> WITH_LLDB=
> WITH_CLANG_EXTRAS=
> WITH_BOOT=
> #
> WITHOUT_LIB32=
> WITHOUT_ELFTOOLCHAIN_BOOTSTRAP=
> WITHOUT_CLANG_BOOTSTRAP=
> WITHOUT_GCC_BOOTSTRAP=
> WITHOUT_GCC=
> WITHOUT_GNUCXX=
> #
> NO_WERROR=
> MALLOC_PRODUCTION=
> #
> WITH_DEBUG=
> WITH_DEBUG_FILES=
> #
> .if ${.MAKE.LEVEL} == 0
> XCC=/usr/bin/clang -v -target ${TO_TYPE}--freebsd11.0-gnueabi -march=armv7a -mcpu=cortex-a7 -mno-unaligned-access
> XCXX=/usr/bin/clang++ -v -target ${TO_TYPE}--freebsd11.0-gnueabi -march=armv7a -mcpu=cortex-a7 -mno-unaligned-access
> XCPP=/usr/bin/clang-cpp -v -target ${TO_TYPE}--freebsd11.0-gnueabi -march=armv7a -mcpu=cortex-a7 -mno-unaligned-access
> .export XCC
> .export XCXX
> .export XCPP
> .endif
> #
> .if ${.MAKE.LEVEL} == 0
> CC=/usr/bin/clang -v
> CXX=/usr/bin/clang++ -v
> CPP=/usr/bin/clang-cpp -v
> .export CC
> .export CXX
> .export CPP
> .endif


RPI2-NODBG:

ident           RPI2-NODBG
> 
> include         "RPI2"
> 
> makeoptions     DEBUG=-g                # Build kernel with gdb(1) debug symbols
> options         ALT_BREAK_TO_DEBUGGER
> #options        VERBOSE_SYSINIT         # Enable verbose sysinit messages
> 
> options         KDB                     # Enable kernel debugger support
> 
> # For minimum debugger support (stable branch) use:
> #options        KDB_TRACE               # Print a stack trace for a panic
> options         DDB                     # Enable the kernel debugger
> 
> nooptions       INVARIANTS              # Enable calls of extra sanity checking
> nooptions       INVARIANT_SUPPORT       # Extra sanity checks of internal structures, required by INVARIANTS
> nooptions       WITNESS                 # Enable checks to detect deadlocks and cycles
> nooptions       WITNESS_SKIPSPIN        # Don't run witness on spinlocks for speed
> nooptions       DIAGNOSTIC


===
Mark Millard
markmi at dsl-only.net


More information about the freebsd-arm mailing list