Bug 245046 - Error while building FreeBSD 12.1 releng
Summary: Error while building FreeBSD 12.1 releng
Status: Closed Not A Bug
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.1-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Kubilay Kocak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-25 07:38 UTC by Vaibhav Kurhe
Modified: 2020-05-04 20:35 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 Vaibhav Kurhe 2020-03-25 07:38:16 UTC
--- CodeGen/SelectionDAG/SelectionDAG.o ---
c++: error: unable to execute command: Killed
c++: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1)
Target: x86_64-unknown-freebsd12.1
Thread model: posix
InstalledDir: /usr/bin
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.
--- CodeGen/SelectionDAG/DAGCombiner.o ---
c++: error: unable to execute command: Killed
c++: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1)
Target: x86_64-unknown-freebsd12.1
Thread model: posix
InstalledDir: /usr/bin
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.
--- CodeGen/SlotIndexes.o ---
c++  -target x86_64-unknown-freebsd12.1 --sysroot=/usr/home/<username>/Downloads/freebsd/usr/obj/usr/home/<username>/Downloads/freebsd/amd64.amd64/tmp -B/usr/home/<username>/Downloads/freebsd/usr/obj/usr/home/<username>/Downloads/freebsd/amd64.amd64/tmp/usr/bin  -O2 -pipe -I/usr/home/<username>/Downloads/freebsd/usr/obj/usr/home/<username>/Downloads/freebsd/amd64.amd64/lib/clang/libllvm -I/usr/home/<username>/Downloads/freebsd/contrib/llvm/lib/Target/AArch64 -I/usr/home/<username>/Downloads/freebsd/contrib/llvm/lib/Target/ARM -I/usr/home/<username>/Downloads/freebsd/contrib/llvm/lib/Target/Mips -I/usr/home/<username>/Downloads/freebsd/contrib/llvm/lib/Target/PowerPC -I/usr/home/<username>/Downloads/freebsd/contrib/llvm/lib/Target/Sparc -I/usr/home/<username>/Downloads/freebsd/contrib/llvm/lib/Target/X86 -I/usr/home/<username>/Downloads/freebsd/lib/clang/include -I/usr/home/<username>/Downloads/freebsd/contrib/llvm/include -DLLVM_BUILD_GLOBAL_ISEL -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DNDEBUG -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd12.1\" -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd12.1\" -DDEFAULT_SYSROOT=\"\" -DLLVM_TARGET_ENABLE_AARCH64 -DLLVM_TARGET_ENABLE_ARM -DLLVM_TARGET_ENABLE_MIPS -DLLVM_TARGET_ENABLE_POWERPC -DLLVM_TARGET_ENABLE_SPARC -DLLVM_TARGET_ENABLE_X86 -DLLVM_NATIVE_ASMPARSER=LLVMInitializeX86AsmParser -DLLVM_NATIVE_ASMPRINTER=LLVMInitializeX86AsmPrinter -DLLVM_NATIVE_DISASSEMBLER=LLVMInitializeX86Disassembler -DLLVM_NATIVE_TARGET=LLVMInitializeX86Target -DLLVM_NATIVE_TARGETINFO=LLVMInitializeX86TargetInfo -DLLVM_NATIVE_TARGETMC=LLVMInitializeX86TargetMC -ffunction-sections -fdata-sections -gline-tables-only -MD -MF.depend.CodeGen_SlotIndexes.o -MTCodeGen/SlotIndexes.o -fstack-protector-strong -Qunused-arguments  -fno-exceptions -fno-rtti -gline-tables-only -std=c++11    -stdlib=libc++ -Wno-c++11-extensions  -c /usr/home/<username>/Downloads/freebsd/contrib/llvm/lib/CodeGen/SlotIndexes.cpp -o CodeGen/SlotIndexes.o
--- CodeGen/SelectionDAG/DAGCombiner.o ---
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/DAGCombiner-870457.cpp
c++: note: diagnostic msg: /tmp/DAGCombiner-870457.sh
c++: note: diagnostic msg: 

********************
--- CodeGen/SelectionDAG/SelectionDAG.o ---
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/SelectionDAG-038347.cpp
c++: note: diagnostic msg: /tmp/SelectionDAG-038347.sh
c++: note: diagnostic msg: 

********************
*** [CodeGen/SelectionDAG/SelectionDAG.o] Error code 254

make[6]: stopped in /usr/home/<username>/Downloads/freebsd/lib/clang/libllvm
--- CodeGen/SelectionDAG/DAGCombiner.o ---
*** [CodeGen/SelectionDAG/DAGCombiner.o] Error code 254

make[6]: stopped in /usr/home/<username>/Downloads/freebsd/lib/clang/libllvm
2 errors

make[6]: stopped in /usr/home/<username>/Downloads/freebsd/lib/clang/libllvm
*** [all_subdir_lib/clang/libllvm] Error code 2

make[5]: stopped in /usr/home/<username>/Downloads/freebsd/lib/clang
1 error

make[5]: stopped in /usr/home/<username>/Downloads/freebsd/lib/clang
*** [all_subdir_lib/clang] Error code 2

make[4]: stopped in /usr/home/<username>/Downloads/freebsd/lib
1 error

make[4]: stopped in /usr/home/<username>/Downloads/freebsd/lib
*** [lib__L] Error code 2

make[3]: stopped in /usr/home/<username>/Downloads/freebsd
1 error

make[3]: stopped in /usr/home/<username>/Downloads/freebsd
*** [libraries] Error code 2

make[2]: stopped in /usr/home/<username>/Downloads/freebsd
1 error

make[2]: stopped in /usr/home/<username>/Downloads/freebsd
*** [_libraries] Error code 2

make[1]: stopped in /usr/home/<username>/Downloads/freebsd
1 error

make[1]: stopped in /usr/home/<username>/Downloads/freebsd
*** [buildworld] Error code 2

make: stopped in /usr/home/<username>/Downloads/freebsd
1 error

make: stopped in /usr/home/<username>/Downloads/freebsd
Comment 1 Vaibhav Kurhe 2020-03-25 07:42:35 UTC
Getting error while trying to build FreeBSD 12.1 releng version.

The command I have used is :-
make -j8 TARGET_ARCH=amd64 buildworld
Comment 2 Ed Maste freebsd_committer freebsd_triage 2020-03-30 17:44:36 UTC
Please check your system log for evidence of OOM process termination, and try a lower -j value or no -j at all.
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2020-04-07 03:18:13 UTC
@Reporter Please re-open this issue if the the symptoms are still reproducible after testing feedback from comment 2, and the issue is not related to being out of memory
Comment 4 Vaibhav Kurhe 2020-05-04 20:35:18 UTC
Thanks! It turned out to be a out of swap space error. I had to add a new swap partition and then it worked.