From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SA59Irg4d2A6SgEAgWs5BA (envelope-from ) for ; Wed, 14 Apr 2021 20:47:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kKxbHLg4d2CJGwAA1q6Kng (envelope-from ) for ; Wed, 14 Apr 2021 18:47:20 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CF695DE80 for ; Wed, 14 Apr 2021 20:47:19 +0200 (CEST) Received: from localhost ([::1]:38928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWkXm-0005v7-WB for larch@yhetil.org; Wed, 14 Apr 2021 14:47:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWkWL-0005Dq-VL for help-guix@gnu.org; Wed, 14 Apr 2021 14:45:49 -0400 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:33599) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWkWI-0001DV-Vg for help-guix@gnu.org; Wed, 14 Apr 2021 14:45:49 -0400 Received: by mail-pl1-x635.google.com with SMTP id c2so3198688plz.0 for ; Wed, 14 Apr 2021 11:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=G2Iif3yAkMDX7XZuXMgahCzcbQWb3jPHw+WQdIt4QJA=; b=amyIiGWyXzvKGmtehMrGPQe0fUGCy+ADKTclBoURDTkMqbJj+jAv6n+1sH4iCUBw1u jY/j7Nn278L9OHqxLhPWccQ8PA+Ej5/xPrHUpT8drb5u8vvR1LItZ7A/eeZ2KfLAq9yG DECeX1KqtiD4ySHwUA3PY0krX55qBbHSsSWqKjWw2PyhdB8MOEOuTVxvUlgrwmFqiLIF 9sPCbEAOE+nae77gucHxeHlr0TjCa0SiZFgZ6FdMfYgu5P+HeqJVr9AdRQMRW6Qabek7 N0FEueiiTTgPLv55oulq7JEgDEPv95YbuEvK94iq77iR1K5Dxt5/5UecpLWN5kVgDXdl kprA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=G2Iif3yAkMDX7XZuXMgahCzcbQWb3jPHw+WQdIt4QJA=; b=pTdWPSWcnWI376EEUR+3Tv7bj+jCYlWIrLapKRkLA7+8xOewTfDRnt4rGu50s6ftEF Ww7X+P0xnheG6taeMr9BGlbc98mwn1c3COaErM7oe43uMkZj7U4i5Dx2FvZsu+bynB2B Clh+60CknM8iq1ZEfsYz0hEkoGVKU6osIsAhGo8emCzdLFNf/vmv3HGVEhk0eCxf+Gbg SX6U7yGSrk1qEKlJ4stavJxouPh5M9H8JA/mXtZ6AOdSJ/gSTfrhwI+xvVSRXgqYHa71 jpNpbU+G41I9hoPZbkDUHMBhyO0QCjHFXb07+gT+0r0x0tJQhVg4QmjyY4sJ2ea7AgYU k1Jg== X-Gm-Message-State: AOAM5310cKTd6IOaUr2CQhKTuKKLbXUyJS/Dew4tdTL9zYDQ7MbUA41q OHwKltUu7RP+7PDaTyBtiq92irwhMOsoxv5oHAA= X-Google-Smtp-Source: ABdhPJxldJCULtF+EMEvr2SO6c//EZs24itOcbsHanPWmg7AR98W+JkgyDHeBCDytOzakwmHaOo1VPp6jfk2+y1P3/Q= X-Received: by 2002:a17:90a:d707:: with SMTP id y7mr5257697pju.50.1618425943764; Wed, 14 Apr 2021 11:45:43 -0700 (PDT) MIME-Version: 1.0 References: <87v98o90pv.fsf@dismail.de> In-Reply-To: <87v98o90pv.fsf@dismail.de> From: Vincent Legoll Date: Wed, 14 Apr 2021 20:45:31 +0200 Message-ID: Subject: Re: How to compile native? To: Charles Direg , help-guix Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=vincent.legoll@gmail.com; helo=mail-pl1-x635.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618426039; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=G2Iif3yAkMDX7XZuXMgahCzcbQWb3jPHw+WQdIt4QJA=; b=EP8JGj0inKEmib6JNYAH8V6klYuP/JayW83N78UHfo4+29pHhmko//DcSWckECfGW6xUal 30d0dtzpPBt4ZlB/2bt1DaNoRWxgE65xcuHhZIgdZGZah9uYGUy42XCfSQQonUDKd9FPz4 P2xYALw+GzCTJfZXpRx2GcR3dWFrJc5rZEkVrQf60x4b5ei2mMTc5hHEd44Ws9i3S5/RPH u2/Hvh+aPffTfPm0SY2BJum7+x1WlTcod2W5pCwcB0Dwzei+t/Bp4Qaj7gTn+B6Mrcz8Kv JopmHT0z/EgHnLByuqYGQUc1EGe4J3Ly8Z6k8s3aKaX8HYlpFQ5aBTJ0/4CChA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618426039; a=rsa-sha256; cv=none; b=hWqS4Y8M+OMF8A0/OIotRR7HyqgDNbf9EvJiDsyIyNrQKM+GQcwXwzknH97gGdmvgxqpzm Iw+F13mg4KZkBwF1Xy4Oca3qXjoXqpH2FvUzJ7mB8S300P9pTbapIoDh50ljmv6tuMXFwf tLBq/ztOh5JRIpq8hJdDF3yqOdB7M0qWw2BE/HmHMWFew95yiBmnsuwBm1MmMO13YH5Iqn mTJy2JO8WHax0hQbMNGu2rjp/5a5Dq4P7iZum1AP4VaI+sVcpDOccRdAxkI78f9otEFbhd XuIre+28GY5u1Qd1BuKMHQ7AGiV/VnfRAD/oohjDGXDQYVl9v0o1aetzH0054g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=amyIiGWy; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=amyIiGWy; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: CF695DE80 X-Spam-Score: -2.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: Bjza8eneEQIJ Hello, On Wed, Apr 14, 2021 at 8:32 PM Joshua Branson wrote: > > Charles Direg writes: > > > Hi, > > > > How can I do a compilation of the packages natively? > > Yes this is possible! You can disable substitutes to compile all > packages natively. I think Charles meant compilation optimized for his actual processor instead of being compatible with all x86_64. Like with the following CFLAGS: > > What I mean is that, for example in Gentoo it can be used inside > > /etc/portage/make.conf: CFLAGS="-O2 -march=native -mtune=native" I think there's no use of giving "-mtune" when you have "-march", c.f.: https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html#index-march-14 > > Is that possible in guix? I've heard it is, but not seen the recipe. > Currently guix does not support gentoo style flags..yet. Though there > are talks to do something like that. Gentoo use flags are something different, used to disable things in packages. > If you wanted to compile packages > with specific compile flags, then you'll need to make custom package > definitions. That's probably what Charles wants, but in a global way, settings CFLAGS once for the whole distro. -- Vincent Legoll