unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Andy Tai <atai@atai.org>
To: zimoun <zimon.toutoune@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: building package: gcc 7.5.0 referenced instead of latest gcc; not sure why
Date: Tue, 23 Feb 2021 20:21:58 -0800	[thread overview]
Message-ID: <CAJsg1E_f1+Uo6NYOGN_qY8Bg-EoZta2BCx3t65iVz-OcK=SHhQ@mail.gmail.com> (raw)
In-Reply-To: <86sg5mtp5p.fsf@gmail.com>

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 <zimon.toutoune@gmail.com> wrote:
>
> Hi Andy,
>
> On Mon, 22 Feb 2021 at 16:10, Andy Tai <atai@atai.org> 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…
>
> > I tried to update a package definition (vtk) and then tried to build it
> >
> > ./pre-inst-env guix build -k -K vtk
>
> …which 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=gcc-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



-- 
Andy Tai, atai@atai.org, Skype: licheng.tai, Line: andy_tai, WeChat: andytai1010
Year 2021 民國110年
自動的精神力是信仰與覺悟
自動的行為力是勞動與技能


  reply	other threads:[~2021-02-24  4:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-23  0:10 building package: gcc 7.5.0 referenced instead of latest gcc; not sure why Andy Tai
2021-02-23  2:48 ` Leo Famulari
2021-02-23 22:06 ` zimoun
2021-02-24  4:21   ` Andy Tai [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-02-23  0:18 Andy Tai
2021-02-22 22:25 Andy Tai
2021-02-24 10:24 ` Chris Marusich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJsg1E_f1+Uo6NYOGN_qY8Bg-EoZta2BCx3t65iVz-OcK=SHhQ@mail.gmail.com' \
    --to=atai@atai.org \
    --cc=help-guix@gnu.org \
    --cc=zimon.toutoune@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).