public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/98152] New: [11 regression] /usr/bin/env: 'python': No such file or directory
@ 2020-12-05  8:26 schwab@linux-m68k.org
  2020-12-05  8:27 ` [Bug target/98152] " schwab@linux-m68k.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: schwab@linux-m68k.org @ 2020-12-05  8:26 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98152
           Summary: [11 regression] /usr/bin/env: 'python': No such file
                    or directory
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: schwab@linux-m68k.org
                CC: kito.cheng at gmail dot com
  Target Milestone: ---
            Target: riscv*-*-*

/usr/bin/env: 'python': No such file or directory
--with-abi= is not supported for ISA
make[2]: *** [Makefile:4441: configure-stage1-gcc] Error 1

Why is a newly added python script written in python2???

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

* [Bug target/98152] [11 regression] /usr/bin/env: 'python': No such file or directory
  2020-12-05  8:26 [Bug target/98152] New: [11 regression] /usr/bin/env: 'python': No such file or directory schwab@linux-m68k.org
@ 2020-12-05  8:27 ` schwab@linux-m68k.org
  2020-12-05 16:06 ` marxin at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: schwab@linux-m68k.org @ 2020-12-05  8:27 UTC (permalink / raw)
  To: gcc-bugs

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

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |11.0
           Keywords|                            |build

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

* [Bug target/98152] [11 regression] /usr/bin/env: 'python': No such file or directory
  2020-12-05  8:26 [Bug target/98152] New: [11 regression] /usr/bin/env: 'python': No such file or directory schwab@linux-m68k.org
  2020-12-05  8:27 ` [Bug target/98152] " schwab@linux-m68k.org
@ 2020-12-05 16:06 ` marxin at gcc dot gnu.org
  2020-12-06  3:29 ` kito at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-12-05 16:06 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2020-12-05
                 CC|                            |marxin at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
The problem is that Python should not be needed during the build process of
GCC.
Some time ago, I wanted to generate options-related files with Python. But the
decision was made that it's quite a big dependency.

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

* [Bug target/98152] [11 regression] /usr/bin/env: 'python': No such file or directory
  2020-12-05  8:26 [Bug target/98152] New: [11 regression] /usr/bin/env: 'python': No such file or directory schwab@linux-m68k.org
  2020-12-05  8:27 ` [Bug target/98152] " schwab@linux-m68k.org
  2020-12-05 16:06 ` marxin at gcc dot gnu.org
@ 2020-12-06  3:29 ` kito at gcc dot gnu.org
  2020-12-07  7:51 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: kito at gcc dot gnu.org @ 2020-12-06  3:29 UTC (permalink / raw)
  To: gcc-bugs

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

Kito Cheng <kito at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |kito at gcc dot gnu.org

--- Comment #2 from Kito Cheng <kito at gcc dot gnu.org> ---
The script has test with python2 and python3, but seems like require python as
essential for building RISC-V is inappropriate, I'll send patch later to made
this become optional.

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

* [Bug target/98152] [11 regression] /usr/bin/env: 'python': No such file or directory
  2020-12-05  8:26 [Bug target/98152] New: [11 regression] /usr/bin/env: 'python': No such file or directory schwab@linux-m68k.org
                   ` (2 preceding siblings ...)
  2020-12-06  3:29 ` kito at gcc dot gnu.org
@ 2020-12-07  7:51 ` rguenth at gcc dot gnu.org
  2020-12-08  7:52 ` cvs-commit at gcc dot gnu.org
  2020-12-08  7:57 ` kito at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-12-07  7:51 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
btw, if you require python install.texi should list it as prerequesite (on
riscv).  Note I strongly encourage to replace with sth else.

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

* [Bug target/98152] [11 regression] /usr/bin/env: 'python': No such file or directory
  2020-12-05  8:26 [Bug target/98152] New: [11 regression] /usr/bin/env: 'python': No such file or directory schwab@linux-m68k.org
                   ` (3 preceding siblings ...)
  2020-12-07  7:51 ` rguenth at gcc dot gnu.org
@ 2020-12-08  7:52 ` cvs-commit at gcc dot gnu.org
  2020-12-08  7:57 ` kito at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-12-08  7:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Kito Cheng <kito@gcc.gnu.org>:

https://gcc.gnu.org/g:4aaf33718f09daf1cd2864b3db07faa2e44642ff

commit r11-5835-g4aaf33718f09daf1cd2864b3db07faa2e44642ff
Author: Kito Cheng <kito.cheng@sifive.com>
Date:   Sun Dec 6 11:39:22 2020 +0800

    PR target/98152: Checking python is available before using

    We'll try to canonicalize the arch string for --with-arch,
    and the script is written in python, however it will turns out
    GCC require python to build for RISC-V port, it's not expect as
    the GCC requirement.

    So this patch is made this as optional, detect python and only use it
    when it available, it won't break any functionality with out doing
    canonicalization, just might build one more redundant multi-lib.

    gcc/ChangeLog:

            PR target/98152
            * config.gcc (riscv*-*-*): Checking python, python3 or python2
            is available, and skip doing with_arch canonicalize if no python
            available.

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

* [Bug target/98152] [11 regression] /usr/bin/env: 'python': No such file or directory
  2020-12-05  8:26 [Bug target/98152] New: [11 regression] /usr/bin/env: 'python': No such file or directory schwab@linux-m68k.org
                   ` (4 preceding siblings ...)
  2020-12-08  7:52 ` cvs-commit at gcc dot gnu.org
@ 2020-12-08  7:57 ` kito at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: kito at gcc dot gnu.org @ 2020-12-08  7:57 UTC (permalink / raw)
  To: gcc-bugs

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

Kito Cheng <kito at gcc dot gnu.org> changed:

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

--- Comment #5 from Kito Cheng <kito at gcc dot gnu.org> ---
I just made python as optional, the functional is not changed, just could be
build one more redundant multi-lib.

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

end of thread, other threads:[~2020-12-08  7:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-05  8:26 [Bug target/98152] New: [11 regression] /usr/bin/env: 'python': No such file or directory schwab@linux-m68k.org
2020-12-05  8:27 ` [Bug target/98152] " schwab@linux-m68k.org
2020-12-05 16:06 ` marxin at gcc dot gnu.org
2020-12-06  3:29 ` kito at gcc dot gnu.org
2020-12-07  7:51 ` rguenth at gcc dot gnu.org
2020-12-08  7:52 ` cvs-commit at gcc dot gnu.org
2020-12-08  7:57 ` kito 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).