From owner-freebsd-stable@FreeBSD.ORG Mon Nov 5 15:52:35 2012 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 72BEB142; Mon, 5 Nov 2012 15:52:35 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 31FF98FC0C; Mon, 5 Nov 2012 15:52:34 +0000 (UTC) Received: by mail-pb0-f54.google.com with SMTP id rp8so4226250pbb.13 for ; Mon, 05 Nov 2012 07:52:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=8jq4OdCtfp2Z5duDIHiBVMQBVMC5N4X1kmUtfRbNM00=; b=eHaYxoG7JkgQpn2O6F2lvId17Bm1AqDRiIDAFjyfxqOAEfnjttaM5asttA/pTLX5sF Uvxwb/y2jmToZM3wFkNM4KaCjHlH4aezBiYMXvZB9CPf6xBr+Q8+j1je57GjwreUtLL2 sXm6jmGdMLpBOjZoSuYWNFPcogNEaPiW/Ot+9eXq8BEmCbbAsQ3W67EKBx4zFn9HS5Ya m+WqoSQF0N1nK48h4BKkn6e9INvA3U149oY9ChP+LKM2aOrkKoWDITKQa1qwNVHthIpM qn+5gP3laXBia/i4rA0uB1f7H1Bla5dYhKuiYAih/b4Ysjsv1ew1GyHaFG9baYI23XsF z1Dg== Received: by 10.68.193.163 with SMTP id hp3mr31198292pbc.21.1352130754505; Mon, 05 Nov 2012 07:52:34 -0800 (PST) Received: from [192.168.1.131] (mau.donbass.com. [92.242.127.250]) by mx.google.com with ESMTPS id uh10sm6006314pbc.35.2012.11.05.07.52.32 (version=SSLv3 cipher=OTHER); Mon, 05 Nov 2012 07:52:34 -0800 (PST) Message-ID: <5097E0BD.50909@gmail.com> Date: Mon, 05 Nov 2012 17:52:29 +0200 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121030 Thunderbird/16.0.2 MIME-Version: 1.0 To: Andriy Gapon Subject: Re: buildworld fails on recent stable References: <5097A5E0.2000502@gmail.com> <5097D27E.1050705@FreeBSD.org> <5097DE5E.6020405@FreeBSD.org> In-Reply-To: <5097DE5E.6020405@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: stable@FreeBSD.org, Dimitry Andric 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: Mon, 05 Nov 2012 15:52:35 -0000 05.11.2012 17:42, Andriy Gapon wrote: > on 05/11/2012 16:51 Dimitry Andric said the following: >> On 2012-11-05 12:41, Volodymyr Kostyrko wrote: >>> When CLANG_IS_CC build fails at sys/boot/i386/boot2: >>> >>> 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 >> >> This seems to be caused by r242562, which is an MFC of r241301. The >> code changes are quite trivial though. Strangely enough, on head it >> does build successfully, but head is using a newer version of clang, so >> that may explain the difference. Investigating... > > I suspect that some earlier space-saving commit was not MFC-ed to stable/9. > This can be easily checked: # cd /usr/src/sys/boot/i386/boot2/ # make clean # svn up Updated to revision 242616. # setenv PATH /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # unsetenv CCACHE_PATH # /usr/local/bin/clang -v clang version 3.2 (trunk) Target: amd64-portbld-freebsd9.1 Thread model: posix # echo CC=/usr/local/bin/clang >> /etc/src.conf # echo CXX=/usr/local/bin/clang++ >> /etc/src.conf # make .... 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=154d text=0 data=0 bss=0 entry=0 output: fmt=bin size=1ddd text=200 data=1bdd org=0 entry=0 35 bytes available dd if=boot2.ld of=boot2 obs=7680 conv=osync 14+1 records in 1+0 records out 7680 bytes transferred in 0.000099 secs (77433305 bytes/sec) I bet on clang 3.2. -- Sphinx of black quartz, judge my vow.