public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5)
@ 2021-04-29 19:48 juergen.reuter at desy dot de
  2021-04-29 19:49 ` [Bug bootstrap/100340] " juergen.reuter at desy dot de
                   ` (36 more replies)
  0 siblings, 37 replies; 38+ messages in thread
From: juergen.reuter at desy dot de @ 2021-04-29 19:48 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100340
           Summary: Bootstrap fails with Clang 12.0.5 (XCode 12.5)
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: juergen.reuter at desy dot de
  Target Milestone: ---

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

* [Bug bootstrap/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
@ 2021-04-29 19:49 ` juergen.reuter at desy dot de
  2021-04-29 21:17 ` juergen.reuter at desy dot de
                   ` (35 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: juergen.reuter at desy dot de @ 2021-04-29 19:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jürgen Reuter <juergen.reuter at desy dot de> ---
After update to macOS Big Sur 11.3 with XCode 12.5 and Apple Clang
clang-1205.0.22.9, bootstrap doesn't work any more:
Comparing stages 2 and 3
warning: gcc/cc1obj-checksum.o differs
warning: gcc/cc1objplus-checksum.o differs
Bootstrap comparison failure!
gcc/tree-ssa-operands.o differs
gcc/tree-ssanames.o differs
[...]
lib/libz_a-deflate.o differs
zlib/libz_a-gzread.o differs
zlib/libz_a-inflate.o differs
zlib/libz_a-crc32.o differs
zlib/libz_a-inftrees.o differs

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

* [Bug bootstrap/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
  2021-04-29 19:49 ` [Bug bootstrap/100340] " juergen.reuter at desy dot de
@ 2021-04-29 21:17 ` juergen.reuter at desy dot de
  2021-04-29 23:38 ` dominiq at lps dot ens.fr
                   ` (34 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: juergen.reuter at desy dot de @ 2021-04-29 21:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jürgen Reuter <juergen.reuter at desy dot de> ---
I just check, with --disable-bootstrap, gcc compiles to the end. Just the
checksums of the object files for bootstrap between stage 2 and 3 don't agree.

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

* [Bug bootstrap/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
  2021-04-29 19:49 ` [Bug bootstrap/100340] " juergen.reuter at desy dot de
  2021-04-29 21:17 ` juergen.reuter at desy dot de
@ 2021-04-29 23:38 ` dominiq at lps dot ens.fr
  2021-04-30  5:09 ` juergen.reuter at desy dot de
                   ` (33 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: dominiq at lps dot ens.fr @ 2021-04-29 23:38 UTC (permalink / raw)
  To: gcc-bugs

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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-04-29
                 CC|                            |iains at gcc dot gnu.org

--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed.

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

* [Bug bootstrap/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (2 preceding siblings ...)
  2021-04-29 23:38 ` dominiq at lps dot ens.fr
@ 2021-04-30  5:09 ` juergen.reuter at desy dot de
  2021-04-30  6:47 ` rguenth at gcc dot gnu.org
                   ` (32 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: juergen.reuter at desy dot de @ 2021-04-30  5:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to Dominique d'Humieres from comment #3)
> Confirmed.

Merci, Dominique. Would you actually advise to compile without bootstrap and
start using gcc, or wait until the reason for the bootstrap failure is
understood and hopefully fixed?

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

* [Bug bootstrap/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (3 preceding siblings ...)
  2021-04-30  5:09 ` juergen.reuter at desy dot de
@ 2021-04-30  6:47 ` rguenth at gcc dot gnu.org
  2021-04-30  6:55 ` iains at gcc dot gnu.org
                   ` (31 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-04-30  6:47 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-apple-darwin
               Host|                            |x86_64-apple-darwin

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Does it work when you use STAGE1_CFLAGS="-O0" (I think clang defaults to
optimizing?).  To rule out compare-debug issues also try --without-build-config

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

* [Bug bootstrap/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (4 preceding siblings ...)
  2021-04-30  6:47 ` rguenth at gcc dot gnu.org
@ 2021-04-30  6:55 ` iains at gcc dot gnu.org
  2021-04-30  8:38 ` [Bug target/100340] " iains at gcc dot gnu.org
                   ` (30 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: iains at gcc dot gnu.org @ 2021-04-30  6:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #5)
> Does it work when you use STAGE1_CFLAGS="-O0" (I think clang defaults to
> optimizing?).  To rule out compare-debug issues also try
> --without-build-config

The reason for the fail is that the assembler (clang -cc1as) is assembling
branch instructions with differing lengths between the debug and non-debug
cases.

The code is not actually wrong in either case - it simply looks like branch
relaxation has been enabled in one case and not the other.

However this is not in response to changed command line options (so it is an
internal decision in the assembler, probably as a result of detecting either
.loc directives or presence/absence of Lxxxx local labels between branch and
its destination.).

I am discussing with OSS folks at Apple whether this is an intentional change
(i.e to produce better optimised code) or an accidental one.

Short-term workarounds:

1. (re-)install xcode 12.4 command line tools and select them for use
2. disable debug comparison in the bootstrap ( --without-build-config )

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (5 preceding siblings ...)
  2021-04-30  6:55 ` iains at gcc dot gnu.org
@ 2021-04-30  8:38 ` iains at gcc dot gnu.org
  2021-04-30 12:09 ` juergen.reuter at desy dot de
                   ` (29 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: iains at gcc dot gnu.org @ 2021-04-30  8:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Iain Sandoe from comment #6)
> (In reply to Richard Biener from comment #5)
> > Does it work when you use STAGE1_CFLAGS="-O0" (I think clang defaults to
> > optimizing?).  To rule out compare-debug issues also try
> > --without-build-config

> I am discussing with OSS folks at Apple whether this is an intentional
> change (i.e to produce better optimised code) or an accidental one.

If the result comes back "we intended to do this" then there are a couple of
options.

1) ask them to implement some option to disable this (and we can trigger that
option from -gtoggle)  Which would mean that the production compiler had the
advantage of the additional optimisation - but we could still prove that our
code-gen was the same with/without debug.

2) We can implement (1) ourselves using the llas driver I wrote - which drives
the LLVM backend, but presents command line options like cctools (i.e. more
like GAS).

for now I guess we have to wait for a reply,

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (6 preceding siblings ...)
  2021-04-30  8:38 ` [Bug target/100340] " iains at gcc dot gnu.org
@ 2021-04-30 12:09 ` juergen.reuter at desy dot de
  2021-05-25 16:25 ` iains at gcc dot gnu.org
                   ` (28 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: juergen.reuter at desy dot de @ 2021-04-30 12:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to Iain Sandoe from comment #6)

> 
> 1. (re-)install xcode 12.4 command line tools and select them for use
> 2. disable debug comparison in the bootstrap ( --without-build-config )

Just to report that --without-build-config did successfully compile and
bootstrap.

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (7 preceding siblings ...)
  2021-04-30 12:09 ` juergen.reuter at desy dot de
@ 2021-05-25 16:25 ` iains at gcc dot gnu.org
  2021-07-29 14:49 ` matthew.thompson at nasa dot gov
                   ` (27 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: iains at gcc dot gnu.org @ 2021-05-25 16:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Iain Sandoe <iains at gcc dot gnu.org> ---
JFTR the Apple OSS folks comment:

"I checked with the clang team — it appears this was an unintentional
consequence of an upstream change: https://reviews.llvm.org/D75203. This
difference between debug vs non-debug asm has been noticed upstream and the new
assembly optimization has been disabled (for now) in
https://reviews.llvm.org/D94542 already.

You should be able to avoid this issue with clang-1205 by adding in the `-mllvm
-x86-pad-for-align=false` flags to the build. I confirmed this resolved the
issue for me with the small reproducer. "

however, that means we will need to do some configury checks to decide if this
fix needs to be applied or not (and maybe that would best be deferred until we
see what version of Xcode contains a fix).

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (8 preceding siblings ...)
  2021-05-25 16:25 ` iains at gcc dot gnu.org
@ 2021-07-29 14:49 ` matthew.thompson at nasa dot gov
  2021-07-29 15:40 ` iains at gcc dot gnu.org
                   ` (26 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: matthew.thompson at nasa dot gov @ 2021-07-29 14:49 UTC (permalink / raw)
  To: gcc-bugs

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

Matt Thompson <matthew.thompson at nasa dot gov> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |matthew.thompson at nasa dot gov

--- Comment #10 from Matt Thompson <matthew.thompson at nasa dot gov> ---
Query from someone who I believe just encountered this trying to build 11.2 on
macOS 11.5.1 with XCode 12.5: What is the best method to work around this for
now? 

1. Update to XCode 12.5.1 (which apparently exists, but I don't know if it has
the fixes?)
2. Pass in `--without-build-config` to configure (which is how Homebrew does
it)
3. Iain's last suggestion about `-mllvm -x86-pad-for-align=false` (I'm not sure
where to put that)

The easiest for me to try was #2 and it seems to work, but I don't know if that
has side-effects for the built compiler.

(Of course, our software currently has some issues with GCC 11.1 that I think
are still open here on Bugzilla (like #100651), but I thought I'd see if 11.2
fixes them!)

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (9 preceding siblings ...)
  2021-07-29 14:49 ` matthew.thompson at nasa dot gov
@ 2021-07-29 15:40 ` iains at gcc dot gnu.org
  2021-07-29 20:31 ` juergen.reuter at desy dot de
                   ` (25 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: iains at gcc dot gnu.org @ 2021-07-29 15:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Matt Thompson from comment #10)
> Query from someone who I believe just encountered this trying to build 11.2
> on macOS 11.5.1 with XCode 12.5: What is the best method to work around this
> for now? 
> 
> 1. Update to XCode 12.5.1 (which apparently exists, but I don't know if it
> has the fixes?)

not yet checked - but if someone has time I'd like to know ;)

> 2. Pass in `--without-build-config` to configure (which is how Homebrew does
> it)

the disadvantage of that is that it skips the compare objects stage (because
that is what fails) .. but it works, indeed.

> 3. Iain's last suggestion about `-mllvm -x86-pad-for-align=false` (I'm not
> sure where to put that)

We will need configure to detect version(s) of the assembler that fail and to
apply this to the 'as' lines where needed - I didn't get to this because it's
far from a 5mins job and:

a) was hoping for a fix [does anyone know if 12.5.1 fixes?]

b) it was easier for me to revert to using command-line-tools 12.4 for X86 (the
bug doesn't fire for my experimental work on arm64, so I can use 12.5 there).

... having said that, if we don't see a fix soon and there end up being
un-fixable configurations (e.g. versions which don't support a fixed Xcode,
then we'll need to do the configury magic).

> The easiest for me to try was #2 and it seems to work, but I don't know if
> that has side-effects for the built compiler.

as noted above - no side effects on the compiler, but a reduction in the
testing of the build.

> (Of course, our software currently has some issues with GCC 11.1 that I
> think are still open here on Bugzilla (like #100651), but I thought I'd see
> if 11.2 fixes them!)

please CC me on Darwin/macOS bugs -- too many mailing lists ;-) I miss bugs
sometimes.

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (10 preceding siblings ...)
  2021-07-29 15:40 ` iains at gcc dot gnu.org
@ 2021-07-29 20:31 ` juergen.reuter at desy dot de
  2021-07-30 15:53 ` jonesc at hep dot phy.cam.ac.uk
                   ` (24 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: juergen.reuter at desy dot de @ 2021-07-29 20:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to Iain Sandoe from comment #11)

> > 1. Update to XCode 12.5.1 (which apparently exists, but I don't know if it
> > has the fixes?)
> 
> not yet checked - but if someone has time I'd like to know ;)
>
> 
> a) was hoping for a fix [does anyone know if 12.5.1 fixes?]
> 

I just checked with XCode 12.5.1, nothing fixed yet, the problem persists.

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (11 preceding siblings ...)
  2021-07-29 20:31 ` juergen.reuter at desy dot de
@ 2021-07-30 15:53 ` jonesc at hep dot phy.cam.ac.uk
  2021-07-30 15:55 ` jonesc at hep dot phy.cam.ac.uk
                   ` (23 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: jonesc at hep dot phy.cam.ac.uk @ 2021-07-30 15:53 UTC (permalink / raw)
  To: gcc-bugs

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

Chris Jones <jonesc at hep dot phy.cam.ac.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonesc at hep dot phy.cam.ac.uk

--- Comment #13 from Chris Jones <jonesc at hep dot phy.cam.ac.uk> ---
Just to add, the --disable-bootstrap workaround no longer works with the
recently released 11.2.0, as it still fails to build due to jit errors.

:info:build Bootstrap comparison failure!
:info:build gcc/jit/jit-recording.o differs

The same build configuration and workaround worked fine with gcc 11.1.0.

See 

https://build.macports.org/builders/ports-11_x86_64-builder/builds/41670/steps/install-port/logs/stdio

for a full build log.

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (12 preceding siblings ...)
  2021-07-30 15:53 ` jonesc at hep dot phy.cam.ac.uk
@ 2021-07-30 15:55 ` jonesc at hep dot phy.cam.ac.uk
  2021-07-30 16:23 ` iains at gcc dot gnu.org
                   ` (22 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: jonesc at hep dot phy.cam.ac.uk @ 2021-07-30 15:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from Chris Jones <jonesc at hep dot phy.cam.ac.uk> ---
Apologies, typo above. I meant to say the --without-build-config workaround no
longer works with 11.2.0

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (13 preceding siblings ...)
  2021-07-30 15:55 ` jonesc at hep dot phy.cam.ac.uk
@ 2021-07-30 16:23 ` iains at gcc dot gnu.org
  2021-08-02 13:36 ` matthew.thompson at nasa dot gov
                   ` (21 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: iains at gcc dot gnu.org @ 2021-07-30 16:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Chris Jones from comment #14)
> Apologies, typo above. I meant to say the --without-build-config workaround
> no longer works with 11.2.0

OK.. I plan to do a Darwin/macOS 11.2 patch set this weekend - I'll see what we
can do about that (other than rolling back to Xcode 12.4 on X86_64 macOS).

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (14 preceding siblings ...)
  2021-07-30 16:23 ` iains at gcc dot gnu.org
@ 2021-08-02 13:36 ` matthew.thompson at nasa dot gov
  2021-08-02 13:39 ` jonesc at hep dot phy.cam.ac.uk
                   ` (20 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: matthew.thompson at nasa dot gov @ 2021-08-02 13:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #16 from Matt Thompson <matthew.thompson at nasa dot gov> ---
(In reply to Chris Jones from comment #14)
> Apologies, typo above. I meant to say the --without-build-config workaround
> no longer works with 11.2.0

Huh. I tried it and it seemed to work for me? Well, I was able to "make" and
"make install". I didn't try "make check" is that where it failed for you?

For reference, my configure line was:

../gcc-11.2.0/configure --prefix=$HOME/installed/Core/gcc-gfortran/11.2.0
--enable-languages=c,c++,fortran
--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
--without-build-config |& tee configure.log

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (15 preceding siblings ...)
  2021-08-02 13:36 ` matthew.thompson at nasa dot gov
@ 2021-08-02 13:39 ` jonesc at hep dot phy.cam.ac.uk
  2021-08-02 13:42 ` jonesc at hep dot phy.cam.ac.uk
                   ` (19 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: jonesc at hep dot phy.cam.ac.uk @ 2021-08-02 13:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from Chris Jones <jonesc at hep dot phy.cam.ac.uk> ---
Your configuration isn't enabling the jit compiler.

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (16 preceding siblings ...)
  2021-08-02 13:39 ` jonesc at hep dot phy.cam.ac.uk
@ 2021-08-02 13:42 ` jonesc at hep dot phy.cam.ac.uk
  2021-08-02 13:43 ` matthew.thompson at nasa dot gov
                   ` (18 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: jonesc at hep dot phy.cam.ac.uk @ 2021-08-02 13:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #18 from Chris Jones <jonesc at hep dot phy.cam.ac.uk> ---
try again with

--enable-languages=c,c++,fortran,jit

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (17 preceding siblings ...)
  2021-08-02 13:42 ` jonesc at hep dot phy.cam.ac.uk
@ 2021-08-02 13:43 ` matthew.thompson at nasa dot gov
  2021-08-02 14:17 ` iains at gcc dot gnu.org
                   ` (17 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: matthew.thompson at nasa dot gov @ 2021-08-02 13:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #19 from Matt Thompson <matthew.thompson at nasa dot gov> ---
(In reply to Chris Jones from comment #18)
> try again with
> 
> --enable-languages=c,c++,fortran,jit

Ahh. I feel dumb. And I've learned that GCC apparently now has a JIT compiler!
Time to do some reading and research! :D

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (18 preceding siblings ...)
  2021-08-02 13:43 ` matthew.thompson at nasa dot gov
@ 2021-08-02 14:17 ` iains at gcc dot gnu.org
  2021-08-04 15:45 ` iains at gcc dot gnu.org
                   ` (16 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: iains at gcc dot gnu.org @ 2021-08-02 14:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #20 from Iain Sandoe <iains at gcc dot gnu.org> ---
I am testing a patch series (expected to push a github copy today if that
testing goes OK) including an implementation of comment #9.

However, IFF the jit build does not honour --without-build-config, that
actually seems like a different bug.

I rarely build the jit, but will take a look when time permits.

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (19 preceding siblings ...)
  2021-08-02 14:17 ` iains at gcc dot gnu.org
@ 2021-08-04 15:45 ` iains at gcc dot gnu.org
  2021-08-17 18:39 ` cvs-commit at gcc dot gnu.org
                   ` (15 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: iains at gcc dot gnu.org @ 2021-08-04 15:45 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #21 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Iain Sandoe from comment #20)

> I rarely build the jit, but will take a look when time permits.

Actually, currently it seems that the JIT build is quite broken on Darwin; I
have some draft patches that fix the build.  The testsuite has some additional
issues (which I have partial patches for).  When all of these are done - there
are still a number of testsuite fails for cases including -g (i.e. debug) in
the recipe.  Those are going to take some more work / understanding to fix.

The build fixes are in my "short queue"; the testsuite fixes will most likely
need review.

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (20 preceding siblings ...)
  2021-08-04 15:45 ` iains at gcc dot gnu.org
@ 2021-08-17 18:39 ` cvs-commit at gcc dot gnu.org
  2021-08-17 18:42 ` iains at gcc dot gnu.org
                   ` (14 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-08-17 18:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #22 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain D Sandoe <iains@gcc.gnu.org>:

https://gcc.gnu.org/g:743b8dd6fd757e997eb060d70fd4ae8e04fb56cd

commit r12-2968-g743b8dd6fd757e997eb060d70fd4ae8e04fb56cd
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Sat Jul 31 16:29:03 2021 +0100

    Darwin, X86, config: Adjust 'as' command lines [PR100340].

    Versions of the assembler using clang from XCode 12.5/12.5.1
    have a bug which produces different code layout between debug and
    non-debug input, leading to a compare fail for default configure
    parameters.

    This is a workaround fix to disable the optimisation that is
    responsible for the bug.

    Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>

    PR target/100340 - Bootstrap fails with Clang 12.0.5 (XCode 12.5)

            PR target/100340

    gcc/ChangeLog:

            * config.in: Regenerate.
            * config/i386/darwin.h (EXTRA_ASM_OPTS): New
            (ASM_SPEC): Pass options to disable branch shortening where
            needed.
            * configure: Regenerate.
            * configure.ac: Detect versions of 'as' that support the
            optimisation which has the bug.

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (21 preceding siblings ...)
  2021-08-17 18:39 ` cvs-commit at gcc dot gnu.org
@ 2021-08-17 18:42 ` iains at gcc dot gnu.org
  2021-09-27 17:10 ` matthew.thompson at nasa dot gov
                   ` (13 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: iains at gcc dot gnu.org @ 2021-08-17 18:42 UTC (permalink / raw)
  To: gcc-bugs

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

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |9.5

--- Comment #23 from Iain Sandoe <iains at gcc dot gnu.org> ---
so fixed on master, but needed on the open branches - so leaving the PR open
for now.

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (22 preceding siblings ...)
  2021-08-17 18:42 ` iains at gcc dot gnu.org
@ 2021-09-27 17:10 ` matthew.thompson at nasa dot gov
  2021-09-27 17:59 ` iains at gcc dot gnu.org
                   ` (12 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: matthew.thompson at nasa dot gov @ 2021-09-27 17:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #24 from Matt Thompson <matthew.thompson at nasa dot gov> ---
(In reply to Iain Sandoe from comment #23)
> so fixed on master, but needed on the open branches - so leaving the PR open
> for now.

Iain, a query: Is the `--without-build-config` flag still needed for XCode
13.0? I'm hoping to have that version on my laptop some time today and I figure
I should make a note if I'll need to use it in case I have to rebuild 11.2.
(I'm thinking 11.3 if/when it's released would be fine?)

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (23 preceding siblings ...)
  2021-09-27 17:10 ` matthew.thompson at nasa dot gov
@ 2021-09-27 17:59 ` iains at gcc dot gnu.org
  2021-10-02 22:51 ` fink at snaggledworks dot com
                   ` (11 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: iains at gcc dot gnu.org @ 2021-09-27 17:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #25 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Matt Thompson from comment #24)
> (In reply to Iain Sandoe from comment #23)
> > so fixed on master, but needed on the open branches - so leaving the PR open
> > for now.
> 
> Iain, a query: Is the `--without-build-config` flag still needed for XCode
> 13.0? I'm hoping to have that version on my laptop some time today and I
> figure I should make a note if I'll need to use it in case I have to rebuild
> 11.2. (I'm thinking 11.3 if/when it's released would be fine?)

I haven't tested Xcode 13 yet - so can't comment.

The idea is that it will be fixed on all open branches at their next release
(even if using Xcode 12)

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (24 preceding siblings ...)
  2021-09-27 17:59 ` iains at gcc dot gnu.org
@ 2021-10-02 22:51 ` fink at snaggledworks dot com
  2021-10-13 19:59 ` cvs-commit at gcc dot gnu.org
                   ` (10 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: fink at snaggledworks dot com @ 2021-10-02 22:51 UTC (permalink / raw)
  To: gcc-bugs

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

fink at snaggledworks dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fink at snaggledworks dot com

--- Comment #26 from fink at snaggledworks dot com ---
Current gcc-11.2 builds with Xcode 13 w/out having to use
`--without-build-config`. Exact same setup failed w/ Xcode 12.5.1.

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (25 preceding siblings ...)
  2021-10-02 22:51 ` fink at snaggledworks dot com
@ 2021-10-13 19:59 ` cvs-commit at gcc dot gnu.org
  2021-11-29 19:00 ` egallager at gcc dot gnu.org
                   ` (9 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-10-13 19:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #27 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Iain D Sandoe
<iains@gcc.gnu.org>:

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

commit r11-9147-g8b333df9484c1697f3a80530a47aa90b1859e970
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Sat Jul 31 16:29:03 2021 +0100

    Darwin, X86, config: Adjust 'as' command lines [PR100340].

    Versions of the assembler using clang from XCode 12.5/12.5.1
    have a bug which produces different code layout between debug and
    non-debug input, leading to a compare fail for default configure
    parameters.

    This is a workaround fix to disable the optimisation that is
    responsible for the bug.

    Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>

    PR target/100340 - Bootstrap fails with Clang 12.0.5 (XCode 12.5)

            PR target/100340

    gcc/ChangeLog:

            * config.in: Regenerate.
            * config/i386/darwin.h (EXTRA_ASM_OPTS): New
            (ASM_SPEC): Pass options to disable branch shortening where
            needed.
            * configure: Regenerate.
            * configure.ac: Detect versions of 'as' that support the
            optimisation which has the bug.

    (cherry picked from commit 743b8dd6fd757e997eb060d70fd4ae8e04fb56cd)

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (26 preceding siblings ...)
  2021-10-13 19:59 ` cvs-commit at gcc dot gnu.org
@ 2021-11-29 19:00 ` egallager at gcc dot gnu.org
  2022-04-19 10:51 ` kirill at korins dot ky
                   ` (8 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: egallager at gcc dot gnu.org @ 2021-11-29 19:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #28 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to CVS Commits from comment #27)
> The releases/gcc-11 branch has been updated by Iain D Sandoe
> <iains@gcc.gnu.org>:
> 
> https://gcc.gnu.org/g:8b333df9484c1697f3a80530a47aa90b1859e970
> 
> commit r11-9147-g8b333df9484c1697f3a80530a47aa90b1859e970
> Author: Iain Sandoe <iain@sandoe.co.uk>
> Date:   Sat Jul 31 16:29:03 2021 +0100
> 
>     Darwin, X86, config: Adjust 'as' command lines [PR100340].
>     
>     Versions of the assembler using clang from XCode 12.5/12.5.1
>     have a bug which produces different code layout between debug and
>     non-debug input, leading to a compare fail for default configure
>     parameters.
>     
>     This is a workaround fix to disable the optimisation that is
>     responsible for the bug.
>     
>     Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
>     
>     PR target/100340 - Bootstrap fails with Clang 12.0.5 (XCode 12.5)
>     
>             PR target/100340
>     
>     gcc/ChangeLog:
>     
>             * config.in: Regenerate.
>             * config/i386/darwin.h (EXTRA_ASM_OPTS): New
>             (ASM_SPEC): Pass options to disable branch shortening where
>             needed.
>             * configure: Regenerate.
>             * configure.ac: Detect versions of 'as' that support the
>             optimisation which has the bug.
>     
>     (cherry picked from commit 743b8dd6fd757e997eb060d70fd4ae8e04fb56cd)

Did this fix it? (asking due to downstream issue
https://trac.macports.org/ticket/63312 in MacPorts, btw)

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (27 preceding siblings ...)
  2021-11-29 19:00 ` egallager at gcc dot gnu.org
@ 2022-04-19 10:51 ` kirill at korins dot ky
  2022-04-19 11:08 ` iains at gcc dot gnu.org
                   ` (7 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: kirill at korins dot ky @ 2022-04-19 10:51 UTC (permalink / raw)
  To: gcc-bugs

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

Kirill A. Korinsky <kirill at korins dot ky> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kirill at korins dot ky

--- Comment #29 from Kirill A. Korinsky <kirill at korins dot ky> ---
To synchronise things.

The same issue is appears on Yosemite (10.10) on MacPort's build bots on
gcc10-bootstrap port with backported Iain's patch to as:
 - https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/180787
 - https://trac.macports.org/ticket/65033

Anyway, I can't reproduce it on Yosemite that I have.

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (28 preceding siblings ...)
  2022-04-19 10:51 ` kirill at korins dot ky
@ 2022-04-19 11:08 ` iains at gcc dot gnu.org
  2022-04-19 11:45 ` kirill at korins dot ky
                   ` (6 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: iains at gcc dot gnu.org @ 2022-04-19 11:08 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #30 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Kirill A. Korinsky from comment #29)
> To synchronise things.
> 
> The same issue is appears on Yosemite (10.10) on MacPort's build bots on
> gcc10-bootstrap port with backported Iain's patch to as:
>  -
> https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/180787
>  - https://trac.macports.org/ticket/65033

this ^ seems to 404 for me.

I am slightly confused - are you saying that someone is using Xcode 12.5 on
Yosemite?
(I would be amazed if that was a supported configuration).

NOTE: there are still back ports queued for GCC-10 (which would appear in
10.4).

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (29 preceding siblings ...)
  2022-04-19 11:08 ` iains at gcc dot gnu.org
@ 2022-04-19 11:45 ` kirill at korins dot ky
  2022-05-27  9:04 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: kirill at korins dot ky @ 2022-04-19 11:45 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #31 from Kirill A. Korinsky <kirill at korins dot ky> ---
Iain, you're right.

This is a differnt things vecause it uses xcode 7.2.1.

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (30 preceding siblings ...)
  2022-04-19 11:45 ` kirill at korins dot ky
@ 2022-05-27  9:04 ` rguenth at gcc dot gnu.org
  2022-05-27  9:29 ` iains at gcc dot gnu.org
                   ` (4 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27  9:04 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|9.5                         |---

--- Comment #32 from Richard Biener <rguenth at gcc dot gnu.org> ---
Unsure about GCC 10/11 status.

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (31 preceding siblings ...)
  2022-05-27  9:04 ` rguenth at gcc dot gnu.org
@ 2022-05-27  9:29 ` iains at gcc dot gnu.org
  2022-05-29 19:03 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: iains at gcc dot gnu.org @ 2022-05-27  9:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #33 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #32)
> Unsure about GCC 10/11 status.

was fixed for 11, in my queue for 10.4 (time-willing)

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (32 preceding siblings ...)
  2022-05-27  9:29 ` iains at gcc dot gnu.org
@ 2022-05-29 19:03 ` cvs-commit at gcc dot gnu.org
  2022-05-29 19:21 ` iains at gcc dot gnu.org
                   ` (2 subsequent siblings)
  36 siblings, 0 replies; 38+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-05-29 19:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #34 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Iain D Sandoe
<iains@gcc.gnu.org>:

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

commit r10-10776-g8e4e6100d7fdef22e3f3c8475699a32aeb3e60ea
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Sat Jul 31 16:29:03 2021 +0100

    Darwin, X86, config: Adjust 'as' command lines [PR100340].

    Versions of the assembler using clang from XCode 12.5/12.5.1
    have a bug which produces different code layout between debug and
    non-debug input, leading to a compare fail for default configure
    parameters.

    This is a workaround fix to disable the optimisation that is
    responsible for the bug.

    Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>

    PR target/100340 - Bootstrap fails with Clang 12.0.5 (XCode 12.5)

            PR target/100340

    gcc/ChangeLog:

            * config.in: Regenerate.
            * config/i386/darwin.h (EXTRA_ASM_OPTS): New
            (ASM_SPEC): Pass options to disable branch shortening where
            needed.
            * configure: Regenerate.
            * configure.ac: Detect versions of 'as' that support the
            optimisation which has the bug.

    (cherry picked from commit 743b8dd6fd757e997eb060d70fd4ae8e04fb56cd)

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (33 preceding siblings ...)
  2022-05-29 19:03 ` cvs-commit at gcc dot gnu.org
@ 2022-05-29 19:21 ` iains at gcc dot gnu.org
  2022-07-27 17:12 ` egallager at gcc dot gnu.org
  2022-07-27 18:18 ` iains at gcc dot gnu.org
  36 siblings, 0 replies; 38+ messages in thread
From: iains at gcc dot gnu.org @ 2022-05-29 19:21 UTC (permalink / raw)
  To: gcc-bugs

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

Iain Sandoe <iains at gcc dot gnu.org> changed:

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

--- Comment #35 from Iain Sandoe <iains at gcc dot gnu.org> ---
so fixed on open branches, needed for 'vendor' versions of closed ones.

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (34 preceding siblings ...)
  2022-05-29 19:21 ` iains at gcc dot gnu.org
@ 2022-07-27 17:12 ` egallager at gcc dot gnu.org
  2022-07-27 18:18 ` iains at gcc dot gnu.org
  36 siblings, 0 replies; 38+ messages in thread
From: egallager at gcc dot gnu.org @ 2022-07-27 17:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #36 from Eric Gallager <egallager at gcc dot gnu.org> ---
Note that the solution to this has caused downstream MacPorts bug 65236:
https://trac.macports.org/ticket/65236

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

* [Bug target/100340] Bootstrap fails with Clang 12.0.5 (XCode 12.5)
  2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
                   ` (35 preceding siblings ...)
  2022-07-27 17:12 ` egallager at gcc dot gnu.org
@ 2022-07-27 18:18 ` iains at gcc dot gnu.org
  36 siblings, 0 replies; 38+ messages in thread
From: iains at gcc dot gnu.org @ 2022-07-27 18:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #37 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #36)
> Note that the solution to this has caused downstream MacPorts bug 65236:
> https://trac.macports.org/ticket/65236

the macports ticket does not contain enough information to figure out the
problem ... 

I build and test regularly on Darwin9-21 and have used a range of installed
Xcode CLT:

e.g. here's the latest I have:

gcc/as -arch x86_64 -v -mmacosx-version-min=12.0 -mllvm
-x86-pad-for-align=false -force_cpusubtype_ALL -o /Volumes/ramdisk/ccuqyehz.o
/Volumes/ramdisk/ccN3ilQO.s
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: x86_64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Users/Shared/XC/13.4/CommandLineTools/usr/bin
 "/Users/Shared/XC/13.4/CommandLineTools/usr/bin/clang" -cc1as -triple
x86_64-apple-macosx12.0.0 -filetype obj -main-file-name ccN3ilQO.s -target-cpu
penryn -fdebug-compilation-dir=/scratch/12-mon/gcc-master -dwarf-debug-producer
"Apple clang version 13.1.6 (clang-1316.0.21.2.5)" -dwarf-version=4
-mrelocation-model pic --mrelax-relocations -mllvm -x86-pad-for-align=false
-mllvm -disable-aligned-alloc-awareness=1 -o /Volumes/ramdisk/ccuqyehz.o
/Volumes/ramdisk/ccN3ilQO.s

works fine (i.e the assembler is accepting the flag) .. so I am not sure where
the problem is arising in the bias stuff.

Perhaps, by some strange mechanism, the cctools assembler is being invoked ?

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

end of thread, other threads:[~2022-07-27 18:18 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-29 19:48 [Bug bootstrap/100340] New: Bootstrap fails with Clang 12.0.5 (XCode 12.5) juergen.reuter at desy dot de
2021-04-29 19:49 ` [Bug bootstrap/100340] " juergen.reuter at desy dot de
2021-04-29 21:17 ` juergen.reuter at desy dot de
2021-04-29 23:38 ` dominiq at lps dot ens.fr
2021-04-30  5:09 ` juergen.reuter at desy dot de
2021-04-30  6:47 ` rguenth at gcc dot gnu.org
2021-04-30  6:55 ` iains at gcc dot gnu.org
2021-04-30  8:38 ` [Bug target/100340] " iains at gcc dot gnu.org
2021-04-30 12:09 ` juergen.reuter at desy dot de
2021-05-25 16:25 ` iains at gcc dot gnu.org
2021-07-29 14:49 ` matthew.thompson at nasa dot gov
2021-07-29 15:40 ` iains at gcc dot gnu.org
2021-07-29 20:31 ` juergen.reuter at desy dot de
2021-07-30 15:53 ` jonesc at hep dot phy.cam.ac.uk
2021-07-30 15:55 ` jonesc at hep dot phy.cam.ac.uk
2021-07-30 16:23 ` iains at gcc dot gnu.org
2021-08-02 13:36 ` matthew.thompson at nasa dot gov
2021-08-02 13:39 ` jonesc at hep dot phy.cam.ac.uk
2021-08-02 13:42 ` jonesc at hep dot phy.cam.ac.uk
2021-08-02 13:43 ` matthew.thompson at nasa dot gov
2021-08-02 14:17 ` iains at gcc dot gnu.org
2021-08-04 15:45 ` iains at gcc dot gnu.org
2021-08-17 18:39 ` cvs-commit at gcc dot gnu.org
2021-08-17 18:42 ` iains at gcc dot gnu.org
2021-09-27 17:10 ` matthew.thompson at nasa dot gov
2021-09-27 17:59 ` iains at gcc dot gnu.org
2021-10-02 22:51 ` fink at snaggledworks dot com
2021-10-13 19:59 ` cvs-commit at gcc dot gnu.org
2021-11-29 19:00 ` egallager at gcc dot gnu.org
2022-04-19 10:51 ` kirill at korins dot ky
2022-04-19 11:08 ` iains at gcc dot gnu.org
2022-04-19 11:45 ` kirill at korins dot ky
2022-05-27  9:04 ` rguenth at gcc dot gnu.org
2022-05-27  9:29 ` iains at gcc dot gnu.org
2022-05-29 19:03 ` cvs-commit at gcc dot gnu.org
2022-05-29 19:21 ` iains at gcc dot gnu.org
2022-07-27 17:12 ` egallager at gcc dot gnu.org
2022-07-27 18:18 ` iains 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).