public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/100945] New: Building gcc fails because mthumb\r unrecognized option
@ 2021-06-07 17:08 kclifford at tranaptic dot ca
  2021-06-07 17:13 ` [Bug bootstrap/100945] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: kclifford at tranaptic dot ca @ 2021-06-07 17:08 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100945
           Summary: Building gcc fails because mthumb\r unrecognized
                    option
           Product: gcc
           Version: 11.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kclifford at tranaptic dot ca
  Target Milestone: ---

I'm building gcc 11.1.0 with
host=i686-w64-mingw32
build=x86_64-pc-cygwin

config-ml.in parses the output of "arm-eabi-gcc --print-multi-lib". Because the
build machine is cygwin it thinks the line end is \n but the host is mingw and
the line end is \r\n so the building of $flags using sed leaves behind a \r
which is interpreted as part of the resulting flag.

In two places in config-ml.in I modified:
  flags=`echo $$i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`
to
  flags=`echo $$i | sed -e 's/^[^;]*;//' -e 's/@/ -/g' -e 's/\r//g'`
which fixed the problem.

As an additional note the same problem occurred on 10.2.0 but I didn't get to a
fix on that version.

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

* [Bug bootstrap/100945] Building gcc fails because mthumb\r unrecognized option
  2021-06-07 17:08 [Bug c/100945] New: Building gcc fails because mthumb\r unrecognized option kclifford at tranaptic dot ca
@ 2021-06-07 17:13 ` pinskia at gcc dot gnu.org
  2021-06-07 17:17 ` kclifford at tranaptic dot ca
  2022-11-30 21:32 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-06-07 17:13 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-06-07
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |WAITING

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This sounds more of an issue with sed rather than GCC.
Which sed are you using mingw or cygwin's?

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

* [Bug bootstrap/100945] Building gcc fails because mthumb\r unrecognized option
  2021-06-07 17:08 [Bug c/100945] New: Building gcc fails because mthumb\r unrecognized option kclifford at tranaptic dot ca
  2021-06-07 17:13 ` [Bug bootstrap/100945] " pinskia at gcc dot gnu.org
@ 2021-06-07 17:17 ` kclifford at tranaptic dot ca
  2022-11-30 21:32 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: kclifford at tranaptic dot ca @ 2021-06-07 17:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Keith Clifford <kclifford at tranaptic dot ca> ---
I'm using Cygwin's sed.

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

* [Bug bootstrap/100945] Building gcc fails because mthumb\r unrecognized option
  2021-06-07 17:08 [Bug c/100945] New: Building gcc fails because mthumb\r unrecognized option kclifford at tranaptic dot ca
  2021-06-07 17:13 ` [Bug bootstrap/100945] " pinskia at gcc dot gnu.org
  2021-06-07 17:17 ` kclifford at tranaptic dot ca
@ 2022-11-30 21:32 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-11-30 21:32 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The problem is you are building with cygwin sed's which just use \n but you are
using mingw gcc to compile to the target ( which uses \n\r as the line ending).
Yes this is not supported as you need to also build a cygwin based compiler
first to build to the target. As you intermixing things which don't have the
same line endings and seds are not always going to support both it seems.

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

end of thread, other threads:[~2022-11-30 21:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-07 17:08 [Bug c/100945] New: Building gcc fails because mthumb\r unrecognized option kclifford at tranaptic dot ca
2021-06-07 17:13 ` [Bug bootstrap/100945] " pinskia at gcc dot gnu.org
2021-06-07 17:17 ` kclifford at tranaptic dot ca
2022-11-30 21:32 ` pinskia 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).