From owner-freebsd-questions@freebsd.org Sun Oct 2 23:21:52 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 4164FAF2B0A for ; Sun, 2 Oct 2016 23:21:52 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-ua0-x22d.google.com (mail-ua0-x22d.google.com [IPv6:2607:f8b0:400c:c08::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 058ACF2C for ; Sun, 2 Oct 2016 23:21:51 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by mail-ua0-x22d.google.com with SMTP id q42so136846508uaq.2 for ; Sun, 02 Oct 2016 16:21:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=date:from:to:subject:message-id:organization:mime-version :content-transfer-encoding; bh=PCRNPe8/e30umpPO5zbVecp1JL7b8r0idQ87snJN53M=; b=VynFZLmE78wwtsHjRgXkDJVvkRuLwgezfOslHSuhUJKdO5YAfjNDUrsbyXP7fUZUMk 6I++r4oYCsCwr+kJkPXvp6j+vS2P4q2tXAB4Be94UHN+g+mbl97AFwfvg9S6bfTB4Cki iviNxH/qNptpxRpFJPzBsuhnjn4dub+ov3NlQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:organization :mime-version:content-transfer-encoding; bh=PCRNPe8/e30umpPO5zbVecp1JL7b8r0idQ87snJN53M=; b=eBxpbblwzU1WXkW7g85Y96S1giQqpRMM8X/e4hUs6JDNDlcrnfkqWmJLXGSeUvnBQI xPYeERXsQ+aPmV1AtcYqwpidvS903WFilx5xEOaQXK6smLPAH0tsLYfQlwA4ytEKYTIW fwJ+L6chF5xa4AZOyDQgvqmyIgTIVQob4f1xBIX4H+yP8KBRgD0Lxww3Uc37VV9PE7TL NeOrfwj3N+Vy75BhjS/ffDdCCdUNGhW2eK2Ed65Fs0TARG6IS1zwFTgPejg51AdA7qdG mW0aB8mDSIdli4JrSyS0pvZitI/P0ugfJ2oPGS4bc+gHVwcsjidgyL74N97ibzcTyDxa MLVA== X-Gm-Message-State: AA6/9RnGBzKaFMIU9fpo8X48W0caMqNRURWcc/UK2/crNiUGs90sHRKPf35zxTICrYbT2g== X-Received: by 10.176.3.181 with SMTP id 50mr211335uau.83.1475450510519; Sun, 02 Oct 2016 16:21:50 -0700 (PDT) Received: from Papi ([177.98.59.15]) by smtp.gmail.com with ESMTPSA id p21sm6875111uaa.7.2016.10.02.16.21.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Oct 2016 16:21:50 -0700 (PDT) Date: Sun, 2 Oct 2016 20:22:14 -0300 From: Mario Lobo To: freebsd-questions@freebsd.org Subject: Fw: Centralizing /usr/src compilation Message-ID: <20161002202214.6a61d2ab@Papi> Organization: BSD X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd10.3) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 23:21:52 -0000 Hi; I Forgot to CC the list. Begin forwarded message: Date: Sun, 2 Oct 2016 20:20:06 -0300 From: Mario Lobo To: Erich Dollansky Subject: Re: Centralizing /usr/src compilation On Sun, 2 Oct 2016 21:13:12 +0800 Erich Dollansky wrote: > 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 > > 2>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 Hi Erich. Thanks for replying! Actually, the "slave" server is a guest VM hosted on the "master" server. Like I said, the slave has the same FBSD version and arch (AMD64) as the "master". (I know ... the jail argument, but I still didn't master it enough to fell confident for production). I did not specify any CPUTYPE because I assumed that if I didn't, it would compile for a GENERIC CPU, although I thought that through VT-x/AMD-V, the guests sees the same CPU as the host. Which CPUTYPE should I set? I ask because there are other physical machines on the LAN with slightly different CPUs in which I want this to work also. Thanks! -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since 2.2.8 [not Pro-Audio.... YET!!] "UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things." -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since 2.2.8 [not Pro-Audio.... YET!!] "UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things."