From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ZFeWC53UNWCKKgAA0tVLHw (envelope-from ) for ; Wed, 24 Feb 2021 04:22:53 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id mG73Bp3UNWAXOAAAB5/wlQ (envelope-from ) for ; Wed, 24 Feb 2021 04:22:53 +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 AD8C8291F3 for ; Wed, 24 Feb 2021 05:22:51 +0100 (CET) Received: from localhost ([::1]:37332 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lElhJ-0005jx-14 for larch@yhetil.org; Tue, 23 Feb 2021 23:22:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lElh9-0005jk-AS for help-guix@gnu.org; Tue, 23 Feb 2021 23:22:39 -0500 Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]:40193) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lElh7-0004ps-4w for help-guix@gnu.org; Tue, 23 Feb 2021 23:22:38 -0500 Received: by mail-io1-xd2d.google.com with SMTP id i8so658215iog.7 for ; Tue, 23 Feb 2021 20:22:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atai-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=kll2JEUgNlN6a/xpQ4Q5WjjE6w5KbyeuWkPvCTNUxOw=; b=TWEHf/PusC2POY2SxQdX+DuH1tGbH59V+fWNWg7l/kAqk/lcz6RF1i1PHHYRi4y7ru YhbyA62fxDqi03yZPzNhR7gPXJCNa263EWVPuF3g/nunp+Y/KWRulrMXVRabKZojarQv DbRdPlrpcDZHbW9ZeMjPN5NBQlAxlIWAbf218sgrawdXitUtSJtcT4tYgiIrtRRZQCKr c/kY+SeiH8HHuWppcEZFaOMvO2NiY74bhmawuIWbPWDxTxDA2gw4xB/Ahfo4SUMqbed3 lM7wSH2Wh8Z7UR8DnLdNdgUthYRXdlmLoJvgOLI7E47ky56s/fIDPUJaMs4nKpNygFpS 8BfQ== 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:cc:content-transfer-encoding; bh=kll2JEUgNlN6a/xpQ4Q5WjjE6w5KbyeuWkPvCTNUxOw=; b=ip5FULHdS0KtzIq48lHEn5Kk9xDLUBVAyfak7XdFQYICCRie3nhxmLVdyMs4CowYhW 4LBcYxJEKy4eFppd4o7th0q6Gs+d5xbbxsIWz+XnuPwWXmy0SMrdsS5BY8kb0ob7Du4e puE6epW7kl9k5CLqWNruL5baUdT2ouhqVOApBdxJT47JCpm0PZXXgrYwUslHMCCi/A/B B0+mTFH0dN75wByzWDkJEJ19SAWcfnlvXOjp2iIGYj30/ymf3I1fdrj8kknk3/bZjZXi W2AAuxD5jR6OaJnNmrYnvHM9BgmCYxw2wl2ZVb1DLRxSYolU78mYIB2jIsX8uDdVtZi4 4gOg== X-Gm-Message-State: AOAM533xwJGhP/IM5t/ipk1pObIwXN94GBPtxW7llOgfWx/DyX7uzhbs dbfSpFqq4rMU0KZ1KdFox0UiXzwlmU9Al3y5Bjc= X-Google-Smtp-Source: ABdhPJwqLnQyrQcbToFOpB++LuhvMIMs/j8DQiMA6bcDfZgHbgP36eC8RcT1XeyaT6ok/HlqbR7/mS/6xfRapZ7UhGQ= X-Received: by 2002:a02:3846:: with SMTP id v6mr23511682jae.7.1614140554339; Tue, 23 Feb 2021 20:22:34 -0800 (PST) MIME-Version: 1.0 References: <86sg5mtp5p.fsf@gmail.com> In-Reply-To: <86sg5mtp5p.fsf@gmail.com> From: Andy Tai Date: Tue, 23 Feb 2021 20:21:58 -0800 Message-ID: Subject: Re: building package: gcc 7.5.0 referenced instead of latest gcc; not sure why To: zimoun Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::d2d; envelope-from=lichengtai@gmail.com; helo=mail-io1-xd2d.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.07 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=atai-org.20150623.gappssmtp.com header.s=20150623 header.b="TWEHf/Pu"; dmarc=none; 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: AD8C8291F3 X-Spam-Score: -1.07 X-Migadu-Scanner: scn1.migadu.com X-TUID: 5/ay5fZaJIWa Thanks. I figured out the problem, gcc version was not the problem But gcc 10 did help by giving useful messages to point out the issue. Thanks! On Tue, Feb 23, 2021 at 8:12 PM zimoun wrote: > > 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 N= O > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOS= E. > --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@1= 0 > > 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-Varian= ts --=20 Andy Tai, atai@atai.org, Skype: licheng.tai, Line: andy_tai, WeChat: andyta= i1010 Year 2021 =E6=B0=91=E5=9C=8B110=E5=B9=B4 =E8=87=AA=E5=8B=95=E7=9A=84=E7=B2=BE=E7=A5=9E=E5=8A=9B=E6=98=AF=E4=BF=A1=E4= =BB=B0=E8=88=87=E8=A6=BA=E6=82=9F =E8=87=AA=E5=8B=95=E7=9A=84=E8=A1=8C=E7=82=BA=E5=8A=9B=E6=98=AF=E5=8B=9E=E5= =8B=95=E8=88=87=E6=8A=80=E8=83=BD