Solved make buildworld crashed?

Code:
FreeBSD swdevil.de 10.0-RELEASE-p18 FreeBSD 10.0-RELEASE-p18 #0: Wed Feb 25 01:08:00 UTC 2015     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
I try to upgrade to version 11.0. In /usr/src I do:
svn checkout svn://svn.freebsd.org/base/release/11.0.0
make cleandir && make cleandir may, this is obsolete.
make buildworld
after a while.........................................................................................................................................................
error:
it stops here - what can I do to go on?
Code:
clang++  -O2 -pipe -I/home/bsdsrc/lib/clang/libclangcodegen/../../../contrib/llvm/include
         -I/home/bsdsrc/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/include
         -I/home/bsdsrc/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/lib/CodeGen
         -I.
         -I/home/bsdsrc/lib/clang/libclangcodegen/../../../contrib/llvm/../../lib/clang/include
         -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DNDEBUG -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd11.0\" -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd11.0\" -DDEFAULT_SYSROOT=\ "/usr/obj/home/bsdsrc/tmp\" -MD -MF.depend.CGBlocks.o -MTCGBlocks.o -Qunused-arguments
         -I/usr/obj/home/bsdsrc/tmp/legacy/usr/include  
         -std=c++11
         -fno-exceptions -fno-rtti -stdlib=libc++ -Wno-c++11-extensions  
         -c /home/bsdsrc/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/lib/CodeGen/CGBlocks.cpp
         -o CGBlocks.o
Stack dump:
0.      Program arguments: /usr/bin/clang++ -cc1 -triple x86_64-unknown-freebsd10.0 -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/home/bsdsrc/tmp/home/bsdsrc/lib/clang/libclangcodegen/CGBlocks.o -resource-dir /usr/bin/../lib/clang/3.3 -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/home/bsdsrc/tmp" -I /home/bsdsrc/lib/clang/libclangcodegen/../../../contrib/llvm/include -I /home/bsdsrc/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/include -I /home/bsdsrc/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/lib/CodeGen -I . -I /home/bsdsrc/lib/clang/libclangcodegen/../../../contrib/llvm/../../lib/clang/include -I /usr/obj/home/bsdsrc/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/home/bsdsrc/tmp/home/bsdsrc/lib/clang/libclangcodegen -ferror-limit 19 -fmessage-length 152 -mstackrealign -fno-rtti -fobjc-runtime=gnustep -fobjc-default-synthesize-properties -fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops -o CGBlocks.o -x c++ /home/bsdsrc/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 '/home/bsdsrc/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'
clang++: error: unable to execute command: Segmentation fault
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: x86_64-unknown-freebsd10.0
Thread model: posix
clang++: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/
        and include the crash backtrace, preprocessed source, and associated run script.
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/CGBlocks-oYG1wH.cpp
clang++: note: diagnostic msg: /tmp/CGBlocks-oYG1wH.sh
clang++: note: diagnostic msg:

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

Stop.
bmake[4]: stopped in /home/bsdsrc/lib/clang/libclangcodegen
*** Error code 1

Stop.
bmake[3]: stopped in /home/bsdsrc/lib/clang
*** Error code 1
hints: clang++ command I have formatted for better reading - I use a link /usr/src to /home/bsdsrc/ because /usr is full.

CGBlocks-oYG1wH.cpp.zip
CGBlocks-oYG1wH.sh.zip

This is the version of the compiler:
Code:
=> clang -v
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: x86_64-unknown-freebsd10.0
Thread model: posix
 

Attachments

  • CGBlocks-oYG1wH.cpp.zip
    1.5 MB · Views: 713
  • CGBlocks-oYG1wH.sh.zip
    673 bytes · Views: 266
I use a link /usr/src to /home/bsdsrc/ because /usr is full.
There's actually no need for the symlink, it doesn't really matter where the source is. But you will need to set MAKEOBJDIRPREFIX to somewhere with lots of space, or else it will try to build intermediary files in /usr/obj. See build(7).
 
It has been reported several times that it would be better to upgrade from 10.0 to 10.3 first, and to 11.0 later, as an exception over the traditional upgrade from "any" to "latest". SirDice will confirm about, or not.
 
It has been reported several times that it would be better to upgrade from 10.0 to 10.3 first, and to 11.0 later, as an exception over the traditional upgrade from "any" to "latest". SirDice will confirm about, or not.
Hello thank all for yours advices.
I have self solved it because I suppose that the compiler version of
Code:
clang++
is to old. But because the OS is also to old pkghas not worked nor installing anything via /usr/ports. That was also the point to make an upgrade now.
I have decide first upgrade to 10.3 with freebsd-update:
freebsd-update -r 10.3-RELEASE upgrade
That has fixed the problem. :)
Now I'm working on, to get FreeBSD 11.0 through compiling the sources. There is no special need to do this - just for me I like to go deeper in my knowledge how that can be made.
Just two things now I have reached:
Code:
    --------------------------------------------------------------
   >>> World build completed on Sat Jan 28 00:35:34 CET 2017
   -------------------------------------------------------------- 
   --------------------------------------------------------------
   >>> Kernel build for GENERIC completed on Sat Jan 28 01:24:44 CET 2017
   --------------------------------------------------------------
I will go on with the steps from the handbook...
https://www.freebsd.org/doc/handbook/makeworld.html
 
Last edited by a moderator:
Back
Top