Bug 229543 - problem building World clang
Summary: problem building World clang
Status: Closed Not Accepted
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 11.2-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-05 13:54 UTC by Ewout HAN
Modified: 2019-01-10 05:05 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ewout HAN 2018-07-05 13:54:12 UTC
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
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2018-08-12 14:32:00 UTC
Reclassify.

IIUC you may have to upgrade from 10.1 to 10.3 and only then to 11.2.
Comment 2 Pedro F. Giffuni freebsd_committer freebsd_triage 2019-01-10 03:55:13 UTC
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.
Comment 3 Brooks Davis freebsd_committer freebsd_triage 2019-01-10 05:05:50 UTC
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.