From owner-freebsd-questions@freebsd.org Sun Jul 19 18:38:39 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EA2AE9A6BF6; Sun, 19 Jul 2015 18:38:38 +0000 (UTC) (envelope-from vasya.pupkin.bsd@gmail.com) Received: from mail-yk0-x241.google.com (mail-yk0-x241.google.com [IPv6:2607:f8b0:4002:c07::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AB5541040; Sun, 19 Jul 2015 18:38:38 +0000 (UTC) (envelope-from vasya.pupkin.bsd@gmail.com) Received: by ykdu72 with SMTP id u72so7909422ykd.3; Sun, 19 Jul 2015 11:38:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=oYc3jhKs4Iw32Odte5B3bnQLKonFLFs6c/UsaXuK+LU=; b=px+zUhJjizZhxR4tMebqPUE6kZcGk2xxg4ACD3nQbAZbEFvyOQafEtKMHfjNBdT08J tN0dy7Q2Ew3kyQ4lfGcmbik3A2Bkna8P0i26IjIC+XfVzrT3ZSsTjlseiodZdF49ANvn kEwsS+Qa/qriNwjo2dvRTMZM4ErCGmxtdShDOPvY88qvhI1mGltVdkrrQLAbLLczmvjz tJtZmLaBHTPlXrvUpEBtTnyycdGDL7V/wBQVB+rBoA1NDe1QRnGWFzp+YKmzrcRaAmQM 0fBg1nbHIRgVQ0Hc4R9tIv3IAd1NXwzOpORXtRTUZL7lnqcAAAoW1rpBmS8xKgwCZtqp 70hA== MIME-Version: 1.0 X-Received: by 10.129.50.140 with SMTP id y134mr24889587ywy.39.1437331117790; Sun, 19 Jul 2015 11:38:37 -0700 (PDT) Received: by 10.37.25.9 with HTTP; Sun, 19 Jul 2015 11:38:37 -0700 (PDT) Date: Sun, 19 Jul 2015 23:38:37 +0500 Message-ID: Subject: On -CURRENT: (clang++), uid 0: exited on signal 11 (core dumped) From: =?UTF-8?B?0JLQsNGB0LjQu9C40Lkg0JjQstCw0L3QvtCy0LjRhw==?= To: freebsd-current@freebsd.org, freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jul 2015 18:38:39 -0000 Hi All! I have a FreeBSD box: FreeBSD BSD-VAIO 11.0-CURRENT FreeBSD 11.0-CURRENT #0: Mon Jul 13 19:51:01 MSK 2015 user@BSD-VAIO:/usr/obj/usr/src/sys/VAIO i386 That laptop has 256Mb of RAM + 2GB swap space. And that system I have in that way: 1. Install 9.1-i386-RELEASE (gcc compiler) 2. Update to 10-STABLE (build with gcc from 9-release, WITH_CLANG_IS_CC=yes in src.conf) 3. Update to -CURRENT (build with clang 3.4.1 from 10-STABLE) When I try to do: make buildworld, I have errors, and also when I try to build various ports I have similar error: On internet I read suggestions that this errors happens when out of some resources (RAM, disk space) and when that errors occurs, I have messages in /var/log/messages: Jul 19 22:53:49 BSD-VAIO kernel: pid 44827 (clang++), uid 0: exited on signal 11 (core dumped) ====================================================================== ===> lib/clang/libllvmaarch64instprinter (all) clang++ -Os -pipe -march=pentium-m -I/usr/src/lib/clang/libllvmaarch64instprinter/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvmaarch64instprinter/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvmaarch64instprinter/../../../contrib/llvm/lib/Target/AArch64/InstPrinter -I/usr/src/lib/clang/libllvmaarch64instprinter/../../../contrib/llvm/lib/Target/AArch64 -I. -I/usr/src/lib/clang/libllvmaarch64instprinter/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=\"i386-unknown-freebsd11.0\" -DLLVM_HOST_TRIPLE=\"i386-unknown-freebsd11.0\" -DDEFAULT_SYSROOT=\"/usr/obj/usr/src/tmp\" -DNDEBUG -Qunused-arguments -I/usr/obj/usr/src/tmp/legacy/usr/include -std=c++11 -fno-exceptions -fno-rtti -stdlib=libc++ -Wno-c++11-extensions -c /usr/src/lib/clang/libllvmaarch64instprinter/../../../contrib/llvm/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp -o AArch64InstPrinter.o building static llvmaarch64instprinter library ar -crD libllvmaarch64instprinter.a `NM='nm' lorder AArch64InstPrinter.o | tsort -q` ranlib -D libllvmaarch64instprinter.a ===> lib/clang/libllvmaarch64utils (all) clang++ -Os -pipe -march=pentium-m -I/usr/src/lib/clang/libllvmaarch64utils/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvmaarch64utils/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvmaarch64utils/../../../contrib/llvm/lib/Target/AArch64/Utils -I/usr/src/lib/clang/libllvmaarch64utils/../../../contrib/llvm/lib/Target/AArch64 -I. -I/usr/src/lib/clang/libllvmaarch64utils/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=\"i386-unknown-freebsd11.0\" -DLLVM_HOST_TRIPLE=\"i386-unknown-freebsd11.0\" -DDEFAULT_SYSROOT=\"/usr/obj/usr/src/tmp\" -DNDEBUG -Qunused-arguments -I/usr/obj/usr/src/tmp/legacy/usr/include -std=c++11 -fno-exceptions -fno-rtti -stdlib=libc++ -Wno-c++11-extensions -c /usr/src/lib/clang/libllvmaarch64utils/../../../contrib/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.cpp -o AArch64BaseInfo.o building static llvmaarch64utils library ar -crD libllvmaarch64utils.a `NM='nm' lorder AArch64BaseInfo.o | tsort -q` ranlib -D libllvmaarch64utils.a ===> lib/clang/libllvmarmasmparser (all) clang++ -Os -pipe -march=pentium-m -I/usr/src/lib/clang/libllvmarmasmparser/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvmarmasmparser/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvmarmasmparser/../../../contrib/llvm/lib/Target/ARM/AsmParser -I/usr/src/lib/clang/libllvmarmasmparser/../../../contrib/llvm/lib/Target/ARM -I. -I/usr/src/lib/clang/libllvmarmasmparser/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=\"i386-unknown-freebsd11.0\" -DLLVM_HOST_TRIPLE=\"i386-unknown-freebsd11.0\" -DDEFAULT_SYSROOT=\"/usr/obj/usr/src/tmp\" -DNDEBUG -Qunused-arguments -I/usr/obj/usr/src/tmp/legacy/usr/include -std=c++11 -fno-exceptions -fno-rtti -stdlib=libc++ -Wno-c++11-extensions -c /usr/src/lib/clang/libllvmarmasmparser/../../../contrib/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp -o ARMAsmParser.o building static llvmarmasmparser library ar -crD libllvmarmasmparser.a `NM='nm' lorder ARMAsmParser.o | tsort -q` ranlib -D libllvmarmasmparser.a ===> lib/clang/libllvmarmcodegen (all) clang++ -Os -pipe -march=pentium-m -I/usr/src/lib/clang/libllvmarmcodegen/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvmarmcodegen/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvmarmcodegen/../../../contrib/llvm/lib/Target/ARM -I. -I/usr/src/lib/clang/libllvmarmcodegen/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=\"i386-unknown-freebsd11.0\" -DLLVM_HOST_TRIPLE=\"i386-unknown-freebsd11.0\" -DDEFAULT_SYSROOT=\"/usr/obj/usr/src/tmp\" -DNDEBUG -Qunused-arguments -I/usr/obj/usr/src/tmp/legacy/usr/include -std=c++11 -fno-exceptions -fno-rtti -stdlib=libc++ -Wno-c++11-extensions -c /usr/src/lib/clang/libllvmarmcodegen/../../../contrib/llvm/lib/Target/ARM/A15SDOptimizer.cpp -o A15SDOptimizer.o clang++ -Os -pipe -march=pentium-m -I/usr/src/lib/clang/libllvmarmcodegen/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvmarmcodegen/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvmarmcodegen/../../../contrib/llvm/lib/Target/ARM -I. -I/usr/src/lib/clang/libllvmarmcodegen/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=\"i386-unknown-freebsd11.0\" -DLLVM_HOST_TRIPLE=\"i386-unknown-freebsd11.0\" -DDEFAULT_SYSROOT=\"/usr/obj/usr/src/tmp\" -DNDEBUG -Qunused-arguments -I/usr/obj/usr/src/tmp/legacy/usr/include -std=c++11 -fno-exceptions -fno-rtti -stdlib=libc++ -Wno-c++11-extensions -c /usr/src/lib/clang/libllvmarmcodegen/../../../contrib/llvm/lib/Target/ARM/ARMAsmPrinter.cpp -o ARMAsmPrinter.o Stack dump: 0. Program arguments: /usr/bin/clang++ -cc1 -triple i386-unknown-freebsd11.0 -emit-obj -disable-free -disable-llvm-verifier -main-file-name ARMAsmPrinter.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -relaxed-aliasing -masm-verbose -mconstructor-aliases -target-cpu pentium-m -dwarf-column-info -coverage-file /usr/obj/usr/src/tmp/usr/src/lib/clang/libllvmarmcodegen/ARMAsmPrinter.o -resource-dir /usr/bin/../lib/clang/3.6.1 -D LLVM_ON_UNIX -D LLVM_ON_FREEBSD -D __STDC_LIMIT_MACROS -D __STDC_CONSTANT_MACROS -D LLVM_DEFAULT_TARGET_TRIPLE="i386-unknown-freebsd11.0" -D LLVM_HOST_TRIPLE="i386-unknown-freebsd11.0" -D DEFAULT_SYSROOT="/usr/obj/usr/src/tmp" -D NDEBUG -I /usr/src/lib/clang/libllvmarmcodegen/../../../contrib/llvm/include -I /usr/src/lib/clang/libllvmarmcodegen/../../../contrib/llvm/tools/clang/include -I /usr/src/lib/clang/libllvmarmcodegen/../../../contrib/llvm/lib/Target/ARM -I . -I /usr/src/lib/clang/libllvmarmcodegen/../../../contrib/llvm/../../lib/clang/include -I /usr/obj/usr/src/tmp/legacy/usr/include -internal-isystem /usr/include/c++/v1 -Os -Wno-c++11-extensions -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /usr/obj/usr/src/tmp/usr/src/lib/clang/libllvmarmcodegen -ferror-limit 19 -fmessage-length 271 -mstackrealign -fno-rtti -fobjc-runtime=gnustep -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o ARMAsmPrinter.o -x c++ /usr/src/lib/clang/libllvmarmcodegen/../../../contrib/llvm/lib/Target/ARM/ARMAsmPrinter.cpp 1. parser at end of file 2. Per-module optimization passes 3. Running pass 'CallGraph Pass Manager' on module '/usr/src/lib/clang/libllvmarmcodegen/../../../contrib/llvm/lib/Target/ARM/ARMAsmPrinter.cpp'. 4. Running pass 'Jump Threading' on function '@_ZN4llvm13ARMAsmPrinter15PrintAsmOperandEPKNS_12MachineInstrEjjPKcRNS_11raw_ostreamE' clang++: error: unable to execute command: Segmentation fault (core dumped) clang++: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 3.6.1 (tags/RELEASE_361/final 237755) 20150525 Target: i386-unknown-freebsd11.0 Thread model: posix clang++: 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. 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/ARMAsmPrinter-f486d6.cpp clang++: note: diagnostic msg: /tmp/ARMAsmPrinter-f486d6.sh clang++: note: diagnostic msg: ******************** *** Error code 254 Stop. make[4]: stopped in /usr/src/lib/clang/libllvmarmcodegen *** Error code 1 Stop. make[3]: stopped in /usr/src/lib/clang *** Error code 1 Stop. make[2]: stopped in /usr/src *** Error code 1 Stop. make[1]: stopped in /usr/src *** Error code 1 Stop. make: stopped in /usr/src ====================================================================== /tmp/ARMAsmPrinter-f486d6.cpp: https://www.dropbox.com/s/v2vj9r458wxl7mw/ARMAsmPrinter-f486d6.cpp?dl=0 /tmp/ARMAsmPrinter-f486d6.sh: https://www.dropbox.com/s/5l75ftmohq7lrs7/ARMAsmPrinter-f486d6.sh?dl=0 make.conf: ====================================================================== CPUTYPE ?= pentium-m CFLAGS = -Os -pipe -march=pentium-m COPTFLAGS = -Os -pipe -march=pentium-m BUILD_OPTIMIZED = yes WITH_CPUFLAGS = yes NO_WERROR = WERROR = CC = clang CXX = clang++ CPP = clang-cpp MALLOC_PRODUCTION = yes KERNCONF = VAIO DEFAULT_VERSIONS+= perl5=5.22 php=5.6 ruby=2.2 src.conf ====================================================================== WITHOUT_ACCT = yes WITHOUT_ASSERT_DEBUG = yes WITHOUT_ATM = yes WITHOUT_AUDIT = yes WITHOUT_AUTHPF = yes WITHOUT_BHYVE = yes WITHOUT_BIND = yes WITHOUT_BLUETOOTH = yes WITHOUT_BSNMP = yes WITHOUT_CAPSICUM = yes #WITHOUT_CDDL = yes #WITH_CLANG_IS_CC = yes WITHOUT_CVS = yes WITHOUT_DICT = yes WITHOUT_EXAMPLES = yes WITHOUT_FLOPPY = yes WITHOUT_FREEBSD_UPDATE = yes WITHOUT_GAMES = yes WITHOUT_GDB = yes WITHOUT_HYPERV = yes WITHOUT_HTML = yes WITHOUT_INET6 = yes WITHOUT_INETD = yes WITHOUT_IPFILTER = yes WITHOUT_IPX = yes WITHOUT_ISCSI = yes WITHOUT_KDUMP = yes WITHOUT_KERBEROS = yes WITHOUT_KERNEL_SYMBOLS = yes WITHOUT_KVM = yes WITHOUT_MAIL = yes WITHOUT_NCP = yes WITHOUT_NDIS = yes WITHOUT_NETGRAPH = yes WITHOUT_PF = yes WITHOUT_PMC = yes WITHOUT_QUOTAS = yes WITHOUT_RCMDS = yes WITHOUT_ROUTED = yes WITHOUT_SHAREDOCS = yes WITHOUT_ZFS = yes What can I do to solve that?