c++: Internal error: Killed: 9 (program ld)

From: Dmitry Krivenok <krivenok.dmitry_at_gmail.com>
Date: Thu, 7 Oct 2010 11:27:34 +0400
Hello All,

I have a problem with building CURRENT tree (rev. 213491). Below is a
command which fails:

root_at_csx-spb-freebsd9 11:04:40
/usr/src/obj/usr/src/usr.bin/clang/clang # [0] c++ -O2 -pipe
-I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/include
-I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/include
-I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver
-I. -I/usr/src/usr.bin/clang/clang/../../../contrib/llvm/../../lib/clang/include
-DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS
-D__STDC_CONSTANT_MACROS
-DLLVM_HOSTTRIPLE=\"amd64-undermydesk-freebsd9.0\" -fno-exceptions
-fno-rtti -g -O0 -fstack-protector -g -O0  -o clang cc1_main.o
cc1as_main.o driver.o
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libclangfrontendtool/libclangfrontendtool.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libclangfrontend/libclangfrontend.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libclangdriver/libclangdriver.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libclangserialization/libclangserialization.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libclangcodegen/libclangcodegen.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libclangparse/libclangparse.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libclangsema/libclangsema.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libclangchecker/libclangchecker.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libclanganalysis/libclanganalysis.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libclangindex/libclangindex.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libclangrewrite/libclangrewrite.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libclangast/libclangast.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libclanglex/libclanglex.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libclangbasic/libclangbasic.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvminstcombine/libllvminstcombine.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmipo/libllvmipo.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmbitwriter/libllvmbitwriter.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmbitreader/libllvmbitreader.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmpowerpccodegen/libllvmpowerpccodegen.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmpowerpcasmprinter/libllvmpowerpcasmprinter.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmpowerpcinfo/libllvmpowerpcinfo.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmx86asmparser/libllvmx86asmparser.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmx86disassembler/libllvmx86disassembler.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmx86codegen/libllvmx86codegen.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmx86asmprinter/libllvmx86asmprinter.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmx86info/libllvmx86info.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmmipsasmprinter/libllvmmipsasmprinter.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmmipscodegen/libllvmmipscodegen.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmmipsinfo/libllvmmipsinfo.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmarmasmparser/libllvmarmasmparser.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmarmcodegen/libllvmarmcodegen.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmarmasmprinter/libllvmarmasmprinter.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmasmparser/libllvmasmparser.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmselectiondag/libllvmselectiondag.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmasmprinter/libllvmasmprinter.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmcodegen/libllvmcodegen.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmscalaropts/libllvmscalaropts.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmtransformutils/libllvmtransformutils.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmmc/libllvmmc.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmmcparser/libllvmmcparser.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmipa/libllvmipa.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmanalysis/libllvmanalysis.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmtarget/libllvmtarget.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmmc/libllvmmc.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmcore/libllvmcore.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmarminfo/libllvmarminfo.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmsupport/libllvmsupport.a
/usr/src/obj/usr/src/usr.bin/clang/clang/../../../lib/clang/libllvmsystem/libllvmsystem.a
c++: Internal error: Killed: 9 (program ld)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
root_at_csx-spb-freebsd9 11:12:52 /usr/src/obj/usr/src/usr.bin/clang/clang # [1]

Have anyone seen this problem before? Any workarounds?
Should I go ahead and submit gcc bug?

Thanks in advance!

P.S.
Some system info:

root_at_csx-spb-freebsd9 11:18:56
/usr/src/obj/usr/src/usr.bin/clang/clang # [0] c++ --version
c++ (GCC) 4.2.1 20070719  [FreeBSD]
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

root_at_csx-spb-freebsd9 11:21:22
/usr/src/obj/usr/src/usr.bin/clang/clang # [0] ld --version
GNU ld version 2.15 [FreeBSD] 2004-05-23
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.

root_at_csx-spb-freebsd9 11:21:33
/usr/src/obj/usr/src/usr.bin/clang/clang # [0]  uname -a
FreeBSD csx-spb-freebsd9 9.0-CURRENT FreeBSD 9.0-CURRENT #8 r212898:
Mon Sep 20 22:30:44 MSD 2010
root_at_csx-spb-freebsd9:/usr/obj/usr/src/sys/GENERIC  amd64
root_at_csx-spb-freebsd9 11:24:53 /usr/src/obj/usr/src/usr.bin/clang/clang # [0]

-- 
Sincerely yours, Dmitry V. Krivenok
e-mail: krivenok.dmitry_at_gmail.com
skype: krivenok_dmitry
jabber: krivenok_dmitry_at_jabber.ru
icq: 242-526-443
Received on Thu Oct 07 2010 - 05:27:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:08 UTC