From owner-freebsd-current@FreeBSD.ORG Tue May 29 14:56:55 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1968A106564A; Tue, 29 May 2012 14:56:55 +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 C1E248FC0A; Tue, 29 May 2012 14:56:54 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:1966:3960:5466:61dc] (unknown [IPv6:2001:7b8:3a7:0:1966:3960:5466:61dc]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 568865C59; Tue, 29 May 2012 16:56:53 +0200 (CEST) Message-ID: <4FC4E3B3.1050902@FreeBSD.org> Date: Tue, 29 May 2012 16:56:51 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120522 Thunderbird/13.0 MIME-Version: 1.0 To: =?ISO-2022-JP?B?GyRCOzNDKz9yO0sbKEI=?= References: <4FC4A41D.2000509@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.5a1pre Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, "O. Hartmann" , Gabor Kovesdan , Oleg Moskalenko Subject: Re: CURRENT: buildworld fails X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 May 2012 14:56:55 -0000 On 2012-05-29 14:08, 山谷崇史 wrote: > some log and file is overwritten. > sort is already BSD sort. (WITH_BSD_SORT= yes in /etc/src.conf) > cc is clang and c++ is clang++.(WITH_CLANG_IS_CC in /etc/src.conf) ... > recheck the buildworld log: > building static * library > sort: No such file or directory > sort: No such file or directory Aha, this was probably broken in r235432, and fixed in r235546: Author: gabor Date: Thu May 17 13:08:30 2012 New Revision: 235546 URL: http://svn.freebsd.org/changeset/base/235546 Log: - Fix -o option that was broken by my clang compile fix Submitted by: Oleg Moskalenko During building of static and dynamic libraries, bsd.lib.mk runs lorder(1), a shell script, which uses sort's -o option. But because the -o option didn't work correctly between r235432 and r235545, it produced the error message you showed above, and the output of lorder was incorrect. Maybe lorder could be made more bullet proof, as it currently does not do much error-checking; for example, the exit codes of most commands (e.g. sort, join) are simply ignored. In any case, updating to r235546 or later should fix the problem. To fix an already broken system, rebuild and reinstall usr.bin/sort first.