Bug 217695 - buildworld compile error : libclangcodegen (latest src update (11.0) . rev 314125)
Summary: buildworld compile error : libclangcodegen (latest src update (11.0) . rev 3...
Status: Closed DUPLICATE of bug 215985
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.0-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-11 09:00 UTC by netilesik
Modified: 2017-03-12 00:53 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description netilesik 2017-03-11 09:00:36 UTC
SVN SOURCE
URL: svn://svn0.us-west.freebsd.org/base/releng/11.0
Relative URL: ^/releng/11.0
Repository Root: svn://svn0.us-west.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 315061
Node Kind: directory
Schedule: normal
Last Changed Author: delphij
Last Changed Rev: 314125
Last Changed Date: 2017-02-23 09:11:48 +0200 (Thu, 23 Feb 2017)


---------------------------------------
"make clean buildworld" stops:


0.      Program arguments: /usr/bin/c++ -cc1 -triple x86_64-unknown-freebsd10.2 -emit-obj -disable-free -disable-llvm-verifier -main-file-name CGBlocks.cpp -mrelocation-model static -mdisable-fp-elim -relaxed-aliasing -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -coverage-file /usr/obj/usr/src/tmp/usr/src/lib/clang/libclangcodegen/CGBlocks.o -resource-dir /usr/bin/../lib/clang/3.4.1 -dependency-file .depend.CGBlocks.o -sys-header-deps -MT CGBlocks.o -D LLVM_ON_UNIX -D LLVM_ON_FREEBSD -D __STDC_LIMIT_MACROS -D __STDC_CONSTANT_MACROS -D NDEBUG -D LLVM_DEFAULT_TARGET_TRIPLE="x86_64-unknown-freebsd11.0" -D LLVM_HOST_TRIPLE="x86_64-unknown-freebsd11.0" -D DEFAULT_SYSROOT="/usr/obj/usr/src/tmp" -I /usr/src/lib/clang/libclangcodegen/../../../contrib/llvm/include -I /usr/src/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/include -I /usr/src/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/lib/CodeGen -I . -I /usr/src/lib/clang/libclangcodegen/../../../contrib/llvm/../../lib/clang/include -I /usr/obj/usr/src/tmp/legacy/usr/include -internal-isystem /usr/include/c++/v1 -O2 -Wno-c++11-extensions -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /usr/obj/usr/src/tmp/usr/src/lib/clang/libclangcodegen -ferror-limit 19 -fmessage-length 175 -mstackrealign -fno-rtti -fobjc-runtime=gnustep -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o CGBlocks.o -x c++ /usr/src/lib/clang/libclangcodegen/../../../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/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/lib/CodeGen/CGBlocks.cpp'.
4.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@_ZN5clang7CodeGen15CodeGenFunction12EmitCallArgsINS_17FunctionProtoTypeEEEvRNS0_11CallArgListEPKT_N4llvm14iterator_rangeINS_4Stmt17ConstExprIteratorEEEPKNS_12FunctionDeclEj'
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.2
Thread model: posix
c++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
c++: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/CGBlocks-2cd2a6.cpp
c++: note: diagnostic msg: /tmp/CGBlocks-2cd2a6.sh
c++: note: diagnostic msg: 

********************
*** Error code 254

Stop.
bmake[4]: stopped in /usr/src/lib/clang/libclangcodegen
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2017-03-12 00:53:52 UTC
Please follow the clearly marked section at the top of /usr/src/UPDATING, e.g.:

****************************** SPECIAL WARNING: ******************************

        Due to a bug in some versions of clang that's very hard to workaround in
        the upgrade process, to upgrade to -current you must first upgrade
        either stable/9 after r286035 or stable/10 after r286033 (including
        10.3-RELEASE) or current after r286007 (including stable/11 and
        11.0-RELEASE). These revisions post-date the 10.2 and 9.3 releases, so
        you'll need to take the unusual step of upgrading to the tip of the
        stable branch before moving to 11 or -current via a source upgrade.
        stable/11 and 11.0-RELEASE have working newer compiler. This differs
        from the historical situation where one could upgrade from anywhere on
        the last couple of stable branches, so be careful.

        If you're running a hybrid system on 9.x or 10.x with an updated clang
        compiler or are using an supported external toolchain, the build system
        will allow the upgrade. Otherwise it will print a reminder.

****************************** SPECIAL WARNING: ******************************

Your host system seems to be 10.2, so you should upgrade to stable/10 r286033 or later first.

*** This bug has been marked as a duplicate of bug 215985 ***