public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/105527] New: configure option --with-zstd is not documented
@ 2022-05-08 22:18 bruno at clisp dot org
  2022-05-09  6:59 ` [Bug other/105527] " marxin at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: bruno at clisp dot org @ 2022-05-08 22:18 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105527

            Bug ID: 105527
           Summary: configure option --with-zstd is not documented
           Product: gcc
           Version: 12.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bruno at clisp dot org
  Target Milestone: ---

A GCC 12.1.0 build of mine is failing with the error messages

/usr/lib/gcc-cross/i686-linux-gnu/10/../../../../i686-linux-gnu/bin/ld:
/build-loongarch64-linux/gcc-12.1.0/gcc/../../../../sources/gcc-12.1.0/gcc/lto-compress.cc:170:
undefined reference to `ZSTD_isError'
/usr/lib/gcc-cross/i686-linux-gnu/10/../../../../i686-linux-gnu/bin/ld:
/build-loongarch64-linux/gcc-12.1.0/gcc/../../../../sources/gcc-12.1.0/gcc/lto-compress.cc:171:
undefined reference to `ZSTD_getErrorName'
collect2: error: ld returned 1 exit status
make: *** [/sources/gcc-12.1.0/gcc/c/Make-lang.in:87: cc1] error 1

Obviously, the ZStd prerequisite is missing. The documentation (in
gcc-12.1.0/gcc/doc/gccinstall.info and in
https://gcc.gnu.org/install/prerequisites.html) merely says "Alternatively, the
--with-zstd configure option should be used." But what is its argument?

I would expect to see this documented
1. in gcc-12.1.0/gcc/doc/gccinstall.info node "Configuration",
2. also in https://gcc.gnu.org/install/configure.html.

The only hint I can get is by running "gcc-12.1.0/gcc/configure --help", which
prints

  --with-zstd=PATH        specify prefix directory for installed zstd library.
                          Equivalent to --with-zstd-include=PATH/include plus
                          --with-zstd-lib=PATH/lib
  --with-zstd-include=PATH
                          specify directory for installed zstd include files
  --with-zstd-lib=PATH    specify directory for the installed zstd library

This text gives the answer. It should be added to the .texi documentation.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug other/105527] configure option --with-zstd is not documented
  2022-05-08 22:18 [Bug other/105527] New: configure option --with-zstd is not documented bruno at clisp dot org
@ 2022-05-09  6:59 ` marxin at gcc dot gnu.org
  2022-05-11 12:02 ` cvs-commit at gcc dot gnu.org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-05-09  6:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105527

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-05-09
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org
             Status|UNCONFIRMED                 |ASSIGNED
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug other/105527] configure option --with-zstd is not documented
  2022-05-08 22:18 [Bug other/105527] New: configure option --with-zstd is not documented bruno at clisp dot org
  2022-05-09  6:59 ` [Bug other/105527] " marxin at gcc dot gnu.org
@ 2022-05-11 12:02 ` cvs-commit at gcc dot gnu.org
  2022-05-11 12:06 ` marxin at gcc dot gnu.org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-05-11 12:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105527

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Liska <marxin@gcc.gnu.org>:

https://gcc.gnu.org/g:8fa689767a8a55c889683d178ae3a003ec689927

commit r13-317-g8fa689767a8a55c889683d178ae3a003ec689927
Author: Martin Liska <mliska@suse.cz>
Date:   Wed May 11 13:21:26 2022 +0200

    docs: document --with-zstd

            PR other/105527

    gcc/ChangeLog:

            * doc/install.texi: Document the configure option --with-zstd.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug other/105527] configure option --with-zstd is not documented
  2022-05-08 22:18 [Bug other/105527] New: configure option --with-zstd is not documented bruno at clisp dot org
  2022-05-09  6:59 ` [Bug other/105527] " marxin at gcc dot gnu.org
  2022-05-11 12:02 ` cvs-commit at gcc dot gnu.org
@ 2022-05-11 12:06 ` marxin at gcc dot gnu.org
  2022-05-11 14:04 ` bruno at clisp dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-05-11 12:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105527

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |13.0

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed on master so far.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug other/105527] configure option --with-zstd is not documented
  2022-05-08 22:18 [Bug other/105527] New: configure option --with-zstd is not documented bruno at clisp dot org
                   ` (2 preceding siblings ...)
  2022-05-11 12:06 ` marxin at gcc dot gnu.org
@ 2022-05-11 14:04 ` bruno at clisp dot org
  2022-05-11 14:09 ` marxin at gcc dot gnu.org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bruno at clisp dot org @ 2022-05-11 14:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105527

--- Comment #3 from Bruno Haible <bruno at clisp dot org> ---
Created attachment 52955
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52955&action=edit
Patch to document also --with-zstd-include and --with-zstd-lib

Hi Martin,

The patch you added is pretty minimal: it refers to undocumented options
--with-zstd-include and --with-zstd-lib; it suggests that --with-zstd can be
used without an argument; and it does not clarify how this option applies to
cross-compilation.

How about adding the same details as for the --with-isl, --with-isl-include,
--with-isl-lib options, mutatis mutandis? Find attached a patch that does that.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug other/105527] configure option --with-zstd is not documented
  2022-05-08 22:18 [Bug other/105527] New: configure option --with-zstd is not documented bruno at clisp dot org
                   ` (3 preceding siblings ...)
  2022-05-11 14:04 ` bruno at clisp dot org
@ 2022-05-11 14:09 ` marxin at gcc dot gnu.org
  2022-05-12  7:02 ` marxin at gcc dot gnu.org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-05-11 14:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105527

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
I welcome that, please send it to gcc-patches mailing list.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug other/105527] configure option --with-zstd is not documented
  2022-05-08 22:18 [Bug other/105527] New: configure option --with-zstd is not documented bruno at clisp dot org
                   ` (4 preceding siblings ...)
  2022-05-11 14:09 ` marxin at gcc dot gnu.org
@ 2022-05-12  7:02 ` marxin at gcc dot gnu.org
  2022-05-24 11:24 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-05-12  7:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105527

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|marxin at gcc dot gnu.org          |unassigned at gcc dot gnu.org
             Status|ASSIGNED                    |NEW

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug other/105527] configure option --with-zstd is not documented
  2022-05-08 22:18 [Bug other/105527] New: configure option --with-zstd is not documented bruno at clisp dot org
                   ` (5 preceding siblings ...)
  2022-05-12  7:02 ` marxin at gcc dot gnu.org
@ 2022-05-24 11:24 ` cvs-commit at gcc dot gnu.org
  2022-05-24 11:33 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-05-24 11:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105527

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Liska <marxin@gcc.gnu.org>:

https://gcc.gnu.org/g:3677eb80b683cead7db972bc206fd2e75d997bd2

commit r13-728-g3677eb80b683cead7db972bc206fd2e75d997bd2
Author: Bruno Haible <bruno@clisp.org>
Date:   Wed May 11 17:10:07 2022 +0200

    Extend --with-zstd documentation

    The patch that was so far added for documenting --with-zstd is pretty
    minimal:
      - it refers to undocumented options --with-zstd-include and
        --with-zstd-lib;
      - it suggests that --with-zstd can be used without an argument;
      - it does not clarify how this option applies to cross-compilation.

    How about adding the same details as for the --with-isl,
    --with-isl-include, --with-isl-lib options, mutatis mutandis? This patch
    does that.

            PR other/105527

    gcc/ChangeLog:

            * doc/install.texi (Configuration): Add more details about
--with-zstd.
            Document --with-zstd-include and --with-zstd-lib

    Signed-off-by: Bruno Haible <bruno@clisp.org>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug other/105527] configure option --with-zstd is not documented
  2022-05-08 22:18 [Bug other/105527] New: configure option --with-zstd is not documented bruno at clisp dot org
                   ` (6 preceding siblings ...)
  2022-05-24 11:24 ` cvs-commit at gcc dot gnu.org
@ 2022-05-24 11:33 ` cvs-commit at gcc dot gnu.org
  2022-05-24 11:33 ` cvs-commit at gcc dot gnu.org
  2022-05-24 11:34 ` marxin at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-05-24 11:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105527

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Martin Liska
<marxin@gcc.gnu.org>:

https://gcc.gnu.org/g:f4c0f9257ef2615add8ecb30e7a568755b692473

commit r12-8411-gf4c0f9257ef2615add8ecb30e7a568755b692473
Author: Martin Liska <mliska@suse.cz>
Date:   Wed May 11 13:21:26 2022 +0200

    docs: document --with-zstd

            PR other/105527

    gcc/ChangeLog:

            * doc/install.texi: Document the configure option --with-zstd.

    (cherry picked from commit 8fa689767a8a55c889683d178ae3a003ec689927)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug other/105527] configure option --with-zstd is not documented
  2022-05-08 22:18 [Bug other/105527] New: configure option --with-zstd is not documented bruno at clisp dot org
                   ` (7 preceding siblings ...)
  2022-05-24 11:33 ` cvs-commit at gcc dot gnu.org
@ 2022-05-24 11:33 ` cvs-commit at gcc dot gnu.org
  2022-05-24 11:34 ` marxin at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-05-24 11:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105527

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Martin Liska
<marxin@gcc.gnu.org>:

https://gcc.gnu.org/g:394ff2fbfc84eb6d6cfc56b04e28ee9b42a5ab57

commit r12-8412-g394ff2fbfc84eb6d6cfc56b04e28ee9b42a5ab57
Author: Bruno Haible <bruno@clisp.org>
Date:   Wed May 11 17:10:07 2022 +0200

    Extend --with-zstd documentation

    The patch that was so far added for documenting --with-zstd is pretty
    minimal:
      - it refers to undocumented options --with-zstd-include and
        --with-zstd-lib;
      - it suggests that --with-zstd can be used without an argument;
      - it does not clarify how this option applies to cross-compilation.

    How about adding the same details as for the --with-isl,
    --with-isl-include, --with-isl-lib options, mutatis mutandis? This patch
    does that.

            PR other/105527

    gcc/ChangeLog:

            * doc/install.texi (Configuration): Add more details about
--with-zstd.
            Document --with-zstd-include and --with-zstd-lib

    Signed-off-by: Bruno Haible <bruno@clisp.org>
    (cherry picked from commit 3677eb80b683cead7db972bc206fd2e75d997bd2)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug other/105527] configure option --with-zstd is not documented
  2022-05-08 22:18 [Bug other/105527] New: configure option --with-zstd is not documented bruno at clisp dot org
                   ` (8 preceding siblings ...)
  2022-05-24 11:33 ` cvs-commit at gcc dot gnu.org
@ 2022-05-24 11:34 ` marxin at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-05-24 11:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105527

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed on gcc-12 branch, closing.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-05-24 11:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-08 22:18 [Bug other/105527] New: configure option --with-zstd is not documented bruno at clisp dot org
2022-05-09  6:59 ` [Bug other/105527] " marxin at gcc dot gnu.org
2022-05-11 12:02 ` cvs-commit at gcc dot gnu.org
2022-05-11 12:06 ` marxin at gcc dot gnu.org
2022-05-11 14:04 ` bruno at clisp dot org
2022-05-11 14:09 ` marxin at gcc dot gnu.org
2022-05-12  7:02 ` marxin at gcc dot gnu.org
2022-05-24 11:24 ` cvs-commit at gcc dot gnu.org
2022-05-24 11:33 ` cvs-commit at gcc dot gnu.org
2022-05-24 11:33 ` cvs-commit at gcc dot gnu.org
2022-05-24 11:34 ` marxin at gcc dot gnu.org

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).