When building world foor 11.2 Stable on 10.1 stable, I got the follwing error : <building /usr/src/contrib/llvm/tools/clang/lib/CodeGen/CGBlocks.cpp .... > 1. <eof> parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module '/usr/src/contrib/llvm/tools/clang/lib/Cod eGen/CGBlocks.cpp'. 4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@_ZN5clang7CodeGen15CodeGe nFunction12EmitCallArgsINS_17FunctionProtoTypeEEEvRNS0_11CallArgListEPKT_N4llvm14iterator_rangeIN S_4Stmt17ConstExprIteratorEEENS1_14AbstractCalleeEjNS1_15EvaluationOrderE' c++: error: unable to execute command: Segmentation fault (core dumped) c++: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 Target: x86_64-unknown-freebsd10.1 Thread model: posix Dump of the diagnostic msg : more /tmp/CGBlocks-c8742e.sh "/usr/bin/c++" -cc1 -triple x86_64-unknown-freebsd10.1 -emit-obj -disable-free -disable-llvm-verifier -main-file-name CGBlocks.cpp -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -ffunction-sections -fdata-sections -sys-header-deps -D "LLVM_BUILD_GLOBAL_ISEL" -D "__STDC_LIMIT_MACROS" -D "__STDC_CONSTANT_MACROS" -D "NDEBUG" -D "LLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd11.2\"" -D "LLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd11.2\"" -D "DEFAULT_SYSROOT=\"/usr/obj/usr/src/tmp\"" -D "LLVM_TARGET_ENABLE_AARCH64" -D "LLVM_TARGET_ENABLE_ARM" -D "LLVM_TARGET_ENABLE_MIPS" -D "LLVM_TARGET_ENABLE_POWERPC" -D "LLVM_TARGET_ENABLE_SPARC" -D "LLVM_TARGET_ENABLE_X86" -D "LLVM_NATIVE_ASMPARSER=LLVMInitializeX86AsmParser" -D "LLVM_NATIVE_ASMPRINTER=LLVMInitializeX86AsmPrinter" -D "LLVM_NATIVE_DISASSEMBLER=LLVMInitializeX86Disassembler" -D "LLVM_NATIVE_TARGET=LLVMInitializeX86Target" -D "LLVM_NATIVE_TARGETINFO=LLVMInitializeX86TargetInfo" -D "LLVM_NATIVE_TARGETMC=LLVMInitializeX86TargetMC" -O2 -Wno-c++11-extensions -std=c++11 -fdeprecated-macro -ferror-limit 19 -fmessage-length 97 -mstackrealign -fno-rtti -fobjc-runtime=gnustep -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -x c++ CGBlocks-c8742e.cpp
Reclassify. IIUC you may have to upgrade from 10.1 to 10.3 and only then to 11.2.
I don't think we can help you :(. We do constantly try to test some upgrade paths: https://ci.freebsd.org/ It is highly recommended that you are on the latest released version (freebsd-update(8) is your friend) before rebuilding a new version, but we can't cover all cases.
This isn't a supported configuration. You'll need to upgrade to 10.4 to get a wide range of compiler and c++ runtime fixed.