From owner-freebsd-questions@freebsd.org Sun Oct 2 13:13:20 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A28D8AD9DF3 for ; Sun, 2 Oct 2016 13:13:20 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 824F3E02 for ; Sun, 2 Oct 2016 13:13:20 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=gaxXiZ9HUaihd9gUpjEZ3v/BcWfX0UMNGXlrrL47TVE=; b=D0nwqVtbLRcJcI0u5G6t3MfkhB VGaxaa/BoWIGIWCl8HTI4ESJRYkdLWZlwpkPqPnCvSQyZd1xhcYHacPKOdEr54y4NbO/Vwkaln5U0 sXryzbJam7E/wKXhpFTv3n6cmyJc7MryQxnvKJqHXW5pJfJlzh9dfa/S1j2pNld3QiHI=; Received: from [114.120.232.127] (port=54511 helo=X220.alogt.com) by sl-508-2.slc.westdc.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1bqgZy-002TQW-Aj; Sun, 02 Oct 2016 07:13:18 -0600 Date: Sun, 2 Oct 2016 21:13:12 +0800 From: Erich Dollansky To: Mario Lobo Cc: freebsd-questions@freebsd.org Subject: Re: Centralizing /usr/src compilation Message-ID: <20161002211312.5d04c13d@X220.alogt.com> In-Reply-To: <20161001104224.6f276332@Papi> References: <20161001104224.6f276332@Papi> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Authenticated-Sender: sl-508-2.slc.westdc.net: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Oct 2016 13:13:20 -0000 Hi, On Sat, 1 Oct 2016 10:42:24 -0300 Mario Lobo wrote: > I hava a src master server (10.3.51.50) where I compile src and > kernel. No CPUTYPE or compiler flags are set. On it, I issued > make buildworld and make buildkernel that proceed with no errors. > I shared its /usr/src and /usr/obj via nfs. > > Then, on a slave server, same version and arch as the master, it > has this: > do both machines have the same CPU? As you did not specify the CPU, the CPU in the server was used as the target. If you have different CPUs but want to use one kernel for all, it might will work if you specify the type of CPU with the least capabilities you have or you compile on that machine. Erich > 2>Illegal instruction (core dumped) Illegal instruction (core dumped) Illegal instruction sounds like the target CPU does not know an instruction. Of course, this could also be caused by something else. > even bury my idea for good as non workable? It should work when you set the CPU type. I also run a kernel compiled for an older Intel CPU on a newer Intel CPU without problems. I never tried it the other way around. Erich