https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125168
Bug ID: 125168
Summary: gcc-16.1.0: ada libraries build failure on FreeBSD
Product: gcc
Version: 16.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
Assignee: unassigned at gcc dot gnu.org
Reporter: kostikbel at ukr dot net
CC: dkm at gcc dot gnu.org
Target Milestone: ---
I tried to enable gnat on FreeBSD 15-STABLE. I used the gnat from gcc 15.2
that
was successfully built on the same host. The outcome is the following:
Target: x86_64-exa-freebsd15
Configured with: ../gcc-16.1.0/configure --prefix=/usr/local/opt/gcc-16.1.0
--wi
th-as=/usr/local/opt/binutils/bin/as --with-ld=/usr/local/opt/binutils/bin/ld
--
enable-languages=c,c++,objc,obj-c++,fortran,lto,ada,m2,algol68
--enable-multilib
--with-arch_32=i686 --enable-gnu-indirect-function --enable-long-long
--enable-
lto --with-linker-hash-style=gnu --enable-initfini-array
--enable-linker-build-i
d --enable-shared --enable-host-shared --enable-threads --enable-tls
--with-syst
em-zlib --enable-__cxa_atexit --enable-decimal-float
--build=x86_64-exa-freebsd1
5 --with-pkgversion=exa
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.1.0 (exa)
i-cobol.adb: In function ‘Interfaces.Cobol.To_Packed’:
i-cobol.adb:599:35: warning: ‘(*_56)[_8]’ may be used uninitialized
[-Wmaybe-uni
nitialized]
i-cobol.adb:608:32: warning: ‘(*_56)[_123]’ may be used uninitialized
[-Wmaybe-u
ninitialized]
s-dorepr.adb:137:10: error: "Is_Infinity" is undefined (more references follow)
gmake[9]: *** [../gcc-interface/Makefile:297: s-dourea.o] Error 1
gmake[8]: *** [gcc-interface/Makefile:644: gnatlib] Error 2
gmake[7]: *** [gcc-interface/Makefile:677: gnatlib-shared-default] Error 2
gmake[6]: *** [gcc-interface/Makefile:713: gnatlib-shared-dual] Error 2
gmake[5]: *** [gcc-interface/Makefile:831: gnatlib-shared] Error 2
gmake[4]: *** [Makefile:107: gnatlib-shared] Error 2
The exact failing command is
/usr/home/kostik/work/build/gcc/build/./gcc/xgcc
-B/usr/home/kostik/work/build/gcc/build/./gcc/
-B/usr/local/opt/gcc-16.1.0/x86_64-exa-freebsd15/bin/
-B/usr/local/opt/gcc-16.1.0/x86_64-exa-freebsd15/lib/ -isystem
/usr/local/opt/gcc-16.1.0/x86_64-exa-freebsd15/include -isystem
/usr/local/opt/gcc-16.1.0/x86_64-exa-freebsd15/sys-include -fchecking=1 -c -g
-O2 -m32 -fpic -fno-lto -W -Wall -gnatpg -nostdinc -m32 s-dourea.adb -o
s-dourea.o
s-dorepr.adb:137:10: error: "Is_Infinity" is undefined (more references follow)
gmake[9]: *** [../gcc-interface/Makefile:297: s-dourea.o] Error 1
gmake[9]: Leaving directory
'/usr/home/kostik/work/build/gcc/build/gcc/ada/rts_32'
This seems to be an issue with lib32 multilib. FreeBSD has 96 bits for long
double.
I remember there was something somewhat similar with previous releases,
ada/112958