From owner-freebsd-current@FreeBSD.ORG Tue Nov 5 20:57:13 2013 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4D8E7184; Tue, 5 Nov 2013 20:57:13 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A449825F8; Tue, 5 Nov 2013 20:57:12 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.7/8.14.7) with ESMTP id rA5Kv424010623 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 6 Nov 2013 00:57:04 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.7/8.14.7/Submit) id rA5Kv4AD010622; Wed, 6 Nov 2013 00:57:04 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Wed, 6 Nov 2013 00:57:04 +0400 From: Gleb Smirnoff To: Ian Lepore Subject: Re: CUURENT kernel build broken - make[2]: exec(aicasm) failed (No such file or directory) Message-ID: <20131105205704.GL7577@glebius.int.ru> References: <1383611766.31172.153.camel@revolution.hippie.lan> <1383628194.31172.155.camel@revolution.hippie.lan> <20131105070146.GH1467@FreeBSD.org> <1383663652.31172.160.camel@revolution.hippie.lan> <20131105151251.GC7577@glebius.int.ru> <1383684017.31172.166.camel@revolution.hippie.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1383684017.31172.166.camel@revolution.hippie.lan> User-Agent: Mutt/1.5.22 (2013-10-16) Cc: Outback Dingo , current@FreeBSD.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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, 05 Nov 2013 20:57:13 -0000 On Tue, Nov 05, 2013 at 01:40:17PM -0700, Ian Lepore wrote: I> On Tue, 2013-11-05 at 19:12 +0400, Gleb Smirnoff wrote: I> > On Tue, Nov 05, 2013 at 08:00:52AM -0700, Ian Lepore wrote: I> > I> > I> You were just unlucky that your updates bracketed my checkin that I> > I> > I> changed the build process for the aicasm tool so that it gets built as I> > I> > I> part of the toolchain rather than as part of the kernel now. I> > I> > I> > I> > Before this change, the toolchain was not required for kernel build if you I> > I> > aren't cross building. And now it is. This breaks the kernel build procedure I> > I> > documented in handbook for years, and brings a lot of discomfort to I> > I> > developers. I> > I> > I> > I> > Now to test a trivial change to kernel I need first to compile clang. I> > I> > I> > I> I> > I> I didn't realize the change would have that effect. Building aicasm I> > I> using the kernel build machinery just isn't an option anymore, it builds I> > I> in the wrong environment with the wrong header files and sometimes the I> > I> wrong toolchain when cross-building. But there should be a solution I> > I> that doesn't require building clang, I'll see what can be done. I> > I> > Thanks, Ian. While you are seekign solution we can sustain with depending I> > on toolchain build. I> > I> I> Okay, I think I've got a potential solution, please try the attached I> patch. Now the "make buildkernel" when the objdir is empty should build I> just the aicasm tool. (In retrospect, WTF was I thinking adding it to I> the cross-build tools? I guess cross-building is just too central to my I> world these days.) I> I> Maybe for testing you should rename your existing objdir rather than I> cleaning it out, just in case this doesn't work you can rename it back I> instead of building clang all over again. :) That worked for me. Thanks! -- Totus tuus, Glebius.