I've been unable to build ada on my fedora box since:

commit abcf5174979bcb91ac4c921eaa19a5b37f231ae4
Author: Arnaud Charlet <char...@adacore.com>
Date:   Wed Jan 13 08:49:15 2021 -0500

    [Ada] Use runtime from base compiler during stage1

    gcc/ada/

            * Make-generated.in: Add rule to copy runtime files needed
            during stage1.
            * raise.c: Remove obsolete symbols used during bootstrap.
            * gcc-interface/Make-lang.in: Do not use libgnat sources during
            stage1.
            (GNAT_ADA_OBJS, GNATBIND_OBJS): Split in two parts, the common
            part and the part only used outside of stage1.
            (ADA_GENERATED_FILES): Add runtime files needed during bootstrap
            when recent APIs are needed.
            (ada/b_gnatb.adb): Remove prerequisite.
            * gcc-interface/system.ads: Remove obsolete entries.

It fails on fedora 28 and fedora 31, configured with

--verbose --enable-languages=c,c++,fortran,ada,obj-c++,jit --enable-host-shared

Im going to guess its got something to do with the --enable-host-shared since the error I'm seeing is:

ada/gnat1drv.o ada/b_gnat1.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a attribs.o -g \   libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/pic/libiberty.a ../libdecnumber/libdecnumber.a   -lisl -lmpc -lmpfr -lgmp -rdynamic -ldl  -L./../zlib -lz /usr/lib/gcc/x86_64-redhat-linux/9/adalib/libgnat.a -ldl g++: error: /usr/lib/gcc/x86_64-redhat-linux/9/adalib/libgnat.a: No such file or directory make[3]: *** [/opt/notnfs/amacleod/master/gcc/gcc/ada/gcc-interface/Make-lang.in:740: gnat1] Error 1
make[3]: Leaving directory '/opt/notnfs/amacleod/master/build/gcc'
make[2]: *** [Makefile:4762: all-stage1-gcc] Error 2
make[2]: Leaving directory '/opt/notnfs/amacleod/master/build'
make[1]: *** [Makefile:26446: stage1-bubble] Error 2
make[1]: Leaving directory '/opt/notnfs/amacleod/master/build'
make: *** [Makefile:1000: all] Error 2

It cant find /usr/lib/gcc/x86_64-redhat-linux/9/adalib/libgnat.a

but there are .so files:

ls /usr/lib/gcc/x86_64-redhat-linux/9/adalib/libgnat*
/usr/lib/gcc/x86_64-redhat-linux/9/adalib/libgnat-9.so /usr/lib/gcc/x86_64-redhat-linux/9/adalib/libgnat_pic.a /usr/lib/gcc/x86_64-redhat-linux/9/adalib/libgnat.so

Andrew

Reply via email to