On Fri, 27 Feb 2026, Andreas Schwab wrote:

> On Feb 10 2026, Jerry D wrote:
> 
> > diff --git a/libgfortran/acinclude.m4 b/libgfortran/acinclude.m4
> > index 23fd621e518..13097b4ab92 100644
> > --- a/libgfortran/acinclude.m4
> > +++ b/libgfortran/acinclude.m4
> > @@ -578,3 +578,15 @@ main ()
> >                         [Define to 1 if you have the `$1' function.])
> >    fi
> >  ])
> > +
> > +AC_DEFUN([LIBGFOR_CHECK_SANE_BUILTIN_CLZL], [
> > +  AC_RUN_IFELSE([AC_LANG_PROGRAM([[
> 
> This breaks cross compilers.

In particular for example building offload compilers where we now see:

[  856s] checking whether the target has CRLF as line terminator... no
[  856s] configure: error: in 
`/home/abuild/rpmbuild/BUILD/cross-amdgcn-gcc16-16
.0.1+git7751-build/gcc-16.0.1+git7751/obj-x86_64-suse-linux/amdgcn-amdhsa/libgfo
rtran':
[  856s] configure: error: cannot run test program while cross compiling
[  856s] See `config.log' for more details
[  856s] make[1]: *** [Makefile:14692: configure-target-libgfortran] Error 
1

Please fix.

Richard.

Reply via email to