From: Roger Mc <rogermcm2@gmail.com>
Subject: Re: Problem building GNAT CE 2021 on Mac Catalina
Date: Fri, 18 Jun 2021 01:01:39 -0700 (PDT) [thread overview]
Message-ID: <d27176e2-b370-4fd4-950f-4b6a82499319n@googlegroups.com> (raw)
In-Reply-To: <lypmwkzbai.fsf@pushface.org>
On Friday, June 18, 2021 at 2:49:28 AM UTC+10, Simon Wright wrote:
> Roger Mc <roge...@gmail.com> writes:
>
> > Mac OSX 10.15.7
> > XCode 12.0
> >
> > I am attemting to build using the insttructions provided by the
> > README.BUILD from the source distribution of GNAT.
> >
> > I configure successfully from my /opt/GNAT/2021/obj directory with
> >
> > ../src/configure --enable-languages="c,ada" --disable-libada
> > --with-gmp=/usr/local/Cellar/gmp/6.2.1
> > --with-mpfr=/usr/local/Cellar/mpfr/4.1.0
> > --with-mpc=/usr/local/Cellar/libmpc/1.1.0
> >
> > Although My /usr/local/include directory does include libintl.h
> > make bootstrap fails with:
> > In file included from ../../src/libcpp/charset.c:21:
> > ../../src/libcpp/system.h:279:10: fatal error: libintl.h: No such file
> > or directory
> > #include <libintl.h>
> I think those instructions are rather old. Two things:
>
> * usually, GCC build instructions say not to make the build directory a
> subdirectory of the source
My build directory is not a subdirectory of the source
> * nowadays you don't need to --disable-libada and then "make -C gcc
> gnatlib gnattools"
>
> What compiler are you starting from?
GNAT 2020
>
> What stage of the build did this fail at? (stage_current in the build
> directory)
I think stage 3
>
> It looks as though this is to do with "Native Language Support (NLS),
> which lets GCC output diagnostics in languages other than American
> English". The configuration documentation at
> https://gcc.gnu.org/install/configure.html suggests --disable-nls (which
> 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 = /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include
Follow instructions in gnat-2021-20210519-19A70-src/src
../src/configure --enable-languages="c,ada" --with-gmp=/usr/local/Cellar/gmp/6.2.1 --with-mpfr=/usr/local/Cellar/mpfr/4.1.0 --with-mpc=/usr/local/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 [-Wunused-const-variable=]
718 | static const int cleanup_filter = 0;
| ^~~~~~~~~~~~~~
raise-gcc.c:627:1: warning: 'get_ttype_entry_for' defined but not used [-Wunused-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 many 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/ -isystem /usr/local/x86_64-apple-darwin19.6.0/include -isystem /usr/local/x86_64-apple-darwin19.6.0/sys-include -fchecking=1 -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/ada -iquote /opt/GNAT/2021/src/gcc -I/opt/GNAT/2021/src/include -I./../.. -fno-omit-frame-pointer tracebak.c -o tracebak.o
In file included from tracebak.c:603:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/unwind.h:208:48: warning: 'unavailable' attribute directive ignored [-Wattributes]
208 | extern uintptr_t _Unwind_GetDataRelBase(struct _Unwind_Context* context) __attribute__((unavailable));
This failure is way beyond my understanding of the build process.
Thanks.
next prev parent reply other threads:[~2021-06-18 8:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-17 11:34 Problem building GNAT CE 2021 on Mac Catalina Roger Mc
2021-06-17 16:49 ` Simon Wright
2021-06-18 8:01 ` Roger Mc [this message]
2021-06-18 12:18 ` Roger Mc
2021-06-19 7:29 ` Roger Mc
2021-06-20 10:20 ` Roger Mc
2021-06-20 11:21 ` Simon Wright
2021-06-20 11:57 ` Roger Mc
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox