From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MHpsG/d8NWCaVAAA0tVLHw (envelope-from ) for ; Tue, 23 Feb 2021 22:08:55 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 2MBKF/d8NWAyDgAA1q6Kng (envelope-from ) for ; Tue, 23 Feb 2021 22:08:55 +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 C9C372567E for ; Tue, 23 Feb 2021 23:08:54 +0100 (CET) Received: from localhost ([::1]:50714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEfrQ-0001IG-Vn for larch@yhetil.org; Tue, 23 Feb 2021 17:08:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEfrH-0001HF-1k for help-guix@gnu.org; Tue, 23 Feb 2021 17:08:43 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:37959) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lEfrF-000726-8w for help-guix@gnu.org; Tue, 23 Feb 2021 17:08:42 -0500 Received: by mail-wm1-x330.google.com with SMTP id f137so152234wmf.3 for ; Tue, 23 Feb 2021 14:08:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=SWnwaUnlXpSmAUEAYTOSJFMWs+re1tpm/3VAz0y45+A=; b=L4drgx83ErcuOjGwjGNmrKituweddjjOFVzojzuHftuI387AUvV/Edto6WdVv1VpX7 pvNFMQS+H+Z2ywIHe+/ix/iT2znETEzAFLqgOiuZfXxuLGMutjLzgnQgWh3Hgwa+GYP7 2ARRX67qAMBYXGCr+hDLPi8tRFKH1Cy9Ynee0tX/3kOLwaN0Fggt46Y4tSrtlUy3ILFJ o7eyYs2GsqZNM8u0ZceCXFhPozjNY4TKKKz7+D0IoWY5QFDHXhqzTWBkkElatem8zq4R 40pG+MiivDAiqi3JZUheKSAIhP3SBGtX9jS4cY8Cvy6+bwxAYTBp16D7SQiBwZoCsFR/ t+xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=SWnwaUnlXpSmAUEAYTOSJFMWs+re1tpm/3VAz0y45+A=; b=RDUfN0uWJpy6YJgDLxyrnrkOs0DtXK/XX/1XiINe8wYIbUBelg/bKWLY+TK32Sbc4S fQvKSnlfhxpyjcPcsJ6vx6+cGhW5VU6epJhOs+CgaQsPkXyaNNLq975MLa4URDzKfJI1 ipctC4gokqAdNSw9LssX6gDqZDttKuMtKp9FnJX2ySOVvhEZdhmNxbMS/VaK6xjxQPWm AZIjELvM9NH1vC8FDOmwaI7xx1VhuPdu03H2S1TzfRwBpEWQLavIWZgPHHD5EgB7tEol WMtwXvUKrWGnKHafRzSxBXb9TJYCsET7XoboDAHXEAsWmQ/djqM1M7BC8AZ0DQ9KxQWs yVVg== X-Gm-Message-State: AOAM530syu2UiIef5InJSXWuLa4y/3CfPZVizRwJRq0cgtB4NLB/MOEx XGOBrGcRkqbDBrHUL2roa21bhJt1qUk= X-Google-Smtp-Source: ABdhPJygz/hsSfr0KP4YsNn8pYqgvPRcs7m6Ukbvry0H9+sD5g22i7xWUbIIBjSjVesxeItgQ8jFVQ== X-Received: by 2002:a05:600c:22d0:: with SMTP id 16mr788013wmg.8.1614118119396; Tue, 23 Feb 2021 14:08:39 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id c6sm100748wrt.26.2021.02.23.14.08.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Feb 2021 14:08:38 -0800 (PST) From: zimoun To: Andy Tai , help-guix@gnu.org Subject: Re: building package: gcc 7.5.0 referenced instead of latest gcc; not sure why In-Reply-To: References: Date: Tue, 23 Feb 2021 23:06:26 +0100 Message-ID: <86sg5mtp5p.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x330.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 X-Migadu-Spam-Score: -3.07 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=L4drgx83; 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: C9C372567E X-Spam-Score: -3.07 X-Migadu-Scanner: scn1.migadu.com X-TUID: p3O/W5wIMseA Hi Andy, On Mon, 22 Feb 2021 at 16:10, Andy Tai wrote: > ./pre-inst-env gcc --version > gcc (GCC) 10.2.0 > Copyright (C) 2020 Free Software Foundation, Inc. Well, this GCC 10.2 is not used by the build-system=E2=80=A6 > I tried to update a package definition (vtk) and then tried to build it > > ./pre-inst-env guix build -k -K vtk =E2=80=A6which instead uses 7.5. > I am not sure why gcc 7.5 is being used; no where in the package > definition scm file references explicitly gcc 7.5. I did not install > gcc 7.5 explicitly either. For example, --8<---------------cut here---------------start------------->8--- $ guix environment vtk -C [env]$ gcc --version gcc (GCC) 7.5.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --8<---------------cut here---------------end--------------->8--- Quickly said, the GCC comes from the cmake-build-system. > (gcc 7.5 has problem compiling the package source so I want to make > sure later gcc used) It depends on what you want at the end: a variant for personal use or for submitting. For personal use, you can try: guix build -L /path/to/variant vtk --with-c-toolchain=3Dgcc-toolchain@10 well, use package transformations, at CLI level or package level [1]. For submitting, I do not know what is the best. Hope that helps, simon 1: https://guix.gnu.org/manual/devel/en/guix.html#Defining-Package-Variants