From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a37:59c7:: with SMTP id n190mr8187388qkb.146.1624003300136; Fri, 18 Jun 2021 01:01:40 -0700 (PDT) X-Received: by 2002:a25:4009:: with SMTP id n9mr11388074yba.73.1624003299971; Fri, 18 Jun 2021 01:01:39 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!news.uzoreto.com!2.eu.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 18 Jun 2021 01:01:39 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=219.90.187.107; posting-account=d51RWwoAAADvR-x0zYAtT9z3CRxT1eXo NNTP-Posting-Host: 219.90.187.107 References: <0cc87de1-180d-44df-9e0d-a782992e518cn@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Problem building GNAT CE 2021 on Mac Catalina From: Roger Mc Injection-Date: Fri, 18 Jun 2021 08:01:40 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:62241 List-Id: On Friday, June 18, 2021 at 2:49:28 AM UTC+10, Simon Wright wrote: > Roger Mc writes:=20 >=20 > > Mac OSX 10.15.7=20 > > XCode 12.0=20 > >=20 > > I am attemting to build using the insttructions provided by the=20 > > README.BUILD from the source distribution of GNAT.=20 > >=20 > > I configure successfully from my /opt/GNAT/2021/obj directory with=20 > >=20 > > ../src/configure --enable-languages=3D"c,ada" --disable-libada=20 > > --with-gmp=3D/usr/local/Cellar/gmp/6.2.1=20 > > --with-mpfr=3D/usr/local/Cellar/mpfr/4.1.0=20 > > --with-mpc=3D/usr/local/Cellar/libmpc/1.1.0=20 > >=20 > > Although My /usr/local/include directory does include libintl.h=20 > > make bootstrap fails with:=20 > > In file included from ../../src/libcpp/charset.c:21:=20 > > ../../src/libcpp/system.h:279:10: fatal error: libintl.h: No such file= =20 > > or directory=20 > > #include > I think those instructions are rather old. Two things:=20 >=20 > * usually, GCC build instructions say not to make the build directory a= =20 > subdirectory of the source=20 My build directory is not a subdirectory of the source=20 > * nowadays you don't need to --disable-libada and then "make -C gcc=20 > gnatlib gnattools"=20 >=20 > What compiler are you starting from?=20 GNAT 2020 >=20 > What stage of the build did this fail at? (stage_current in the build=20 > directory)=20 I think stage 3 >=20 > It looks as though this is to do with "Native Language Support (NLS),=20 > which lets GCC output diagnostics in languages other than American=20 > English". The configuration documentation at=20 > https://gcc.gnu.org/install/configure.html suggests --disable-nls (which= =20 > is what I do) or --with-included-gettext. Thanks for the advice which has been quite helpful. I have progressed but still, after quit a long time the build fails. My current method: In src/gcc/Makefile.in change the path to the system headers on the build = machine to: BUILD_SYSTEM_HEADER_DIR =3D /Library/Developer/CommandLineTools/SDKs/MacOSX= 10.15.sdk/usr/include Follow instructions in gnat-2021-20210519-19A70-src/src ../src/configure --enable-languages=3D"c,ada" --with-gmp=3D/usr/local/Cell= ar/gmp/6.2.1 --with-mpfr=3D/usr/local/Cellar/mpfr/4.1.0 --with-mpc=3D/usr/l= ocal/Cellar/libmpc/1.1.0 --disable-nls --disable-libstdcxx make boostrap results in: raise-gcc.c:718:18: warning: 'cleanup_filter' defined but not used [-Wunuse= d-const-variable=3D] 718 | static const int cleanup_filter =3D 0; | ^~~~~~~~~~~~~~ raise-gcc.c:627:1: warning: 'get_ttype_entry_for' defined but not used [-Wu= nused-function] 627 | get_ttype_entry_for (region_descriptor *region, long filter) | ^~~~~~~~~~~~~~~~~~~ make[6]: *** [raise-gcc.o] Error 1 make[5]: *** [gnatlib] Error 2 make[4]: *** [gnatlib-shared-darwin] Error 2 make[3]: *** [gnatlib-shared] Error 2 make[2]: *** [gnatlib-shared] Error 2 make[1]: *** [all-target-libada] Error 2 make: *** [bootstrap] Error 2 This occurs a long way after: Comparing stages 2 and 3 Comparison successful. ..... Configuring in ./fixincludes ..... Configuring in ./gnattools ..... Configuring in x86_64-apple-darwin19.6.0/libada .... This seems to be the relevant command and first error message preceding man= y other warning and error messages before final failure: /opt/GNAT/2021/obj/./gcc/xgcc -B/opt/GNAT/2021/obj/./gcc/ -B/usr/local/x86_= 64-apple-darwin19.6.0/bin/ -B/usr/local/x86_64-apple-darwin19.6.0/lib/ -isy= stem /usr/local/x86_64-apple-darwin19.6.0/include -isystem /usr/local/x86_6= 4-apple-darwin19.6.0/sys-include -fchecking=3D1 -c -DIN_GCC -W -Wall -g = -O2 -g -O2 -fexceptions -DIN_RTS -DHAVE_GETIPINFO -fno-common -fno-common= \ -iquote . -iquote .. -iquote ../.. -iquote /opt/GNAT/2021/src/gcc/ad= a -iquote /opt/GNAT/2021/src/gcc -I/opt/GNAT/2021/src/include -I./../.. -f= no-omit-frame-pointer tracebak.c -o tracebak.o In file included from tracebak.c:603: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Develo= per/SDKs/MacOSX.sdk/usr/include/unwind.h:208:48: warning: 'unavailable' att= ribute directive ignored [-Wattributes] 208 | extern uintptr_t _Unwind_GetDataRelBase(struct _Unwind_Context* con= text) __attribute__((unavailable)); This failure is way beyond my understanding of the build process. Thanks.