From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wFItH1rPY2C/cgEAgWs5BA (envelope-from ) for ; Wed, 31 Mar 2021 03:24:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id EE4fGVrPY2AFIQAAbx9fmQ (envelope-from ) for ; Wed, 31 Mar 2021 01:24:42 +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 22CD3178A4 for ; Wed, 31 Mar 2021 03:24:42 +0200 (CEST) Received: from localhost ([::1]:37650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRPb7-0001AS-9l for larch@yhetil.org; Tue, 30 Mar 2021 21:24:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRPaR-00019Q-Aa for guix-devel@gnu.org; Tue, 30 Mar 2021 21:23:59 -0400 Received: from mx1.riseup.net ([198.252.153.129]:34860) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRPaO-0004tj-8C for guix-devel@gnu.org; Tue, 30 Mar 2021 21:23:58 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4F97r90j5yzDq9L; Tue, 30 Mar 2021 18:23:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1617153833; bh=H3IPghYx/EZH/0C4VmtAUb5nw3az+cKJ65qKZQzc9HU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JZ31YbsvGOilLykRdmpjoROQOOktROzrzkn/DybYjyBjPY+B9Zejr14FYsQrNGDMV 5Y3peKVpD8XGDsLR2er4DNctBS+Lqch9u1khE+fv02K6sSvxfpW7uY0MFoqEKgQP2q AuN9BeLsk/N8Bm2IwHadn4CRp1bBeVBhhsL4srQE= X-Riseup-User-ID: E6A6FB7ED261DA32EF0E105D66BD93EBF5A799A9647A3F91BC2C4E701690E16E Received: from localhost (bc9cea23.catv.pool.telekom.hu [188.156.234.35]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by fews1.riseup.net (Postfix) with ESMTPSA id 4F97r81F2wz5vQC; Tue, 30 Mar 2021 18:23:51 -0700 (PDT) Date: Tue, 30 Mar 2021 18:12:33 +0200 From: raingloom To: Julien Lepiller Subject: Re: Question about compile packages Message-ID: <20210330181233.18788828@riseup.net> In-Reply-To: <97998BD7-AAB3-49CD-8C4F-E4508B8FE32E@lepiller.eu> References: <97998BD7-AAB3-49CD-8C4F-E4508B8FE32E@lepiller.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_06_12=1.543, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org, Charles Direg Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617153882; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=H3IPghYx/EZH/0C4VmtAUb5nw3az+cKJ65qKZQzc9HU=; b=PoaUS9OoQJtVb1pNeBxC2EB6JU9+q/NhzhdNVAizp7j4sfhNO2N+v5EPK8Myl8UiFyNVMV RYH9Qu/g0747eYwO5YAstdEM3gB1fx9B2x3o6npf+jC6wznU/cpznfD5M53bzpighPw+1e RJac8Vyg4BaYtMDtS2gt7N1kxEELHhGVHpD0w5gO9YXl9fHbWSx2yunn4+peU5LIoh05a5 1XmGzfJ+KT5oPLKmlrXzSu/F7r/3/wIWVziSiirwAivBqtm92arh0FMaTrhZYwAxSe0ZIY /4YAUIYQhUAavlMr6NJkNRG8+1k6IcyeD3wZ6MiqBgDO/sJiNTXxuFFd19V9xg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617153882; a=rsa-sha256; cv=none; b=OTXq4ghChAupQbXsNOuZGcthWWfgCEVT7ByRj1a6JE6owUKInxQ8P/OGIAHq5nuRAOai6i ojc6RTBsu0eOAo7ioCYDq1TVUCWAYbS96791uMKc+3R/ZWOOnNOJWedCDpI2iY/+i4yfwp 0BPSZFidRZQOGD97C1fG2C1gs/XcM4D5xm6yyGzom6ryL3UEhYRjxgyKJSjKR0elE8Qr4v 3htPWgmyEI6yZBM+GVWnf+ZCTkjCBVaDCSumGYH3cDO5lIGayOLdIQRhprW1PPUukOAYoq k8XegLEvuL3qHGc5II9Za3LBPXdKVGeUj1zAOLjh6uvCsXwJ7l2ZqL4mBL1X3Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=JZ31Ybsv; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=JZ31Ybsv; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 22CD3178A4 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: WqzxkdslhzT/ On Tue, 30 Mar 2021 07:12:27 -0400 Julien Lepiller wrote: > Not sure about your first question. Maybe create your own fork and > regularly rebase it? Guix will not be very happy with that I think, > but it should work. >=20 > To pass --no-substitutes, you can pass it to guix-daemon, or remove > the authorized keys from /etc/guix/acl. The second option lets you > download substitutes for fixed output derivations (basically source > tarballs), so it's easier in case some of those tarballs disappear > from their original location. >=20 > I think the first option is selectable from the installer, but I > might be wrong. Otherwise, stop guix-daemon from herd and run it > manually with your options. >=20 > Le 29 mars 2021 15:05:08 GMT-04:00, Charles Direg > a =C3=A9crit : > > Dear, > > > >How can I modify the flags that any program is compiled with within > >guix? That > >is, I can allow in the gnu-build-system to modify it globally so > >that I can > >add the build flags to any package, for example, add the flags -O2 > >-march=3Dnative -mtune=3Dnative so global as I already mentioned, so that > >these > >are added to each package at the time of compilation, this would not > >be within the guix development environment, because what I want is > >that this > >compilation is natively for my pc. > > > >As a second question, how could I set the --no-susbtitutes option > >when installing the guix system from ISO, since I would like all > >installed packages to be compiled natively first? > > > >I really appreciate your kind time and I look forward to your > >responses. > > > >Sincerely, > >~ Abraham Huerta =20 I'm mostly guessing here, but wrapping gcc with a script that sets the options you want might work. Could try creating a gcc-toolchain that is set up the way you want it (don't even have to recompile, like i said, just create a wrapper script that calls the original toolchain) and then run guix build --with-toolchain=3Dgcc-impure-native-toolchain At least that's how I'd get started. You could also just modify the toolchain package, but then you'd have to recompile everything. Anyways, if you want -march=3Dnative optimisations, there is some recent discussion around some new GCC feature that detects CPU features at runtime. The high performance computing (HPC) related developers are very interested in using it in Guix.