From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C22B51382C5 for ; Fri, 11 Dec 2020 06:12:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 75FFCE0967; Fri, 11 Dec 2020 06:12:35 +0000 (UTC) Received: from mout.web.de (mout.web.de [212.227.17.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C76FFE0954 for ; Fri, 11 Dec 2020 06:12:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1607667142; bh=n0EstCvNtZePjzswAGTdvEd46RTSn+2maMKpIP76EZY=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=HV+Nf3Ggc1iOYGxHmRkKHyxdrYtvkOklTWfFm2e6e8eHwUZj0q1k42LknQZ33MNwg 9vNZWCXxHoyQ60LX/Xd5A7NIYwHs33C/51XRl+wxf2dICmbEAx9R+Chq333fFooWHv d27ruiTM+AtRWioScKc0zlTSCk0LBcnbxvkbhebg= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.178.96] ([95.114.168.220]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0M7bYJ-1jsu943v4J-00xJn8 for ; Fri, 11 Dec 2020 07:12:22 +0100 Subject: Re: [gentoo-user] new install for a new mainboard? To: gentoo-user@lists.gentoo.org References: <18ac5a12-2b88-97c4-ae46-184093a0479b@web.de> <51f879e3-598b-1e8d-eab5-e8288f338aa0@web.de> From: n952162 Message-ID: Date: Fri, 11 Dec 2020 07:08:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Provags-ID: V03:K1:jtAh8SfiYNAR6r1u/5rMrxpiCIjNjT8mgPWZRIP6yYAmo6CuI61 AihIVJ93UaMxBeASKK6qFELguA+FIh9MGsfiwVQzkKTgnYWZVxpyyJ/RBkt295JUWelvbNj Imx5tCy6hb8H1+qY7UjSuhwFuX/8EbpfGfOHD1PxPfkrZXYoOiNQzpkNA0NvzFm5VXt2MqG MNsz8QD4Xy1AEONxytI+w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:3pfEkM9hhds=:MP9MVIBPYEGxawtnuRB7ft TTglWQtNmJ4zuZcyU/KKtAcdEKtaMS8fyA00EIfTAr/gO+N7WnQj86JTUtrurWXVL4xG9To8p UTm1vEMfTJc6fJlkHTTEjgNvqyG1FUM41gYBnNGBL8F3YA53qtNH9gImMhyr68sKJZ3WEl8gV gbc2Nx/eRObLW3P7mw+jIPzFTIDnN5fUFcaVie1hD7m+BnL9iQbtpdJFmVV02sn28/UMxV44o REafBT4mFfIuFe4OvsPMmTKLAKMak/crVmJjsSnPR2hRLDGVFyGAAVL8E+ofO5yUJpJWOlqxb oluuKUKgI3TvX8mAGiEf3FolQ3zRH5N5ptspc3TbiWNKOkYfLCJMDM/jLo07i3fKwhBZeAVxG ZozJcTpAn68LrcavF4PZ1sagwGfpe1oIQ6CIS0PhwEy5tSOxHe4+uKhgh/6Q4yhlcxwL7NxIv fb/8gRaOdxxy1B+vm8X1we7vB6GsQdlDOin7nBrN0qUC7c7XhFFObOBKvZhtFJj3lk4Ul7JQA 1OW0U020oOPh98tOAvXSDsV39iXHQM8/lMwsPj3nQ1OTZC77Sbqk5k8jBIdJnL8ozcadLjDMj JqQ6Y+h6YKW2DFNjAJB5o69PGtL+yRH9wJWOYgs4AXB46cEkAs/VRSfxznqRlr2ih+7AjkyCN KJmLmFhgGr0b6GcqSBHegdVN575l8vNS9Cd+YkxS2Y3HEASWSi8zC91pkQwAe7+DVYkIfLCOS 3eyFcyG57GclpPj8ek9YnKQpcB1o0/0TTQzvnjjssNDwpFvI/lWRvzOt8i35x7mFXweB1xiEM B6ylNeiHQ085WjpFUNDwFKCcHhaSQWyRljienqoMjtXGuj4BXL0rkR/4LTysEPdOn3ROoVEws ry1IHrOmBdMJNQUxhdnw== X-Archives-Salt: dd0b42f9-9dd2-44e9-843e-a9a9e79e7fbe X-Archives-Hash: af3adc703be6eef6b9dfc76561ac78b4 Thank you (all). On 12/10/20 10:53 PM, Rich Freeman wrote: > On Thu, Dec 10, 2020 at 4:18 PM n952162 wrote: >> On 12/10/20 7:18 PM, Rich Freeman wrote: >>> On Thu, Dec 10, 2020 at 10:23 AM n952162 wrote: >>>> I need a new mainboard. What will happen if I boot my existing system >>>> on it? >>> Is the CPU going to be the same? The responses already cover the >>> mainboard itself well. If the CPU could change then you need to check >>> your -march in CFLAGS for compatibility (if you set it) and >>> potentially rebuild anything you don't want to break. >>> >> How would I do that? Would I have to set up a cross-compiler toolchain? > Nope, just remove -march from your CFLAGS (maybe change it to -mtune) > and emerge -e @world (or @system if you don't care if non-system > packages are broken on the new system). > > It is only necessary if you're switching CPUs. If you're using -march > then your binaries are not guaranteed to run on ANY CPU other than the > one specified, and you'd be surprised how non-backwards-compatible > CPUs can be. With gcc the -march option tells the compiler that it > can use any instruction it can to optimize things, including ones that > are very uncommon on other CPU models. -mtune makes optimizations but > the code will run on any CPU for that architecture. > > You can try to find a least-common-denominator CPU but it usually > isn't worth the hassle. >