public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/107739] New: --enable-languages= duplicates yield odd error
@ 2022-11-17 20:17 aldot at gcc dot gnu.org
  2022-11-17 22:30 ` [Bug bootstrap/107739] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: aldot at gcc dot gnu.org @ 2022-11-17 20:17 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107739
           Summary: --enable-languages= duplicates yield odd error
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: aldot at gcc dot gnu.org
  Target Milestone: ---

Mere cosmetics, but the error is contradicting it's own hint in a confusing
way.

$ ../../src/gcc-13.mine/configure --enable-languages=c++,lto,lto
configure: error: 
The following requested languages could not be built: lto
Supported languages are: c,c,c++,fortran,go,lto,objc,obj-c++

or other dups like
$ ../../src/gcc-13.mine/configure --enable-languages=c++,c++,lto
configure: error: 
The following requested languages could not be built: c++
Supported languages are: c,c,c++,fortran,go,lto,objc,obj-c++

I'm not sure why duplicates are not ignored silently.

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

* [Bug bootstrap/107739] --enable-languages= duplicates yield odd error
  2022-11-17 20:17 [Bug bootstrap/107739] New: --enable-languages= duplicates yield odd error aldot at gcc dot gnu.org
@ 2022-11-17 22:30 ` pinskia at gcc dot gnu.org
  2022-11-18  3:31 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-11-17 22:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I thought this was fixed at one point.

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

* [Bug bootstrap/107739] --enable-languages= duplicates yield odd error
  2022-11-17 20:17 [Bug bootstrap/107739] New: --enable-languages= duplicates yield odd error aldot at gcc dot gnu.org
  2022-11-17 22:30 ` [Bug bootstrap/107739] " pinskia at gcc dot gnu.org
@ 2022-11-18  3:31 ` pinskia at gcc dot gnu.org
  2022-11-18  3:45 ` pinskia at gcc dot gnu.org
  2022-11-18  7:55 ` schwab@linux-m68k.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-11-18  3:31 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |build, diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-11-18
     Ever confirmed|0                           |1

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
[apinski@linux oo]$ ../configure --enable-languages=c++,c++,lto
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... gawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libvtv support... yes
checking for libphobos support... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc option to accept ISO C99... -std=gnu99
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... no
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada and is recent enough... no
checking for gdc... no
checking whether the D compiler works... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1
$$f2
checking for objdir... .libs
configure: WARNING: using in-tree isl, disabling version check
configure: error:
The following requested languages could not be built: c++
Supported languages are: c,c,c++,fortran,go,lto,objc,obj-c++

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

* [Bug bootstrap/107739] --enable-languages= duplicates yield odd error
  2022-11-17 20:17 [Bug bootstrap/107739] New: --enable-languages= duplicates yield odd error aldot at gcc dot gnu.org
  2022-11-17 22:30 ` [Bug bootstrap/107739] " pinskia at gcc dot gnu.org
  2022-11-18  3:31 ` pinskia at gcc dot gnu.org
@ 2022-11-18  3:45 ` pinskia at gcc dot gnu.org
  2022-11-18  7:55 ` schwab@linux-m68k.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-11-18  3:45 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So there are two issues but I don't know how to solve the second part of the
issue.

The first issue is there is a missing g for the flags of the s command of the
sed command here:
missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`

But after doing that it still fails because if you had:
,c++,c++,lto,

It matches ,c++, and replaces it with , but then sed does not reconsiders the ,
again and does not match c++.

Someone with some better shell scripting knowledge should look into this.

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

* [Bug bootstrap/107739] --enable-languages= duplicates yield odd error
  2022-11-17 20:17 [Bug bootstrap/107739] New: --enable-languages= duplicates yield odd error aldot at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2022-11-18  3:45 ` pinskia at gcc dot gnu.org
@ 2022-11-18  7:55 ` schwab@linux-m68k.org
  3 siblings, 0 replies; 5+ messages in thread
From: schwab@linux-m68k.org @ 2022-11-18  7:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Andreas Schwab <schwab@linux-m68k.org> ---
missing_languages=`echo "$missing_languages" |
                   sed -e ':loop' -e "s/,$language,/,/" -e 't loop'`

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

end of thread, other threads:[~2022-11-18  7:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-17 20:17 [Bug bootstrap/107739] New: --enable-languages= duplicates yield odd error aldot at gcc dot gnu.org
2022-11-17 22:30 ` [Bug bootstrap/107739] " pinskia at gcc dot gnu.org
2022-11-18  3:31 ` pinskia at gcc dot gnu.org
2022-11-18  3:45 ` pinskia at gcc dot gnu.org
2022-11-18  7:55 ` schwab@linux-m68k.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).