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

--- Comment #4 from Steve Kargl <kargl at gcc dot gnu.org> ---
(In reply to Lorenzo Salvadore from comment #3)
> I see the bug in FreeBSD versions 14.3-RELEASE, 15.0-RELEASE and
> 16.0-CURRENT (16.0-CURRENT #2 main-n282366-8291ea8761c2: Sun Dec 14 14:18:53
> CET 2025). I have not tested other versions.
> 
> These are our configure arguments:
> 
> configure --without-isl --enable-multilib
> --with-build-config=bootstrap-debug --disable-nls --disable-libssp
> --enable-gnu-indirect-function --enable-host-shared --enable-plugin
> --libdir=/usr/local/lib/gcc16 --libexecdir=/usr/local/libexec/gcc16
> --program-suffix=16 --with-as=/usr/local/bin/as --with-gmp=/usr/local
> --with-gxx-include-dir=/usr/local/lib/gcc16/include/c++/
> --with-gxx-libcxx-include-dir=/usr/include/c++/v1
> --with-ld=/usr/local/bin/ld --with-pkgversion=FreeBSD Ports Collection
> --with-system-zlib --without-zstd --enable-languages=c,c++,objc,fortran,jit
> --prefix=/usr/local --localstatedir=/var --mandir=/usr/local/share/man
> --infodir=/usr/local/share/info/gcc16 --build=x86_64-portbld-freebsd15.0

I just bootstrapped top-of-tree gcc with the above configure command line
where I needed to remove --build=x86_64-portbld-freebsd15.0 and
--with-pkgversion=FreeBSD Ports Collection.  The initial compiler in the
bootstrap process was FreeBSD's clang system compiler.  I do not see
the failure you are reporting.

However, I then remembered that the FreeBSD port has several patches that
have not been upstreamed.

% ls /usr/ports/lang/gcc16-devel/files
patch-arm-unwind-cxx-support
patch-gcc_Makefile.in
patch-gcc_configure
patch-gcc_jit_Make-lang.in
patch-gcc_jit_jit-recording.cc
patch-gcc_jit_libgccjit.cc
patch-gfortran-libgcc
patch-libcxxrt
patch-libgcc_unwind-dw2-fde-dip.c
patch-libgcc_unwind.inc
patch-libsanitizer_asan_asan__linux.cpp
patch-libsanitizer_asan_asan__thread.cpp
pkg-message.in

Of these patches, it seems that patch-libcxxrt may be worth
investigating.

Reply via email to