From: zimoun <zimon.toutoune@gmail.com>
To: Andy Tai <atai@atai.org>, 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 23:06:26 +0100 [thread overview]
Message-ID: <86sg5mtp5p.fsf@gmail.com> (raw)
In-Reply-To: <CAJsg1E_mb2w-neci18fzdq3+RkYEE8XYV3itZb8kzGnR27hfMA@mail.gmail.com>
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
next prev parent reply other threads:[~2021-02-23 22:08 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 [this message]
2021-02-24 4:21 ` Andy Tai
-- 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86sg5mtp5p.fsf@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=atai@atai.org \
--cc=help-guix@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.