Created attachment 461788 [details] build.log # emerge --info | grep default/bsd Portage 2.3.3 (python 3.4.5-final-0, default/bsd/fbsd/amd64/11.0, gcc-5.4.0, freebsd-lib-11.0-r1, 11.0-r1-Gentoo amd64) # USE="-doc" MAKEOPTS=-j1 emerge -pv =clang-4.0.0_rc1 [ebuild N #] sys-devel/llvm-4.0.0_rc1:0/4::gentoo USE="libffi ncurses -debug -doc (-gold) -libedit -multitarget {-test}" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="BPF (X86) -AArch64 -AMDGPU -ARM -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -XCore" 0 KiB [ebuild N #] sys-libs/compiler-rt-sanitizers-4.0.0_rc1:0/4.0::gentoo USE="{-test}" 0 KiB [ebuild N #] sys-libs/compiler-rt-4.0.0_rc1:0/4.0::gentoo USE="{-test}" 0 KiB [ebuild N #] sys-devel/clang-runtime-4.0.0_rc1::gentoo USE="compiler-rt sanitize -libcxx -openmp" ABI_X86="(64) -32 (-x32)" 0 KiB [ebuild N #] sys-devel/clang-4.0.0_rc1:0/4::gentoo USE="static-analyzer -debug -default-compiler-rt -default-libcxx -doc -multitarget -python {-test} -xml" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="BPF (X86) -AArch64 -AMDGPU -ARM -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -XCore" PYTHON_TARGETS="python2_7" 0 KiB # USE="-doc" MAKEOPTS=-j1 emerge -pv =llvm-4.0.0_rc1 [ebuild N #] sys-devel/llvm-4.0.0_rc1:0/4::gentoo USE="libffi ncurses -debug -doc (-gold) -libedit -multitarget {-test}" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="BPF (X86) -AArch64 -AMDGPU -ARM -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -XCore" 0 KiB # USE="-doc" MAKEOPTS=-j1 emerge =llvm-4.0.0_rc1 <snip> >>> Working in BUILD_DIR: "/var/tmp/portage/sys-devel/llvm-4.0.0_rc1/work/llvm-4.0.0rc1.src-abi_x86_64.amd64_fbsd" ninja -j1 -v [1/1358] /usr/bin/x86_64-gentoo-freebsd11.0-g++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Demangle -I/var/tmp/portage/sys-devel/llvm-4.0.0_rc1/work/llvm-4.0.0rc1.src/lib/Demangle -Iinclude -I/var/tmp/portage/sys-devel/llvm-4.0.0_rc1/work/llvm-4.0.0rc1.src/include -I/usr/local/include -O2 -pipe -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -Werror=date-time -std=c++11 -ffunction-sections -fdata-sections -fPIC -MD -MT lib/Demangle/CMakeFiles/LLVMDemangle.dir/ItaniumDemangle.cpp.o -MF lib/Demangle/CMakeFiles/LLVMDemangle.dir/ItaniumDemangle.cpp.o.d -o lib/Demangle/CMakeFiles/LLVMDemangle.dir/ItaniumDemangle.cpp.o -c /var/tmp/portage/sys-devel/llvm-4.0.0_rc1/work/llvm-4.0.0rc1.src/lib/Demangle/ItaniumDemangle.cpp FAILED: lib/Demangle/CMakeFiles/LLVMDemangle.dir/ItaniumDemangle.cpp.o Full log, please see attachment.
Hmm, I suppose it's something specific to FreeBSD gcc build. I wonder if anyone else does these. Would it be possible for you to try -9999, just in case?
Now, we can use gcc-6.3.0 on Gentoo/FreeBSD. This bug will be fixed with gcc-6.0 or later version. Details please see bug 607620. Please switch to latest version of gcc before you run `emerge sys-devel/llvm sys-devel/clang`.