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

--- Comment #8 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #7)
> Well ok, could someone send me a binary x86_64 build of GCC for darwin20
> with Ada support that they can bootstrap with successfully, then, so that I
> can get back to bootstrapping, too? Either that, or send me the files that
> gen_il-main generates...

Eric:

To the best of my knowledge every release of GCC after 4.6 (when we fixed
powerpc-darwin9) should bootstrap correctly on all Darwin archs supported by
upstream (i.e. not including Arm64 yet).

There can be (sometimes extended) periods where trunk (or even branches) are
broken for some/all Darwin - since there's not many folks fixing it - but
x86_64 is not currently broken anywhere AFAIK.

=====

Bringing up Ada on a new plafform version - the devil is in the details:

AFAIK you have a copy of my gcc-7.5-darwin19 toolchain?
This _is_ sufficient to build a new bootstrap compiler on Darwin20 including
Ada.

the following should work - for 11.5, 12.4, 13.3, 14.2 and trunk ..

$ uname -v
Darwin Kernel Version 20.6.0: Thu Jul  6 22:12:47 PDT 2023;
root:xnu-7195.141.49.702.12~1/RELEASE_X86_64

1. start a shell with just the normal OS PATH
2. you need to have texinfo-6.7 or similar ahead of the OS version (which is
not new enough to support trunk).
3. My PATH looks like:
PATH=/opt/iains/x86_64-apple-darwin20/gcc-build-tools/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/iains/x86_64-apple-darwin19/gcc-7-5-toolchain/bin

The first entry has texinfo-6.7 and dejagnu.

4. $  gnatmake --version
GNATMAKE 7.5.0

there is no other GCC or gnatmake in my PATH - but remember that Xcode will
claim 'gcc/g++' is 'clang/++'.

5. configure:

/src-local/gcc-master/configure
--prefix=/opt/iains/x86_64-apple-darwin20/gcc-15-0-0
--build=x86_64-apple-darwin20
--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
--disable-libstdcxx-pch --enable-languages=all CC=x86_64-apple-darwin19-gcc
CXX=x86_64-apple-darwin19-g++

NOTE1: we _have_ to put CC and CXX because otherwise we run into problems
because of the claiming of gcc/g++ as above.

NOTE2: x86_64-apple-darwin19-gcc <<- this MUST match the version of gnatmake
(there's only one in the PATH so that should be OK)

NOTE3: the --disable-libstdcxx-pch should be irrelevant

NOTE4: There might _still_ be places in the Ada build where "gnatmake" is used
literally - instead of GNATMAKE_FOR_XXXX so it is very important to make sure
that the NOTE2 is observed.

6. make -jN .. 

7. $ ./gcc/xgcc --version
xgcc (GCC) 15.0.0 20240721 (experimental) [master revision
r15-2183-g58b78cf068b3] (Sunday AM trunk)

====

Works For Me as I have repeatedly said - you need to examine carefully what you
are doing differently - if there's a real bug I'd like to fix it - but I cannot
see one at present.

====

11.5 might be a good one to build since that also gives you a D compiler to
bootstrap D on gcc-12+

I just built the darwin branch released over the weekend...

configure: /src-local/gcc-git-11/configure
--prefix=/opt/iains/x86_64-apple-darwin20/gcc-11-5-darwin
--build=x86_64-apple-darwin20
--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
--disable-libstdcxx-pch --enable-languages=all CC=x86_64-apple-darwin19-gcc
CXX=x86_64-apple-darwin19-g++

$ ./gcc/xgcc --version
xgcc (GCC) 11.5.0

--------

Reply via email to