On Debian, we still configure gnustep-make with CC=gcc but for Debian packages we enforce the host compiler, <triplet>-gcc, so that it works when cross-building.
For simplifcation of our build process, this is done for normal builds too, so for example the compiler for a native build on amd64 is x86_64-linux-gnu-gcc instead of /usr/bin/gcc. That's actually the very same executable because /usr/bin/gcc is a symlink to the default compiler /usr/bin/gcc-16 which is a symlink to /usr/bin/x86_64-linux-gnu-gcc-16 (with /usr/bin/x86_64-linux-gnu-gcc being also a symlink to x86_64-linux-gnu-gcc-16). GNUstep Base has the same compiler mismatch test but issues only a warning which I believe is the right thing to do, as the installer should know what he's doing. The attached patch downgrades the error to warning. I didn't regenerate configure because due to Autoconf version mismatch the diff becomes huge. Please do that yourself locally if you intend to apply the patch.
>From fabc9570f4a31d16289be6d000e0f7bd4fcb2d4a Mon Sep 17 00:00:00 2001 From: Yavor Doganov <[email protected]> Date: Fri, 16 Oct 2026 06:36:39 +0300 Subject: [PATCH] configure: Relax compiler mismatch test to a warning --- Inspector/configure.ac | 3 +-- configure.ac | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Inspector/configure.ac b/Inspector/configure.ac index 621ae987..20d3b042 100644 --- a/Inspector/configure.ac +++ b/Inspector/configure.ac @@ -22,8 +22,7 @@ AC_PROG_CPP MAKECC=`gnustep-config --variable=CC` if test "$CC" != "$MAKECC"; then - AC_MSG_ERROR([You are running configure with the compiler ($CC) set to a different value from that used by gnustep-make ($MAKECC). Please run configure again with your environment set to match your gnustep-make]) - exit 1 + AC_MSG_WARN([You are running configure with the compiler ($CC) set to a different value from that used by gnustep-make ($MAKECC). Please run configure again with your environment set to match your gnustep-make]) fi #-------------------------------------------------------------------- diff --git a/configure.ac b/configure.ac index 84fda357..6e5c0f82 100644 --- a/configure.ac +++ b/configure.ac @@ -23,8 +23,7 @@ AC_PROG_CPP MAKECC=`gnustep-config --variable=CC` if test "$CC" != "$MAKECC"; then - AC_MSG_ERROR([You are running configure with the compiler ($CC) set to a different value from that used by gnustep-make ($MAKECC). Please run configure again with your environment set to match your gnustep-make]) - exit 1 + AC_MSG_WARN([You are running configure with the compiler ($CC) set to a different value from that used by gnustep-make ($MAKECC). Please run configure again with your environment set to match your gnustep-make]) fi AC_SUBST(CC) -- 2.55.0
