From: Chris Marusich <cmmarusich@gmail.com>
To: Andy Tai <lichengtai@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: building package: gcc 7.5.0 referenced instead of latest gcc; not sure why
Date: Wed, 24 Feb 2021 02:24:51 -0800 [thread overview]
Message-ID: <87v9ah69vw.fsf@gmail.com> (raw)
In-Reply-To: <CAJsg1E8wazfyc2kroztBeG77H3z3ukRt-PjysqBFjGb4-wH29w@mail.gmail.com> (Andy Tai's message of "Mon, 22 Feb 2021 14:25:11 -0800")
[-- Attachment #1: Type: text/plain, Size: 1447 bytes --]
Hi Andy,
Andy Tai <lichengtai@gmail.com> writes:
> I tried to update a package definition (vtk) and then tried to build it
>
> ./pre-inst-env guix build -k -K vtk
>
> and the log file shows gcc 7.5 being used
The vtk package uses the cmake-build-system, which like every build
system adds some inputs to the build implicitly. One of those "implicit
inputs" is gcc-final, defined in gnu/packages/commencement.scm, and it
happens to be GCC 7.5:
scheme@(guix-user)> (@@ (gnu packages commencement) gcc-final)
$1 = #<package gcc@7.5.0 gnu/packages/commencement.scm:3561 7fe14101d780>
scheme@(guix-user)>
To see how the cmake-build-system adds gcc-final as an implicit input,
you can start by looking at guix/build-system/cmake.scm. In short, the
"lower" procedure returns a bag, and it adds the inputs produced by the
standard-packages procedure to the returned bag. The standard-packages
procedure is defined in guix/build-system/gnu.scm (the
cmake-build-system re-uses many parts of the gnu-build-system), and it
returns %final-inputs, which is defined in gnu/packages/commencement.
It is here that the "gcc" input is bound to gcc-final.
I don't know why gcc-final is still GCC 7.5 rather than a more recent
version, but I suspect it is related to the fact that upgrading
gcc-final would cause virtually every package to be rebuilt. For that
reason, we probably don't upgrade it often.
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2021-02-24 10:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-22 22:25 building package: gcc 7.5.0 referenced instead of latest gcc; not sure why Andy Tai
2021-02-24 10:24 ` Chris Marusich [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-02-23 0:10 Andy Tai
2021-02-23 2:48 ` Leo Famulari
2021-02-23 22:06 ` zimoun
2021-02-24 4:21 ` Andy Tai
2021-02-23 0:18 Andy Tai
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=87v9ah69vw.fsf@gmail.com \
--to=cmmarusich@gmail.com \
--cc=help-guix@gnu.org \
--cc=lichengtai@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.
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.