GNU bug report logs - #43303
GCC package name

Previous Next

Package: guix;

Reported by: noloader <at> gmail.com

Date: Thu, 10 Sep 2020 05:22:02 UTC

Severity: normal

Tags: fixed

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 43303 in the body.
You can then email your comments to 43303 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#43303; Package guix. (Thu, 10 Sep 2020 05:22:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to noloader <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 10 Sep 2020 05:22:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jeffrey Walton <noloader <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: GCC package name
Date: Thu, 10 Sep 2020 01:20:47 -0400
Hi Everyone,

It took me about 15 minutes to install GCC on Guix because Guix named
the GCC package libgccjit.

I understand Guix package manager is powerful. I think you should use
an alias feature (or whatever it is called under Guix), and create and
few aliases to help with administration:

   gcc -> libgccjit
   g++ -> libgccjit
   gcc-c++ -> libgccjit

These are the names developers expect for the compiler. They don't
expect a name like libgccjit.

With the aliases in place, a command like 'guix install gcc' works as expected.

Without the aliases (and absent a sane package name), people have to
lookup the documentation and read how to use the package manager for a
simple task like installing the compiler. When 50 or 100 developers
waste 15 minutes of their time, that's about 1 man-week wasted.
There's no reason to waste man-weeks on simple tasks.

Thanks in advance.




Information forwarded to bug-guix <at> gnu.org:
bug#43303; Package guix. (Thu, 10 Sep 2020 06:20:01 GMT) Full text and rfc822 format available.

Message #8 received at 43303 <at> debbugs.gnu.org (full text, mbox):

From: Malte Gerdes <malte.f.gerdes <at> gmail.com>
To: noloader <at> gmail.com
Cc: 43303 <at> debbugs.gnu.org
Subject: Re: bug#43303: GCC package name
Date: Thu, 10 Sep 2020 08:18:43 +0200
[Message part 1 (text/plain, inline)]
Hi,

the GCC package itself isn't to useful. I think you are looking for the
gcc-toolchain package which installs GCC, binutils and libc.

Malte

On Thu, 10 Sep 2020, 07:22 Jeffrey Walton, <noloader <at> gmail.com> wrote:

> Hi Everyone,
>
> It took me about 15 minutes to install GCC on Guix because Guix named
> the GCC package libgccjit.
>
> I understand Guix package manager is powerful. I think you should use
> an alias feature (or whatever it is called under Guix), and create and
> few aliases to help with administration:
>
>    gcc -> libgccjit
>    g++ -> libgccjit
>    gcc-c++ -> libgccjit
>
> These are the names developers expect for the compiler. They don't
> expect a name like libgccjit.
>
> With the aliases in place, a command like 'guix install gcc' works as
> expected.
>
> Without the aliases (and absent a sane package name), people have to
> lookup the documentation and read how to use the package manager for a
> simple task like installing the compiler. When 50 or 100 developers
> waste 15 minutes of their time, that's about 1 man-week wasted.
> There's no reason to waste man-weeks on simple tasks.
>
> Thanks in advance.
>
>
>
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#43303; Package guix. (Thu, 10 Sep 2020 08:35:01 GMT) Full text and rfc822 format available.

Message #11 received at 43303 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: noloader <at> gmail.com
Cc: 43303 <at> debbugs.gnu.org
Subject: Re: bug#43303: GCC package name
Date: Thu, 10 Sep 2020 10:34:29 +0200
Dear,

Thank you for the feedback.

On Thu, 10 Sep 2020 at 07:22, Jeffrey Walton <noloader <at> gmail.com> wrote:

> It took me about 15 minutes to install GCC on Guix because Guix named
> the GCC package libgccjit.

It is a common "mistake" and there is an entry in the manual about that:

https://guix.gnu.org/manual/devel/en/guix.html#The-GCC-toolchain

Moreover, I am not sure what you want is 'libgccjit' but 'gcc-toolchain'.


> These are the names developers expect for the compiler. They don't
> expect a name like libgccjit.

However, you are right.  Something is wrong with "guix search", for example:

--8<---------------cut here---------------start------------->8---
guix search gcc | recsel -p name,relevance | head -11
name: libgccjit
relevance: 11

name: gccmakedep
relevance: 11

name: gccgo
relevance: 11

name: gcc-toolchain
relevance: 11
--8<---------------cut here---------------end--------------->8---

It is unfortunate and the synopsis of 'libgccjit' should be more
descriptive than "GNU Compiler Collection".


> With the aliases in place, a command like 'guix install gcc' works as expected.

As said above, the right command is "guix install gcc-toolchain".

> Without the aliases (and absent a sane package name), people have to
> lookup the documentation and read how to use the package manager for a
> simple task like installing the compiler. When 50 or 100 developers
> waste 15 minutes of their time, that's about 1 man-week wasted.
> There's no reason to waste man-weeks on simple tasks.

I understand the frustration.  What could be improved in the manual?

How did you process after

  $ guix install gcc
  guix install: error: gcc: unknown package

?  Which terms did you use with "guix search"?


All the best,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#43303; Package guix. (Thu, 10 Sep 2020 10:34:02 GMT) Full text and rfc822 format available.

Message #14 received at 43303 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Jeffrey Walton <noloader <at> gmail.com>
Cc: 43303 <at> debbugs.gnu.org
Subject: Re: bug#43303: GCC package name
Date: Thu, 10 Sep 2020 12:33:13 +0200
Hi Jeffrey,

Jeffrey Walton <noloader <at> gmail.com> skribis:

> It took me about 15 minutes to install GCC on Guix because Guix named
> the GCC package libgccjit.

I’m sorry to hear it caused you so much trouble and actually led you to
install the “wrong” package.

> With the aliases in place, a command like 'guix install gcc' works as expected.

I’ve now added such an alias:

  https://git.savannah.gnu.org/cgit/guix.git/commit/?id=f17e1802ec325e5cc86d4908f05ac69aafdf39da

I’ll install ‘gcc-toolchain’, which is explained here:

  https://guix.gnu.org/manual/en/html_node/Application-Setup.html#The-GCC-toolchain

Thanks,
Ludo’.




Added tag(s) fixed. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 10 Sep 2020 10:34:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 43303 <at> debbugs.gnu.org and noloader <at> gmail.com Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 10 Sep 2020 10:34:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#43303; Package guix. (Thu, 10 Sep 2020 11:17:01 GMT) Full text and rfc822 format available.

Message #21 received at 43303 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Jeffrey Walton <noloader <at> gmail.com>, 43303 <at> debbugs.gnu.org
Subject: Re: bug#43303: GCC package name
Date: Thu, 10 Sep 2020 13:16:36 +0200
Hi Ludo,

On Thu, 10 Sep 2020 at 12:41, Ludovic Courtès <ludo <at> gnu.org> wrote:

> > With the aliases in place, a command like 'guix install gcc' works as expected.
>
> I’ve now added such an alias:
>
>   https://git.savannah.gnu.org/cgit/guix.git/commit/?id=f17e1802ec325e5cc86d4908f05ac69aafdf39da

Nice use of deprecated-package. :-)

About discoverability (guix search gcc) there is still 2 issues:

 1. libgccjit inherits from gcc-9 but the synopsis/description is not updated.
 2. gccgo uses custom-gcc and so reuse the same synopsis/description.

The #1 is easy to fix -- I can send a patch which precises the
synopsis/description of libgccjit.

What is the best for #2?  Add 2 optional arguments to 'custom-gcc'
(synopsis and description)?  Other?


Last, it is unfortunate that the package gccmakedep has the exact same
number of occurence of the term 'gcc' but it is not an issue.

Cheers,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#43303; Package guix. (Thu, 10 Sep 2020 11:24:02 GMT) Full text and rfc822 format available.

Message #24 received at 43303 <at> debbugs.gnu.org (full text, mbox):

From: Jeffrey Walton <noloader <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 43303 <at> debbugs.gnu.org
Subject: Re: bug#43303: GCC package name
Date: Thu, 10 Sep 2020 07:22:50 -0400
On Thu, Sep 10, 2020 at 6:33 AM Ludovic Courtès <ludo <at> gnu.org> wrote:
>
> Hi Jeffrey,
>
> Jeffrey Walton <noloader <at> gmail.com> skribis:
>
> > It took me about 15 minutes to install GCC on Guix because Guix named
> > the GCC package libgccjit.
>
> I’m sorry to hear it caused you so much trouble and actually led you to
> install the “wrong” package.

Lol... Yeah, I found out libgccjit was not right either.

> > With the aliases in place, a command like 'guix install gcc' works as expected.
>
> I’ve now added such an alias:
>
>   https://git.savannah.gnu.org/cgit/guix.git/commit/?id=f17e1802ec325e5cc86d4908f05ac69aafdf39da

Perfect, thanks.

> I’ll install ‘gcc-toolchain’, which is explained here:
>
>   https://guix.gnu.org/manual/en/html_node/Application-Setup.html#The-GCC-toolchain

Thanks.

I was working from
https://guix.gnu.org/manual/en/html_node/Invoking-guix-package.html
and the search command.

Jeff




Information forwarded to bug-guix <at> gnu.org:
bug#43303; Package guix. (Thu, 10 Sep 2020 11:32:01 GMT) Full text and rfc822 format available.

Message #27 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: Jeffrey Walton <noloader <at> gmail.com>,
 Ludovic Courtès <ludo <at> gnu.org>, bug-guix <at> gnu.org,
 43303 <at> debbugs.gnu.org
Subject: Re: bug#43303: GCC package name
Date: Thu, 10 Sep 2020 13:32:46 +0200
zimoun <zimon.toutoune <at> gmail.com> writes:

> About discoverability (guix search gcc) there is still 2 issues:
>
>  1. libgccjit inherits from gcc-9 but the synopsis/description is not updated.
>  2. gccgo uses custom-gcc and so reuse the same synopsis/description.
>
> The #1 is easy to fix -- I can send a patch which precises the
> synopsis/description of libgccjit.

Sounds good!

> What is the best for #2?  Add 2 optional arguments to 'custom-gcc'
> (synopsis and description)?  Other?

custom-gcc returns a package value, so we can inherit from that and
overwrite the synopsis and description fields.

-- 
Ricardo




Information forwarded to bug-guix <at> gnu.org:
bug#43303; Package guix. (Thu, 10 Sep 2020 11:32:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#43303; Package guix. (Thu, 10 Sep 2020 11:44:01 GMT) Full text and rfc822 format available.

Message #33 received at 43303 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: Jeffrey Walton <noloader <at> gmail.com>,
 Ludovic Courtès <ludo <at> gnu.org>, 43303 <at> debbugs.gnu.org
Subject: Re: bug#43303: GCC package name
Date: Thu, 10 Sep 2020 13:43:21 +0200
Hi Ricardo,

On Thu, 10 Sep 2020 at 13:31, Ricardo Wurmus <rekado <at> elephly.net> wrote:

> > What is the best for #2?  Add 2 optional arguments to 'custom-gcc'
> > (synopsis and description)?  Other?
>
> custom-gcc returns a package value, so we can inherit from that and
> overwrite the synopsis and description fields.

Well, custom-gcc is already an inherit.  So it seems awkward to inherit twice.
But yes, since it is the only case, it could be the simplest:
gccgo-4.9 would become only 'define' and a new 'gccgo' would be
inherit from gccgo-4.9 and would be define-public.

Cheers,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#43303; Package guix. (Thu, 10 Sep 2020 13:22:03 GMT) Full text and rfc822 format available.

Message #36 received at 43303 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: Jeffrey Walton <noloader <at> gmail.com>,
 Ludovic Courtès <ludo <at> gnu.org>, 43303 <at> debbugs.gnu.org
Subject: Re: bug#43303: GCC package name
Date: Thu, 10 Sep 2020 15:22:56 +0200
zimoun <zimon.toutoune <at> gmail.com> writes:

> On Thu, 10 Sep 2020 at 13:31, Ricardo Wurmus <rekado <at> elephly.net> wrote:
>
>> > What is the best for #2?  Add 2 optional arguments to 'custom-gcc'
>> > (synopsis and description)?  Other?
>>
>> custom-gcc returns a package value, so we can inherit from that and
>> overwrite the synopsis and description fields.
>
> Well, custom-gcc is already an inherit.  So it seems awkward to
> inherit twice.

Nobody will ever know when just looking at the final package.  :)

-- 
Ricardo




Information forwarded to bug-guix <at> gnu.org:
bug#43303; Package guix. (Fri, 11 Sep 2020 16:12:01 GMT) Full text and rfc822 format available.

Message #39 received at 43303 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Ricardo Wurmus <rekado <at> elephly.net>, Jeffrey Walton <noloader <at> gmail.com>,
 43303 <at> debbugs.gnu.org
Subject: Re: bug#43303: GCC package name
Date: Fri, 11 Sep 2020 18:11:24 +0200
Dear,

On Thu, 10 Sep 2020 at 13:16, zimoun <zimon.toutoune <at> gmail.com> wrote:

> About discoverability (guix search gcc) there is still 2 issues:
>
>  1. libgccjit inherits from gcc-9 but the synopsis/description is not updated.
>  2. gccgo uses custom-gcc and so reuse the same synopsis/description.

[...]

> Last, it is unfortunate that the package gccmakedep has the exact same
> number of occurence of the term 'gcc' but it is not an issue.

The patches #43342 <http://issues.guix.gnu.org/issue/43342> tries to
fix these 3 items.


All the best,
simon




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 10 Oct 2020 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 171 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.