From owner-freebsd-stable@FreeBSD.ORG Wed Nov 14 12:38:22 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 813255D1 for ; Wed, 14 Nov 2012 12:38:22 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) by mx1.freebsd.org (Postfix) with ESMTP id 3895D8FC0C for ; Wed, 14 Nov 2012 12:38:22 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:89d9:d735:1f7a:92e6] (unknown [IPv6:2001:7b8:3a7:0:89d9:d735:1f7a:92e6]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 03D585C59; Wed, 14 Nov 2012 13:38:20 +0100 (CET) Message-ID: <50A390BE.1090702@FreeBSD.org> Date: Wed, 14 Nov 2012 13:38:22 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Alie Tan Subject: Re: Compilation error while compiling FreeBSD9-STABLE with Clang References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2012 12:38:22 -0000 On 2012-11-14 04:05, Alie Tan wrote: > I got compilation error while compiling FreeBSD9-STABLE with Clang: > -m32 -c /usr/src/sys/boot/i386/boot2/sio.S > clang: warning: the clang compiler does not support '-fno-unit-at-a-time' > ld -static -N --gc-sections -nostdlib -m elf_i386_fbsd -Ttext 0x2000 -o > boot2.out /usr/obj/usr/src/sys/boot/i386/boot2/../btx/lib/crt0.o boot2.o > sio.o > objcopy -S -O binary boot2.out boot2.bin > btxld -v -E 0x2000 -f bin -b > /usr/obj/usr/src/sys/boot/i386/boot2/../btx/btx/btx -l boot2.ldr -o > boot2.ld -P 1 boot2.bin > kernel: ver=1.02 size=690 load=9000 entry=9010 map=16M pgctl=1:1 > client: fmt=bin size=1575 text=0 data=0 bss=0 entry=0 > output: fmt=bin size=1e05 text=200 data=1c05 org=0 entry=0 > -5 bytes available > *** [boot2] Error code 1 Please update your source tree to at least r242907.