From nobody@FreeBSD.org  Wed Apr 18 15:31:37 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id A3DAE1065673
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 18 Apr 2012 15:31:37 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 5D32A8FC15
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 18 Apr 2012 15:31:37 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q3IFVale024789
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 18 Apr 2012 15:31:36 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q3IFVafS024788;
	Wed, 18 Apr 2012 15:31:36 GMT
	(envelope-from nobody)
Message-Id: <201204181531.q3IFVafS024788@red.freebsd.org>
Date: Wed, 18 Apr 2012 15:31:36 GMT
From: Michael Pounov <misho@elwix.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Cross compile build failed - broken toolchain
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         167064
>Category:       kern
>Synopsis:       [build] Cross compile build failed - broken toolchain
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 18 15:40:01 UTC 2012
>Closed-Date:    
>Last-Modified:  Wed Apr 18 15:46:05 UTC 2012
>Originator:     Michael Pounov
>Release:        FreeBSD-CURRENT
>Organization:
ELWIX
>Environment:
FreeBSD elwix.aitnet.org 10.0-CURRENT FreeBSD 10.0-CURRENT #17: Wed Apr 18 16:51:30 EEST 2012     root@elwix.aitnet.org:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
After last update of system sources I found this problem.
When you try to cross compiling system, build process stops at toolchain section with this:
c++ -I/usr/src/lib/clang/libllvmtablegen/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvmtablegen/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvmtablegen/../../../contrib/llvm/lib/TableGen -I. -I/usr/src/lib/clang/libllvmtablegen/../../../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=\"x86_64-unknown-freebsd10.0\" -I/usr/obj/amd64.amd64/usr/src/tmp/legacy/usr/include -c /usr/src/lib/clang/libllvmtablegen/../../../contrib/llvm/lib/TableGen/Record.cpp

/usr/bin/as: out of memory allocating 4194304 bytes after a total of 524288000 bytes

>How-To-Repeat:
make TARGET=amd64 TARGET_ARCH=amd64 buildworld
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
